<td><?php 
echo _("Ring Type");
?>
</td>
		<td><?php 
echo form_dropdown('ringer', polycomphones_dropdown('ringType'), $alert['ringer']);
?>
</td>	
	</tr>
	<tr>
		<td><?php 
echo _("Type");
?>
</td>
		<td><?php 
echo form_dropdown('type', polycomphones_dropdown('alert_type'), $alert['type']);
?>
</td>	
	</tr>
	<tr>
		<td><?php 
echo _("Alert Info");
?>
</td>
		<td><?php 
echo form_input('alertinfo', $alert['alertinfo']);
?>
</td>	
	</tr>
</tbody>
</table>
		<td><?php 
    echo _("Do Not Disturb Control");
    ?>
<span class="help">?<span style="display: none;">If 'Server', do not disturb settings will use server event feature synchronization.</span></span></td>
		<td><?php 
    echo form_dropdown('serverFeatureControl_dnd', polycomphones_dropdown('client_server'), $general['serverFeatureControl_dnd']);
    ?>
</td>	
	</tr>
	<tr>
		<td><?php 
    echo _("Call Forward Control");
    ?>
<span class="help">?<span style="display: none;">If 'Server', call forward settings will use server event feature synchronization.</span></span></td>
		<td><?php 
    echo form_dropdown('serverFeatureControl_cf', polycomphones_dropdown('client_server'), $general['serverFeatureControl_cf']);
    ?>
