phpBMS

Changeset 205

Show
Ignore:
Timestamp:
03/26/07 16:50:25 (3 years ago)
Author:
brieb
Message:

Updated XHTML compliance

Location:
trunk/phpbms
Files:
71 modified

Legend:

Unmodified
Added
Removed
  • 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                        { 
    554                 ?><button type="button" accesskey="n" class="graphicButtons buttonNew" onClick="addRecord()" title="new (alt+n)"><span>new</span></button><?php  
     554                ?><button type="button" accesskey="n" class="graphicButtons buttonNew" onclick="addRecord()" title="new (alt+n)"><span>new</span></button><?php  
    555555                        }  
    556556                         
    557557                if($this->numrows) { 
    558558                        if ($this->tableoptions["edit"]["allowed"] && hasRights($this->tableoptions["edit"]["roleid"])) { 
    559                                 ?><button id="edit" accesskey="e" type="button" disabled="true" class="graphicButtons buttonEditDisabled" onClick="editThis()" title="edit (alt+e)"><span>edit</span></button><?php 
     559                                ?><button id="edit" accesskey="e" type="button" disabled="disabled" class="graphicButtons buttonEditDisabled" onclick="editThis()" title="edit (alt+e)"><span>edit</span></button><?php 
    560560                        } 
    561561                 
    562562                        if($this->tableoptions["printex"]["allowed"] && hasRights($this->tableoptions["printex"]["roleid"])){ 
    563                                 ?><button id="print" accesskey="p" type="submit" disabled="true" class="graphicButtons buttonPrintDisabled" name="doprint"  title="print (alt+p)"><span>print</span></button><?php 
     563                                ?><button id="print" accesskey="p" type="submit" disabled="disabled" class="graphicButtons buttonPrintDisabled" name="doprint"  title="print (alt+p)"><span>print</span></button><?php 
    564564                        } 
    565565 
    566566                        if($this->thetabledef["deletebutton"] == "delete") {                             
    567                                 ?><button id="delete" name="dodelete" accesskey="d" type="button" title="delete (alt+d)" disabled="true" onClick="confirmDelete('delete')" class="graphicButtons buttonDeleteDisabled"><span>delete</span></button><?php 
     567                                ?><button id="delete" name="dodelete" accesskey="d" type="button" title="delete (alt+d)" disabled="disabled" onclick="confirmDelete('delete')" class="graphicButtons buttonDeleteDisabled"><span>delete</span></button><?php 
    568568                        } 
    569569         
    570570                        if($this->tableoptions["othercommands"] || ($this->thetabledef["deletebutton"] != "delete" && $this->thetabledef["deletebutton"] != "NA") ){?>                   
    571                                 <select id="othercommands" name="othercommands" disabled=true onchange="chooseOtherCommand(this)"> 
    572                                 <option value="" selected class="choiceListBlank">commands...</option> 
     571                                <select id="othercommands" name="othercommands" disabled="disabled" onchange="chooseOtherCommand(this)"> 
     572                                <option value="" selected="selected" class="choiceListBlank">commands...</option> 
    573573                                <?php if($this->thetabledef["deletebutton"] != "delete" && $this->thetabledef["deletebutton"] != "NA") {?> 
    574574                                        <option value="delete_record" class="important"><?php echo $this->thetabledef["deletebutton"]?></option> 
     
    586586                                <option class="choiceListBlank" value="">selection...</option> 
    587587                                <option value="">_____________</option> 
    588                                 <option value="selectall" title="(alt+a)">select all</option> 
    589                                 <option value="selectnone" title="(alt+x)">select none</option> 
     588                                <option value="selectall" title="(access key+a)">select all</option> 
     589                                <option value="selectnone" title="(access key+x)">select none</option> 
    590590                                <option value="">_____________</option> 
    591                                 <option value="keepselected" title="(alt+k)">keep selected</option> 
    592                                 <option value="omitselected" title="(alt+o)" >omit selected</option> 
    593                         </select><a href="/" onClick="changeSelection('selectall');return false;" accesskey="a" tabindex="0"></a><a href="/" onClick="changeSelection('selectnone');return false;" accesskey="x" tabindex="0"></a><a href="/" onClick="changeSelection('keepselected');return false;" accesskey="k" tabindex="0"></a><a href="/" onClick="changeSelection('omitselected');return false;" accesskey="o" tabindex="0"></a><?php }  
     591                                <option value="keepselected" title="(access key+k)">keep selected</option> 
     592                                <option value="omitselected" title="(access key+o)" >omit selected</option> 
     593                        </select><a href="/" onclick="changeSelection('selectall');return false;" accesskey="a" tabindex="0"></a><a href="/" onclick="changeSelection('selectnone');return false;" accesskey="x" tabindex="0"></a><a href="/" onclick="changeSelection('keepselected');return false;" accesskey="k" tabindex="0"></a><a href="/" onclick="changeSelection('omitselected');return false;" accesskey="o" tabindex="0"></a><?php }  
    594594                 
    595595                }//end if numrows        
     
    634634        if (mysql_num_rows($queryresult)) { 
    635635                ?><div class="small box" style="margin:0px;margin-top:3px;"> 
    636                 relate selected records to <select id="relationship" name="relationship" onchange="setSelIDs(this.form);this.form.submit();"    disabled="true"> 
    637                         <option value="" selected class="choiceListBlank">area...</option><?php  
     636                relate selected records to <select id="relationship" name="relationship" onchange="setSelIDs(this.form);this.form.submit();"    disabled="disabled"> 
     637                        <option value="" selected="selected" class="choiceListBlank">area...</option><?php  
    638638                        while($therecord = mysql_fetch_array($queryresult)){ 
    639639                        ?><option value="<?php echo $therecord["id"]?>"><?php echo $therecord["name"]?></option><?php } 
  • trunk/phpbms/info.php

    r204 r205  
    118118        <?php if(!isset($_SESSION["app_path"])) {?> 
    119119        <p align="right"> 
    120                 <input type="button" value="Log In" class="Buttons" onClick="document.location='./'" id="loginButton"/> 
     120                <input type="button" value="Log In" class="Buttons" onclick="document.location='./'" id="loginButton"/> 
    121121        </p> 
    122122        <?php } ?> 
  • trunk/phpbms/loadsearch.php

    r204 r205  
    142142                                </td> 
    143143                                <td valign="top"> 
    144                                         <p><br/><input id="LSLoad" type="button" onClick="LSRunSearch()" class="Buttons" disabled="true" value="run search"/></p> 
    145                                         <p><input id="LSDelete" type="button" onClick="LSDeleteSearch('<?php echo $basepath ?>')" class="Buttons" disabled="true" value="delete"/></p> 
     144                                        <p><br/><input id="LSLoad" type="button" onclick="LSRunSearch()" class="Buttons" disabled="disabled" value="run search"/></p> 
     145                                        <p><input id="LSDelete" type="button" onclick="LSDeleteSearch('<?php echo $basepath ?>')" class="Buttons" disabled="disabled" value="delete"/></p> 
    146146                                        <div id="LSResults">&nbsp;</div> 
    147147                                </td> 
  • trunk/phpbms/menu.php

    r204 r205  
    6565        <div id="menuRighthandButtons"> 
    6666                <?php echo htmlQuotes(trim($_SESSION["userinfo"]["firstname"]." ".$_SESSION["userinfo"]["lastname"]))?> 
    67                 <button name="menuLogout" type="button" onClick="document.location=('<?php echo $_SESSION["app_path"]?>logout.php')" title="log out" class="smallButtons">log out</button> 
    68                 <button name="menuHelp" type="button" onClick="showHelp('<?php echo $_SESSION["app_path"]?>')" title="Help" class="smallButtons">?</button> 
     67                <button name="menuLogout" type="button" onclick="document.location=('<?php echo $_SESSION["app_path"]?>logout.php')" title="log out" class="smallButtons">log out</button> 
     68                <button name="menuHelp" type="button" onclick="showHelp('<?php echo $_SESSION["app_path"]?>')" title="Help" class="smallButtons">?</button> 
    6969        </div> 
    7070                 
  • trunk/phpbms/modules/base/adminsettings.php

    r204 r205  
    5959</head> 
    6060<body><?php include("../../menu.php")?><div class="bodyline"> 
    61         <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" enctype="multipart/form-data" name="record" onSubmit="return processForm(this);"> 
     61        <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" enctype="multipart/form-data" name="record" onsubmit="return processForm(this);"> 
    6262 
    6363        <div id="topButtons"><input id="updateSettings1" name="command" type="submit" class="Buttons" value="Update Settings" /></div> 
     
    123123                <p> 
    124124                        <input type="hidden" id="doencryptionupdate" name="doencryptionupdate" value=""/> 
    125                         <input type="submit" id="updateSettings3" name="command" class="Buttons" value="Update Encryption Seed" disabled="true" onclick="this.form['doencryptionupdate'].value=1"/>      
     125                        <input type="submit" id="updateSettings3" name="command" class="Buttons" value="Update Encryption Seed" disabled="disabled" onclick="this.form['doencryptionupdate'].value=1"/>  
    126126                </p> 
    127127        </fieldset> 
     
    238238        ?> 
    239239        <div class="box" id="footerbox"> 
    240                 <input id="updateSettings1" name="command" type="submit" class="Buttons" value="Update Settings" /> 
     240                <input id="updateSettings2" name="command" type="submit" class="Buttons" value="Update Settings" /> 
    241241        </div> 
    242242        </form> 
  • trunk/phpbms/modules/base/attachments_records.php

    r204 r205  
    8989        <h1><?php echo $pageTitle ?></h1> 
    9090        <div> 
    91                 <form name="search" id="search" action="<?php echo $_SERVER["REQUEST_URI"]?>" method="post" onSubmit="setSelIDs(this);return true;"> 
     91                <form name="search" id="search" action="<?php echo $_SERVER["REQUEST_URI"]?>" method="post" onsubmit="setSelIDs(this);return true;"> 
    9292                <input name="theids" type="hidden" value="" /> 
    9393                <?php 
  • trunk/phpbms/modules/base/files_addedit.php

    r204 r205  
    7474 
    7575 
    76 <form action="<?php echo htmlQuotes($_SERVER["REQUEST_URI"]) ?>" method="post" enctype="multipart/form-data" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     76<form action="<?php echo htmlQuotes($_SERVER["REQUEST_URI"]) ?>" method="post" enctype="multipart/form-data" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    7777<div class="bodyline"> 
    7878        <div id="topButtons"><?php showSaveCancel(1); ?></div> 
     
    8484                <p> 
    8585                        <label for="id">id</label><br /> 
    86                         <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable" />                
     86                        <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable" />            
    8787                </p> 
    8888                <p id="roleidP"> 
     
    112112                        <p> 
    113113                                <label for="type">file type </label><span class="notes">(MIME)</span><br /> 
    114                                 <input type="text" id="type" name="type" value="<?php echo htmlQuotes($therecord["type"])?>" size="64" maxlength="100" readonly="true" class="uneditable" style="" />                    
     114                                <input type="text" id="type" name="type" value="<?php echo htmlQuotes($therecord["type"])?>" size="64" maxlength="100" readonly="readonly" class="uneditable" style="" />                        
    115115                        </p> 
    116116                        <p> 
     
    121121                        <?php if(isset($_GET["tabledefid"])){?> 
    122122                                <p><br /> 
    123                                         <input class="radiochecks" type="radio" name="newexisting" id="newfile" value="new" checked="checked" onclick="switchFile()" /><label for="newfile">new file</label>&nbsp;&nbsp; 
     123                                        <input class="radiochecks" type="radio" name="newexisting" id="newfile" value="new"  checked="checked" onclick="switchFile()" /><label for="newfile">new file</label>&nbsp;&nbsp; 
    124124                                        <input type="radio"  class="radiochecks" name="newexisting" id="existingfile" value="existing" onclick="switchFile()" /><label for="existingfile">existing file</label><br /> 
    125125                                        <span class="notes">Choose "existing file" if the file has already been uploaded into phpBMS.</span> 
     
    157157                        <tr> 
    158158                                <th align="left">table</th> 
    159                                 <th align="left" nowrap>ID</th> 
     159                                <th align="left" nowrap="nowrap">ID</th> 
    160160                                <th align="right" width="99%">attached</th> 
    161                                 <th align="left" nowrap>&nbsp;</th> 
     161                                <th align="left" nowrap="nowrap">&nbsp;</th> 
    162162                        </tr> 
    163163                <?php 
     
    165165        ?> 
    166166                        <tr> 
    167                                 <td nowrap><?php echo $attachmentrecord["displayname"] ?></td> 
     167                                <td nowrap="nowrap"><?php echo $attachmentrecord["displayname"] ?></td> 
    168168                                <td><?php echo $attachmentrecord["recordid"] ?></td> 
    169169                                <td align="right"><?php echo formatFromSQLDatetime($attachmentrecord["creationdate"]) ?></td> 
  • trunk/phpbms/modules/base/include/menu_addedit_include.php

    r204 r205  
    4848        while($therecord=mysql_fetch_array($thequery)){ 
    4949                echo "<option value=\"search.php?id=".$therecord["id"]."\" "; 
    50                 if ($selectedlink=="search.php?id=".$therecord["id"]) echo "selected"; 
     50                if ($selectedlink=="search.php?id=".$therecord["id"]) echo "selected=\"selected\""; 
    5151                echo " >".$therecord["displayname"]."</option>\n"; 
    5252        } 
     
    6363        echo "<select name=\"parentid\" id=\"parentid\">\n"; 
    6464        echo "<option value=\"0\" "; 
    65         if ($selectedpid=="0") echo "selected"; 
     65        if ($selectedpid=="0") echo "selected=\"selected\""; 
    6666        echo " >-- none --</option>\n"; 
    6767        while($therecord=mysql_fetch_array($thequery)){ 
    6868                echo "<option value=\"".$therecord["id"]."\" "; 
    69                 if ($selectedpid==$therecord["id"]) echo "selected"; 
     69                if ($selectedpid==$therecord["id"]) echo "selected=\"selected\""; 
    7070                echo " >".$therecord["name"]."</option>\n"; 
    7171        } 
  • trunk/phpbms/modules/base/include/relationships_addedit_include.php

    r204 r205  
    4949        while($therecord=mysql_fetch_array($thequery)){ 
    5050                echo "  <option value=\"".$therecord["id"]."\""; 
    51                         if($selectedid==$therecord["id"]) echo " selected "; 
     51                        if($selectedid==$therecord["id"]) echo " selected=\"selected\""; 
    5252                echo ">".$therecord["displayname"]."</option>\n"; 
    5353        } 
  • trunk/phpbms/modules/base/include/reports_addedit_include.php

    r204 r205  
    5050 
    5151        echo "<option value=\"0\" "; 
    52         if ($selectedid=="0") echo "selected"; 
     52        if ($selectedid=="0") echo "selected=\"selected\""; 
    5353        echo " style=\"font-weight:bold\">global</option>\n"; 
    5454 
    5555        while($therecord=mysql_fetch_array($thequery)){ 
    5656                echo "  <option value=\"".$therecord["id"]."\""; 
    57                         if($selectedid==$therecord["id"]) echo " selected "; 
     57                        if($selectedid==$therecord["id"]) echo " selected=\"selected\""; 
    5858                echo ">".$therecord["displayname"]."</option>\n"; 
    5959        } 
  • trunk/phpbms/modules/base/include/snapshot_include.php

    r204 r205  
    120120                <input type="hidden" id="TSprivate<?php echo $therecord["id"]?>" value="<?php echo $therecord["private"]?>"/> 
    121121                <input type="hidden" id="TSispastdue<?php echo $therecord["id"]?>" value="<?php echo $therecord["ispastdue"]?>"/> 
    122                 <input class="radiochecks" id="TSC<?php echo $therecord["id"]?>" name="TSC<?php echo $therecord["id"]?>" type="checkbox" value="1" <?php if($therecord["completed"]) echo "checked"?> onClick="checkTask(<?php echo $therecord["id"]?>,'<?php echo $therecord["type"]?>')" align="middle"/> 
     122                <input class="radiochecks" id="TSC<?php echo $therecord["id"]?>" name="TSC<?php echo $therecord["id"]?>" type="checkbox" value="1" <?php if($therecord["completed"]) echo "checked=\"checked\""?> onclick="checkTask(<?php echo $therecord["id"]?>,'<?php echo $therecord["type"]?>')" align="middle"/> 
    123123                <a href="<?php echo getAddEditFile(12)."?id=".$therecord["id"]?>&amp;backurl=snapshot.php"><?php echo htmlQuotes($therecord["subject"])?></a> 
    124124                <?php if($type=="Tasks") if($therecord["enddate"]) {?><em class="small">(<?php echo htmlQuotes(formatFromSQLDate($therecord["enddate"])) ?>)</em><?php } ?> 
     
    140140        ?><table border="0" cellspacing="0" cellpadding="0" width="100%"><?php 
    141141        for($i=0;$i<7;$i++){ 
    142                 ?><tr><td colspan=2 class="eventDayName"><?php echo $today.strftime("%A",$theday); if($today){echo ")"; $today="";}?></td></tr><?php  
     142                ?><tr><td colspan="2" class="eventDayName"><?php echo $today.strftime("%A",$theday); if($today){echo ")"; $today="";}?></td></tr><?php  
    143143                $donext=true; 
    144144 
     
    154154                                } 
    155155                                ?><tr> 
    156                                         <td class="small event" nowrap valign="top"><?php echo $times?></td> 
     156                                        <td class="small event" nowrap="nowrap" valign="top"><?php echo $times?></td> 
    157157                                        <td class="small event" valign="top" width="100%"><a href="<?php echo getAddEditFile(12)."?id=".$therecord["id"]?>&backurl=snapshot.php"><?php echo htmlQuotes($therecord["subject"])?></a></td> 
    158158                                </tr><?php 
    159159                        } 
    160160                } else { 
    161                         ?><tr><td colspan=2 class="small event disabledtext">no events</td></tr><?php            
     161                        ?><tr><td colspan="2" class="small event disabledtext">no events</td></tr><?php          
    162162                }                
    163163                                                 
  • trunk/phpbms/modules/base/include/usersearches_edit_include.php

    r204 r205  
    4949        while($therecord=mysql_fetch_array($thequery)){ 
    5050                echo "  <option value=\"".$therecord["id"]."\""; 
    51                         if($selectedid==$therecord["id"]) echo " selected "; 
     51                        if($selectedid==$therecord["id"]) echo " selected=\"selected\""; 
    5252                echo ">".$therecord["displayname"]."</option>\n"; 
    5353        } 
  • trunk/phpbms/modules/base/javascript/notes.js

    r204 r205  
    488488        var theURL=base+"modules/base/notes_ajax.php?cm=sendemail&id="+theid.value; 
    489489        loadXMLDoc(theURL,null,false); 
    490         content=req.responseText+"<DIV align=\"right\"><button class=\"Buttons\" onClick=\"closeModal()\" style=\"width:75px\"> ok </button></DIV>"; 
     490        content=req.responseText+"<DIV align=\"right\"><button class=\"Buttons\" onclick=\"closeModal()\" style=\"width:75px\"> ok </button></DIV>"; 
    491491        var modalcontent=getObjectFromID("modalContent"); 
    492492        modalcontent.innerHTML=content; 
  • trunk/phpbms/modules/base/menu_addedit.php

    r204 r205  
    5555</head> 
    5656<body><?php include("../../menu.php")?> 
    57 <form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     57<form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    5858<div class="bodyline"> 
    5959        <div id="topButtons"> 
     
    6666                <p> 
    6767                        <label for="id">id</label><br /> 
    68                         <input id="id" name="id" type="text" value="<?php echo htmlQuotes($therecord["id"]); ?>" size="10" maxlength="10" readonly="true" class="uneditable" /> 
     68                        <input id="id" name="id" type="text" value="<?php echo htmlQuotes($therecord["id"]); ?>" size="10" maxlength="10" readonly="readonly" class="uneditable" /> 
    6969                </p> 
    7070                 
     
    9292                        <legend>type</legend> 
    9393                        <p class="typeP"> 
    94                                 <input type="radio" id="type1" value="cat" <?php if($therecord["link"]=="") echo "checked" ?> name="radio" onClick="showTypeDetails();"  class="radiochecks" /><label for="type1">category</label><br /> 
     94                                <input type="radio" id="type1" value="cat" <?php if($therecord["link"]=="") echo "checked=\"checked\"" ?> name="radio" onclick="showTypeDetails();"  class="radiochecks" /><label for="type1">category</label><br /> 
    9595                                <img src="menu-example-category.png" width="150" height="72" class="typeImage" alt="category" /> 
    9696                        </p> 
    9797                         
    9898                        <p class="typeP"> 
    99                                 <input type="radio" id="type2" value="search" <?php if(strpos($therecord["link"],"search.php?id=")!==false) echo "checked" ?> name="radio" onClick="showTypeDetails();" class="radiochecks" /><label for="type2">table definition search</label><br /> 
     99                                <input type="radio" id="type2" value="search" <?php if(strpos($therecord["link"],"search.php?id=")!==false) echo "checked=\"checked\"" ?> name="radio" onclick="showTypeDetails();" class="radiochecks" /><label for="type2">table definition search</label><br /> 
    100100                                <img src="menu-example-tabledef.png" width="150" height="72" class="typeImage" alt="table definition search" /> 
    101101                        </p> 
    102102 
    103103                        <p> 
    104                                 <input type="radio" id="type3" value="link" <?php if(strpos($therecord["link"],"search.php?id=")===false && $therecord["link"]!="") echo "checked" ?> name="radio" onClick="showTypeDetails();" class="radiochecks" /><label for="type3">page link</label><br /> 
     104                                <input type="radio" id="type3" value="link" <?php if(strpos($therecord["link"],"search.php?id=")===false && $therecord["link"]!="") echo "checked=\"checked\"" ?> name="radio" onclick="showTypeDetails();" class="radiochecks" /><label for="type3">page link</label><br /> 
    105105                                <img src="menu-example-link.png" width="150" height="72" class="typeImage" alt="page link" /> 
    106106                        </p> 
  • trunk/phpbms/modules/base/modules_view.php

    r204 r205  
    5757<body><?php include("../../menu.php")?> 
    5858 
    59 <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onSubmit="return validateForm(this);">                     
     59<form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onsubmit="return validateForm(this);">                     
    6060<div class="bodyline"> 
    6161        <h1 id="topTitle"><span><?php echo $pageTitle ?></span></h1>     
     
    6565                        <p> 
    6666                                <label for="id">id</label><br /> 
    67                                 <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable"/>                         
     67                                <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable"/>                     
    6868                        </p> 
    6969                        <p> 
    7070                                <label for="version">version</label><br /> 
    71                                 <input id="version" name="version" type="text" value="<?php echo $therecord["version"]; ?>" size="8" maxlength="8" readonly="true" class="uneditable" /> 
     71                                <input id="version" name="version" type="text" value="<?php echo $therecord["version"]; ?>" size="8" maxlength="8" readonly="readonly" class="uneditable" /> 
    7272                        </p> 
    7373                </fieldset>                      
     
    7878                                <p> 
    7979                                        <label for="displayname">name</label><br /> 
    80                                         <input id="displayname" name="displayname" type="text" value="<?php echo htmlQuotes($therecord["displayname"]); ?>" size="45" maxlength="128" readonly="true" class="uneditable" /> 
     80                                        <input id="displayname" name="displayname" type="text" value="<?php echo htmlQuotes($therecord["displayname"]); ?>" size="45" maxlength="128" readonly="readonly" class="uneditable" /> 
    8181                                </p> 
    8282                                 
    8383                                <p> 
    8484                                        <label for="name">folder name/location</label><br /> 
    85                                         <input id="name" name="name" type="text" value="<?php echo htmlQuotes($therecord["name"]); ?>" size="64" maxlength="128" readonly="true" class="uneditable" /> 
     85                                        <input id="name" name="name" type="text" value="<?php echo htmlQuotes($therecord["name"]); ?>" size="64" maxlength="128" readonly="readonly" class="uneditable" /> 
    8686                                </p>                             
    8787                        </fieldset> 
  • trunk/phpbms/modules/base/myaccount.php

    r204 r205  
    5555</head> 
    5656<body><?php include("../../menu.php")?><div class="bodyline"> 
    57         <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" name="record" id="record" onSubmit="return false"> 
     57        <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" name="record" id="record" onsubmit="return false"> 
    5858        <input type="hidden" id="command" name="command" value=""/> 
    5959         
  • trunk/phpbms/modules/base/notes_addedit.php

    r204 r205  
    6363<body ><?php include("../../menu.php")?> 
    6464 
    65 <form action="<?php echo htmlQuotes($_SERVER["REQUEST_URI"]) ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     65<form action="<?php echo htmlQuotes($_SERVER["REQUEST_URI"]) ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    6666<div class="bodyline"> 
    6767        <div id="topButtons"><?php showSaveCancel(1); ?></div> 
     
    7272                <p id="idP"> 
    7373                        <label for="id">id</label><br/> 
    74                         <input name="id" id="id"  type="text" value="<?php echo $therecord["id"]; ?>" size="8" maxlength="8" readonly="true" class="uneditable"/> 
     74                        <input name="id" id="id"  type="text" value="<?php echo $therecord["id"]; ?>" size="8" maxlength="8" readonly="readonly" class="uneditable"/> 
    7575                        <input name="parentid" id="parentid" type="hidden" value="<?php echo $therecord["parentid"]; ?>" /> 
    7676                        <input name="thebackurl" id="thebackurl" type="hidden" value="<?php if(isset($_GET["backurl"])) echo $_GET["backurl"]; ?>" /> 
     
    102102                        <p> 
    103103                                <label for="startdate" id="starttext">start</label><br /> 
    104                                 <input name="dostart" id="startcheck" type="checkbox" value="1" <?php if($therecord["startdate"]) echo "checked" ?> onClick="dateChecked('start')" class="radiochecks" /> 
     104                                <input name="dostart" id="startcheck" type="checkbox" value="1" <?php if($therecord["startdate"]) echo "checked=\"checked\"" ?> onclick="dateChecked('start')" class="radiochecks" /> 
    105105                                &nbsp;<?php fieldDatePicker("startdate",$therecord["startdate"],0,"",Array("size"=>"11","maxlength"=>"15","onchange"=>"checkEndDate();setEnglishDates()"));?>    
    106106                                &nbsp;<?php fieldTimePicker("starttime",$therecord["starttime"],0,"",Array("size"=>"11","maxlength"=>"15","onchange"=>"checkEndDate()"));?> 
     
    108108                        <p> 
    109109                                <label for="enddate" id="endtext">end</label><br /> 
    110                                 <input name="doend" id="endcheck" type="checkbox" value="1" <?php if($therecord["enddate"]) echo "checked" ?> onClick="dateChecked('end')" class="radiochecks" /> 
     110                                <input name="doend" id="endcheck" type="checkbox" value="1" <?php if($therecord["enddate"]) echo "checked=\"checked\"" ?> onclick="dateChecked('end')" class="radiochecks" /> 
    111111                                &nbsp;<?php fieldDatePicker("enddate",$therecord["enddate"],0,"",Array("size"=>"11","maxlength"=>"15"));?>                       
    112112                                &nbsp;<?php fieldTimePicker("endtime",$therecord["endtime"],0,"",Array("size"=>"11","maxlength"=>"15"));?>                       
     
    140140                        <?php if($therecord["assignedbyid"]==$_SESSION["userinfo"]["id"]){?> 
    141141                        <p> 
    142                                 <button type="button" id="sendemailnotice" class="Buttons" onClick="sendEmailNotice('<?php echo $_SESSION["app_path"]?>')">send e-mail notice</button> 
     142                                <button type="button" id="sendemailnotice" class="Buttons" onclick="sendEmailNotice('<?php echo $_SESSION["app_path"]?>')">send e-mail notice</button> 
    143143                        </p> 
    144144                        <?php } }?> 
     
    155155                                <p> 
    156156                                        <label for="assocarea">area</label><br /> 
    157                                         <input id="assocarea" type="text" readonly="true" class="uneditable" value="<?php echo $attachedtableinfo["displayname"];?>" /> 
     157                                        <input id="assocarea" type="text" readonly="readonly" class="uneditable" value="<?php echo $attachedtableinfo["displayname"];?>" /> 
    158158                                </p> 
    159159                                 
     
    161161                                <p> 
    162162                                        <label for="attachedid">record id</label><br /> 
    163                                         <input id="attachedid " name="attachedid" type="text" readonly="true" class="uneditable" value="<?php echo $therecord["attachedid"]?>" size="6" />&nbsp; 
     163                                        <input id="attachedid " name="attachedid" type="text" readonly="readonly" class="uneditable" value="<?php echo $therecord["attachedid"]?>" size="6" />&nbsp; 
    164164                                        <input name="link" type="button" class="Buttons" value=" go to record " onclick="document.location='<?php echo $_SESSION["app_path"]?><?php echo $attachedtableinfo["editfile"]."?id=".$therecord["attachedid"]; ?>'" /> 
    165165                                </> 
     
    185185                        <legend><label for="content">memo</label></legend> 
    186186                        <p align="right" id="timeStampDiv"> 
    187                                 <button id="timeStampButton" type="button" class="graphicButtons buttonTimeStamp" onClick="timeStamp();">Time Stamp</button> 
     187                                <button id="timeStampButton" type="button" class="graphicButtons buttonTimeStamp" onclick="timeStamp();">Time Stamp</button> 
    188188                        </p> 
    189189                        <p> 
     
    209209                                        ?> 
    210210                                        <select id="repeattype" name="repeattype" onchange="changeRepeatType();"> 
    211                                                 <option value="Daily" <?php if ($therecord["repeattype"]=="repeatDaily") echo "selected"?>>Day<?php echo $plural?></option> 
    212                                                 <option value="Weekly" <?php if ($therecord["repeattype"]=="repeatWeekly") echo "selected"?>>Week<?php echo $plural?></option> 
    213                                                 <option value="Monthly" <?php if (substr($therecord["repeattype"],0,13)=="repeatMonthly") echo "selected"?>>Month<?php echo $plural?></option> 
    214                                                 <option value="Yearly" <?php if ($therecord["repeattype"]=="repeatYearly") echo "selected"?>>Year<?php echo $plural?></option> 
     211                                                <option value="Daily" <?php if ($therecord["repeattype"]=="repeatDaily") echo "selected=\"selected\""?>>Day<?php echo $plural?></option> 
     212                                                <option value="Weekly" <?php if ($therecord["repeattype"]=="repeatWeekly") echo "selected=\"selected\""?>>Week<?php echo $plural?></option> 
     213                                                <option value="Monthly" <?php if (substr($therecord["repeattype"],0,13)=="repeatMonthly") echo "selected=\"selected\""?>>Month<?php echo $plural?></option> 
     214                                                <option value="Yearly" <?php if ($therecord["repeattype"]=="repeatYearly") echo "selected=\"selected\""?>>Year<?php echo $plural?></option> 
    215215                                        </select><br />&nbsp;<br /> 
    216216                                         
    217217                                        <p id="weeklyoptions" <?php if ($therecord["repeattype"]!="repeatweekly"){?>style="display:none;"<?php }?>> 
    218                                                 <span id="wos" class="repeatWeekChecks"><input name="wosc" type="checkbox" value="s" <?php if(strpos(" ".$therecord["repeatdays"],"s",0)) echo "checked"?> class="radiochecks" />Sun</span> 
    219                                                 <span id="wom" class="repeatWeekChecks"><input name="womc" type="checkbox" value="m" <?php if(strpos(" ".$therecord["repeatdays"],"m",0)) echo "checked"?> class="radiochecks" />Mon</span> 
    220                                                 <span id="wot" class="repeatWeekChecks"><input name="wotc" type="checkbox" value="t" <?php if(strpos(" ".$therecord["repeatdays"],"t",0)) echo "checked"?> class="radiochecks" />Tue</span> 
    221                                                 <span id="wow" class="repeatWeekChecks"><input name="wowc" type="checkbox" value="w" <?php if(strpos(" ".$therecord["repeatdays"],"w",0)) echo "checked"?> class="radiochecks" />Wed</span> 
    222                                                 <span id="wor" class="repeatWeekChecks"><input name="worc" type="checkbox" value="r" <?php if(strpos(" ".$therecord["repeatdays"],"r",0)) echo "checked"?> class="radiochecks" />Thu</span> 
    223                                                 <span id="wof" class="repeatWeekChecks"><input name="wofc" type="checkbox" value="f" <?php if(strpos(" ".$therecord["repeatdays"],"f",0)) echo "checked"?> class="radiochecks" />Fri</span> 
    224                                                 <span id="woa" class="repeatWeekChecks"><input name="woac" type="checkbox" value="a" <?php if(strpos(" ".$therecord["repeatdays"],"a",0)) echo "checked"?> class="radiochecks" />Sat</span> 
     218                                                <span id="wos" class="repeatWeekChecks"><input name="wosc" type="checkbox" value="s" <?php if(strpos(" ".$therecord["repeatdays"],"s",0)) echo "checked=\"checked\""?> class="radiochecks" />Sun</span> 
     219                                                <span id="wom" class="repeatWeekChecks"><input name="womc" type="checkbox" value="m" <?php if(strpos(" ".$therecord["repeatdays"],"m",0)) echo "checked=\"checked\""?> class="radiochecks" />Mon</span> 
     220                                                <span id="wot" class="repeatWeekChecks"><input name="wotc" type="checkbox" value="t" <?php if(strpos(" ".$therecord["repeatdays"],"t",0)) echo "checked=\"checked\""?> class="radiochecks" />Tue</span> 
     221                                                <span id="wow" class="repeatWeekChecks"><input name="wowc" type="checkbox" value="w" <?php if(strpos(" ".$therecord["repeatdays"],"w",0)) echo "checked=\"checked\""?> class="radiochecks" />Wed</span> 
     222                                                <span id="wor" class="repeatWeekChecks"><input name="worc" type="checkbox" value="r" <?php if(strpos(" ".$therecord["repeatdays"],"r",0)) echo "checked=\"checked\""?> class="radiochecks" />Thu</span> 
     223                                                <span id="wof" class="repeatWeekChecks"><input name="wofc" type="checkbox" value="f" <?php if(strpos(" ".$therecord["repeatdays"],"f",0)) echo "checked=\"checked\""?> class="radiochecks" />Fri</span> 
     224                                                <span id="woa" class="repeatWeekChecks"><input name="woac" type="checkbox" value="a" <?php if(strpos(" ".$therecord["repeatdays"],"a",0)) echo "checked=\"checked\""?> class="radiochecks" />Sat</span> 
    225225                                        </p> 
    226226                                        <p id="monthlyoptions" style=" <?php if (substr($therecord["repeattype"],0,13)!="repeatMonthly"){?>display:none;<?php }?>margin-bottom:5px;"> 
     
    229229                                        </p> 
    230230                                        <p id="rpuntilforever"> 
    231                                                 <input id="rprduntilforever" class="radiochecks" name="rpuntil" type="radio" <?php if($therecord["repeattimes"]==0) echo "checked" ?> value="0" onClick="updateRepeatUntil()"/> <label for="rprduntilforever">forever</label> 
     231                                                <input id="rprduntilforever" class="radiochecks" name="rpuntil" type="radio" <?php if($therecord["repeattimes"]==0) echo "checked=\"checked\"" ?> value="0" onclick="updateRepeatUntil()"/> <label for="rprduntilforever">forever</label> 
    232232                                        </p> 
    233233                                        <p id="rpuntiltimes"> 
    234                                                 <input id="rprduntilftimes" class="radiochecks" name="rpuntil" type="radio" <?php if($therecord["repeattimes"]>0) echo "checked" ?> value="1" onClick="updateRepeatUntil()" /> <label for="rprduntilftimes">number of times</label>&nbsp;&nbsp; 
     234                                                <input id="rprduntilftimes" class="radiochecks" name="rpuntil" type="radio" <?php if($therecord["repeattimes"]>0) echo "checked=\"checked\"" ?> value="1" onclick="updateRepeatUntil()" /> <label for="rprduntilftimes">number of times</label>&nbsp;&nbsp; 
    235235                                                <?php  
    236236                                                $tempvalue=""; 
     
    244244                                        </p> 
    245245                                        <p id="rpuntildate"> 
    246                                                 <input id="rprduntildate" class="radiochecks" name="rpuntil" type="radio" <?php if($therecord["repeattimes"]==-1) echo "checked" ?> value="-1" onClick="updateRepeatUntil()"/> <label for="rprduntildate">until</label>&nbsp;&nbsp; 
     246                                                <input id="rprduntildate" class="radiochecks" name="rpuntil" type="radio" <?php if($therecord["repeattimes"]==-1) echo "checked=\"checked\"" ?> value="-1" onclick="updateRepeatUntil()"/> <label for="rprduntildate">until</label>&nbsp;&nbsp; 
    247247                                                <?php fieldDatePicker("repeatuntildate",$therecord["repeatuntildate"],0,"",Array("size"=>"11","maxlength"=>"15"));?> 
    248248                                        </p> 
     
    260260                (Any unsaved changes with the current record will be lost.) 
    261261                </div> 
    262                 <div><input id="goparent" name="goparent" type="button" value="Edit Repeating Options..." onClick="goParent('<?php echo getAddEditFile(12) ?>')" class="Buttons" /></div> 
     262                <div><input id="goparent" name="goparent" type="button" value="Edit Repeating Options..." onclick="goParent('<?php echo getAddEditFile(12) ?>')" class="Buttons" /></div> 
    263263        </fieldset> 
    264264        <?php include("../../include/createmodifiedby.php"); ?> 
  • trunk/phpbms/modules/base/notes_records.php

    r204 r205  
    9090        <h1><?php echo $pageTitle ?></h1> 
    9191        <div> 
    92                 <form name="search" id="search" action="<?php echo $_SERVER["REQUEST_URI"]?>" method="post" onSubmit="setSelIDs(this);return true;"> 
     92                <form name="search" id="search" action="<?php echo $_SERVER["REQUEST_URI"]?>" method="post" onsubmit="setSelIDs(this);return true;"> 
    9393                <input name="theids" type="hidden" value="" /> 
    9494                <?php 
  • trunk/phpbms/modules/base/relationships_addedit.php

    r204 r205  
    5454</head> 
    5555<body><?php include("../../menu.php")?> 
    56 <form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     56<form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    5757<div class="bodyline"> 
    5858        <div id="topButtons"> 
     
    6464                <legend>Attributes</legend> 
    6565                <p><label for="id">id</label><br /> 
    66                         <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable"/> 
     66                        <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable"/> 
    6767                </p> 
    6868        </fieldset> 
  • trunk/phpbms/modules/base/reports_addedit.php

    r204 r205  
    5656</head> 
    5757<body><?php include("../../menu.php")?> 
    58 <form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     58<form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    5959<div class="bodyline"> 
    6060        <div id="topButtons"><?php showSaveCancel(1); ?></div> 
     
    6565                <p> 
    6666                        <label for="id">id</label><br /> 
    67                         <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable"/>                 
     67                        <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable"/>             
    6868                </p> 
    6969                <p> 
  • trunk/phpbms/modules/base/roles_addedit.php

    r204 r205  
    5555</head> 
    5656<body><?php include("../../menu.php")?> 
    57 <form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onSubmit="return submitForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     57<form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="return submitForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    5858<div class="bodyline"> 
    5959        <div id="topButtons"> 
     
    6666                <p> 
    6767                        <label for="id">id</label><br /> 
    68                         <input id="id" name="id" type="text" value="<?php echo htmlQuotes($therecord["id"]); ?>" size="10" maxlength="10" readonly="true" class="uneditable" /> 
     68                        <input id="id" name="id" type="text" value="<?php echo htmlQuotes($therecord["id"]); ?>" size="10" maxlength="10" readonly="readonly" class="uneditable" /> 
    6969                </p> 
    7070                 
  • trunk/phpbms/modules/base/scheduler_addedit.php

    r204 r205  
    6969                <p> 
    7070                        <label for="id">id</label><br /> 
    71                         <input id="id" name="id" type="text" value="<?php echo htmlQuotes($therecord["id"]); ?>" size="10" maxlength="10" readonly="true" class="uneditable" /> 
     71                        <input id="id" name="id" type="text" value="<?php echo htmlQuotes($therecord["id"]); ?>" size="10" maxlength="10" readonly="readonly" class="uneditable" /> 
    7272                </p> 
    7373                 
  • trunk/phpbms/modules/base/tabledefs_addedit.php

    r204 r205  
    6161 
    6262<?php tabledefs_tabs("General",$therecord["id"]);?><div class="bodyline"> 
    63 <form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     63<form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    6464        <div id="topButtons"> 
    6565                  <?php showSaveCancel(1); ?> 
     
    7272                <p> 
    7373                        <label for="id">id</label><br /> 
    74                         <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable" />                
     74                        <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable" />            
    7575                </p> 
    7676                <p> 
  • trunk/phpbms/modules/base/tabledefs_columns.php

    r204 r205  
    103103   <table border="0" cellpadding="0" cellspacing="0" class="querytable"> 
    104104        <tr> 
    105          <th nowrap class="queryheader">move</th> 
    106          <th align="left" nowrap class="queryheader">name</th> 
    107          <th align="left" nowrap class="queryheader">align</th> 
    108          <th align="center" nowrap class="queryheader">wrap</th> 
    109          <th align="left" nowrap class="queryheader">size</th> 
    110          <th align="left" nowrap class="queryheader">format</th> 
    111          <th nowrap class="queryheader">&nbsp;</th> 
     105         <th nowrap="nowrap" class="queryheader">move</th> 
     106         <th align="left" nowrap="nowrap" class="queryheader">name</th> 
     107         <th align="left" nowrap="nowrap" class="queryheader">align</th> 
     108         <th align="center" nowrap="nowrap" class="queryheader">wrap</th> 
     109         <th align="left" nowrap="nowrap" class="queryheader">size</th> 
     110         <th align="left" nowrap="nowrap" class="queryheader">format</th> 
     111         <th nowrap="nowrap" class="queryheader">&nbsp;</th> 
    112112        </tr> 
    113113        <?php  
     
    119119        ?> 
    120120        <tr class="qr<?php echo $row?> noselects"> 
    121                 <td nowrap valign="top"> 
     121                <td nowrap="nowrap"valign="top"> 
    122122                        <button type="button" class="graphicButtons buttonUp" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=moveup&amp;columnid=".$therecord["id"]?>';"><span>Move Up</span></button> 
    123123                        <button type="button" class="graphicButtons buttonDown" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=movedown&amp;columnid=".$therecord["id"]?>';"><span>Move Down</span></button> 
    124124                        <?php echo $therecord["displayorder"];?> 
    125125                </td> 
    126                 <td nowrap valign="top"><strong><?php echo $therecord["name"]?></strong></td> 
    127                 <td nowrap valign="top"><?php echo $therecord["align"]?></td> 
    128                 <td align="center" nowrap valign="top"><?php echo booleanFormat($therecord["wrap"])?></td> 
    129                 <td nowrap valign="top"><?php if($therecord["size"]) echo $therecord["size"]; else echo "&nbsp;";?></td> 
     126                <td nowrap="nowrap"valign="top"><strong><?php echo $therecord["name"]?></strong></td> 
     127                <td nowrap="nowrap"valign="top"><?php echo $therecord["align"]?></td> 
     128                <td align="center" nowrap="nowrap"valign="top"><?php echo booleanFormat($therecord["wrap"])?></td> 
     129                <td nowrap="nowrap"valign="top"><?php if($therecord["size"]) echo $therecord["size"]; else echo "&nbsp;";?></td> 
    130130                <td valign="top"><?php  if($therecord["format"]) echo $therecord["format"]; else  echo "&nbsp;"?></td> 
    131                 <td nowrap valign="top"> 
     131                <td nowrap="nowrap"valign="top"> 
    132132                         <button id="edit<?php echo $therecord["id"]?>" name="doedit" type="button" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=edit&amp;columnid=".$therecord["id"]?>';" class="graphicButtons buttonEdit"><span>edit</span></button> 
    133133                         <button id="delete<?php echo $therecord["id"]?>" name="dodelete" type="button" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=delete&amp;columnid=".$therecord["id"]?>';" class="graphicButtons buttonDelete"><span>delete</span></button> 
     
    148148        <fieldset> 
    149149                <legend><?php echo $action?></legend> 
    150                 <form action="<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"] ?>" method="post" name="record" onSubmit="return validateForm(this);"> 
     150                <form action="<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"] ?>" method="post" name="record" onsubmit="return validateForm(this);"> 
    151151                <input id="columnid" name="columnid" type="hidden" value="<?php echo $thecolumn["id"]?>" /> 
    152152                <input id="displayorder" name="displayorder" type="hidden" value="<?php if($action=="add column") echo $topdisplayorder+1; else echo $thecolumn["displayorder"]?>" /> 
  • trunk/phpbms/modules/base/tabledefs_options.php

    r204 r205  
    104104</script> 
    105105</head> 
    106 <body onLoad="init()"><?php include("../../menu.php")?> 
     106<body onload="init()"><?php include("../../menu.php")?> 
    107107 
    108108 
     
    112112   <table border="0" cellpadding="3" cellspacing="0" class="querytable"> 
    113113        <tr> 
    114          <th nowrap align="center">other</th> 
    115          <th nowrap align="left">name</th> 
    116          <th nowrap align="left">option / function</th> 
    117          <th nowrap align="center">access</th> 
    118          <th nowrap>&nbsp;</th> 
     114         <th nowrap="nowrap"align="center">other</th> 
     115         <th nowrap="nowrap"align="left">name</th> 
     116         <th nowrap="nowrap"align="left">option / function</th> 
     117         <th nowrap="nowrap"align="center">access</th> 
     118         <th nowrap="nowrap">&nbsp;</th> 
    119119        </tr> 
    120120 
     
    125125        ?> 
    126126        <tr class="qr<?php echo $row?> noselects"> 
    127          <td align="center" nowrap><?php echo booleanFormat($therecord["othercommand"])?></td> 
    128          <td nowrap><strong><?php  
     127         <td align="center" nowrap="nowrap"><?php echo booleanFormat($therecord["othercommand"])?></td> 
     128         <td nowrap="nowrap"><strong><?php  
    129129                        if($therecord["othercommand"]) echo $therecord["option"]; else echo $therecord["name"]; ?></strong> 
    130130        </td> 
    131          <td nowrap class="small"><?php  
     131         <td nowrap="nowrap"class="small"><?php  
    132132                if($therecord["othercommand"])  
    133133                        echo $therecord["name"];  
     
    139139                } 
    140140        ?></td> 
    141          <td nowrap align="center"><?php displayRights($therecord["roleid"],$therecord["rolename"])?></td>       
     141         <td nowrap="nowrap"align="center"><?php displayRights($therecord["roleid"],$therecord["rolename"])?></td>       
    142142          
    143          <td nowrap valign="top"> 
     143         <td nowrap="nowrap"valign="top"> 
    144144                 <button id="edit<?php echo $therecord["id"]?>" type="button" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=edit&amp;optionid=".$therecord["id"]?>';" class="graphicButtons buttonEdit"><span>edit</span></button> 
    145145                 <button id="delete<?php echo $therecord["id"]?>" type="button" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=delete&amp;optionid=".$therecord["id"]?>';" class="graphicButtons buttonDelete"><span>delete</span></button> 
     
    157157        <fieldset> 
    158158                <legend><?php echo $action?></legend> 
    159                 <form action="<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"] ?>" method="post" name="record" onSubmit="return validateForm(this);"> 
     159                <form action="<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"] ?>" method="post" name="record" onsubmit="return validateForm(this);"> 
    160160                        <input id="optionid" name="optionid" type="hidden" value="<?php echo $theoption["id"]?>" /> 
    161161                        <p>command type</p> 
    162162                        <p>                      
    163                                 <input type="radio" id="oc1" name="othercommand" value="0" onClick="switchType()" class="radiochecks" <?php if(!$theoption["othercommand"]) echo "checked=\"checked\""?>  /><label for="oc1">pre-defined</label> 
     163                                <input type="radio" id="oc1" name="othercommand" value="0" onclick="switchType()" class="radiochecks" <?php if(!$theoption["othercommand"]) echo "checked=\"checked\""?>  /><label for="oc1">pre-defined</label> 
    164164                                &nbsp; 
    165165                                 
    166                                 <input name="othercommand" id="oc2" type="radio" class="radiochecks" value="1" onClick="switchType()" <?php if($theoption["othercommand"]) echo "checked=\"checked\""?>  /><label for="oc2">other</label> 
     166                                <input name="othercommand" id="oc2" type="radio" class="radiochecks" value="1" onclick="switchType()" <?php if($theoption["othercommand"]) echo "checked=\"checked\""?>  /><label for="oc2">other</label> 
    167167                        </p> 
    168168                         
  • trunk/phpbms/modules/base/tabledefs_quicksearch.php

    r204 r205  
    101101        <table border="0" cellpadding="3" cellspacing="0" class="querytable"> 
    102102                <tr> 
    103                          <th nowrap>Move</th> 
    104                          <th nowrap align="left">Name</th> 
    105                          <th width="100%" nowrap align="left">Search</th> 
    106                          <th width="100%" nowrap class="queryheader" align="left">Access</th> 
    107                          <th nowrap>&nbsp;</th> 
     103                         <th nowrap="nowrap">Move</th> 
     104                         <th nowrap="nowrap"align="left">Name</th> 
     105                         <th width="100%" nowrap="nowrap"align="left">Search</th> 
     106                         <th width="100%" nowrap="nowrap"class="queryheader" align="left">Access</th> 
     107                         <th nowrap="nowrap">&nbsp;</th> 
    108108                </tr> 
    109109        <?php  
     
    115115        ?> 
    116116        <tr class="qr<?php echo $row?> noselects"> 
    117          <td nowrap valign="top"> 
     117         <td nowrap="nowrap"valign="top"> 
    118118                <button type="button" class="graphicButtons buttonUp" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=moveup&amp;quicksearchid=".$therecord["id"]?>';"><span>up</span></button> 
    119119                <button type="button" class="graphicButtons buttonDown" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=movedown&amp;quicksearchid=".$therecord["id"]?>';"><span>dn</span></button> 
    120120                 <?php echo $therecord["displayorder"]?> 
    121121         </td> 
    122          <td nowrap valign="top"><strong><?php echo htmlQuotes($therecord["name"])?></strong></td> 
     122         <td nowrap="nowrap"valign="top"><strong><?php echo htmlQuotes($therecord["name"])?></strong></td> 
    123123         <td valign="top" class="small"><?php echo htmlQuotes($therecord["search"])?></td> 
    124          <td valign="top" align=center class="small" nowrap><?php echo displayRights($therecord["roleid"],$therecord["rolename"])?></td> 
    125          <td nowrap valign="top"> 
     124         <td valign="top" align="center" class="small" nowrap="nowrap"><?php echo displayRights($therecord["roleid"],$therecord["rolename"])?></td> 
     125         <td nowrap="nowrap" valign="top"> 
    126126                 <button id="edit<?php echo $therecord["id"]?>" type="button" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=edit&amp;quicksearchid=".$therecord["id"]?>';" class="graphicButtons buttonEdit"><span>edit</span></button> 
    127127                 <button id="delete<?php echo $therecord["id"]?>" type="button" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=delete&amp;quicksearchid=".$therecord["id"]?>';" class="graphicButtons buttonDelete"><span>delete</span></button> 
     
    138138        </table> 
    139139        </div> 
    140         <form action="<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"] ?>" method="post" name="record" onSubmit="return validateForm(this);"> 
     140        <form action="<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"] ?>" method="post" name="record" onsubmit="return validateForm(this);"> 
    141141        <fieldset> 
    142142                <legend><?php echo $action?></legend> 
  • trunk/phpbms/modules/base/tabledefs_searchfields.php

    r204 r205  
    102102   <table border="0" cellpadding="0" cellspacing="0" class="querytable"> 
    103103        <tr> 
    104          <th align="left" nowrap class="queryheader">move</th>           
    105          <th align="center" nowrap class="queryheader">type</th> 
    106          <th align="left" nowrap class="queryheader">name</th> 
    107          <th align="left" width="100%"  nowrap class="queryheader">field</th> 
     104         <th align="left" nowrap="nowrap" class="queryheader">move</th>          
     105         <th align="center" nowrap="nowrap" class="queryheader">type</th> 
     106         <th align="left" nowrap="nowrap"class="queryheader">name</th> 
     107         <th align="left" width="100%"  nowrap="nowrap" class="queryheader">field</th> 
    108108         <th nowrap class="queryheader">&nbsp;</th> 
    109109        </tr> 
     
    116116        ?> 
    117117        <tr class="qr<?php echo $row?> noselects"> 
    118                 <td nowrap valign="top" class="small"> 
     118                <td nowrap="nowrap" valign="top" class="small"> 
    119119                        <button type="button" class="graphicButtons buttonUp" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=moveup&amp;columnid=".$therecord["id"]?>';"><span>up</span></button> 
    120120                        <button type="button" class="graphicButtons buttonDown" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=movedown&amp;columnid=".$therecord["id"]?>';"><span>dn</span></button> 
    121121                        <?php echo $therecord["displayorder"]?> 
    122122                </td> 
    123                 <td nowrap valign="top" class="small" align="center"><strong><?php echo htmlQuotes($therecord["type"]);?></strong></td> 
    124                 <td nowrap valign="top" class="small"><strong><?php echo htmlQuotes($therecord["name"])?></strong></td> 
     123                <td nowrap="nowrap" valign="top" class="small" align="center"><strong><?php echo htmlQuotes($therecord["type"]);?></strong></td> 
     124                <td nowrap="nowrap" valign="top" class="small"><strong><?php echo htmlQuotes($therecord["name"])?></strong></td> 
    125125                <td valign="top"><?php echo htmlQuotes($therecord["field"])?></td> 
    126                 <td nowrap valign="top"> 
     126                <td nowrap="nowrap" valign="top"> 
    127127                         <button id="edit<?php echo $therecord["id"]?>" type="button" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=edit&amp;searchfieldid=".$therecord["id"]?>';" class="graphicButtons buttonEdit"><span>edit</span></button> 
    128128                         <button id="delete<?php echo $therecord["id"]?>" type="button" onclick="document.location='<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&amp;command=delete&amp;searchfieldid=".$therecord["id"]?>';" class="graphicButtons buttonDelete"><span>delete</span></button> 
     
    141141        <fieldset> 
    142142                <legend><?php echo $action?></legend> 
    143                 <form action="<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"] ?>" method="post" name="record" onSubmit="return validateForm(this);"> 
     143                <form action="<?php echo $_SERVER["PHP_SELF"]."?id=".$_GET["id"] ?>" method="post" name="record" onsubmit="return validateForm(this);"> 
    144144                        <input id="searchfieldid" name="searchfieldid" type="hidden" value="<?php echo $thesearchfield["id"]?>" /> 
    145145                        <input id="displayorder" name="displayorder" type="hidden" value="<?php if($action=="add search field") echo $topdisplayorder+1; else echo $thesearchfield["displayorder"]?>" /> 
  • trunk/phpbms/modules/base/usersearches_edit.php

    r204 r205  
    5555</head> 
    5656<body><?php include("../../menu.php")?> 
    57 <form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     57<form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    5858<div class="bodyline"> 
    5959        <div id="topButtons"> 
     
    6666                <p> 
    6767                        <label for="id">id</label><br /> 
    68                         <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable"/> 
     68                        <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable"/> 
    6969                </p> 
    7070                 
     
    8181                <p> 
    8282                        <label for="username">user</label><br /> 
    83                         <input id="username" name="username" type="text" value="<?php echo htmlQuotes($username) ?>" size="32" readonly="true" class="uneditable" /> 
     83                        <input id="username" name="username" type="text" value="<?php echo htmlQuotes($username) ?>" size="32" readonly="readonly" class="uneditable" /> 
    8484                </p> 
    8585                 
  • trunk/phpbms/modules/base/users_addedit.php

    r204 r205  
    5757</head> 
    5858<body><?php include("../../menu.php")?> 
    59 <form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onSubmit="return submitForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     59<form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="return submitForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    6060<div class="bodyline"> 
    6161        <div id="topButtons"><?php showSaveCancel(1); ?></div> 
     
    6767                <p> 
    6868                        <label for="id">id</label><br /> 
    69                         <input name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable"/>                 
     69                        <input name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable"/>             
    7070                </p> 
    7171 
     
    106106                        <p> 
    107107                                <label for="lastlogin" >last log in</label><br /> 
    108                                 <input id="lastlogin" name="lastlogin" type="text" value="<?php echo formatFromSQLDate($therecord["lastlogin"]); ?>" size="32" maxlength="64" readonly="true" class="uneditable"  />                     
     108                                <input id="lastlogin" name="lastlogin" type="text" value="<?php echo formatFromSQLDate($therecord["lastlogin"]); ?>" size="32" maxlength="64" readonly="readonly" class="uneditable"  />                         
    109109                        </p> 
    110110 
  • trunk/phpbms/modules/bms/adminsettings.php

    r197 r205  
    2424        <legend>clients</legend> 
    2525        <p><br/> 
    26                 <input type="button" name="mngclientemail" id="mngclientemail" class="Buttons" value="Manage Client E-Mail Projects" onClick="document.location='../../search.php?id=22'" /> 
     26                <input type="button" name="mngclientemail" id="mngclientemail" class="Buttons" value="Manage Client E-Mail Projects" onclick="document.location='../../search.php?id=22'" /> 
    2727        </p> 
    2828</fieldset> 
  • trunk/phpbms/modules/bms/clientemailprojects_edit.php

    r204 r205  
    5555<body><?php include("../../menu.php")?> 
    5656 
    57 <form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     57<form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    5858<div class="bodyline"> 
    5959        <div id="topButtons"> 
     
    6666                <p> 
    6767                        <br /> 
    68                         <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable"/> 
     68                        <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable"/> 
    6969                </p> 
    7070        </fieldset> 
     
    8383                <legend><label for="username">user</label></legend> 
    8484                <p><br /> 
    85                         <input id="username" name="username" type="text" value="<?php echo $username ?>" size="50" readonly="true" class="uneditable" /> 
     85                        <input id="username" name="username" type="text" value="<?php echo $username ?>" size="50" readonly="readonly" class="uneditable" /> 
    8686                </p> 
    8787                <?php if($therecord["userid"]!=0) {?> 
     
    9797                        <label for="from">from</label><br /> 
    9898                        <?php if(is_numeric($therecord["emailfrom"])) $therecord["emailfrom"]=getEmailInfo($therecord["emailfrom"]);?> 
    99                         <input id="from" name="from" value="<?php echo htmlQuotes($therecord["emailfrom"])?>" readonly="true" class="uneditable" size="60" />            
     99                        <input id="from" name="from" value="<?php echo htmlQuotes($therecord["emailfrom"])?>" readonly="readonly" class="uneditable" size="60" />                
    100100                </p> 
    101101                <p> 
    102102                        <label for="to">to</label><br /> 
    103                         <input id="to" name="to" value="<?php if($therecord["emailto"]=="selected" or $therecord["emailto"]=="all") echo htmlQuotes($therecord["emailto"]); else echo "saved search"?>" size="60" readonly="true" class="uneditable" /> 
     103                        <input id="to" name="to" value="<?php if($therecord["emailto"]=="selected" or $therecord["emailto"]=="all") echo htmlQuotes($therecord["emailto"]); else echo "saved search"?>" size="60" readonly="readonly" class="uneditable" /> 
    104104                        <?php if(is_numeric($therecord["emailto"]))     {?>                      
    105                         <br /><input id="to2" name="to2" value="<?php echo htmlQuotes(showSavedSearch($therecord["emailto"]))?>" readonly="true" class="uneditable" size="60"/> 
     105                        <br /><input id="to2" name="to2" value="<?php echo htmlQuotes(showSavedSearch($therecord["emailto"]))?>" readonly="readonly" class="uneditable" size="60"/> 
    106106                        <?php } ?>               
    107107                </p> 
     
    109109                <p> 
    110110                        <label for="subject">subject</label><br /> 
    111                         <input id="subject" name="subject" type="text" value="<?php echo $therecord["subject"]?>" size="32" readonly="true" class="uneditable" />                
     111                        <input id="subject" name="subject" type="text" value="<?php echo $therecord["subject"]?>" size="32" readonly="readonly" class="uneditable" />            
    112112                </p> 
    113113                <p> 
    114                         <textarea id="body" name="body" readonly="true" class="uneditable" cols="80" rows="40"><?php echo htmlQuotes($therecord["body"])?></textarea> 
     114                        <textarea id="body" name="body" readonly="readonly" class="uneditable" cols="80" rows="40"><?php echo htmlQuotes($therecord["body"])?></textarea> 
    115115                </p> 
    116116        </fieldset> 
  • trunk/phpbms/modules/bms/clients_addedit.php

    r204 r205  
    6262<body><?php include("../../menu.php")?> 
    6363 
    64 <form action="<?php echo htmlQuotes($_SERVER["REQUEST_URI"]); if(isset($_GET["invoiceid"])) echo "&amp;invoiceid=".$_GET["invoiceid"];  ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     64<form action="<?php echo htmlQuotes($_SERVER["REQUEST_URI"]); if(isset($_GET["invoiceid"])) echo "&amp;invoiceid=".$_GET["invoiceid"];  ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    6565<?php client_tabs("General",$therecord["id"]); ?> 
    6666<div class="bodyline"> 
     
    8181                        <p> 
    8282                                <label for="id">id</label><br /> 
    83                                 <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable" tabindex="0" /> 
     83                                <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable" tabindex="0" /> 
    8484                        </p> 
    8585                                 
     
    106106                        <p id="becameclientDiv" <?php if($therecord["type"]=="prospect") echo "style=\"display:none;\"" ?>> 
    107107                                <label for="becameclient">became a client</label><br /> 
    108                                 <input type="text" id="becameclient" name="becameclient" readonly="true" class="uneditable" value="<?php echo formatFromSQLDate($therecord["becameclient"])?>" size="8" /> 
     108                                <input type="text" id="becameclient" name="becameclient" readonly="readonly" class="uneditable" value="<?php echo formatFromSQLDate($therecord["becameclient"])?>" size="8" /> 
    109109                        </p> 
    110110                         
  • trunk/phpbms/modules/bms/clients_email.php

    r204 r205  
    132132                                <label for="therecords">to</label><br />                         
    133133                                <select id="therecords" name="therecords" onchange="showSavedSearches(this);"> 
    134                                         <option value="selected" <?php if ($therecord["emailto"]=="selected") echo "selected"?>>e-mail addresses from selected records (<?php echo count($_SESSION["emailids"]) ?> record<?php if(count($_SESSION["emailids"])>1) echo "s"?>)</option> 
    135                                         <option value="savedsearch" <?php if ($therecord["emailto"]!="selected" AND $therecord["emailto"]!="all") echo "selected"?>>e-mail addresses from saved search...</option> 
     134                                        <option value="selected" <?php if ($therecord["emailto"]=="selected") echo "selected=\"selected\""?>>e-mail addresses from selected records (<?php echo count($_SESSION["emailids"]) ?> record<?php if(count($_SESSION["emailids"])>1) echo "s"?>)</option> 
     135                                        <option value="savedsearch" <?php if ($therecord["emailto"]!="selected" AND $therecord["emailto"]!="all") echo "selected=\"selected\""?>>e-mail addresses from saved search...</option> 
    136136                                </select>                                
    137137                                <?php if($therecord["emailto"]!="selected" AND $therecord["emailto"]!="all"){ 
     
    198198                        <p><?php showSavedProjects()?></p> 
    199199                        <p align="right"> 
    200                                 <input type="button" name="deleteproject" id="deleteproject" value="delete project" class="Buttons" disabled="true" onclick="deleteProject()" /> 
    201                                 <input type="button" name="loadproject" id="loadproject" value="load project" class="Buttons" disabled="true" onclick="loadProject()" /> 
     200                                <input type="button" name="deleteproject" id="deleteproject" value="delete project" class="Buttons" disabled="disabled" onclick="deleteProject()" /> 
     201                                <input type="button" name="loadproject" id="loadproject" value="load project" class="Buttons" disabled="disabled" onclick="loadProject()" /> 
    202202                                <input type="button" name="closeproject" id="closeproject" value="cancel" onclick="hideSavedProjects()" class="Buttons" /> 
    203203                        </p> 
     
    227227                                <table id="results" cellpadding="0" cellspacing="0" border="0" class="querytable"> 
    228228                                        <tr> 
    229                                                 <th nowrap id="tablereference">#</th> 
    230                                                 <th nowrap>Client ID</th> 
    231                                                 <th nowrap align="left">Name</th> 
    232                                                 <th nowrap>E-Mail Address</th> 
    233                                                 <th nowrap width=50% align="right">Status</th> 
     229                                                <th nowrap="nowrap" id="tablereference">#</th> 
     230                                                <th nowrap="nowrap">Client ID</th> 
     231                                                <th nowrap="nowrap" align="left">Name</th> 
     232                                                <th nowrap="nowrap">E-Mail Address</th> 
     233                                                <th nowrap="nowrap" width=50% align="right">Status</th> 
    234234                                        </tr> 
    235235                                        <tr class="queryfooter" id="lastrow"> 
  • trunk/phpbms/modules/bms/clients_purchasehistory.php

    r204 r205  
    123123                           <label for="status">type</label><br /> 
    124124                           <select name="status" id="status"> 
    125                                         <option value="Orders/Invoices" <?php if($_POST["status"]=="Orders/Invoices") echo "selected"?>>Orders/Invoices</option> 
    126                                         <option value="Invoices" <?php if($_POST["status"]=="Invoices") echo "selected"?>>Invoices</option> 
    127                                         <option value="Orders" <?php if($_POST["status"]=="Orders") echo "selected"?>>Orders</option> 
     125                                        <option value="Orders/Invoices" <?php if($_POST["status"]=="Orders/Invoices") echo "selected=\"selected\""?>>Orders/Invoices</option> 
     126                                        <option value="Invoices" <?php if($_POST["status"]=="Invoices") echo "selected=\"selected\""?>>Invoices</option> 
     127                                        <option value="Orders" <?php if($_POST["status"]=="Orders") echo "selected=\"selected\""?>>Orders</option> 
    128128                           </select>                                                             
    129129                        </p> 
     
    145145        <table border="0" cellpadding="0" cellspacing="0" class="querytable"> 
    146146                <tr> 
    147                         <th align="left" nowrap class="queryheader" colspan="4">invoice</th> 
    148                         <th align="left" nowrap class="queryheader" colspan="3">product</th>             
    149                         <th align="left" nowrap class="queryheader" colspan="2">line item</th> 
     147                        <th align="left" nowrap="nowrap" class="queryheader" colspan="4">invoice</th> 
     148                        <th align="left" nowrap="nowrap" class="queryheader" colspan="3">product</th>            
     149                        <th align="left" nowrap="nowrap" class="queryheader" colspan="2">line item</th> 
    150150                </tr> 
    151151                <tr> 
    152                         <th align="center" nowrap class="queryheader" colspan=2>id</th> 
    153                         <th align="left" nowrap class="queryheader">type</th> 
    154                         <th align="left" nowrap class="queryheader">date</th> 
    155                         <th nowrap class="queryheader" align="left">part num. </th> 
     152                        <th align="center" nowrap="nowrap" class="queryheader" colspan="2">id</th> 
     153                        <th align="left" nowrap="nowrap" class="queryheader">type</th> 
     154                        <th align="left" nowrap="nowrap" class="queryheader">date</th> 
     155                        <th nowrap="nowrap" class="queryheader" align="left">part num. </th> 
    156156                        <th width="100%" class="queryheader" align="left">name</th> 
    157                         <th align="right" nowrap class="queryheader">price</th> 
    158                         <th align="center" nowrap class="queryheader">qty.</th> 
    159                         <th align="right" nowrap class="queryheader">ext.</th> 
     157                        <th align="right" nowrap="nowrap" class="queryheader">price</th> 
     158                        <th align="center" nowrap="nowrap" class="queryheader">qty.</th> 
     159                        <th align="right" nowrap="nowrap" class="queryheader">ext.</th> 
    160160                </tr> 
    161161    <?php  
     
    168168        <tr class="row<?php echo $row?>"> 
    169169                <td > 
    170                         <button type="button" class="invisibleButtons" onClick="location.href='<?php echo getAddEditFile(3) ?>?id=<?php echo $therecord["id"]?>'"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/image/button-edit.png" align="middle" alt="edit" width="16" height="16" border="0" /></button> 
     170                        <button type="button" class="invisibleButtons" onclick="location.href='<?php echo getAddEditFile(3) ?>?id=<?php echo $therecord["id"]?>'"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/image/button-edit.png" align="middle" alt="edit" width="16" height="16" border="0" /></button> 
    171171                </td> 
    172                 <td align="left" nowrap><?php echo $therecord["id"]?$therecord["id"]:"&nbsp;" ?></td> 
    173                 <td align="left" nowrap><?php echo $therecord["type"]?$therecord["type"]:"&nbsp;" ?></td> 
    174                 <td align="left" nowrap><?php echo $therecord["thedate"]?formatFromSQLDate($therecord["thedate"]):"&nbsp;" ?></td> 
    175                 <td nowrap><?php echo $therecord["partnumber"]?></td> 
     172                <td align="left" nowrap="nowrap"><?php echo $therecord["id"]?$therecord["id"]:"&nbsp;" ?></td> 
     173                <td align="left" nowrap="nowrap"><?php echo $therecord["type"]?$therecord["type"]:"&nbsp;" ?></td> 
     174                <td align="left" nowrap="nowrap"><?php echo $therecord["thedate"]?formatFromSQLDate($therecord["thedate"]):"&nbsp;" ?></td> 
     175                <td nowrap="nowrap"><?php echo $therecord["partnumber"]?></td> 
    176176                <td ><?php echo $therecord["partname"]?></td> 
    177                 <td align="right" nowrap><?php echo "\$".number_format($therecord["price"],2)?></td> 
    178                 <td align="center" nowrap><?php echo $therecord["qty"]?></td> 
    179                 <td align="right" nowrap><?php echo "\$".number_format($therecord["extended"],2)?></td> 
     177                <td align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["price"],2)?></td> 
     178                <td align="center" nowrap="nowrap"><?php echo $therecord["qty"]?></td> 
     179                <td align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["extended"],2)?></td> 
    180180        </tr> 
    181181    <?php }//end while ?> 
     
    184184        <?php }?>        
    185185        <tr> 
    186          <td align="center" class="queryfooter" colspan=2>&nbsp;</td> 
     186         <td align="center" class="queryfooter" colspan="2">&nbsp;</td> 
    187187         <td align="center" class="queryfooter">&nbsp;</td> 
    188188         <td align="center" class="queryfooter">&nbsp;</td> 
  • trunk/phpbms/modules/bms/discounts_addedit.php

    r204 r205  
    5555<script language="JavaScript" src="javascript/discount.js" type="text/javascript"></script> 
    5656</head> 
    57 <body onLoad="init()"><?php include("../../menu.php")?> 
     57<body onload="init()"><?php include("../../menu.php")?> 
    5858<div class="bodyline"> 
    59         <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onSubmit="return validateForm(this);"> 
     59        <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onsubmit="return validateForm(this);"> 
    6060        <div id="topButtons"> 
    6161                  <?php showSaveCancel(1); ?> 
     
    6868                        <p> 
    6969                                <label for="id">id</label><br /> 
    70                                 <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="22" maxlength="5" readonly="true" class="uneditable" /> 
     70                                <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="22" maxlength="5" readonly="readonly" class="uneditable" /> 
    7171                        </p>                     
    7272                        <p> 
     
    100100                        <p> 
    101101                                <strong>type</strong><br /> 
    102                                 <input type="radio" class="radiochecks" id="typePercentage" name="type" value="percent" <?php if($therecord["type"]=="percent") echo "checked" ?>  onClick="changeType()" /><label for="typePercentage">percentage</label> 
     102                                <input type="radio" class="radiochecks" id="typePercentage" name="type" value="percent" <?php if($therecord["type"]=="percent") echo "checked=\"checked\"" ?>  onclick="changeType()" /><label for="typePercentage">percentage</label> 
    103103                                &nbsp; 
    104                                 <input type="radio" class="radiochecks" id="typeAmount" name="type" value="amount" <?php if($therecord["type"]=="amount") echo "checked" ?> onClick="changeType()" /><label for="typeAmount">amount</label> 
     104                                <input type="radio" class="radiochecks" id="typeAmount" name="type" value="amount" <?php if($therecord["type"]=="amount") echo "checked=\"checked\"" ?> onclick="changeType()" /><label for="typeAmount">amount</label> 
    105105                        </p> 
    106106                        <p id="pValue"> 
  • trunk/phpbms/modules/bms/include/clients_email_include.php

    r204 r205  
    6666                                                        ?><option value="NA">----- user ------</option><?php  
    6767                                                } 
    68                                                 ?><option value="<?php echo $therecord["id"]?>" <?php if($therecord["id"]==$selected) echo "selected"?>><?php echo $therecord["name"]?></option><?php  
     68                                                ?><option value="<?php echo $therecord["id"]?>" <?php if($therecord["id"]==$selected) echo "selected=\"selected\""?>><?php echo $therecord["name"]?></option><?php  
    6969                                        }// end while 
    7070                                }//end if 
  • trunk/phpbms/modules/bms/invoicestatuses_addedit.php

    r204 r205  
    5555<body><?php include("../../menu.php")?> 
    5656<div class="bodyline"> 
    57         <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     57        <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    5858        <div id="topButtons"> 
    5959                  <?php showSaveCancel(1); ?> 
     
    6565                <p> 
    6666                        <label for="id">id</label><br /> 
    67                         <input name="id" id="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable" />                
     67                        <input name="id" id="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable" />            
    6868                </p> 
    6969                <p>              
  • trunk/phpbms/modules/bms/invoices_addedit.php

    r204 r205  
    6464<?php $paymentMethods=getPayments($dblink)?> 
    6565</head> 
    66 <body onLoad="initializePage()"><?php include("../../menu.php")?> 
    67 <form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="setLineItems();return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     66<body onload="initializePage()"><?php include("../../menu.php")?> 
     67<form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="setLineItems();return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    6868<?php invoice_tabs("General",$therecord["id"]);?><div class="bodyline"> 
    6969        <div id="topButtons"> 
    7070                  <?php if($therecord["id"]){ 
    7171                                ?><div id="printButton"> 
    72                                 <input name="doprint" type="button" value="print" accesskey="p" onClick="doPrint('<?php echo $_SESSION["app_path"]?>',<?php echo $therecord["id"]?>)" class="Buttons" /> 
     72                                <input name="doprint" type="button" value="print" accesskey="p" onclick="doPrint('<?php echo $_SESSION["app_path"]?>',<?php echo $therecord["id"]?>)" class="Buttons" /> 
    7373                        </div><?php  
    7474                        }//end if 
     
    102102                                        <label for="id">id</label> 
    103103                                        <br /> 
    104                                         <input name="id" id="id" type="text" value="<?php echo $therecord["id"]; ?>" size="11" maxlength="11" readonly="true" class="uneditable" tabindex="0"  /> 
     104                                        <input name="id" id="id" type="text" value="<?php echo $therecord["id"]; ?>" size="11" maxlength="11" readonly="readonly" class="uneditable" tabindex="0"  /> 
    105105                                </p> 
    106106                                 
     
    108108                                <label for="type" class="important">type</label><br /> 
    109109                                        <?php  if($therecord["type"]=="VOID" || $therecord["type"]=="Invoice") {?> 
    110                                                 <input id="type" name="type" type="text" value="<?php echo htmlQuotes($therecord["type"])?>" size="11" maxlength="11" readonly="true" class="uneditable important" tabindex=9 /> 
     110                                                <input id="type" name="type" type="text" value="<?php echo htmlQuotes($therecord["type"])?>" size="11" maxlength="11" readonly="readonly" class="uneditable important" tabindex=9 /> 
    111111                                        <?php }else { 
    112112                                                $thechoices=array(); 
     
    123123                                        <label for="ponumber">client PO#</label> 
    124124                                        <br /> 
    125                                         <input name="ponumber" id="ponumber" type="text" value="<?php echo htmlQuotes($therecord["ponumber"])?>" size="11" maxlength="64" tabindex=12 /> 
     125                                        <input name="ponumber" id="ponumber" type="text" value="<?php echo htmlQuotes($therecord["ponumber"])?>" size="11" maxlength="64" tabindex="12" /> 
    126126                                </p> 
    127127                        </div>                   
     
    164164                        <legend><label for="address1">shipping address</label></legend>          
    165165                        <p> 
    166                                 <input name="address1" id="address1" type="text" value="<?php echo htmlQuotes($therecord["address1"])?>" size="65" maxlength="128" tabindex=3 /><br /> 
     166                                <input name="address1" id="address1" type="text" value="<?php echo htmlQuotes($therecord["address1"])?>" size="65" maxlength="128" tabindex="3" /><br /> 
    167167                                <input name="address2" id="address2" type="text"  value="<?php echo htmlQuotes($therecord["address2"])?>" size="65" maxlength="128" tabindex="4" /> 
    168168                        </p> 
     
    173173                        <p class="cszP"> 
    174174                                <label for="state">state/prov</label><br /> 
    175                                 <input name="state" type="text" id="state" value="<?php echo htmlQuotes($therecord["state"])?>" size="3" maxlength="5" tabindex=6 />                     
     175                                <input name="state" type="text" id="state" value="<?php echo htmlQuotes($therecord["state"])?>" size="3" maxlength="5" tabindex="6" /> 
    176176                        </p> 
    177177                        <p class="cszP"> 
    178178                                <label for="postalcode">zip/postal code</label><br /> 
    179                                 <input name="postalcode" type="text" id="postalcode" value="<?php echo htmlQuotes($therecord["postalcode"])?>" size="12" maxlength="15" tabindex=7 /> 
     179                                <input name="postalcode" type="text" id="postalcode" value="<?php echo htmlQuotes($therecord["postalcode"])?>" size="12" maxlength="15" tabindex="7" /> 
    180180                        </p> 
    181181                        <p id="countryP"> 
    182182                                <label for="country">country</label><br /> 
    183                                 <input name="country" id="country" type="text" value="<?php echo htmlQuotes($therecord["country"])?>" size="45" maxlength="64" tabindex=8 /> 
     183                                <input name="country" id="country" type="text" value="<?php echo htmlQuotes($therecord["country"])?>" size="45" maxlength="64" tabindex="8" /> 
    184184                        </p> 
    185185                </fieldset> 
     
    210210        <table border="0" cellpadding="0" cellspacing="0" id="LITable"> 
    211211                <tr id="LIHeader"> 
    212                         <th nowrap class="queryheader" align="left">part number</th> 
    213                         <th nowrap class="queryheader" align="left" id="partnameHeader"><div>name</div></th> 
    214                         <th nowrap class="queryheader" align="left" id="memoHeader">memo</th> 
    215                         <th align="right" nowrap class="queryheader">price</th> 
    216                         <th align="center" nowrap class="queryheader">qty.</th> 
    217                         <th align="right" nowrap class="queryheader">extended</th> 
    218                         <th nowrap class="queryheader">&nbsp;</th> 
     212                        <th nowrap="nowrap" class="queryheader" align="left">part number</th> 
     213                        <th nowrap="nowrap" class="queryheader" align="left" id="partnameHeader"><div>name</div></th> 
     214                        <th nowrap="nowrap" class="queryheader" align="left" id="memoHeader">memo</th> 
     215                        <th align="right" nowrap="nowrap" class="queryheader">price</th> 
     216                        <th align="center" nowrap="nowrap" class="queryheader">qty.</th> 
     217                        <th align="right" nowrap="nowrap" class="queryheader">extended</th> 
     218                        <th nowrap="nowrap" class="queryheader">&nbsp;</th> 
    219219                </tr> 
    220220                <?php if($therecord["type"]!="Invoice"){?> 
    221221                <tr id="LIAdd"> 
    222                         <td nowrap> 
     222                        <td nowrap="nowrap"> 
    223223                        <?php fieldAutofill("partnumber","",4,"products.id","products.partnumber","products.partname","products.status=\"In Stock\" and products.inactive=0",Array("size"=>"16","maxlength"=>"32","tabindex"=>"15"),false,"") ?> 
    224224                        <script language="JavaScript" type="text/javascript"> 
     
    226226                        </script> 
    227227                        </td> 
    228                         <td nowrap> 
     228                        <td nowrap="nowrap"> 
    229229                        <?php fieldAutofill("partname","",4,"products.id","products.partname","products.partnumber","products.status=\"In Stock\" and products.inactive=0",Array("size"=>"20","maxlength"=>"128","tabindex"=>"16"),false,"") ?> 
    230230                        <script language="JavaScript" type="text/javascript"> 
     
    233233                        </td> 
    234234                        <td><input name="memo" type="text" id="memo" size="12" maxlength="255" tabindex="17" /></td> 
    235                         <td align="right" nowrap><input name="price" type="text" id="price" value="<?php echo htmlQuotes(numberToCurrency(0))?>" size="10" maxlength="16" onchange="calculateExtended()" class="fieldCurrency"  tabindex="18"  /></td> 
    236                         <td align="center" nowrap><input name="qty" type="text" id="qty" value="1" size="5" maxlength="16" onchange="calculateExtended()" tabindex="19"  /></td> 
    237                         <td align="right" nowrap><input name="extended" type="text" id="extended" class="uneditable fieldCurrency" value="<?php echo htmlQuotes(numberToCurrency(0))?>" size="12" maxlength="16" readonly="true" /></td> 
    238                         <td nowrap align="center"><button type="button" onclick="addLine(this.parentNode);" tabindex="20" class="graphicButtons buttonPlus" title="Add Line Item"><span>+</span></button></td> 
     235                        <td align="right" nowrap="nowrap"><input name="price" type="text" id="price" value="<?php echo htmlQuotes(numberToCurrency(0))?>" size="10" maxlength="16" onchange="calculateExtended()" class="fieldCurrency"  tabindex="18"  /></td> 
     236                        <td align="center" nowrap="nowrap"><input name="qty" type="text" id="qty" value="1" size="5" maxlength="16" onchange="calculateExtended()" tabindex="19"  /></td> 
     237                        <td align="right" nowrap="nowrap"><input name="extended" type="text" id="extended" class="uneditable fieldCurrency" value="<?php echo htmlQuotes(numberToCurrency(0))?>" size="12" maxlength="16" readonly="readonly" /></td> 
     238                        <td nowrap="nowrap" align="center"><button type="button" onclick="addLine(this.parentNode);" tabindex="20" class="graphicButtons buttonPlus" title="Add Line Item"><span>+</span></button></td> 
    239239                </tr><?php }//end if 
    240240        $lineitemsresult=getLineItems($therecord["id"]); 
     
    244244        while($lineitem=mysql_fetch_array($lineitemsresult)){ 
    245245  ?><tr class="lineitems" id="LIN<?php echo $lineitem["id"]?>"> 
    246                         <td nowrap class="lineitemsLeft important"><?php if($lineitem["partnumber"]) echo htmlQuotes($lineitem["partnumber"]); else echo "&nbsp;";?></td> 
     246                        <td nowrap="nowrap" class="lineitemsLeft important"><?php if($lineitem["partnumber"]) echo htmlQuotes($lineitem["partnumber"]); else echo "&nbsp;";?></td> 
    247247                        <td width="150"><strong><?php if($lineitem["partname"]) echo htmlQuotes($lineitem["partname"]); else echo "&nbsp;";?></strong></td> 
    248248                        <td><?php if($lineitem["memo"]) echo htmlQuotes($lineitem["memo"]); else echo "&nbsp;"?></td> 
    249                         <td align="right" nowrap><?php echo htmlQuotes(numberToCurrency($lineitem["unitprice"]))?></td> 
    250                         <td align="center" nowrap><?php echo $lineitem["quantity"]?></td> 
    251                         <td align="right" nowrap><?php echo htmlQuotes(numbertoCurrency($lineitem["extended"]))?></td> 
     249                        <td align="right" nowrap="nowrap"><?php echo htmlQuotes(numberToCurrency($lineitem["unitprice"]))?></td> 
     250                        <td align="center" nowrap="nowrap"><?php echo $lineitem["quantity"]?></td> 
     251                        <td align="right" nowrap="nowrap"><?php echo htmlQuotes(numbertoCurrency($lineitem["extended"]))?></td> 
    252252                        <td align="center"><span class="LIRealInfo"><?php echo $lineitem["productid"]?>[//]<?php echo $lineitem["unitcost"]?>[//]<?php echo $lineitem["unitweight"]?>[//]<?php echo $lineitem["numprice"]?>[//]<?php echo $lineitem["quantity"]?>[//]<?php echo htmlQuotes($lineitem["memo"])?>[//]<?php echo $lineitem["taxable"]?></span> 
    253                                 <?php if($therecord["type"]=="Invoice") echo "&nbsp;"; else {?><button type="button" class="graphicButtons buttonMinus" onClick="return deleteLine(this)" tabindex="21" title="Remove line item"><span>-</span></button><?php } ?> 
     253                                <?php if($therecord["type"]=="Invoice") echo "&nbsp;"; else {?><button type="button" class="graphicButtons buttonMinus" onclick="return deleteLine(this)" tabindex="21" title="Remove line item"><span>-</span></button><?php } ?> 
    254254                        </td> 
    255255                </tr> 
     
    286286                                        <p id="pTotalweight"> 
    287287                                                <label for="totalweight">total wt.</label><br/> 
    288                                                 <input id="totalweight" name="totalweight" type="text" value="<?php echo $therecord["totalweight"]?>" size="5" maxlength="15" readonly="true" class="uneditable" />                      
     288                                                <input id="totalweight" name="totalweight" type="text" value="<?php echo $therecord["totalweight"]?>" size="5" maxlength="15" readonly="readonly" class="uneditable" />                  
    289289                                        </p> 
    290290                                         
     
    381381                                                        processing center. 
    382382                                                </p> 
    383                                                 <p><label for="paymentNotice Results">payment process results</label><br /><textarea readonly="readonly" id="paymentNoticeResults" rows="5" cols=""></textarea></p> 
     383                                                <p><label for="paymentNoticeResults">payment process results</label><br /><textarea readonly="readonly" id="paymentNoticeResults" rows="5" cols=""></textarea></p> 
    384384                                                <p align="right"> 
    385385                                                        <button type="button" class="Buttons" onclick="performPaymentProcess('<?php echo $_SESSION["app_path"] ?>')">process payment</button> 
     
    414414  </tr><tr> 
    415415                <td colspan="2" class="invoiceTotalLabels"><div>subtotal</div></td> 
    416                 <td class="totalItems"><input class="uneditable fieldCurrency fieldTotal" name="totaltni" id="totaltni" type="text" value="<?php echo numberToCurrency($therecord["totaltni"])?>" size="12"  maxlength="15" readonly="true" onchange="calculateTotal();" /></td> 
     416                <td class="totalItems"><input class="uneditable fieldCurrency fieldTotal" name="totaltni" id="totaltni" type="text" value="<?php echo numberToCurrency($therecord["totaltni"])?>" size="12"  maxlength="15" readonly="readonly" onchange="calculateTotal();" /></td> 
    417417                <td class="totalItems">&nbsp;</td> 
    418418        </tr> 
     
    430430                <td colspan="2" class="invoiceTotalLabels important"><div>total</div></td> 
    431431                <td class="totalItems"> 
    432                         <input class="uneditable fieldCurrency important fieldTotal" name="totalti" id="totalti" type="text" value="<?php echo numberToCurrency($therecord["totalti"])?>" size="12" maxlength="15" onchange="calculateTotal();"  readonly="true" /> 
     432                        <input class="uneditable fieldCurrency important fieldTotal" name="totalti" id="totalti" type="text" value="<?php echo numberToCurrency($therecord["totalti"])?>" size="12" maxlength="15" onchange="calculateTotal();"  readonly="readonly" /> 
    433433                        <input id="totalcost" name="totalcost" type="hidden" value="<?php echo $therecord["totalcost"] ?>" /> 
    434434                        <input id="totaltaxable" name="totaltaxable" type="hidden" value="<?php echo $therecord["totaltaxable"] ?>" /> 
  • trunk/phpbms/modules/bms/invoices_statushistory.php

    r204 r205  
    102102        <form action="<?PHP echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="return validateForm(this);"> 
    103103                <p> 
    104                         <input accesskey="s" title="(alt+s)" name="command" type="submit" value="update statuses" class="Buttons" <?php if($refrecord["type"]=="Invoice") echo "disabled=\"disabled\""?>/> 
     104                        <input accesskey="s" title="(access key+s)" name="command" type="submit" value="update statuses" class="Buttons" <?php if($refrecord["type"]=="Invoice") echo "disabled=\"disabled\""?>/> 
    105105                </p> 
    106106                <div class="fauxP"> 
  • trunk/phpbms/modules/bms/javascript/clientemail.js

    r204 r205  
    107107        else{ 
    108108                text="<p><input type=\"text\" id=\"saveInput\" maxlength=\"128\"onkeyup=\"updateSaveProject(this)\" /></p>"; 
    109                 text+="<p align=\"right\"><input type=\"button\" class=\"Buttons\" id=\"saveSave\" value=\"save\" disabled=\"true\" onclick=\"finishSaveProject();\" />"; 
     109                text+="<p align=\"right\"><input type=\"button\" class=\"Buttons\" id=\"saveSave\" value=\"save\" disabled=\"disabled\" onclick=\"finishSaveProject();\" />"; 
    110110                text+="&nbsp;<input class=\"Buttons\" type=\"button\" value=\"cancel\" id=\"saveCancel\" onclick=\"closeModal()\" /></>"; 
    111111                showModal(text,"Save Project As...",300); 
  • trunk/phpbms/modules/bms/javascript/invoice.js

    r204 r205  
    421421                                message+=       "Make sure the client has been entered and that they have purchased<br />"; 
    422422                                message+=       "any prerequiste products before adding this product."; 
    423                                 message+=       "<DIV align=\"right\"><button class=\"Buttons\" onClick=\"closeModal()\" style=\"width:75px\">ok</button></DIV>"; 
     423                                message+=       "<DIV align=\"right\"><button class=\"Buttons\" onclick=\"closeModal()\" style=\"width:75px\">ok</button></DIV>"; 
    424424 
    425425                                 
     
    836836        for(i=0;i<theform.length;i++){ 
    837837                if(theform[i].type=="submit" && theform[i].value=="save"){                       
    838                         theform[i].disabled="true"; 
     838                        theform[i].disabled="disabled"; 
    839839                } 
    840840        } 
  • trunk/phpbms/modules/bms/paymentmethods_addedit.php

    r204 r205  
    5555<body><?php include("../../menu.php")?> 
    5656<div class="bodyline"> 
    57         <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     57        <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    5858        <div id="topButtons"> 
    5959                  <?php showSaveCancel(1); ?> 
     
    6565                <p> 
    6666                        <label for="id">id</label><br /> 
    67                         <input name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable" /> 
     67                        <input name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable" /> 
    6868                </p> 
    6969                <p> 
     
    8888                                <label for="type">type</label><br /> 
    8989                                <select name="type"> 
    90                                         <option value="" <?PHP if($therecord["type"]=="") echo "selected"; ?>>&lt;None&gt;</option> 
    91                                         <option value="draft" <?PHP if($therecord["type"]=="draft") echo "selected"; ?>>Draft</option> 
    92                                         <option value="charge"<?PHP if($therecord["type"]=="charge") echo "selected"; ?>>Charge</option> 
    93                                         <option value="receivable"<?PHP if($therecord["type"]=="receivable") echo "selected"; ?>>Receivable</option> 
     90                                        <option value="" <?PHP if($therecord["type"]=="") echo "selected=\"selected\""; ?>>&lt;None&gt;</option> 
     91                                        <option value="draft" <?PHP if($therecord["type"]=="draft") echo "selected=\"selected\""; ?>>Draft</option> 
     92                                        <option value="charge"<?PHP if($therecord["type"]=="charge") echo "selected=\"selected\""; ?>>Charge</option> 
     93                                        <option value="receivable"<?PHP if($therecord["type"]=="receivable") echo "selected=\"selected\""; ?>>Receivable</option> 
    9494                                </select> 
    9595                        </p> 
  • trunk/phpbms/modules/bms/productcategories_addedit.php

    r204 r205  
    5656<body><?php include("../../menu.php")?> 
    5757<div class="bodyline"> 
    58         <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     58        <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    5959        <div id="topButtons"> 
    6060                  <?php showSaveCancel(1); ?> 
     
    6666                <p> 
    6767                        <label for="id">id</label><br /> 
    68                         <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable" style="" /> 
     68                        <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable" style="" /> 
    6969                </p> 
    7070                <p> 
  • trunk/phpbms/modules/bms/products_addedit.php

    r204 r205  
    6363<body><?php include("../../menu.php")?> 
    6464 
    65 <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" enctype="multipart/form-data" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     65<form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" enctype="multipart/form-data" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    6666<?php product_tabs("General",$therecord["id"]);?><div class="bodyline"> 
    6767 
     
    7474                        <p> 
    7575                                <label for="id">id</label><br /> 
    76                                 <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable" />                        
     76                                <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable" />                    
    7777                        </p> 
    7878 
     
    8787                        <p> 
    8888                                <span class="important">product type</span><br /> 
    89                                 <input type="radio" name="type" id="typeInventory" value="Inventory" <?php if($therecord["type"]=="Inventory") echo "checked"?> class="radiochecks" align="baseline" tabindex="70"/><label for="typeInventory">inventory</label><br /> 
    90                                 <input type="radio" name="type" id="typeNonInventory" value="Non-Inventory" <?php if($therecord["type"]=="Non-Inventory") echo "checked"?> class="radiochecks" align="baseline" tabindex="80"/><label for="typeNonInventory" >non-inventory</label><br /> 
    91                                 <input type="radio" name="type" id="typeService" value="Service" <?php if($therecord["type"]=="Service") echo "checked"?> class="radiochecks" align="baseline" tabindex="90"/><label for="typeService" >service</label><br /> 
    92                                 <input type="radio" name="type" id="typeKit" value="Kit" <?php if($therecord["type"]=="Kit") echo "checked"?> class="radiochecks" align="baseline" tabindex="100"/><label for="typeKit" >kit</label><br /> 
    93                                 <input type="radio" name="type" id="typeAssembly" value="Assembly" <?php if($therecord["type"]=="Assembly") echo "checked"?> class="radiochecks" align="baseline" tabindex="110"/><label for="typeAssembly">assembly</label> 
     89                                <input type="radio" name="type" id="typeInventory" value="Inventory" <?php if($therecord["type"]=="Inventory") echo "checked=\"checked\""?> class="radiochecks" tabindex="70"/><label for="typeInventory">inventory</label><br /> 
     90                                <input type="radio" name="type" id="typeNonInventory" value="Non-Inventory" <?php if($therecord["type"]=="Non-Inventory") echo "checked=\"checked\""?> class="radiochecks" tabindex="80"/><label for="typeNonInventory" >non-inventory</label><br /> 
     91                                <input type="radio" name="type" id="typeService" value="Service" <?php if($therecord["type"]=="Service") echo "checked=\"checked\""?> class="radiochecks" tabindex="90"/><label for="typeService" >service</label><br /> 
     92                                <input type="radio" name="type" id="typeKit" value="Kit" <?php if($therecord["type"]=="Kit") echo "checked=\"checked\""?> class="radiochecks" tabindex="100"/><label for="typeKit" >kit</label><br /> 
     93                                <input type="radio" name="type" id="typeAssembly" value="Assembly" <?php if($therecord["type"]=="Assembly") echo "checked=\"checked\""?> class="radiochecks" tabindex="110"/><label for="typeAssembly">assembly</label> 
    9494                        </p> 
    9595                         
    9696                        <p> 
    9797                                <span class="important">available status</span><br /> 
    98                                 <input type="radio" name="status" id="statusInStock" value="In Stock" <?php if($therecord["status"]=="In Stock") echo "checked"?> class="radiochecks" align="baseline" tabindex="120"/> <label for="statusInStock">in stock / available</label><br /> 
    99                                 <input type="radio" name="status" id="statusOutOfStock" value="Out of Stock" <?php if($therecord["status"]=="Out of Stock") echo "checked"?> class="radiochecks" align="baseline" tabindex="130"/><label for="statusOutOfStock">out of stock / unavailable</label><br /> 
    100                                 <input type="radio" name="status" id="statusBackordered" value="Backordered" <?php if($therecord["status"]=="Backordered") echo "checked"?> class="radiochecks" align="baseline" tabindex="140"/><label for="statusBackordered">backordered</label> 
     98                                <input type="radio" name="status" id="statusInStock" value="In Stock" <?php if($therecord["status"]=="In Stock") echo "checked=\"checked\""?> class="radiochecks" tabindex="120"/> <label for="statusInStock">in stock / available</label><br /> 
     99                                <input type="radio" name="status" id="statusOutOfStock" value="Out of Stock" <?php if($therecord["status"]=="Out of Stock") echo "checked=\"checked\""?> class="radiochecks" tabindex="130"/><label for="statusOutOfStock">out of stock / unavailable</label><br /> 
     100                                <input type="radio" name="status" id="statusBackordered" value="Backordered" <?php if($therecord["status"]=="Backordered") echo "checked=\"checked\""?> class="radiochecks" tabindex="140"/><label for="statusBackordered">backordered</label> 
    101101                        </p> 
    102102                </fieldset> 
     
    125125                         
    126126                        <div class="fauxP"> 
    127                                 <label for="ds-categoryid" class="important">product category</label><br /> 
     127                                <label for="categoryid" class="important">product category</label><br /> 
    128128                                <?php displayProductCategories($therecord["categoryid"],$dblink) ?> 
    129129                        </div> 
     
    170170                        <p> 
    171171                                <br /> 
    172                                 <input type="button" name="updateprice" value="update price" class="Buttons" onClick="calculatePrice()" tabindex="160" /> 
     172                                <input type="button" name="updateprice" value="update price" class="Buttons" onclick="calculatePrice()" tabindex="160" /> 
    173173                        </p>                     
    174174                </fieldset> 
     
    226226                                <?php echo $therecord["webdescription"] ?> 
    227227                                </div>                   
    228                                 <div><input id="buttonWebPreview" type="button" class="Buttons" onClick="editPreviewWebDesc(this)" value="<?php if(!$therecord["webdescription"]) echo "preview"; else echo "edit"?>" tabindex="250"/></div> 
     228                                <div><input id="buttonWebPreview" type="button" class="Buttons" onclick="editPreviewWebDesc(this)" value="<?php if(!$therecord["webdescription"]) echo "preview"; else echo "edit"?>" tabindex="250"/></div> 
    229229 
    230230                        </div> 
     
    239239                                upload thumbnail<br /> 
    240240                                <input type="hidden" id="thumbchange" name="thumbchange" value="" /> 
    241                                 <div id="thumbdelete" style="display:<?php if($therecord["thumbnailmime"]) echo "block"; else echo "none";?>"><input type="button" class="Buttons" value="delete thumbnail" onClick="deletePicture('thumb')" tabindex="260"/></div> 
     241                                <div id="thumbdelete" style="display:<?php if($therecord["thumbnailmime"]) echo "block"; else echo "none";?>"><input type="button" class="Buttons" value="delete thumbnail" onclick="deletePicture('thumb')" tabindex="260"/></div> 
    242242                                <div id="thumbadd" style="display:<?php if($therecord["thumbnailmime"]) echo "none"; else echo "block";?>"><input id="thumbnailupload" name="thumbnailupload" type="file" size="40" onchange="updatePictureStatus('thumb','upload')" tabindex="260" /></div> 
    243243                        </div> 
     
    252252                                upload picture <br /> 
    253253                                <input type="hidden" id="picturechange" name="picturechange" value="" /> 
    254                                 <div id="picturedelete" style="display:<?php if($therecord["picturemime"]) echo "block"; else echo "none";?>"><input type="button" class="Buttons" value="delete picture" onClick="deletePicture('picture')" tabindex="270"/></div>                              
     254                                <div id="picturedelete" style="display:<?php if($therecord["picturemime"]) echo "block"; else echo "none";?>"><input type="button" class="Buttons" value="delete picture" onclick="deletePicture('picture')" tabindex="270"/></div>                              
    255255                                <div id="pictureadd" style="display:<?php if($therecord["picturemime"]) echo "none"; else echo "block";?>"><input id="pictureupload" name="pictureupload" type="file" size="40" onchange="updatePictureStatus('picture','upload')" tabindex="270"/></div>                                
    256256                        </div> 
  • trunk/phpbms/modules/bms/products_prereq.php

    r204 r205  
    8989                <table border="0" cellpadding="3" cellspacing="0" class="querytable"> 
    9090                <tr> 
    91                  <th align="left" nowrap class="queryheader">Part Number</th> 
    92                  <th align="left" nowrap class="queryheader">Name</th> 
     91                 <th align="left" nowrap="nowrap" class="queryheader">Part Number</th> 
     92                 <th align="left" nowrap="nowrap" class="queryheader">Name</th> 
    9393                 <th align="left" width=100% class="queryheader">Description</th> 
    94                  <th align="center" nowrap class="queryheader">&nbsp;</th> 
     94                 <th align="center" nowrap="nowrap" class="queryheader">&nbsp;</th> 
    9595                </tr> 
    9696                <?php    
     
    9999        ?> 
    100100                <tr> 
    101                         <td align="left" nowrap><?php echo $prereq["partnumber"] ?></td> 
    102                         <td align="left" nowrap><?php echo $prereq["partname"] ?></td> 
     101                        <td align="left" nowrap="nowrap"><?php echo $prereq["partnumber"] ?></td> 
     102                        <td align="left" nowrap="nowrap"><?php echo $prereq["partname"] ?></td> 
    103103                        <td align="left" width="100%"><?php echo $prereq["description"]?$prereq["description"]:"&nbsp;" ?></td> 
    104104                        <td align="center"> 
     
    116116                <?php 
    117117                } else {?> 
    118                 <tr><td colspan="4" align=center style="padding:0px;"><div class="norecords">No Prerequisites to Display</div></td></tr> 
     118                <tr><td colspan="4" align="center" style="padding:0px;"><div class="norecords">No Prerequisites to Display</div></td></tr> 
    119119                <?php 
    120120                }//end if 
  • trunk/phpbms/modules/bms/products_saleshistory.php

    r204 r205  
    116116                   <label for="status">type</label><br /> 
    117117                   <select name="status" id="status"> 
    118                                 <option value="Orders/Invoices" <?php if($_POST["status"]=="Orders/Invoices") echo "selected"?>>Orders/Invoices</option> 
    119                                 <option value="Invoices" <?php if($_POST["status"]=="Invoices") echo "selected"?>>Invoices</option> 
    120                                 <option value="Orders" <?php if($_POST["status"]=="Orders") echo "selected"?>>Orders</option> 
     118                                <option value="Orders/Invoices" <?php if($_POST["status"]=="Orders/Invoices") echo "selected=\"selected\""?>>Orders/Invoices</option> 
     119                                <option value="Invoices" <?php if($_POST["status"]=="Invoices") echo "selected=\"selected\""?>>Invoices</option> 
     120                                <option value="Orders" <?php if($_POST["status"]=="Orders") echo "selected=\"selected\""?>>Orders</option> 
    121121                   </select>                                                             
    122122                </p> 
     
    138138   <table border="0" cellpadding="3" cellspacing="0" class="querytable"> 
    139139        <tr> 
    140          <th align="center" nowrap class="queryheader">ID</th> 
    141          <th align="center" nowrap class="queryheader">Order Date</th> 
    142          <th nowrap class="queryheader" width="100%" align="left">Client</th> 
    143          <th align="center" nowrap class="queryheader">Qty.</th> 
    144          <th align="right" nowrap class="queryheader">Unit Cost</th> 
    145          <th align="right" nowrap class="queryheader">Cost Ext.</th> 
    146          <th align="right" nowrap class="queryheader">Unit Price</th> 
    147          <th align="right" nowrap class="queryheader">Price Ext.</th> 
     140         <th align="center" nowrap="nowrap" class="queryheader">ID</th> 
     141         <th align="center" nowrap="nowrap" class="queryheader">Order Date</th> 
     142         <th nowrap="nowrap" class="queryheader" width="100%" align="left">Client</th> 
     143         <th align="center" nowrap="nowrap" class="queryheader">Qty.</th> 
     144         <th align="right" nowrap="nowrap" class="queryheader">Unit Cost</th> 
     145         <th align="right" nowrap="nowrap" class="queryheader">Cost Ext.</th> 
     146         <th align="right" nowrap="nowrap" class="queryheader">Unit Price</th> 
     147         <th align="right" nowrap="nowrap" class="queryheader">Price Ext.</th> 
    148148        </tr> 
    149149    <?php        
     
    163163?> 
    164164        <tr class="row<?php echo $row?>"> 
    165          <td align="center" nowrap><?php echo $therecord["id"]?></td> 
    166          <td align="center" nowrap><?php echo $therecord["thedate"]?formatFromSQLDate($therecord["thedate"]):"&nbsp;" ?></td> 
    167          <td nowrap><?php echo $therecord["client"]?></td> 
    168          <td align="center" nowrap><?php echo number_format($therecord["qty"],2)?></td> 
    169          <td align="right" nowrap><?php echo "\$".number_format($therecord["cost"],2)?></td> 
    170          <td align="right" nowrap><?php echo "\$".number_format($therecord["extendedcost"],2)?></td> 
    171          <td align="right" nowrap><?php echo "\$".number_format($therecord["price"],2)?></td> 
    172          <td align="right" nowrap><?php echo "\$".number_format($therecord["extended"],2)?></td> 
     165         <td align="center" nowrap="nowrap"><?php echo $therecord["id"]?></td> 
     166         <td align="center" nowrap="nowrap"><?php echo $therecord["thedate"]?formatFromSQLDate($therecord["thedate"]):"&nbsp;" ?></td> 
     167         <td nowrap="nowrap"><?php echo $therecord["client"]?></td> 
     168         <td align="center" nowrap="nowrap"><?php echo number_format($therecord["qty"],2)?></td> 
     169         <td align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["cost"],2)?></td> 
     170         <td align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["extendedcost"],2)?></td> 
     171         <td align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["price"],2)?></td> 
     172         <td align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["extended"],2)?></td> 
    173173        </tr> 
    174174    <?php } if(!mysql_num_rows($queryresult)) {?> 
    175         <tr><td colspan="9" align=center style="padding:0px;"><div class="norecords">No Sales Data for Given Timeframe</div></td></tr> 
     175        <tr><td colspan="9" align="center" style="padding:0px;"><div class="norecords">No Sales Data for Given Timeframe</div></td></tr> 
    176176        <?php }?> 
    177177        <tr> 
     
    180180         <td class="queryfooter">&nbsp;</td> 
    181181         <td align="center" class="queryfooter"><?php echo number_format($totalquantity,2)?></td> 
    182          <td align="right" nowrap class="queryfooter">avg. = <?php $numrows?$avgcost=$avgcost/$numrows:$avgcost=0; echo "\$".number_format($avgcost,2)?></td> 
     182         <td align="right" nowrap="nowrap" class="queryfooter">avg. = <?php $numrows?$avgcost=$avgcost/$numrows:$avgcost=0; echo "\$".number_format($avgcost,2)?></td> 
    183183         <td align="right" class="queryfooter"><?php echo "\$".number_format($totalcostextended,2)?></td> 
    184          <td align="right" nowrap class="queryfooter">avg. = <?php $numrows?$avgprice=$avgprice/$numrows:$avgprice=0; echo "\$".number_format($avgprice,2)?></td> 
     184         <td align="right" nowrap="nowrap" class="queryfooter">avg. = <?php $numrows?$avgprice=$avgprice/$numrows:$avgprice=0; echo "\$".number_format($avgprice,2)?></td> 
    185185         <td align="right" class="queryfooter"><?php echo "\$".number_format($totalextended,2)?></td> 
    186186        </tr> 
  • trunk/phpbms/modules/bms/quickview.php

    r204 r205  
    5656<body> 
    5757<?php include("../../menu.php");?> 
    58 <form method="post" name="record" id="record" onSubmit="return false;" action=""> 
     58<form method="post" name="record" id="record" onsubmit="return false;" action=""> 
    5959<div class="bodyline"> 
    6060        <h1><?php echo $pagetitle?></h1> 
     
    7272                        </p> 
    7373                        <p id="lookupButtonsP"> 
    74                                 <input type="button" value="view" id="dolookup" class="Buttons" disabled="true" tabindex="20" onclick="viewClient('<?php echo $_SESSION["app_path"]?>')" /> 
     74                                <input type="button" value="view" id="dolookup" class="Buttons" disabled="disabled" tabindex="20" onclick="viewClient('<?php echo $_SESSION["app_path"]?>')" /> 
    7575                                <input type="button" value="add new" id="addnew" class="Buttons" tabindex="20" onclick="addEditRecord('new','client','<?php echo getAddEditFile(2,"add")?>')" /> 
    7676                        </p>                     
     
    103103                                </p> 
    104104                                <p id="lookupMobilePhoneLabel" class="disabledP"> 
    105                                         <label for="lookupname">mobile phone</label><br /> 
     105                                        <label for="ds-mobilephonecid">mobile phone</label><br /> 
    106106                                        <?php fieldAutofill("mobilephonecid","",2,"clients.id","clients.mobilephone","if(clients.lastname!=\"\",concat(clients.lastname,\", \",clients.firstname,if(clients.company!=\"\",concat(\" (\",clients.company,\")\"),\"\")),clients.company)","clients.inactive=0",Array("size"=>"45","maxlength"=>"128","style"=>"","class"=>"important lookupWhats","tabindex"=>"10"),0) ?> 
    107107                                        <script language="JavaScript" type="text/javascript">document.forms["record"]["mobilephonecid"].onchange=updateViewButton;</script> 
    108108                                </p> 
    109109                                <p id="lookupMainAddressLabel" class="disabledP"> 
    110                                         <label for="lookupname" >address</label><br /> 
     110                                        <label for="ds-mainaddresscid" >address</label><br /> 
    111111                                        <?php fieldAutofill("mainaddresscid","",2,"clients.id","clients.address1","if(clients.lastname!=\"\",concat(clients.lastname,\", \",clients.firstname,if(clients.company!=\"\",concat(\" (\",clients.company,\")\"),\"\")),clients.company)","clients.inactive=0",Array("size"=>"45","maxlength"=>"128","style"=>"","class"=>"important lookupWhats","tabindex"=>"10"),0) ?> 
    112112                                        <script language="JavaScript" type="text/javascript">document.forms["record"]["mainaddresscid"].onchange=updateViewButton;</script> 
  • trunk/phpbms/modules/bms/quickview_ajax.php

    r204 r205  
    9999                                if($invoicerecord["type"]=="VOID") 
    100100                                        $invoicerecord["totalti"]="-----" 
    101                 ?><tr onClick="selectEdit(this,<?php echo $invoicerecord["id"]?>,'invoice')"> 
     101                ?><tr onclick="selectEdit(this,<?php echo $invoicerecord["id"]?>,'invoice')"> 
    102102                        <td><?php echo $invoicerecord["id"]?></td> 
    103103                        <td><?php echo $invoicerecord["type"]?></td> 
     
    113113         
    114114        <div class="salesNotesButtons"> 
    115                 <button id="noteedit" type="button" class="graphicButtons buttonEditDisabled" onClick="addEditRecord('edit','note','<?php echo getAddEditFile(12)?>')"><span>edit</span></button> 
    116                 <button type="button" class="graphicButtons buttonNew" onClick="addEditRecord('new','note','<?php echo getAddEditFile(12,"add")?>')"><span>new</span></button> 
     115                <button id="noteedit" type="button" class="graphicButtons buttonEditDisabled" onclick="addEditRecord('edit','note','<?php echo getAddEditFile(12)?>')"><span>edit</span></button> 
     116                <button type="button" class="graphicButtons buttonNew" onclick="addEditRecord('new','note','<?php echo getAddEditFile(12,"add")?>')"><span>new</span></button> 
    117117        </div> 
    118118         
     
    137137                                if(strlen($noterecord["category"])>17) 
    138138                                        $noterecord["category"]=substr($noterecord["category"],0,17)."..."; 
    139                 ?><tr onClick="selectEdit(this,<?php echo $noterecord["id"]?>,'note')"> 
    140                         <td align=center><?php echo $noterecord["importance"]?></td> 
     139                ?><tr onclick="selectEdit(this,<?php echo $noterecord["id"]?>,'note')"> 
     140                        <td align="center"><?php echo $noterecord["importance"]?></td> 
    141141                        <td><?php echo $noterecord["type"]?></td> 
    142142                        <td><?php echo $noterecord["category"]?></td> 
  • trunk/phpbms/modules/bms/report/clients_purchasehistory.php

    r204 r205  
    121121        <table border="0" cellpadding="0" cellspacing="0" > 
    122122                <tr> 
    123                         <th align="left" nowrap colspan="3">invoice</th> 
    124                         <th align="left" nowrap colspan="3">product</th>                 
    125                         <th align="left" nowrap colspan="2">line item</th> 
     123                        <th align="left" nowrap="nowrap" colspan="3">invoice</th> 
     124                        <th align="left" nowrap="nowrap" colspan="3">product</th>                
     125                        <th align="left" nowrap="nowrap" colspan="2">line item</th> 
    126126                </tr> 
    127127                <tr> 
    128                         <th align="center" nowrap>id</th> 
    129                         <th align="left" nowrap >type</th> 
    130                         <th align="left" nowrap >date</th> 
    131                         <th align="left" nowrap >part num.</th> 
    132                         <th width="100%" nowrap align="left">name</th> 
    133                         <th align="right" nowrap >price</th> 
    134                         <th align="center" nowrap >qty.</th> 
    135                         <th align="right" nowrap >ext.</th> 
     128                        <th align="center" nowrap="nowrap">id</th> 
     129                        <th align="left" nowrap="nowrap" >type</th> 
     130                        <th align="left" nowrap="nowrap" >date</th> 
     131                        <th align="left" nowrap="nowrap" >part num.</th> 
     132                        <th width="100%" nowrap="nowrap" align="left">name</th> 
     133                        <th align="right" nowrap="nowrap" >price</th> 
     134                        <th align="center" nowrap="nowrap" >qty.</th> 
     135                        <th align="right" nowrap="nowrap" >ext.</th> 
    136136                </tr> 
    137137    <?php  
     
    141141        ?> 
    142142        <tr> 
    143                 <td align="left" nowrap><?php echo $therecord["id"]?$therecord["id"]:"&nbsp;" ?></td> 
    144                 <td align="left" nowrap><?php echo $therecord["type"]?$therecord["type"]:"&nbsp;" ?></td> 
    145                 <td align="left" nowrap><?php echo $therecord["formateddate"]?$therecord["formateddate"]:"&nbsp;" ?></td> 
    146                 <td nowrap><?php echo $therecord["partnumber"]?></td> 
    147                 <td nowrap><?php echo $therecord["partname"]?></td> 
    148                 <td align="right" nowrap><?php echo "\$".number_format($therecord["price"],2)?></td> 
    149                 <td align="center" nowrap><?php echo $therecord["qty"]?></td> 
    150                 <td align="right" nowrap><?php echo "\$".number_format($therecord["extended"],2)?></td> 
     143                <td align="left" nowrap="nowrap"><?php echo $therecord["id"]?$therecord["id"]:"&nbsp;" ?></td> 
     144                <td align="left" nowrap="nowrap"><?php echo $therecord["type"]?$therecord["type"]:"&nbsp;" ?></td> 
     145                <td align="left" nowrap="nowrap"><?php echo $therecord["formateddate"]?$therecord["formateddate"]:"&nbsp;" ?></td> 
     146                <td nowrap="nowrap"><?php echo $therecord["partnumber"]?></td> 
     147                <td nowrap="nowrap"><?php echo $therecord["partname"]?></td> 
     148                <td align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["price"],2)?></td> 
     149                <td align="center" nowrap="nowrap"><?php echo $therecord["qty"]?></td> 
     150                <td align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["extended"],2)?></td> 
    151151        </tr> 
    152152        <?php }//end while ?> 
  • trunk/phpbms/modules/bms/report/invoices_totals.php

    r204 r205  
    8585                 
    8686        function showReportTable(){ 
    87                 ?><table border=0 cellspacing=0 cellpadding=0> 
     87                ?><table border="0" cellspacing="0" cellpadding="0"> 
    8888                <tr> 
    8989                        <th>&nbsp;</th> 
    9090                <?php 
    9191                        foreach($this->selectcolumns as $name=>$column){ 
    92                                 ?><th align=right nowrap><?php echo $name?></td><?php 
     92                                ?><th align=right nowrap="nowrap"><?php echo $name?></td><?php 
    9393                        }//end foreach 
    9494                ?> 
     
    218218                ?> 
    219219                        <tr><td colspan="<?php echo (count($this->selectcolumns)+1)?>" class="invoices" style="padding-right:40px;padding-left:<?php echo ($indent+2)?>px;"> 
    220                                 <table border=0 cellspacing=0 cellpadding=0 style="border:0px;"> 
     220                                <table border="0" cellspacing="0" cellpadding="0" style="border:0px;"> 
    221221                <?php  
    222222                 
     
    224224                        ?> 
    225225                        <tr> 
    226                                 <td width="65%" class="lineitems" nowrap><?php echo $therecord["partnumber"]?>&nbsp;&nbsp;<?php echo $therecord["partname"]?></td> 
    227                                 <td width="24%" class="lineitems" align="right" nowrap><?php echo "\$".number_format($therecord["unitprice"],2)?></td> 
    228                                 <td width="12%" class="lineitems" align="center" nowrap><?php echo number_format($therecord["quantity"],2)?></td> 
    229                                 <td width="24%" class="lineitems" align="right" nowrap><?php echo "\$".number_format($therecord["extended"],2)?></td> 
     226                                <td width="65%" class="lineitems" nowrap="nowrap"><?php echo $therecord["partnumber"]?>&nbsp;&nbsp;<?php echo $therecord["partname"]?></td> 
     227                                <td width="24%" class="lineitems" align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["unitprice"],2)?></td> 
     228                                <td width="12%" class="lineitems" align="center" nowrap="nowrap"><?php echo number_format($therecord["quantity"],2)?></td> 
     229                                <td width="24%" class="lineitems" align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["extended"],2)?></td> 
    230230                        </tr> 
    231231                        <?php 
     
    368368<div class="bodyline" style="width:550px;padding:4px;"> 
    369369        <h1>Invoice Total Options</h1>   
    370         <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" name="totals" onSubmit="return submitForm(this)"> 
     370        <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" name="totals" onsubmit="return submitForm(this)"> 
    371371                <div> 
    372372                        report title<br />                       
     
    375375                <div class="box"> 
    376376                        <strong>Grouping</strong><br /> 
    377                         <table border=0 cellspacing=0 cellpadding=0> 
     377                        <table border="0" cellspacing="0" cellpadding="0"> 
    378378                                <tr> 
    379379                                        <td width="50%"> 
     
    385385                                        <td> 
    386386                                                <div><br /> 
    387                                                         <input type="button" value="&lt;&lt;" class="Buttons" onClick="moveItem('groupings','to',this.form);"><br /><br /> 
    388                                                         <input type="button" value="&gt;&gt;" class="Buttons" onClick="moveItem('groupings','from',this.form);">                                                         
     387                                                        <input type="button" value="&lt;&lt;" class="Buttons" onclick="moveItem('groupings','to',this.form);"><br /><br /> 
     388                                                        <input type="button" value="&gt;&gt;" class="Buttons" onclick="moveItem('groupings','from',this.form);">                                                         
    389389                                                </div> 
    390390                                        </td> 
     
    420420                <div class="box"> 
    421421                        <strong>Columns</strong><br /> 
    422                         <table border=0 cellspacing=0 cellpadding=0> 
     422                        <table border="0" cellspacing="0" cellpadding="0"> 
    423423                                <tr> 
    424424                                        <td width="50%"> 
     
    431431                                        <td> 
    432432                                                <div><br /> 
    433                                                         <input type="button" value="&lt;&lt;" class="Buttons" onClick="moveItem('columns','to',this.form);"><br /><br /> 
    434                                                         <input type="button" value="&gt;&gt;" class="Buttons" onClick="moveItem('columns','from',this.form);">                                                   
     433                                                        <input type="button" value="&lt;&lt;" class="Buttons" onclick="moveItem('columns','to',this.form);"><br /><br /> 
     434                                                        <input type="button" value="&gt;&gt;" class="Buttons" onclick="moveItem('columns','from',this.form);">                                                   
    435435                                                </div> 
    436436                                        </td> 
     
    465465                        information shown<br /> 
    466466                        <select name="showwhat"> 
    467                                 <option selected value="totals">Totals Only</option> 
     467                                <option selected="selected" value="totals">Totals Only</option> 
    468468                                <option value="invoices">Invoices</option> 
    469469                                <option value="lineitems">Invoices &amp; Line Items</option> 
     
    475475                <div align="right" class="box"> 
    476476                        <input name="command" type="submit" class="Buttons" id="print" value="print" style="width:75px;margin-right:3px;"> 
    477                         <input name="cancel" type="button" class="Buttons" id="cancel" value="cancel" style="width:75px;" onClick="window.close();">      
     477                        <input name="cancel" type="button" class="Buttons" id="cancel" value="cancel" style="width:75px;" onclick="window.close();">      
    478478                </div> 
    479479   </form> 
  • trunk/phpbms/modules/bms/report/lineitems_totals.php

    r204 r205  
    9292                 
    9393        function showReportTable(){ 
    94                 ?><table border=0 cellspacing=0 cellpadding=0> 
     94                ?><table border="0" cellspacing="0" cellpadding="0"> 
    9595                <tr> 
    9696                        <th>&nbsp;</th> 
    9797                <?php 
    9898                        foreach($this->selectcolumns as $name=>$column){ 
    99                                 ?><th align=right nowrap><?php echo $name?></td><?php 
     99                                ?><th align=right nowrap="nowrap"><?php echo $name?></td><?php 
    100100                        }//end foreach 
    101101                ?> 
     
    193193                ?> 
    194194                        <tr><td colspan="<?php echo (count($this->selectcolumns)+1)?>" class="invoices" style="padding-right:10px;padding-left:<?php echo ($indent+2)?>px;"> 
    195                                 <table border=0 cellspacing=0 cellpadding=0 style="border:0px;"> 
     195                                <table border="0" cellspacing="0" cellpadding="0" style="border:0px;"> 
    196196                <?php  
    197197                 
     
    199199                        ?> 
    200200                        <tr> 
    201                                 <td class="lineitems" nowrap><?php echo $therecord["invoiceid"]?></td> 
    202                                 <td class="lineitems" nowrap><?php if($therecord["invoicedate"]) echo formatFromSQLDate($therecord["invoicedate"]); else echo "&nbsp;"?></td> 
     201                                <td class="lineitems" nowrap="nowrap"><?php echo $therecord["invoiceid"]?></td> 
     202                                <td class="lineitems" nowrap="nowrap"><?php if($therecord["invoicedate"]) echo formatFromSQLDate($therecord["invoicedate"]); else echo "&nbsp;"?></td> 
    203203                                <td class="lineitems" width="20%"><?php echo $therecord["thename"]?></td> 
    204                                 <td width="60%" class="lineitems" nowrap><?php echo $therecord["partnumber"]?>&nbsp;&nbsp;<?php echo $therecord["partname"]?></td> 
    205                                 <td width="9%" class="lineitems" align="right" nowrap><?php echo "\$".number_format($therecord["unitprice"],2)?></td> 
    206                                 <td width="8%" class="lineitems" align="center" nowrap><?php echo number_format($therecord["quantity"],2)?></td> 
    207                                 <td width="7%" class="lineitems" align="right" nowrap><?php echo "\$".number_format($therecord["extended"],2)?></td> 
     204                                <td width="60%" class="lineitems" nowrap="nowrap"><?php echo $therecord["partnumber"]?>&nbsp;&nbsp;<?php echo $therecord["partname"]?></td> 
     205                                <td width="9%" class="lineitems" align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["unitprice"],2)?></td> 
     206                                <td width="8%" class="lineitems" align="center" nowrap="nowrap"><?php echo number_format($therecord["quantity"],2)?></td> 
     207                                <td width="7%" class="lineitems" align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["extended"],2)?></td> 
    208208                        </tr> 
    209209                        <?php 
     
    344344<div class="bodyline" style="width:550px;padding:4px;"> 
    345345        <h1>Line Item Total Options</h1>         
    346         <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" name="totals" onSubmit="return submitForm(this)"> 
     346        <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" name="totals" onsubmit="return submitForm(this)"> 
    347347                <div> 
    348348                        report title<br />                       
     
    351351                <div class="box"> 
    352352                        <strong>Grouping</strong><br /> 
    353                         <table border=0 cellspacing=0 cellpadding=0> 
     353                        <table border="0" cellspacing="0" cellpadding="0"> 
    354354                                <tr> 
    355355                                        <td width="50%"> 
     
    361361                                        <td> 
    362362                                                <div><br /> 
    363                                                         <input type="button" value="&lt;&lt;" class="Buttons" onClick="moveItem('groupings','to',this.form);"><br /><br /> 
    364                                                         <input type="button" value="&gt;&gt;" class="Buttons" onClick="moveItem('groupings','from',this.form);">                                                         
     363                                                        <input type="button" value="&lt;&lt;" class="Buttons" onclick="moveItem('groupings','to',this.form);"><br /><br /> 
     364                                                        <input type="button" value="&gt;&gt;" class="Buttons" onclick="moveItem('groupings','from',this.form);">                                                         
    365365                                                </div> 
    366366                                        </td> 
     
    400400                <div class="box"> 
    401401                        <strong>Columns</strong><br /> 
    402                         <table border=0 cellspacing=0 cellpadding=0> 
     402                        <table border="0" cellspacing="0" cellpadding="0"> 
    403403                                <tr> 
    404404                                        <td width="50%"> 
     
    411411                                        <td> 
    412412                                                <div><br /> 
    413                                                         <input type="button" value="&lt;&lt;" class="Buttons" onClick="moveItem('columns','to',this.form);"><br /><br /> 
    414                                                         <input type="button" value="&gt;&gt;" class="Buttons" onClick="moveItem('columns','from',this.form);">                                                   
     413                                                        <input type="button" value="&lt;&lt;" class="Buttons" onclick="moveItem('columns','to',this.form);"><br /><br /> 
     414                                                        <input type="button" value="&gt;&gt;" class="Buttons" onclick="moveItem('columns','from',this.form);">                                                   
    415415                                                </div> 
    416416                                        </td> 
     
    436436                        </table> 
    437437                </div> 
    438                 <div class=box> 
     438                <div class="box"> 
    439439                        <strong>Additional Options</strong><br /> 
    440440                        information shown<br /> 
    441441                        <select name="showwhat"> 
    442                                 <option selected value="totals">Totals Only</option> 
     442                                <option selected="selected" value="totals">Totals Only</option> 
    443443                                <option value="lineitems">Line Items</option> 
    444444                        </select> 
     
    448448                <div align="right" class="box"> 
    449449                        <input name="command" type="submit" class="Buttons" id="print" value="print" style="width:75px;margin-right:3px;"> 
    450                         <input name="cancel" type="button" class="Buttons" id="cancel" value="cancel" style="width:75px;" onClick="window.close();">      
     450                        <input name="cancel" type="button" class="Buttons" id="cancel" value="cancel" style="width:75px;" onclick="window.close();">      
    451451                </div> 
    452452   </form> 
  • trunk/phpbms/modules/bms/report/products_saleshistory.php

    r204 r205  
    117117   <table border="0" cellpadding="3" cellspacing="0"> 
    118118        <tr> 
    119          <th align="center" nowrap >ID</th> 
    120          <th align="center" nowrap >Order Date</th> 
    121          <th align="center" nowrap >Invc. Date</th> 
    122          <th nowrap  width="100%" align="left">Client</th> 
    123          <th align="center" nowrap >Qty.</th> 
    124          <th align="right" nowrap >Unit Cost</th> 
    125          <th align="right" nowrap >Cost Ext.</th> 
    126          <th align="right" nowrap >Unit Price</th> 
    127          <th align="right" nowrap >Price Ext.</th> 
     119         <th align="center" nowrap="nowrap" >ID</th> 
     120         <th align="center" nowrap="nowrap" >Order Date</th> 
     121         <th align="center" nowrap="nowrap" >Invc. Date</th> 
     122         <th nowrap="nowrap"  width="100%" align="left">Client</th> 
     123         <th align="center" nowrap="nowrap" >Qty.</th> 
     124         <th align="right" nowrap="nowrap" >Unit Cost</th> 
     125         <th align="right" nowrap="nowrap" >Cost Ext.</th> 
     126         <th align="right" nowrap="nowrap" >Unit Price</th> 
     127         <th align="right" nowrap="nowrap">Price Ext.</th> 
    128128        </tr> 
    129129    <?php        
     
    141141?> 
    142142        <tr> 
    143          <td align="center" nowrap><?php echo $therecord["id"]?></td> 
    144          <td align="center" nowrap><?php echo $therecord["orderdate"]?formatFromSQLDate($therecord["orderdate"]):"&nbsp;" ?></td> 
    145          <td align="center" nowrap><?php echo $therecord["invoicedate"]?formatFromSQLDate($therecord["invoicedate"]):"&nbsp;" ?></td> 
    146          <td nowrap><?php echo $therecord["client"]?></td> 
    147          <td align="center" nowrap><?php echo number_format($therecord["qty"],2)?></td> 
    148          <td align="right" nowrap><?php echo "\$".number_format($therecord["cost"],2)?></td> 
    149          <td align="right" nowrap><?php echo "\$".number_format($therecord["extendedcost"],2)?></td> 
    150          <td align="right" nowrap><?php echo "\$".number_format($therecord["price"],2)?></td> 
    151          <td align="right" nowrap><?php echo "\$".number_format($therecord["extended"],2)?></td> 
     143         <td align="center" nowrap="nowrap"><?php echo $therecord["id"]?></td> 
     144         <td align="center" nowrap="nowrap"><?php echo $therecord["orderdate"]?formatFromSQLDate($therecord["orderdate"]):"&nbsp;" ?></td> 
     145         <td align="center" nowrap="nowrap"><?php echo $therecord["invoicedate"]?formatFromSQLDate($therecord["invoicedate"]):"&nbsp;" ?></td> 
     146         <td nowrap="nowrap"><?php echo $therecord["client"]?></td> 
     147         <td align="center" nowrap="nowrap"><?php echo number_format($therecord["qty"],2)?></td> 
     148         <td align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["cost"],2)?></td> 
     149         <td align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["extendedcost"],2)?></td> 
     150         <td align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["price"],2)?></td> 
     151         <td align="right" nowrap="nowrap"><?php echo "\$".number_format($therecord["extended"],2)?></td> 
    152152        </tr> 
    153153    <?php } ?> 
     
    158158         <td class="grandtotals">&nbsp;</td> 
    159159         <td align="center" class="grandtotals"><?php echo number_format($totalquantity,2)?></td> 
    160          <td align="right" nowrap class="grandtotals">avg. = <?php $numrows?$avgcost=$avgcost/$numrows:$avgcost=0; echo "\$".number_format($avgcost,2)?></td> 
     160         <td align="right" nowrap="nowrap"class="grandtotals">avg. = <?php $numrows?$avgcost=$avgcost/$numrows:$avgcost=0; echo "\$".number_format($avgcost,2)?></td> 
    161161         <td align="right" class="grandtotals"><?php echo "\$".number_format($totalcostextended,2)?></td> 
    162          <td align="right" nowrap class="grandtotals">avg. = <?php $numrows?$avgprice=$avgprice/$numrows:$avgprice=0; echo "\$".number_format($avgprice,2)?></td> 
     162         <td align="right" nowrap="nowrap" class="grandtotals">avg. = <?php $numrows?$avgprice=$avgprice/$numrows:$avgprice=0; echo "\$".number_format($avgprice,2)?></td> 
    163163         <td align="right" class="grandtotals"><?php echo "\$".number_format($totalextended,2)?></td> 
    164164        </tr> 
  • trunk/phpbms/modules/bms/shippingmethods_addedit.php

    r204 r205  
    5555<body><?php include("../../menu.php")?> 
    5656<div class="bodyline"> 
    57         <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     57        <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    5858        <div id="topButtons"> 
    5959                  <?php showSaveCancel(1); ?> 
     
    6565                <p> 
    6666                        <label for="id">id</label><br /> 
    67                         <input name="id" id="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable" />                
     67                        <input name="id" id="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable" />            
    6868                </p> 
    6969                <p>     <br />           
  • trunk/phpbms/modules/bms/snapshot.php

    r204 r205  
    5555                                <th align="left">Type</th> 
    5656                                <th align="left" width="100%">Name</th> 
    57                                 <th nowrap align="right">Location</th> 
     57                                <th nowrap="nowrap" align="right">Location</th> 
    5858                        </tr> 
    5959                <?php  
     
    6666                        if($displayCSZ==",  ") $displayCSZ="&nbsp;"; 
    6767                ?><tr onclick="document.location='<?php echo getAddEditFile(2)."?id=".$therecord["id"] ?>'" class="qr<?php echo $i?>"> 
    68                         <td align="left" nowrap><?php echo $therecord["id"]?></td> 
    69                         <td align="left" nowrap><?php echo $therecord["type"]?></td> 
     68                        <td align="left" nowrap="nowrap"><?php echo $therecord["id"]?></td> 
     69                        <td align="left" nowrap="nowrap"><?php echo $therecord["type"]?></td> 
    7070                        <td><?php echo htmlQuotes($therecord["thename"])?></td> 
    71                         <td align="right" nowrap><?php echo $displayCSZ?></td> 
     71                        <td align="right" nowrap="nowrap"><?php echo $displayCSZ?></td> 
    7272                </tr><?php }?> 
    7373                <tr class="queryfooter"> 
     
    113113                        $total+=$therecord["total"]; 
    114114                        $totaldue+=$therecord["amtdue"]; 
    115                 ?><tr onClick="document.location='<?php echo getAddEditFile(3)."?id=".$therecord["id"] ?>'" class="qr<?php echo $i?>"> 
     115                ?><tr onclick="document.location='<?php echo getAddEditFile(3)."?id=".$therecord["id"] ?>'" class="qr<?php echo $i?>"> 
    116116                        <td><?php echo $therecord["id"]?></td> 
    117117                        <td nowrap="nowrap"><?php echo $therecord["status"]?></td> 
  • trunk/phpbms/modules/bms/tax_addedit.php

    r204 r205  
    5454<body><?php include("../../menu.php")?> 
    5555<div class="bodyline"> 
    56         <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onSubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div> 
     56        <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 
    5757        <div id="topButtons"> 
    5858                  <?php showSaveCancel(1); ?> 
     
    6464                <p> 
    6565                        <label for="id">id</label><br /> 
    66                         <input name="id" id="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="true" class="uneditable" />                
     66                        <input name="id" id="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable" />            
    6767                </p> 
    6868                <p> 
  • trunk/phpbms/print.php

    r204 r205  
    161161                        <input name="reportid" type="hidden" value="<?php echo $therecord["id"] ?>" /> 
    162162                        <input name="reportfile" type="hidden" value="<?php echo htmlQuotes($therecord["reportfile"]) ?>" /> 
    163                         <input name="name" type="text" class="uneditable important" id="name" value="<?php echo htmlQuotes($therecord["name"]) ?>" size="32" maxlength="64" readonly="true" />           
     163                        <input name="name" type="text" class="uneditable important" id="name" value="<?php echo htmlQuotes($therecord["name"]) ?>" size="32" maxlength="64" readonly="readonly" />               
    164164                </p> 
    165165                 
    166166                <p> 
    167167                        type<br /> 
    168                         <input name="type" type="text" class="uneditable" id="type" value="<?php echo $therecord["type"] ?>" size="20" maxlength="64" readonly="true" /> 
     168                        <input name="type" type="text" class="uneditable" id="type" value="<?php echo $therecord["type"] ?>" size="20" maxlength="64" readonly="readonly" /> 
    169169                </p> 
    170170                <p> 
  • 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/requirements.php

    r204 r205  
    6969        <table border="0" cellpadding="0" cellspacing="0" class="querytable" id="browserTable"> 
    7070        <tr> 
    71                 <th class="queryheader" nowrap>Browser Application</th> 
     71                <th class="queryheader" nowrap="nowrap">Browser Application</th> 
    7272                <th class="queryheader">Version</th> 
    7373                <th class="queryheader">Platform(s)</th> 
  • trunk/phpbms/timepicker.php

    r204 r205  
    4242?> 
    4343 
    44 <table border="0" cellspacing=0 cellpadding=0 style="width:230px;"> 
     44<table border="0" cellspacing="0" cellpadding="0" style="width:230px;"> 
    4545        <tr> 
    4646                <td width="100%" class="tpHead">&nbsp;</td> 
    47                 <td class="tpHead"><button type="buttton" class="invisibleButtons" id="TPCancel" onClick="closeTPBox();"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/image/button-x.png" align="absmiddle" alt="x" width="16" height="16" border="0" /></button></td>           
     47                <td class="tpHead"><button type="buttton" class="invisibleButtons" id="TPCancel" onclick="closeTPBox();"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/image/button-x.png" align="absmiddle" alt="x" width="16" height="16" border="0" /></button></td>           
    4848        </tr> 
    4949</table> 
    50 <table border="0" cellspacing=0 cellpadding=0 class="tpHour" style="width:230px;"> 
     50<table border="0" cellspacing="0" cellpadding="0" class="tpHour" style="width:230px;"> 
    5151        <tr> 
    52                 <td onClick="tpClickHour(0)">00</td> 
    53                 <td onClick="tpClickHour(1)">01</td> 
    54                 <td onClick="tpClickHour(2)">02</td> 
    55                 <td onClick="tpClickHour(3)">03</td> 
    56                 <td onClick="tpClickHour(4)">04</td> 
    57                 <td onClick="tpClickHour(5)">05</td> 
    58                 <td onClick="tpClickHour(6)">06</td> 
    59                 <td onClick="tpClickHour(7)">07</td> 
    60                 <td onClick="tpClickHour(8)">08</td> 
    61                 <td onClick="tpClickHour(9)">09</td> 
    62                 <td onClick="tpClickHour(10)">10</td> 
    63                 <td onClick="tpClickHour(11)">11</td> 
     52                <td onclick="tpClickHour(0)">00</td> 
     53                <td onclick="tpClickHour(1)">01</td> 
     54                <td onclick="tpClickHour(2)">02</td> 
     55                <td onclick="tpClickHour(3)">03</td> 
     56                <td onclick="tpClickHour(4)">04</td> 
     57                <td onclick="tpClickHour(5)">05</td> 
     58                <td onclick="tpClickHour(6)">06</td> 
     59                <td onclick="tpClickHour(7)">07</td> 
     60                <td onclick="tpClickHour(8)">08</td> 
     61                <td onclick="tpClickHour(9)">09</td> 
     62                <td onclick="tpClickHour(10)">10</td> 
     63                <td onclick="tpClickHour(11)">11</td> 
    6464        </tr> 
    6565        <tr> 
    66                 <td onClick="tpClickHour(12)">12</td> 
    67                 <td onClick="tpClickHour(13)">13</td> 
    68                 <td onClick="tpClickHour(14)">14</td> 
    69                 <td onClick="tpClickHour(15)">15</td> 
    70                 <td onClick="tpClickHour(16)">16</td> 
    71                 <td onClick="tpClickHour(17)">17</td> 
    72                 <td onClick="tpClickHour(18)">18</td> 
    73                 <td onClick="tpClickHour(19)">19</td> 
    74                 <td onClick="tpClickHour(20)">20</td> 
    75                 <td onClick="tpClickHour(21)">21</td> 
    76                 <td onClick="tpClickHour(22)">22</td> 
    77                 <td onClick="tpClickHour(23)">23</td> 
     66                <td onclick="tpClickHour(12)">12</td> 
     67                <td onclick="tpClickHour(13)">13</td> 
     68                <td onclick="tpClickHour(14)">14</td> 
     69                <td onclick="tpClickHour(15)">15</td> 
     70                <td onclick="tpClickHour(16)">16</td> 
     71                <td onclick="tpClickHour(17)">17</td> 
     72                <td onclick="tpClickHour(18)">18</td> 
     73                <td onclick="tpClickHour(19)">19</td> 
     74                <td onclick="tpClickHour(20)">20</td> 
     75                <td onclick="tpClickHour(21)">21</td> 
     76                <td onclick="tpClickHour(22)">22</td> 
     77                <td onclick="tpClickHour(23)">23</td> 
    7878        </tr> 
    7979</table> 
    80 <table border="0" cellspacing=0 cellpadding=0 class="tpMinute" id="tpMinuteLess" width="230px"> 
     80<table border="0" cellspacing="0" cellpadding="0" class="tpMinute" id="tpMinuteLess" width="230px"> 
    8181        <tr> 
    82                 <td onClick="tpClickMinute(this)">:00</td> 
    83                 <td onClick="tpClickMinute(this)">:05</td> 
    84                 <td onClick="tpClickMinute(this)">:10</td> 
    85                 <td onClick="tpClickMinute(this)">:15</td> 
    86                 <td onClick="tpClickMinute(this)">:20</td> 
    87                 <td onClick="tpClickMinute(this)">:25</td> 
     82                <td onclick="tpClickMinute(this)">:00</td> 
     83                <td onclick="tpClickMinute(this)">:05</td> 
     84                <td onclick="tpClickMinute(this)">:10</td> 
     85                <td onclick="tpClickMinute(this)">:15</td> 
     86                <td onclick="tpClickMinute(this)">:20</td> 
     87                <td onclick="tpClickMinute(this)">:25</td> 
    8888        </tr> 
    8989        <tr> 
    90                 <td onClick="tpClickMinute(this)">:30</td> 
    91                 <td onClick="tpClickMinute(this)">:35</td> 
    92                 <td onClick="tpClickMinute(this)">:40</td> 
    93                 <td onClick="tpClickMinute(this)">:45</td> 
    94                 <td onClick="tpClickMinute(this)">:50</td>               
    95                 <td onClick="tpClickMinute(this)">:55</td>               
     90                <td onclick="tpClickMinute(this)">:30</td> 
     91                <td onclick="tpClickMinute(this)">:35</td> 
     92                <td onclick="tpClickMinute(this)">:40</td> 
     93                <td onclick="tpClickMinute(this)">:45</td> 
     94                <td onclick="tpClickMinute(this)">:50</td>               
     95                <td onclick="tpClickMinute(this)">:55</td>               
    9696        </tr> 
    9797</table> 
    98 <table border="0" cellspacing=0 cellpadding=0 class="tpMinute" id="tpMinuteMore"  width="230px" style="display:none;"> 
     98<table border="0" cellspacing="0" cellpadding="0" class="tpMinute" id="tpMinuteMore"  width="230px" style="display:none;"> 
    9999        <tr> 
    100100        <?php  
     
    102102                        if($i!=0 && ($i/6)==round($i/6,0)) 
    103103                                echo ("</TR><TR>"); 
    104                         ?><td onClick="tpClickMinute(this)">:<?php echo str_pad($i,2,"0",STR_PAD_LEFT)?></td><?php 
     104                        ?><td onclick="tpClickMinute(this)">:<?php echo str_pad($i,2,"0",STR_PAD_LEFT)?></td><?php 
    105105                } 
    106106        ?> 
     
    109109 
    110110<div align=right> 
    111 <input name="TPmoreless" id="TPmoreless" type="button" value="more" class="smallButtons" onClick="switchMinutes(this)"> 
     111<input name="TPmoreless" id="TPmoreless" type="button" value="more" class="smallButtons" onclick="switchMinutes(this)"> 
    112112</div> 
    113113<?php   }//end function 
Copyright © 2010 Kreotek, LLC. All Rights reserved.