Add normal and automata options for the Polycom provisioning templates

This commit is contained in:
Mark Crane
2014-07-20 06:11:37 +00:00
parent 00718d969a
commit d635dcd82f
3 changed files with 54 additions and 19 deletions
+11 -1
View File
@@ -688,7 +688,8 @@ require_once "resources/require.php";
<?php $found = false; ?>
<select class='formfld' style='width:80px;' name='device_keys[<?php echo $x; ?>][device_key_type]'>
<option value=''></option>
<?php if (strtolower($device_vendor) == "cisco" || strlen($device_vendor) == 0) {
<?php
if (strtolower($device_vendor) == "cisco" || strlen($device_vendor) == 0) {
if (strlen($device_vendor) == 0) { echo "<optgroup label='Cisco'>"; }
?>
<option value='line' <?php if ($row['device_key_type'] == "line") { echo $selected;$found=true; } ?>><?php echo $text['label-line'] ?></option>
@@ -716,6 +717,15 @@ require_once "resources/require.php";
<?php
if (strlen($device_vendor) == 0) { echo "</optgroup>"; }
}
if (strtolower($device_vendor) == "polycom" || strlen($device_vendor) == 0) {
if (strlen($device_vendor) == 0) { echo "<optgroup label='Polycom'>"; }
?>
<option value='line' <?php if ($row['device_key_type'] == "line") { echo $selected;$found=true; } ?>><?php echo $text['label-line'] ?></option>
<option value='automata' <?php if ($row['device_key_type'] == "automata") { echo $selected;$found=true; } ?>><?php echo $text['label-automata'] ?></option>
<option value='normal' <?php if ($row['device_key_type'] == "normal") { echo $selected;$found=true; } ?>><?php echo $text['label-normal'] ?></option>
<?php
if (strlen($device_vendor) == 0) { echo "</optgroup>"; }
}
if (strtolower($device_vendor) == "yealink" || strlen($device_vendor) == 0) {
if (strlen($device_vendor) == 0) { echo "<optgroup label='Yealink'>"; }
?>