search selects

This commit is contained in:
blackc2004
2016-03-22 15:42:46 -07:00
parent 024fd460bd
commit c2e1755931
9 changed files with 1870 additions and 4 deletions

View File

@@ -1216,7 +1216,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
tb.type='text';
tb.name=obj.name;
tb.className='formfld';
tb.setAttribute('id', 'device_mac_address');
tb.setAttribute('id', 'device_mac_address_chosen');
tb.setAttribute('style', 'width: 80%;');
tb.setAttribute('pattern', '^([0-9A-Fa-f]{2}[:-]?){5}([0-9A-Fa-f]{2})$');
tb.value=obj.options[obj.selectedIndex].value;
@@ -1242,7 +1242,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
</script>
<?php
echo " <select id=\"device_mac_address\" name=\"device_mac_address\" class='formfld' style='width: 180px;' onchange='changeToInput_device_mac_address(this);this.style.visibility = \"hidden\";'>\n";
echo " <select id=\"device_mac_address\" name=\"device_mac_address\" class='formfld chosen-select' style='' onchange='changeToInput_device_mac_address(this);this.style.visibility = \"hidden\";'>\n";
echo " <option value=''></option>\n";
if (count($devices) > 0) {
foreach($devices as $field) {