{if condition="isset($show_error_box)"}
    {include="message_box"}
{/if}
<form action='config.php?type=tool&amp;display=epm_advanced&amp;subpage=settings' method='POST'>
<table width='90%' align='center'>
<tr>
<td width='50%' align='right'><?php echo _("IP address of phone server")?>:</td>
<td width='50%' align='left'><input type='text' id='srvip' name='srvip' value='{$srvip}'><a href='#' onclick="document.getElementById('srvip').value = '{$ip}'; "><?php echo _("Determine for me")?></a></td>
</tr>
<tr>
  <td align='right'><?php echo _("Configuration Type")?></td>
  <td align='left'>
      <select name="cfg_type" id="cfg_type">
            <option value="file" {if condition="isset($type_file)"}selected='selected'{/if}>File (TFTP/FTP)</option>
            <option value="http" {if condition="isset($type_http)"}selected='selected'{/if}>Web (HTTP)</option>
        </select>
  </td>
</tr>
<tr>
  <td align='right'><?php echo _("Global Final Config & Firmware Directory")?></td>
  <td align='left'><label>
    <input type="text" name="config_loc" value="{$config_location}">
  </label></td>
</tr>
<tr>
  <td align='right'><br/></td>
  <td align='left'></td>
</tr>
<tr>
<td width='50%' align='right'><?php echo _("Time Zone")?> (<?php echo _('like')?> USA-5)</td>
<td width='50%' align='left'><select name="tz" id="tz">
	{loop name="list_tz"}
	<option value="{$value.value}" {if condition="$value.selected == 1"}selected='selected'{/if}>{$value.text}</option>
	{/loop}
</select>
</td>
</tr>
<tr>
<td width='50%' align='right'><?php echo _("Time Server (NTP Server)")?></td>
  <td align='left'><label>
    <input type="text" name="ntp_server" value="{$ntp_server}">
  </label></td>
</tr>
<tr>
  <td align='right'><br/></td>
  <td align='left'></td>
</tr>
<tr>
  <td align='right'>NMAP <?php echo _("executable path")?>:</td>
  <td align='left'><label>
    <input type="text" name="nmap_loc" value="{$nmap_location}">
  </label></td>
</tr>
<tr>
  <td align='right'>ARP <?php echo _("executable path")?>:</td>
  <td align='left'><label>
    <input type="text" name="arp_loc" value="{$arp_location}">
  </label></td>
</tr>
<tr>
  <td align='right'>Asterisk <?php echo _("executable path")?>:</td>
  <td align='left'><label>
    <input type="text" name="asterisk_loc" value="{$asterisk_location}">
  </label></td>
</tr>
<tr>
  <td align='right'><br/></td>
  <td align='left'></td>
</tr>
<tr>
  <td align='right'>Package Server:</td>
  <td align='left'><label>
    <input type="text" name="package_server" value="{$package_server}" size="50">
  </label></td>
</tr>
<tr>
  <td align='right'><br/></td>
  <td align='left'></td>
</tr>
<tr>
  <td align='right'><?php echo _("Enable FreePBX ARI Module")?> (<a href="http://projects.colsolgrp.net/documents/29" target="_blank">What?</a>)</td>
  <td align='left'><label>
    <input type=checkbox name="enable_ari" {$ari_selected}>
  </label></td>
</tr>
<tr>
  <td align='right'><?php echo _("Enable Debug Mode")?></td>
  <td align='left'><label>
    <input type=checkbox name="enable_debug" {$debug_selected}>
  </label></td>
</tr>
<tr>
  <td align='right'><?php echo _("Disable Tooltips")?></td>
  <td align='left'><label>
    <input type=checkbox name="disable_help" {$help_selected}>
  </label></td>
</tr>
<tr>
  <td align='right'><?php echo _("Allow Duplicate Extensions")?></td>
  <td align='left'><label>
    <input type=checkbox name="allow_dupext" {$dupext_selected}>
  </label></td>
</tr>
<tr>
  <td align='right'><?php echo _("Allow Saving to Hard-Drive Configuration Files")?></td>
  <td align='left'><label>
    <input type=checkbox name="allow_hdfiles" {$hdfiles_selected}>
  </label></td>
</tr>
<tr>
<td colspan='2' align='center'><input type='Submit' name='button_update_globals' value='<?php echo _('Update Globals')?>'></td>
</tr>
</table>
</form>