</td>	
	</tr>
	<?php 
} else {
    ?>
	<input type="hidden" name="serverFeatureControl_dnd" value="<?php 
    echo $general['serverFeatureControl_dnd'];
    ?>
">
	<input type="hidden" name="serverFeatureControl_cf" value="<?php 
    echo $general['serverFeatureControl_cf'];
    ?>
">
	<?php 
		<td><?php 
echo _("Transport");
?>
<span class="help">?<span style="display: none;">The transport method the phone uses to communicate with the SIP server.</span></span></td>
		<td><?php 
echo form_dropdown('transport', polycomphones_dropdown('transport'), $line['settings']['transport']);
?>
</td>	
	</tr>
	<tr>
		<td><?php 
echo _("Register");
?>
<span class="help">?<span style="display: none;">If 'Yes', phone will register with SIP server to receive inbound calls. </span></span></td>
		<td><?php 
echo form_dropdown('register', polycomphones_dropdown('register'), $line['settings']['register']);
?>
</td>	
	</tr>
	<tr>
		<td><?php 
echo _("MWI Callback");
?>
<span class="help">?<span style="display: none;">The contact to call when retrieving messages.</span></span></td>
		<td><?php 
echo form_input('mwicallback', $line['settings']['mwicallback']);
?>
</td>	
	</tr>
</tbody>
</table>
<p></p>

<table id="lines" class="tablesorter" width="100%">
<thead>
<tr>
	<th width="22%">Class</th>
	<th width="22%">Name</th>
	<th width="22%">Ringer</th>
	<th width="22%">Alert Info</th>
	<th width="12%">Actions</th>
</tr>
</thead>
<tbody>
<?php 
$ringtype = polycomphones_dropdown('ringType');
foreach ($alerts as $alert) {
    ?>
<tr>
	<td>
		<?php 
    echo $alert['id'];
    ?>
	</td>
	<td>
		<?php 
    echo $alert['name'];
    ?>
	</td>
	<td>
		<?php 
		<td><?php 
echo _("NTP Override DHCP");
?>
<span class="help">?<span style="display: none;">If 'Disabled', the DHCP values for the NTP server address will be used. If 'Enabled', the NTP parameters will override the DHCP values.</span></span></td>
		<td><?php 
echo form_dropdown('tcpIpApp_sntp_address_overrideDHCP', polycomphones_dropdown('disabled_enabled'), $network['settings']['tcpIpApp_sntp_address_overrideDHCP']);
?>
</td>	
	</tr>
	<tr>
		<td><?php 
echo _("Time Zone");
?>
</td>
		<td><?php 
echo form_dropdown('tcpIpApp_sntp_gmtOffset', polycomphones_dropdown('tcpIpApp_sntp_gmtOffset', true, ''), $network['settings']['tcpIpApp_sntp_gmtOffset']);
?>
</td>	
	</tr>
	
	<tr><td colspan="2"><h5><?php 
echo _("Codec Priority");
?>
<hr/></h5></td></tr>
	<tr>
		<td><?php 
echo _("G.711 U-law");
?>
<span class="help">?<span style="display: none;">Default: 6</span></span></td>
		<td><?php 
echo form_dropdown('voice_codecPref_G711_Mu', polycomphones_dropdown_numbers(0, 27), $network['settings']['voice_codecPref_G711_Mu']);
?>
</td>	
		</tr>
		<tr>
			<td><?php 
echo _("Backlight Idle Intensity");
?>
<span class="help">?<span style="display: none;">The brightness of the LCD backlight when the phone is idle.</span></span></td>
			<td><?php 
echo form_dropdown('up_backlight_idleIntensity', polycomphones_dropdown('up_backlight_idleIntensity', $phone_default), $phone_options['up_backlight_idleIntensity']);
?>
</td>	
		</tr>
		<tr>
			<td><?php 
echo _("Backlight On Intensity");
?>
<span class="help">?<span style="display: none;">The brightness of the LCD backlight when the phone is active (in use).</span></span></td>
			<td><?php 
echo form_dropdown('up_backlight_onIntensity', polycomphones_dropdown('up_backlight_onIntensity', $phone_default), $phone_options['up_backlight_onIntensity']);
?>
</td>	
		</tr>
	</table>
	
	</td>
	</tr>
	</table>
	
	</td>
	</tr>
<hr/></h5></td></tr>	
	<tr>
		<td width="175"><?php 
echo _("Corporate Directory");
?>
</td>
		<td><?php 
echo form_dropdown('feature_corporateDirectory_enabled', polycomphones_dropdown('disabled_enabled', true), $device['settings']['feature_corporateDirectory_enabled']);
?>
</td>	
	</tr>
	<tr>
		<td><?php 
echo _("Exchange Calendar");
?>
*</td>
		<td><?php 
echo form_dropdown('feature_exchangeCalendar_enabled', polycomphones_dropdown('disabled_enabled', true), $device['settings']['feature_exchangeCalendar_enabled']);
?>
</td>	
	</tr>
</tbody>
</table>
<p>* Changing these fields will cause phone to restart</p>

<input type="hidden" name="action" value="edit">
<input type="submit" value="<?php 
echo _("Submit");
?>
">
</form>
    ?>
</td>
				<td><?php 
    echo form_input('ct[]', $contact['ct'], 'size="10"');
    ?>
</td>
				<td><?php 
    echo form_dropdown('sd[]', polycomphones_dropdown('disabled_enabled'), $contact['sd']);
    ?>
</td>
				<td><?php 
    echo form_dropdown('rt[]', polycomphones_dropdown('ringType', true), $contact['rt']);
    ?>
</td>
				<td><?php 
    echo form_dropdown('bw[]', polycomphones_dropdown('disabled_enabled'), $contact['bw']);
    ?>
</td>
				<td><img src="images/trash.png" class="deletecontact" style="cursor:pointer; float:none;" alt="remove" title="Click to delete contact"></td>
			</tr>
			<?php 
    $i++;
}
?>
		</tbody>
		</table>
		<input type="button" class="addcontact" value="<?php 
echo _("Add Contact");
?>
"/>
		</td>
<hr/></h5></td></tr>	
	<tr>
		<td><?php 
echo _("Corporate Directory");
?>
</td>
		<td><?php 
echo form_dropdown('feature_corporateDirectory_enabled', polycomphones_dropdown('disabled_enabled'), $general['feature_corporateDirectory_enabled']);
?>
</td>	
	</tr>
	<tr>
		<td><?php 
echo _("Exchange Calendar");
?>
*</td>
		<td><?php 
echo form_dropdown('feature_exchangeCalendar_enabled', polycomphones_dropdown('disabled_enabled'), $general['feature_exchangeCalendar_enabled']);
?>
</td>	
	</tr>
</tbody>
</table>
<br />

<input type="hidden" name="action" value="edit">
<input type="submit" value="<?php 
echo _("Submit");
?>
">
</form>