phpBMS

Changeset 705

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
Location:
trunk/phpbms
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/choicelist.php

    r704 r705  
    196196}//endif 
    197197 
    198         if(!isset($_GET["cm"])) 
    199                 $_GET["cm"]="shw"; 
    200  
    201  
    202  
    203         $theList = new choiceList($db); 
    204  
    205         switch($_GET["cm"]){ 
    206                 case "shw": 
    207                         $theList->displayBox($_GET["ln"],$_GET["bv"],$_GET["lid"]); 
    208                 break; 
    209                 case "del": 
    210                         $theList->deleteList($_GET["ln"]); 
    211                 break; 
    212                 case "add": 
    213                         $theList->addToList($_GET["ln"],$_GET["val"]); 
    214                 break; 
    215         } 
    216198 
    217199?> 
  • trunk/phpbms/common/javascript/queryfunctions.js

    r703 r705  
    916916        closeModal(); 
    917917} 
     918 
     919/* OnLoad Listner ---------------------------------------- */ 
     920/* ------------------------------------------------------- */ 
     921 
     922connect(window,"onload",function() { 
     923 
     924        var startsWith = getObjectFromID("startswith"); 
     925        if(startsWith) 
     926            startsWith.focus(); 
     927}) 
  • trunk/phpbms/common/stylesheet/mozilla/pages/search.css

    r545 r705  
    55#searchbutton,#reset,#LSLoad,#LSDelete,#saveSearch,#ASsearchbutton, 
    66#sortRunSort,#sortLoadSort,#sortSaveSort,#sortClearSort{width:90px;} 
    7 #startswith{width:99%} 
    87 
    98#theASCs div,#theSorts div{padding:2px 8px;} 
     
    105104                width:75px; 
    106105        } 
     106 
     107#bstFindP, #bstStartsWithFieldP{ 
     108    float: left; 
     109} 
     110 
     111#bstStartsWithP{ 
     112    overflow: hidden; 
     113} 
     114 
     115#bstSearchButtonP{ 
     116    float:right; 
     117    padding-top: 13px; 
     118    padding-bottom: 0; 
     119    margin-bottom: 0; 
     120} 
     121 
     122#bstSelectionP{ 
     123    clear:both; 
     124    float:left; 
     125} 
     126 
     127#bstResetButtonP{ 
     128    text-align:right; 
     129} 
     130 
     131#startswith{ 
     132   width:99% 
     133} 
  • trunk/phpbms/common/stylesheet/mozilla/queryresults.css

    r495 r705  
    2525 
    2626        .querytable td, .querytable th{ 
    27                 font-size: 11px; 
    28                 padding:6px; 
    29                 border-right:1px solid #BBBBBB; 
     27                font-size: 12px; 
     28                padding:7px 8px; 
     29                border-right:1px solid #EEEEEE; 
    3030        } 
    3131 
     
    3939.querytable th{ 
    4040        border-bottom:1px solid #BBBBBB; 
     41        border-color: #BBBBBB; 
    4142        background:#7B8DA1; 
    42         font-size:12px; 
     43        font-size:14px; 
    4344        color:white; 
    4445} 
     
    4849.queryGroup td{ 
    4950        background:#97A7BA; 
    50         font-size: 14px; 
     51        font-size: 16px; 
    5152        font-weight:bold; 
    52         border-bottom:1px solid #BBBBBB; 
     53        border: none; 
    5354} 
    5455 
    5556.querytable .queryfooter td{ 
    5657        border-top:1px solid #BBBBBB; 
     58        border-color: #CCCCCC; 
    5759        white-space:nowrap; 
    5860        background:#DDDDDD; 
  • trunk/phpbms/common/stylesheet/mozilla/sizes.css

    r700 r705  
    3030H1 { 
    3131        font-family: Arial, Helvitica, sans-serif; 
    32         font-size:20px; 
    33         margin:3px; 
    34         padding-left:24px; 
    35         margin-bottom:9px; 
    36         font-weight:normal; 
    37         background: url("image/h1graphic.png") 4px 4px no-repeat;; 
     32        font-size: 24px; 
     33        margin:0 0 5px 2px; 
     34        padding: 0; 
     35        font-weight: normal; 
    3836} 
    3937 
  • 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> 
Scanned by Orvant Copyright © 2010 Kreotek, LLC. All Rights reserved.