navigation  interaction  search

 other resources

Changeset 205

Show
Ignore:
Timestamp:
03/26/07 16:50:25
Author:
brieb
Message:

Updated XHTML compliance

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/phpbms/README

    r145 r205  
    77Your server must be running at least: 
    88 * MySQL 3.2358+ 
    9  * PHP 4.1.2+ with MySQL support enabled.  
     9 * PHP 4.3.0+ with MySQL support enabled.  
    1010 
    1111 
  • trunk/phpbms/advancedsearch.php

    r204 r205  
    5656                ?> 
    5757                <p align="right" style="float:right"> 
    58                         <input id="ASsearchbutton" type="button" onClick="performAdvancedSearch(this)" class="Buttons" disabled="true" value="search" />               
     58                        <input id="ASsearchbutton" type="button" onclick="performAdvancedSearch(this)" class="Buttons" disabled="disabled" value="search" />           
    5959                </p> 
    6060 
     
    8080                                         <option value="not like">not like</option> 
    8181                                </select> 
    82                                 <input type="text" id="ASC1text" size="30" maxlength="255" onKeyUp="updateAS()" value="" /> 
    83                                 <button type="button" id="ASC1minus" class="graphicButtons buttonMinusDisabled" onClick="removeLineAS(this)"><span>-</span></button> 
    84                                 <button type="button" id="ASC1plus" class="graphicButtons buttonPlus" onClick="addlineAS()"><span>+</span></button> 
     82                                <input type="text" id="ASC1text" size="30" maxlength="255" onkeyup="updateAS()" value="" /> 
     83                                <button type="button" id="ASC1minus" class="graphicButtons buttonMinusDisabled" onclick="removeLineAS(this)"><span>-</span></button> 
     84                                <button type="button" id="ASC1plus" class="graphicButtons buttonPlus" onclick="addlineAS()"><span>+</span></button> 
    8585                        </div> 
    8686                </div> 
    8787                <p> 
    8888                        sql where clause<br/> 
    89                         <textarea id="ASSQL" style="width:99%" cols="90" rows="3" onKeyUp="ASEnableSave(this)"></textarea>             
     89                        <textarea id="ASSQL" style="width:99%" cols="90" rows="3" onkeyup="ASEnableSave(this)"></textarea>             
    9090                </p><?php                
    9191        } 
  • trunk/phpbms/advancedsort.php

    r204 r205  
    103103                </p> 
    104104                <p align="right" class="buttonsRight"> 
    105                         <input type="button" class="Buttons" style="width:75px;" id="sortSavedDeleteButton" value="delete" disabled="true" onClick="sortSavedDelete('<?php echo $basepath ?>')"/> 
    106                         <input type="button" class="Buttons" style="width:75px;" id="sortSavedLoadButton" value="load" disabled="true" onClick="sortSavedLoad('<?php echo $basepath ?>')"/> 
    107                         <input type="button" class="Buttons" style="width:75px;" id="sortSavedCancelButton" value="cancel" onClick="closeModal()"/> 
     105                        <input type="button" class="Buttons" style="width:75px;" id="sortSavedDeleteButton" value="delete" disabled="disabled" onclick="sortSavedDelete('<?php echo $basepath ?>')"/> 
     106                        <input type="button" class="Buttons" style="width:75px;" id="sortSavedLoadButton" value="load" disabled="disabled" onclick="sortSavedLoad('<?php echo $basepath ?>')"/> 
     107                        <input type="button" class="Buttons" style="width:75px;" id="sortSavedCancelButton" value="cancel" onclick="closeModal()"/> 
    108108                </p> 
    109109                <?php 
     
    161161                                        <p> 
    162162                                                sql order by clause<br/> 
    163                                                 <textarea id="sortSQL" style="width:98%;height:75px;" cols="57" rows="4" onKeyUp="sortEnableButtons(this)" ></textarea>                
     163                                                <textarea id="sortSQL" style="width:98%;height:75px;" cols="57" rows="4" onkeyup="sortEnableButtons(this)" ></textarea>                
    164164                                        </p> 
    165165                                </td> 
     
    167167                                        <div style="float:right"> 
    168168                                    <br/> 
    169                                         <p><input id="sortRunSort" type="button" onClick="performAdvancedSort(this)" class="Buttons" disabled="true" value="run sort" style="width:90px;" /></p> 
    170                                         <p><input id="sortLoadSort" type="button" onClick="sortAskLoad('<?php echo $_SESSION["app_path"]?>')" class="Buttons" value="load sort..." style="width:90px;" /></p> 
    171                                         <p><input id="sortSaveSort" type="button" onClick="sortAskSaveName('<?php echo $_SESSION["app_path"]?>')" class="Buttons" disabled="true" value="save sort..." style="width:90px;" /></p> 
    172                                         <p><input id="sortClearSort" type="button" onClick="clearSort()" class="Buttons" disabled="true" value="clear sort" style="width:90px;" /></p> 
     169                                        <p><input id="sortRunSort" type="button" onclick="performAdvancedSort(this)" class="Buttons" disabled="disabled" value="run sort" style="width:90px;" /></p> 
     170                                        <p><input id="sortLoadSort" type="button" onclick="sortAskLoad('<?php echo $_SESSION["app_path"]?>')" class="Buttons" value="load sort..." style="width:90px;" /></p> 
     171                                        <p><input id="sortSaveSort" type="button" onclick="sortAskSaveName('<?php echo $_SESSION["app_path"]?>')" class="Buttons" disabled="disabled" value="save sort..." style="width:90px;" /></p> 
     172                                        <p><input id="sortClearSort" type="button" onclick="clearSort()" class="Buttons" disabled="disabled" value="clear sort" style="width:90px;" /></p> 
    173173                                        </div> 
    174174                                </td> 
  • trunk/phpbms/choicelist.php

    r204 r205  
    102102        <p id="MLStatus" class="small">&nbsp;</p> 
    103103        <div class="box" align="right"> 
    104                 <input type="button" id="MLok" name="MLok" value="ok" class="Buttons" style="width:75px;" onClick="clickOK('<?php echo $_SESSION["app_path"]?>','<?php echo $listid?>','<?php echo $listname?>')"/> 
    105                 <input type="button" id="MLcancel" name="MLcancel" value="cancel" class="Buttons" style="width:75px;" onClick="closeBox('<?php echo $listid?>');"/>&nbsp; 
     104                <input type="button" id="MLok" name="MLok" value="ok" class="Buttons" style="width:75px;" onclick="clickOK('<?php echo $_SESSION["app_path"]?>','<?php echo $listid?>','<?php echo $listname?>')"/> 
     105                <input type="button" id="MLcancel" name="MLcancel" value="cancel" class="Buttons" style="width:75px;" onclick="closeBox('<?php echo $listid?>');"/>&nbsp; 
    106106        </div> 
    107107<?php   }//end function 
  • trunk/phpbms/common/javascript/fields.js

    r204 r205  
    138138        } 
    139139        if(errorMessage!=""){ 
    140                 errorMessage="<UL>"+errorMessage+"</UL><DIV align=\"right\"><button class=\"Buttons\" onClick=\"closeModal()\" style=\"width:75px;\">ok</button></DIV>"; 
     140                errorMessage="<UL>"+errorMessage+"</UL><DIV align=\"right\"><button class=\"Buttons\" onclick=\"closeModal()\" style=\"width:75px;\">ok</button></DIV>"; 
    141141 
    142142                showModal(errorMessage,"Cannot Save",300); 
  • trunk/phpbms/common/javascript/queryfunctions.js

    r204 r205  
    166166                howmany+="s" 
    167167        var content="<div>Are you sure you want to "+deletename+" the "+howmany+"?</div>"; 
    168                 content+="<div align=\"right\"><input type=\"button\" class=\"\Buttons\" style=\"width:75px;margin-right:2px;\" value=\"yes\" onClick=\"doDelete()\" /><input type=\"button\" class=\"\Buttons\" style=\"width:75px;\" value=\"no\" onClick=\"closeModal()\" /></div>"         
     168                content+="<div align=\"right\"><input type=\"button\" class=\"\Buttons\" style=\"width:75px;margin-right:2px;\" value=\"yes\" onclick=\"doDelete()\" /><input type=\"button\" class=\"\Buttons\" style=\"width:75px;\" value=\"no\" onclick=\"closeModal()\" /></div>"         
    169169        showModal(content,"Confirm",300) ; 
    170170} 
     
    760760} 
    761761function sortAskSaveName(base){ 
    762         var text="<p>name<br /><input id=\"sortSaveName\" type=\"text\" maxlength=\"128\" length=\"40\" onKeyUp=\"sortEnableSave(this)\" style=\"width:98%\" /></p>"; 
    763         text+="<p align=\"right\"><input type=\"button\" class=\"Buttons\" id=\"sortDoSave\" onClick=\"sortSave('"+base+"')\" value=\"save\" style=\"width:75px\" disabled=\"true\"/>"; 
    764         text+="<input type=\"button\" class=\"Buttons\" onClick=\"closeModal()\" value=\"cancel\" style=\"margin-left:5px;width:75px\"/></p>" 
     762        var text="<p>name<br /><input id=\"sortSaveName\" type=\"text\" maxlength=\"128\" length=\"40\" onkeyup=\"sortEnableSave(this)\" style=\"width:98%\" /></p>"; 
     763        text+="<p align=\"right\"><input type=\"button\" class=\"Buttons\" id=\"sortDoSave\" onclick=\"sortSave('"+base+"')\" value=\"save\" style=\"width:75px\" disabled=\"disabled\"/>"; 
     764        text+="<input type=\"button\" class=\"Buttons\" onclick=\"closeModal()\" value=\"cancel\" style=\"margin-left:5px;width:75px\"/></p>" 
    765765        showModal(text,"Save Sort As...",250); 
    766766} 
  • trunk/phpbms/datepicker.php

    r204 r205  
    5757?><script language="JavaScript" type="text/javascript">displayLongDate="<?php echo $displayLongDate ?>";</script> 
    5858        <?php  
    59         ?><table class="dp" cellspacing="0" cellpadding="0" border=0
     59        ?><table class="dp" cellspacing="0" cellpadding="0" border="0"
    6060        <tr> 
    6161                <td colspan=6 class="dpHead"><?php echo date("F, Y",$thedate)?></td> 
     
    6363        </tr> 
    6464        <tr> 
    65                 <td class="dpButtons" onClick="loadMonth('<?php echo $_SESSION["app_path"]?>','<?php echo $month?>','<?php echo $year-1?>'<?php if($selDate) echo ",'".date("m/d/Y",$selDate)."'"?>)">&lt;&lt;</td> 
    66                 <td class="dpButtons" onClick="loadMonth('<?php echo $_SESSION["app_path"]?>','<?php if($month==1) echo "12"; else echo $month-1?>','<?php if($month==1) echo $year-1; else echo $year?>'<?php if($selDate) echo ",'".date("m/d/Y",$selDate)."'"?>)">&lt;</td> 
    67                 <td colspan=3 class="dpButtons" onClick="loadMonth('<?php echo $_SESSION["app_path"]?>','<?php echo date('m',$today)?>','<?php echo $todayArray["year"]?>'<?php if($selDate) echo ",'".date("m/d/Y",$selDate)."'"?>)">Today</td> 
    68                 <td class="dpButtons" onClick="loadMonth('<?php echo $_SESSION["app_path"]?>','<?php if($month==12) echo "1"; else echo $month+1?>','<?php if($month==12) echo $year+1; else echo $year;?>'<?php if($selDate) echo ",'".date("m/d/Y",$selDate)."'"?>)">&gt;</td> 
    69                 <td class="dpButtons" onClick="loadMonth('<?php echo $_SESSION["app_path"]?>','<?php echo $month?>','<?php echo $year+1?>'<?php if($selDate) echo ",'".date("m/d/Y",$selDate)."'"?>)">&gt;&gt;</td> 
     65                <td class="dpButtons" onclick="loadMonth('<?php echo $_SESSION["app_path"]?>','<?php echo $month?>','<?php echo $year-1?>'<?php if($selDate) echo ",'".date("m/d/Y",$selDate)."'"?>)">&lt;&lt;</td> 
     66                <td class="dpButtons" onclick="loadMonth('<?php echo $_SESSION["app_path"]?>','<?php if($month==1) echo "12"; else echo $month-1?>','<?php if($month==1) echo $year-1; else echo $year?>'<?php if($selDate) echo ",'".date("m/d/Y",$selDate)."'"?>)">&lt;</td> 
     67                <td colspan=3 class="dpButtons" onclick="loadMonth('<?php echo $_SESSION["app_path"]?>','<?php echo date('m',$today)?>','<?php echo $todayArray["year"]?>'<?php if($selDate) echo ",'".date("m/d/Y",$selDate)."'"?>)">Today</td> 
     68                <td class="dpButtons" onclick="loadMonth('<?php echo $_SESSION["app_path"]?>','<?php if($month==12) echo "1"; else echo $month+1?>','<?php if($month==12) echo $year+1; else echo $year;?>'<?php if($selDate) echo ",'".date("m/d/Y",$selDate)."'"?>)">&gt;</td> 
     69                <td class="dpButtons" onclick="loadMonth('<?php echo $_SESSION["app_path"]?>','<?php echo $month?>','<?php echo $year+1?>'<?php if($selDate) echo ",'".date("m/d/Y",$selDate)."'"?>)">&gt;&gt;</td> 
    7070        </tr> 
    7171        <tr  class="dpDayNames"> 
     
    9494                        elseif($thedate==$today) $dayclass="dpToday"; 
    9595                         
    96                         echo "<TD class=\"".$dayclass."\" onMouseOut=\"dpUnhighlightDay();\" onMouseOver=\"dpHighlightDay(".$mydate["year"].",".date("n",$thedate).",".$mydate["mday"].")\" onClick=\"dpClickDay(".$mydate["year"].",".date("n",$thedate).",".$mydate["mday"].")\">".$mydate["mday"]."</TD>"; 
     96                        echo "<TD class=\"".$dayclass."\" onMouseOut=\"dpUnhighlightDay();\" onMouseOver=\"dpHighlightDay(".$mydate["year"].",".date("n",$thedate).",".$mydate["mday"].")\" onclick=\"dpClickDay(".$mydate["year"].",".date("n",$thedate).",".$mydate["mday"].")\">".$mydate["mday"]."</TD>"; 
    9797                         
    9898                        if($mydate["wday"]==6) echo "</tr>"; 
  • trunk/phpbms/fpdf/fpdf.php

    r60 r205  
    620620} 
    621621 
    622 function Cell($w,$h=0,$txt='',$border=0,$ln=0,$align='',$fill=0,$link='') 
     622function Cell($w,$h=0,$txt='',$border="0",$ln=0,$align='',$fill=0,$link='') 
    623623{ 
    624624        //Output a cell 
     
    699699} 
    700700 
    701 function MultiCell($w,$h,$txt,$border=0,$align='J',$fill=0) 
     701function MultiCell($w,$h,$txt,$border="0",$align='J',$fill=0) 
    702702{ 
    703703        //Output text with automatic or explicit line breaks 
  • trunk/phpbms/help/index.php

    r204 r205  
    7777                        <p>&nbsp;</p> 
    7878                        <p> 
    79                                 phpBMS takes advanage of HTML's accessKey property to allow 
     79                                phpBMS takes advanage of HTML's accesskey property to allow 
    8080                                you to use your keyboard to navigate pages.  Some browsers and OS's 
    8181                                might have different modifier keys, so check your 
    82                                 browser documentation.  On windows, in Internet Explorer and Firefox, hold 
    83                                 down the Alt key followed by the shortcut.  On opera hold down shift-esc then 
    84                                 the shortut.  On a Mac, use the ctrl key in both Firefox and Safari. 
     82                                browser documentation.  In windows, when using Internet Explorer and Firefox &lt 2.0, hold 
     83                                down the Alt key followed by the shortcut.  When using Firefox &gt 2.0 in windows hold down Alt-Shift buttons  
     84                                followed by the shortcut. In opera hold down Shift-Esc then 
     85                                the shortut.  On a Mac, use the ctrl key in both Firefox &lt; 2.0 and Safari.  
    8586                        </p> 
    8687                        <h4>Search/List Screens</h4> 
  • trunk/phpbms/include/common_functions.php

    r204 r205  
    381381 
    382382function showSaveCancel($ids=1){ 
    383         ?><div class="saveCancels"><input <?php if($ids==1) {?>accesskey="s"<?php }?> title="Save (alt+s)" id="saveButton<?php echo $ids?>" name="command" type="submit" value="save" class="Buttons" /><input id="cancelButton<?php echo $ids?>" name="command" type="submit" value="cancel" class="Buttons" onClick="this.form.cancelclick.value=true;" <?php if($ids==1) {?>accesskey="x" <?php }?> title="(alt+x)" /></div><?php 
     383        ?><div class="saveCancels"><input <?php if($ids==1) {?>accesskey="s"<?php }?> title="Save (alt+s)" id="saveButton<?php echo $ids?>" name="command" type="submit" value="save" class="Buttons" /><input id="cancelButton<?php echo $ids?>" name="command" type="submit" value="cancel" class="Buttons" onclick="this.form.cancelclick.value=true;" <?php if($ids==1) {?>accesskey="x" <?php }?> title="(access key+x)" /></div><?php 
    384384} 
    385385 
  • trunk/phpbms/include/fields.php

    r204 r205  
    5858        ?><input id="<?php echo $name?>" name="<?php echo $name?>" type="text" value="<?php echo htmlQuotes($value) ?>" <?php  
    5959        if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\""; 
    60         ?> /><?php if ($required) { ?><script language="JavaScript" type="text/javascript">requiredArray[requiredArray.length]=new Array('<?php echo $name ?>','<?php echo $message ?>');</script><?php } //end required if  
    61         if ($type) {?><script language="JavaScript" type="text/javascript"><?php echo $type?>Array[<?php echo $type?>Array.length]=new Array('<?php echo $name ?>','<?php echo $message ?>');</script><?php }//end $type if 
     60        ?> /><?php if ($required) { ?><script language="JavaScript" type="text/javascript"><!--  
     61        requiredArray[requiredArray.length]=new Array("<?php echo $name ?>","<?php echo $message ?>"); 
     62        // --></script><?php } //end required if  
     63        if ($type) {?><script language="JavaScript" type="text/javascript"><!--  
     64                <?php echo $type?>Array[<?php echo $type?>Array.length]=new Array("<?php echo $name ?>","<?php echo $message ?>"); 
     65        // --></script><?php }//end $type if 
    6266}//end function 
    6367 
     
    7983         
    8084        ?><input name="<?php echo $name ?>" id="<?php echo $name ?>" type="checkbox" value="1" <?php  
    81         if ($value) echo "checked "; 
    82         if ($disabled) echo "disabled=\"true\" "; 
     85        if ($value) echo "checked=\"checked\" "; 
     86        if ($disabled) echo "disabled=\"disabled\" "; 
    8387        if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\""; 
    8488        ?> class="radiochecks" /><?php  
     
    101105                foreach($list as $theitem){ 
    102106                        $theitem["value"]=str_replace("\"","&quot;",$theitem["value"]); 
    103                         ?><option value="<?php echo $theitem["value"]?>" <?php if ($theitem["value"]==$value) echo " selected "?> ><?php echo $theitem["name"]?></option> 
     107                        ?><option value="<?php echo $theitem["value"]?>" <?php if ($theitem["value"]==$value) echo " selected=\"selected\" "?> ><?php echo $theitem["name"]?></option> 
    104108                        <?php 
    105109                } 
     
    164168        if(!$querystatement) reportError(100,"SQL Statement Could not be executed."); 
    165169 
    166         ?><select name="<?php echo $name?>" id="<?php echo $name?>" <?php if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\"";?> onchange="changeChoiceList(this,'<?php echo $_SESSION["app_path"]?>','<?php echo $listname?>','<?php echo $blankvalue?>');"  onFocus="setInitialML(this)"> 
     170        ?><select name="<?php echo $name?>" id="<?php echo $name?>" <?php if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\"";?> onchange="changeChoiceList(this,'<?php echo $_SESSION["app_path"]?>','<?php echo $listname?>','<?php echo $blankvalue?>');"  onfocus="setInitialML(this)"> 
    167171        <?php  
    168172                $inlist=false; 
     
    176180                        } 
    177181                        if($therecord["thevalue"]==$value){ 
    178                                 $selected=" selected "; 
     182                                $selected=" selected=\"selected\""; 
    179183                                $inlist=true; 
    180184                        } 
     
    191195                                $theclass=""; 
    192196                        } 
    193                         ?><option value="<?php echo $value?>" <?php echo $theclass?> selected><?php echo $display?></option><?php                                      
     197                        ?><option value="<?php echo $value?>" <?php echo $theclass?> selected="selected"><?php echo $display?></option><?php                                   
    194198                }//end if 
    195199        ?> 
     
    380384        if(!$queryresult) reportError(310,"Error Retrieving Roles"); 
    381385        ?><select id="<?php echo $name?>" name="<?php echo $name?>"> 
    382         <option value="0" <?php if($selected==0) echo "selected"?>>EVERYONE</option> 
     386        <option value="0" <?php if($selected==0) echo "selected=\"selected\""?>>EVERYONE</option> 
    383387        <?php while($therecord=mysql_fetch_array($queryresult)){ ?> 
    384         <option value="<?php echo $therecord["id"]?>" <?php if($selected==$therecord["id"]) echo "selected"?>><?php echo $therecord["name"]?></option>         
     388        <option value="<?php echo $therecord["id"]?>" <?php if($selected==$therecord["id"]) echo "selected=\"selected\""?>><?php echo $therecord["name"]?></option>    
    385389        <?php }?> 
    386         <option value="-100" <?php if($selected==-100) echo "selected"?>>Administrators</option> 
     390        <option value="-100" <?php if($selected==-100) echo "selected=\"selected\""?>>Administrators</option> 
    387391        </select><?php 
    388392} 
  • trunk/phpbms/include/jstransport.php

    r193 r205  
    3939 
    4040         
    41         if(isset($_SESSION["include_js"])){ 
    42                 echo $_SESSION["include_js"]; 
    43                 $_SESSION["include_js"]=""; 
     41        if(isset($_SESSION["includedJS"])){ 
     42                echo "\n\n".$_SESSION["includedJS"]; 
     43                $_SESSION["includedJS"]=""; 
    4444        } 
    4545?> 
  • trunk/phpbms/include/print_class.php

    r204 r205  
    181181                                foreach($fieldlist as $field){ 
    182182                                        echo "<option value=\"".$field."\""; 
    183                                         if($field=="id") echo "selected"; 
     183                                        if($field=="id") echo "selected=\"selected\""; 
    184184                                        echo ">".$field."</option>\n"; 
    185185                                } 
  • trunk/phpbms/include/search_class.php

    r204 r205  
    9090        ?> 
    9191        <script language="JavaScript" type="text/javascript">selIDs=new Array();</script> 
    92         <input name="newsort" type="hidden" value="" /><table cellspacing=0 cellpadding=0 border=0 class="querytable" id="queryresults"><tr> 
     92        <input name="newsort" type="hidden" value="" /><table cellspacing="0" cellpadding="0" border="0" class="querytable" id="queryresults"><tr> 
    9393        <?php 
    9494        $columncount=count($this->thecolumns); 
     
    9696 
    9797        foreach ($this->thecolumns as $therow){ ?> 
    98 <th nowrap align="<?php echo $therow["align"]?>" <?php if($therow["size"]) echo "width=\"".$therow["size"]."\" ";?> > 
     98<th nowrap="nowrap" align="<?php echo $therow["align"]?>" <?php if($therow["size"]) echo "width=\"".$therow["size"]."\" ";?> > 
    9999        <input name="sortit<?php echo $i?>" type="hidden" value="<?php echo $therow["name"]?>" /> 
    100100        <a href="/" onclick="doSort(<?php echo $i?>);return false;"><?php echo $therow["name"]?></a> 
     
    134134                                 
    135135                                foreach($this->thecolumns as $thecolumn){ 
    136                                         ?><td align="<?php echo $thecolumn["align"]?>" <?php if(!$thecolumn["wrap"]) echo "nowrap"?>><?php echo (($therecord[$thecolumn["name"]]!=="")?formatVariable($therecord[$thecolumn["name"]],$thecolumn["format"]):"&nbsp;")?></td><?php 
     136                                        ?><td align="<?php echo $thecolumn["align"]?>" <?php if(!$thecolumn["wrap"]) echo "nowrap=\"nowrap\""?>><?php echo (($therecord[$thecolumn["name"]]!=="")?formatVariable($therecord[$thecolumn["name"]],$thecolumn["format"]):"&nbsp;")?></td><?php 
    137137                                } 
    138138                                ?></tr><?php  
     
    144144                function displayNoResults(){ 
    145145                        $i=count($this->thecolumns);?> 
    146                         <tr><td colspan="<?php echo $i?>" align=center style="padding:0px;"> 
     146                        <tr><td colspan="<?php echo $i?>" align="center" style="padding:0px;"> 
    147147                                <?php if(!$this->sqlerror) {?> 
    148148                                <div class="norecords">No Records to Display</div> 
     
    392392 
    393393                ?> 
    394 <form name="search" id="search" method="post" action="<?php echo $_SERVER["PHP_SELF"]?>?id=<?php echo $this->thetabledef["id"]?>" onSubmit="setSelIDs(this);return true;"> 
     394<form name="search" id="search" method="post" action="<?php echo $_SERVER["PHP_SELF"]?>?id=<?php echo $this->thetabledef["id"]?>" onsubmit="setSelIDs(this);return true;"> 
    395395<input id="tabledefid" name="tabledefid" type="hidden" value="<?php echo $this->thetabledef["id"]?>" /> 
    396396<input id="theids" name="theids" type="hidden" value="" /> 
     
    405405?> 
    406406<ul class="tabs"> 
    407         <li id="basicSearchT" class="tabsSel"><a href="/" onClick="switchSearchTabs(this);return false">basic</a></li> 
    408         <?php if(hasRights($this->thetabledef["advsearchroleid"])){?><li id="advancedSearchT"><a href="/" onClick="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">advanced</a></li><?php } //end access ?> 
    409         <li id="loadSearchT"><a href="/" onClick="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">load search</a></li> 
    410         <li id="saveSearchT"><a href="/" onClick="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">save search</a></li> 
    411         <li id="advancedSortT"><a href="/" onClick="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">sorting</a></li> 
     407        <li id="basicSearchT" class="tabsSel"><a href="/" onclick="switchSearchTabs(this);return false">basic</a></li> 
     408        <?php if(hasRights($this->thetabledef["advsearchroleid"])){?><li id="advancedSearchT"><a href="/" onclick="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">advanced</a></li><?php } //end access ?> 
     409        <li id="loadSearchT"><a href="/" onclick="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">load search</a></li> 
     410        <li id="saveSearchT"><a href="/" onclick="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">save search</a></li> 
     411        <li id="advancedSortT"><a href="/" onclick="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">sorting</a></li> 
    412412</ul> 
    413413<div class="box" id="searchBox"> 
     
    415415                <table cellpadding="0" cellspacing="0" border="0"> 
    416416                        <tr> 
    417                                 <td nowrap valign="top"> 
     417                                <td nowrap="nowrap" valign="top"> 
    418418                                        <p> 
    419419                                                <label for="find">find</label><br />                                     
     
    423423                                                                if(hasRights($this->findoptions[$i]["roleid"])){ 
    424424                                                                        ?><option value="<?php echo $this->findoptions[$i]["name"]?>"<?php  
    425                                                                                 if($this->querytype=="search" and $this->findoptions[$i]["name"]==$this->savedfindoptions) echo "selected"; 
     425                                                                                if($this->querytype=="search" and $this->findoptions[$i]["name"]==$this->savedfindoptions) echo "selected=\"selected\""; 
    426426                                                                        ?>><?php echo $this->findoptions[$i]["name"]?></option><?php 
    427427                                                                } 
     
    431431                                        </p> 
    432432                                </td> 
    433                         <td nowrap valign=top
     433                        <td nowrap="nowrap" valign="top"
    434434                                <p> 
    435435                                <label for="startswithfield">where</label><br /> 
     
    439439                                                                echo "<option value=\"".$this->searchablefields[$i]["id"]."\" "; 
    440440                                                                        if(!isset($this->savedstartswithfield)){ 
    441                                                                                 if($this->querytype!="search" and $i==0) echo "selected";                              
     441                                                                                if($this->querytype!="search" and $i==0) echo "selected=\"selected\"";                                 
    442442                                                                        } else {                                                         
    443                                                                                 if($this->querytype=="search" and addslashes($this->searchablefields[$i]["id"])==$this->savedstartswithfield) echo "selected"; 
     443                                                                                if($this->querytype=="search" and addslashes($this->searchablefields[$i]["id"])==$this->savedstartswithfield) echo "selected=\"selected\""; 
    444444                                                                        } 
    445445                                                                echo ">".$this->searchablefields[$i]["name"]."</option>\n"; 
     
    449449                                </p> 
    450450                        </td> 
    451                         <td width="100%" nowrap valign="top" > 
     451                        <td width="100%" nowrap="nowrap" valign="top" > 
    452452                                <p><label for="startswith">starts with</label><br /> 
    453453                                        <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> 
    454454                                </p> 
    455455                        </td> 
    456                         <td align="left" valign="top" nowrap class="small"> 
     456                        <td align="left" valign="top" nowrap="nowrap" class="small"> 
    457457                                <p> 
    458458                                        <br /> 
     
    462462                </tr> 
    463463                <tr> 
    464                         <td colspan="3" align="left" valign=middle nowrap
     464                        <td colspan="3" align="left" valign="middle" nowrap="nowrap"
    465465                        <p> 
    466466                        <select name="Selection"> 
    467                                 <option value="new" <?php if ($this->querytype!="search" or ($this->querytype=="search" and $this->savedselection=="new") ) echo "selected"?> >new result</option> 
    468                                 <option value="add" <?php if ($this->querytype=="search" and $this->savedselection=="add")echo "selected"?>>add to result</option> 
    469                                 <option value="remove" <?php if ($this->querytype=="search" and $this->savedselection=="remove")echo "checked"?>>remove from result</option> 
    470                                 <option value="narrow" <?php if ($this->querytype=="search" and $this->savedselection=="narrow")echo "checked"?>>narrow result</option> 
    471                         </select></p> 
    472                         <td align="left" valign=top nowrap ><p><input name="command" type="submit" id="reset" class="smallButtons" value="reset" accesskey="t" title="(alt+t)"/></p></td> 
     467                                <option value="new" <?php if ($this->querytype!="search" or ($this->querytype=="search" and $this->savedselection=="new") ) echo "selected=\"selected\""?> >new result</option> 
     468                                <option value="add" <?php if ($this->querytype=="search" and $this->savedselection=="add")echo "selected=\"selected\""?>>add to result</option> 
     469                                <option value="remove" <?php if ($this->querytype=="search" and $this->savedselection=="remove")echo "selected=\"selected\""?>>remove from result</option> 
     470                                <option value="narrow" <?php if ($this->querytype=="search" and $this->savedselection=="narrow")echo "selected=\"selected\""?>>narrow result</option> 
     471                        </select></p></td> 
     472                        <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> 
    473473                </tr>                            
    474474        </table> 
     
    482482                                <p><label for="saveSearchName">save current search as</label> 
    483483                                        <br /> 
    484                                         <input id="saveSearchName" name="saveSearchName" type="text"  value="" size="35" maxlength="128" onKeyUp="enableSave(this)" /> 
     484                                        <input id="saveSearchName" name="saveSearchName" type="text"  value="" size="35" maxlength="128" onkeyup="enableSave(this)" /> 
    485485                                </p> 
    486486                        </td> 
     
    488488                                <p> 
    489489                                        <br /> 
    490                                         <input id="saveSearch" onClick="saveMySearch('<?php echo $_SESSION["app_path"] ?>')" disabled="true" type="button" class="Buttons" value="save search" /> 
     490                                        <input id="saveSearch" onclick="saveMySearch('<?php echo $_SESSION["app_path"] ?>')" disabled="disabled" type="button" class="Buttons" value="save search" /> 
    491491                                </p> 
    492492                        </td> 
     
    530530                        echo "<div>records:&nbsp;".$this->numrows."</div>"; 
    531531                else {?>                         
    532                         <input name="offset" type="hidden" value=""><select name="offsetselector" onchange="this.form.offset.value=this.value;this.form.submit();"> 
     532                        <input name="offset" type="hidden" value="" /><select name="offsetselector" onchange="this.form.offset.value=this.value;this.form.submit();"> 
    533533                                <?php 
    534534                                        $displayedoffset=0; 
    535535                                        while($displayedoffset<$this->truecount){ 
    536                                                 ?><option value="<?php echo $displayedoffset?>" <?php if($displayedoffset==$this->recordoffset) echo "selected";?>><?php echo ($displayedoffset+1)?>-<?php if($displayedoffset+$_SESSION["record_limit"]<$this->truecount) echo ($displayedoffset+$_SESSION["record_limit"]); else echo $this->truecount;?></option><?php 
     536                                                ?><option value="<?php echo $displayedoffset?>" <?php if($displayedoffset==$this->recordoffset) echo "selected=\"selected\"";?>><?php echo ($displayedoffset+1)?>-<?php if($displayedoffset+$_SESSION["record_limit"]<$this->truecount) echo ($displayedoffset+$_SESSION["record_limit"]); else echo $this->truecount;?></option><?php 
    537537                                                $displayedoffset+=$_SESSION["record_limit"]; 
    538538                                        } 
     
    543543                        } 
    544544                        if(($this->numrows+$this->recordoffset)<$this->truecount){ 
    545                                 ?><button type="button" class="graphicButtons buttonFF" onClick="document.search.offset.value=<?php echo $this->recordoffset+$_SESSION["record_limit"] ?>;document.search.submit();"><span>next</span></button><?php 
     545                                ?><button type="button" class="graphicButtons buttonFF" onclick="document.search.offset.value=<?php echo $this->recordoffset+$_SESSION["record_limit"] ?>;document.search.submit();"><span>next</span></button><?php 
    546546                        } 
    547547                                                   
     
    552552                if ($this->tableoptions["new"]["allowed"] && hasRights($this->tableoptions["new"]["roleid"]))  
    553553