Changeset 15745 for schedule/authenticate
- Timestamp:
- 05/20/13 15:09:06 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/authenticate/body.php
r15685 r15745 41 41 <br/> 42 42 <div width="100px"> 43 <label style=" color:#37DFB1; font-size:14px;"> Search : </label><input type="search" id="textbox" size="26" style="font-weight:normal" /> 43 <!-- AKI --> 44 <?php 45 include 'search.php'; 46 ?> 44 47 45 <script type="text/javascript">46 jQuery.fn.filterByText = function(textbox, selectSingleMatch) {47 return this.each(function() {48 var select = this;49 var options = [];50 51 $(select).find('option').each(function() {52 options.push({value: $(this).val(), text: $(this).text()});53 });54 $(select).data('options', options);55 $(textbox).bind('change keyup', function() {56 var options = $(select).empty().scrollTop(0).data('options');57 var search = $.trim($(this).val());58 var regex = new RegExp(search,'gi');59 60 $.each(options, function(i) {61 var option = options[i];62 if(option.text.match(regex) !== null) {63 $(select).append(64 $('<option>').text(option.text).val(option.value)65 );66 }67 68 69 });70 if (selectSingleMatch === true &&71 $(select).children().length === 1) {72 $(select).children().get(0).selected = true;73 }74 });75 });76 };77 78 $(function() {79 80 $('#source').filterByText($('#textbox'), true);81 82 83 });84 </script>85 <script>86 $(document).ready(function() {87 $("#source").blur(function() {88 if ($(this).val() != ''){89 $("#textbox").attr("disabled", "disabled");90 }else{91 $("#textbox").removeAttr("disabled");92 }93 });94 95 $("#remove").click(function(){96 97 $("#textbox").removeAttr("disabled");98 99 100 });101 102 103 });104 </script>105 106 107 48 <br /> 108 </div> 109 110 111 <table width="50%"> 112 <tr> 113 <td style=" color:#37DFB1; font-size:14px;" align="center"> 114 Source List 115 <br/> 116 <select name="source" id="sourcelist" multiple="multiple" style="width:100%; min-width:110px; heigth:150%;" size="10"> 117 </select> 118 119 </td> 120 <td> 121 <br/> 122 <input type="button" id="add" value=">>"> 123 <br/> 124 <input type="button" id="remove" value="<<"> 125 </td> 126 <td style=" color:#37DFB1; font-size:14px;" align="center"> 127 display<br/> 128 <select id="sourcedisplay" name="sourcedisplay" multiple="multiple" style="width:100%; min-width:110px; heigth:150%;" size="10"></select> 129 </td> 130 </tr> 131 </table> 49 </div> 132 50 </div> 133 51 <div id="column3">
Note:
See TracChangeset
for help on using the changeset viewer.