phpBMS

Show
Ignore:
Timestamp:
10/16/06 20:06:23 (6 years ago)
Author:
brieb
Message:

Updated CSS on search screens. Rewrote tab generation code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/advancedsearch.php

    r77 r117  
    5252                $numfields = mysql_num_fields($queryresult); 
    5353                for ($i=0;$i<$numfields;$i++) $fieldlist[]=mysql_field_table($queryresult,$i).".".mysql_field_name($queryresult,$i); 
    54                 ?><table border="0" cellspacing="0" cellpadding="0"> 
    55                         <tr> 
    56                                 <td valign=top width="99%"> 
    57                                         <div>match <select id="ASanyall" onChange="updateAS()"> 
    58                                                 <option value="and" selected="selected">all</option> 
    59                                                 <option value="or">any</option> 
    60                                         </select> of the following rules:</div> 
    61                                         <div id="theASCs" style="margin:0px;padding:0px;"> 
    62                                                 <div id="ASC1"> 
    63                                                         <select id="ASC1field" onChange="updateAS()"> 
    64                                                                 <?php  
    65                                                                         foreach($fieldlist as $field){ 
    66                                                                                 echo "<option value=\"".$field."\" >".$field."</option>\n";}?> 
    67                                                         </select> 
    68                                                         <select id="ASC1operator" onChange="updateAS()"> 
    69                                                                  <option value="=" selected="selected">=</option> 
    70                                                                  <option value="!=">!=</option> 
    71                                                                  <option value=">">&gt;</option> 
    72                                                                  <option value="<">&lt;</option> 
    73                                                                  <option value=">=">&gt;=</option> 
    74                                                                  <option value="<=">&lt;=</option> 
    75                                                                  <option value="like">like</option> 
    76                                                                  <option value="not like">not like</option> 
    77                                                         </select> 
    78                                                         <input type="text" id="ASC1text" size="30" maxlength="255" onKeyUp="updateAS()" value="" /> 
    79                                                         <button type="button" id="ASC1minus" class="invisibleButtons" onClick="removeLineAS(this)"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-minus-disabled.png" align="middle" alt="-" width="16" height="16" border="0" /></button> 
    80                                                         <button type="button" id="ASC1plus" class="invisibleButtons" onClick="addlineAS()"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-plus.png" align="middle" alt="+" width="16" height="16" border="0" /></button> 
    81                                                 </div> 
    82                                         </div> 
    83                                         <div> 
    84                                                 sql where clause<br/> 
    85                                                 <textarea id="ASSQL" style="width:99%" cols="90" rows="3" onKeyUp="ASEnableSave(this)"></textarea>               
    86                                         </div> 
    87                                 </td> 
    88                                 <td valign="top"> 
    89                                         <div align="right" style="margin-top:10px;"><br /> 
    90                                                 <input id="ASsearchbutton" type="button" onClick="performAdvancedSearch(this)" class="Buttons" disabled="true" value="search" style="width:90px;" accesskey="" />                
    91                                         </div> 
    92                                 </td> 
    93                         </tr> 
    94                 </table><?php            
     54                ?> 
     55                <p align="right" style="float:right"> 
     56                        <input id="ASsearchbutton" type="button" onClick="performAdvancedSearch(this)" class="Buttons" disabled="true" value="search" />                 
     57                </p> 
     58 
     59                <p>match <select id="ASanyall" onChange="updateAS()"> 
     60                        <option value="and" selected="selected">all</option> 
     61                        <option value="or">any</option> 
     62                </select> of the following rules:</p> 
     63                <div id="theASCs"> 
     64                        <div id="ASC1"> 
     65                                <select id="ASC1field" onChange="updateAS()"> 
     66                                        <?php  
     67                                                foreach($fieldlist as $field){ 
     68                                                        echo "<option value=\"".$field."\" >".$field."</option>\n";}?> 
     69                                </select> 
     70                                <select id="ASC1operator" onChange="updateAS()"> 
     71                                         <option value="=" selected="selected">=</option> 
     72                                         <option value="!=">!=</option> 
     73                                         <option value=">">&gt;</option> 
     74                                         <option value="<">&lt;</option> 
     75                                         <option value=">=">&gt;=</option> 
     76                                         <option value="<=">&lt;=</option> 
     77                                         <option value="like">like</option> 
     78                                         <option value="not like">not like</option> 
     79                                </select> 
     80                                <input type="text" id="ASC1text" size="30" maxlength="255" onKeyUp="updateAS()" value="" /> 
     81                                <button type="button" id="ASC1minus" class="graphicButtons buttonMinusDisabled" onClick="removeLineAS(this)"><span>-</span></button> 
     82                                <button type="button" id="ASC1plus" class="graphicButtons buttonPlus" onClick="addlineAS()"><span>+</span></button> 
     83                        </div> 
     84                </div> 
     85                <p> 
     86                        sql where clause<br/> 
     87                        <textarea id="ASSQL" style="width:99%" cols="90" rows="3" onKeyUp="ASEnableSave(this)"></textarea>               
     88                </p><?php                
    9589        } 
    9690 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.