phpBMS

Changeset 705 for trunk/phpbms/include

Show
Ignore:
Timestamp:
01/02/10 18:26:44 (2 years ago)
Author:
brieb
Message:
  • Increased font size of search screens
  • removed old-school table formatting of basic search tab
  • tweaked css of some basic tags
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/include/search_class.php

    r704 r705  
    608608<div class="box" id="searchBox"> 
    609609        <div id="basicSearchTab"> 
    610                 <table cellpadding="0" cellspacing="0" border="0"> 
    611                         <tr> 
    612                                 <td nowrap="nowrap" valign="top"> 
    613                                         <p> 
    614                                                 <label for="find">find</label><br /> 
    615                                                 <select name="find" id="find"> 
    616                                                 <?php 
    617                                                         for($i=0;$i<count($this->findoptions);$i++) { 
    618                                                                 if(hasRights($this->findoptions[$i]["roleid"])){ 
    619                                                                         ?><option value="<?php echo $this->findoptions[$i]["name"]?>"<?php 
    620                                                                                 if($this->querytype=="search" and $this->findoptions[$i]["name"]==$this->savedfindoptions) echo "selected=\"selected\""; 
    621                                                                         ?>><?php echo $this->findoptions[$i]["name"]?></option><?php 
    622                                                                 } 
    623                                                         } 
    624                                                 ?> 
    625                                                 </select> 
    626                                         </p> 
    627                                 </td> 
    628                         <td nowrap="nowrap" valign="top"> 
    629                                 <p> 
    630                                 <label for="startswithfield">where</label><br /> 
    631                                         <select name="startswithfield" id="startswithfield"> 
    632                                                 <?php 
    633                                                         for($i=0;$i<count($this->searchablefields);$i++) { 
    634                                                                 echo "<option value=\"".$this->searchablefields[$i]["id"]."\" "; 
    635                                                                         if(!isset($this->savedstartswithfield)){ 
    636                                                                                 if($this->querytype!="search" and $i==0) echo "selected=\"selected\""; 
    637                                                                         } else { 
    638                                                                                 if($this->querytype=="search" and addslashes($this->searchablefields[$i]["id"])==$this->savedstartswithfield) echo "selected=\"selected\""; 
    639                                                                         } 
    640                                                                 echo ">".$this->searchablefields[$i]["name"]."</option>\n"; 
    641                                                         } 
    642                                                 ?> 
    643                                         </select> 
    644                                 </p> 
    645                         </td> 
    646                         <td width="100%" nowrap="nowrap" valign="top" > 
    647                                 <p><label for="startswith">starts with</label><br /> 
    648                                         <input id="startswith" name="startswith" type="text"  value="<?php if($this->querytype=="search" and isset($this->savedstartswith)) echo str_replace("\"","&quot;",stripslashes($this->savedstartswith))?>" size="35" maxlength="128" /><script language="JavaScript" type="text/javascript">setMainFocus()</script> 
    649                                 </p> 
    650                         </td> 
    651                         <td align="left" valign="top" nowrap="nowrap" class="small"> 
    652                                 <p> 
    653                                         <br /> 
    654                                         <input name="command" id="searchbutton" type="submit" class="Buttons" value="search"/> 
    655                                 </p> 
    656                         </td> 
    657                 </tr> 
    658                 <tr> 
    659                         <td colspan="3" align="left" valign="middle" nowrap="nowrap"> 
    660                         <p> 
    661                         <select name="Selection"> 
    662                                 <option value="new" <?php if ($this->querytype!="search" or ($this->querytype=="search" and $this->savedselection=="new") ) echo "selected=\"selected\""?> >new result</option> 
    663                                 <option value="add" <?php if ($this->querytype=="search" and $this->savedselection=="add")echo "selected=\"selected\""?>>add to result</option> 
    664                                 <option value="remove" <?php if ($this->querytype=="search" and $this->savedselection=="remove")echo "selected=\"selected\""?>>remove from result</option> 
    665                                 <option value="narrow" <?php if ($this->querytype=="search" and $this->savedselection=="narrow")echo "selected=\"selected\""?>>narrow result</option> 
    666                         </select></p></td> 
    667                         <td align="left" valign="top" nowrap="nowrap"><p><input name="command" type="submit" id="reset" class="smallButtons" value="reset" accesskey="t" title="(access key+t)"/></p></td> 
    668                 </tr> 
    669         </table> 
     610 
     611            <p id="bstFindP" class="big"> 
     612 
     613                <label for="find">find</label><br /> 
     614                <select name="find" id="find"> 
     615                <?php 
     616 
     617                        foreach($this->findoptions as $option) { 
     618 
     619                            if(hasRights($option["roleid"])){ 
     620 
     621                                ?><option value="<?php echo formatVariable($option["name"]) ?>" <?php 
     622 
     623                                    if($this->querytype=="search" && $option["name"] == $this->savedfindoptions) 
     624                                        echo 'selected="selected"'; 
     625 
     626                                    ?>><?php echo formatVariable($option["name"])?></option><?php 
     627 
     628                            }//endif 
     629 
     630                        }//enforeach 
     631 
     632                ?> 
     633                </select> 
     634 
     635            </p> 
     636 
     637            <p id="bstStartsWithFieldP" class="big"> 
     638 
     639                <label for="startswithfield">where</label><br /> 
     640                <select name="startswithfield" id="startswithfield"> 
     641                <?php 
     642 
     643                    $i=0; 
     644 
     645                    foreach($this->searchablefields as $searchField) { 
     646 
     647                            ?><option value="<?php echo $searchField["id"]?>" <?php 
     648 
     649                                if(!isset($this->savedstartswithfield)) 
     650                                    if($this->querytype != "search" && $i == 0) 
     651                                        echo "selected=\"selected\""; 
     652                                else 
     653                                    if($this->querytype == "search" && addslashes($searchField["id"]) == $this->savedstartswithfield) 
     654                                        echo 'selected="selected"'; 
     655 
     656                            echo ">".$searchField["name"]."</option>\n"; 
     657 
     658                        $i++; 
     659 
     660                    }//endforeach 
     661                    ?> 
     662                </select> 
     663 
     664            </p> 
     665 
     666            <p id="bstSearchButtonP" class="big"> 
     667                <input name="command" id="searchbutton" type="submit" class="Buttons" value="search"/> 
     668            </p> 
     669 
     670            <p id="bstStartsWithP" class="big"> 
     671 
     672                <label for="startswith">starts with</label><br /> 
     673                <input id="startswith" name="startswith" type="text"  value="<?php if($this->querytype=="search" and isset($this->savedstartswith)) echo formatVariable($this->savedstartswith) ?>" size="35" maxlength="128" /> 
     674 
     675            </p> 
     676 
     677 
     678            <p id="bstSelectionP"> 
     679                <select name="Selection"> 
     680                    <option value="new" <?php if ($this->querytype!="search" or ($this->querytype=="search" and $this->savedselection=="new") ) echo "selected=\"selected\""?> >new result</option> 
     681                    <option value="add" <?php if ($this->querytype=="search" and $this->savedselection=="add")echo "selected=\"selected\""?>>add to result</option> 
     682                    <option value="remove" <?php if ($this->querytype=="search" and $this->savedselection=="remove")echo "selected=\"selected\""?>>remove from result</option> 
     683                    <option value="narrow" <?php if ($this->querytype=="search" and $this->savedselection=="narrow")echo "selected=\"selected\""?>>narrow result</option> 
     684                </select> 
     685            </p> 
     686 
     687            <p id="bstResetButtonP"> 
     688                <input name="command" type="submit" id="reset" class="smallButtons" value="reset" accesskey="t" title="(access key+t)"/> 
     689            </p> 
     690 
    670691</div><?php if(hasRights($this->thetabledef["advsearchroleid"])){?><div id="advancedSearchTab" style="display:none;"></div><?php } //end access ?> 
    671692<div id="loadSearchTab" style="display:none;padding:0px;margin:0px;"></div> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.