Changeset 205
- Timestamp:
- 03/26/07 16:50:25
- Files:
-
- trunk/phpbms/README (modified) (1 diff)
- trunk/phpbms/advancedsearch.php (modified) (2 diffs)
- trunk/phpbms/advancedsort.php (modified) (3 diffs)
- trunk/phpbms/choicelist.php (modified) (1 diff)
- trunk/phpbms/common/javascript/fields.js (modified) (1 diff)
- trunk/phpbms/common/javascript/queryfunctions.js (modified) (2 diffs)
- trunk/phpbms/datepicker.php (modified) (3 diffs)
- trunk/phpbms/fpdf/fpdf.php (modified) (2 diffs)
- trunk/phpbms/help/index.php (modified) (1 diff)
- trunk/phpbms/include/common_functions.php (modified) (1 diff)
- trunk/phpbms/include/fields.php (modified) (7 diffs)
- trunk/phpbms/include/jstransport.php (modified) (1 diff)
- trunk/phpbms/include/print_class.php (modified) (1 diff)
- trunk/phpbms/include/search_class.php (modified) (19 diffs)
- trunk/phpbms/info.php (modified) (1 diff)
- trunk/phpbms/loadsearch.php (modified) (1 diff)
- trunk/phpbms/menu.php (modified) (1 diff)
- trunk/phpbms/modules/base/adminsettings.php (modified) (3 diffs)
- trunk/phpbms/modules/base/attachments_records.php (modified) (1 diff)
- trunk/phpbms/modules/base/files_addedit.php (modified) (6 diffs)
- trunk/phpbms/modules/base/include/menu_addedit_include.php (modified) (2 diffs)
- trunk/phpbms/modules/base/include/relationships_addedit_include.php (modified) (1 diff)
- trunk/phpbms/modules/base/include/reports_addedit_include.php (modified) (1 diff)
- trunk/phpbms/modules/base/include/snapshot_include.php (modified) (3 diffs)
- trunk/phpbms/modules/base/include/usersearches_edit_include.php (modified) (1 diff)
- trunk/phpbms/modules/base/javascript/notes.js (modified) (1 diff)
- trunk/phpbms/modules/base/menu_addedit.php (modified) (3 diffs)
- trunk/phpbms/modules/base/modules_view.php (modified) (3 diffs)
- trunk/phpbms/modules/base/myaccount.php (modified) (1 diff)
- trunk/phpbms/modules/base/notes_addedit.php (modified) (12 diffs)
- trunk/phpbms/modules/base/notes_records.php (modified) (1 diff)
- trunk/phpbms/modules/base/relationships_addedit.php (modified) (2 diffs)
- trunk/phpbms/modules/base/reports_addedit.php (modified) (2 diffs)
- trunk/phpbms/modules/base/roles_addedit.php (modified) (2 diffs)
- trunk/phpbms/modules/base/scheduler_addedit.php (modified) (1 diff)
- trunk/phpbms/modules/base/tabledefs_addedit.php (modified) (2 diffs)
- trunk/phpbms/modules/base/tabledefs_columns.php (modified) (3 diffs)
- trunk/phpbms/modules/base/tabledefs_options.php (modified) (5 diffs)
- trunk/phpbms/modules/base/tabledefs_quicksearch.php (modified) (3 diffs)
- trunk/phpbms/modules/base/tabledefs_searchfields.php (modified) (3 diffs)
- trunk/phpbms/modules/base/users_addedit.php (modified) (3 diffs)
- trunk/phpbms/modules/base/usersearches_edit.php (modified) (3 diffs)
- trunk/phpbms/modules/bms/adminsettings.php (modified) (1 diff)
- trunk/phpbms/modules/bms/clientemailprojects_edit.php (modified) (5 diffs)
- trunk/phpbms/modules/bms/clients_addedit.php (modified) (3 diffs)
- trunk/phpbms/modules/bms/clients_email.php (modified) (3 diffs)
- trunk/phpbms/modules/bms/clients_purchasehistory.php (modified) (4 diffs)
- trunk/phpbms/modules/bms/discounts_addedit.php (modified) (3 diffs)
- trunk/phpbms/modules/bms/include/clients_email_include.php (modified) (1 diff)
- trunk/phpbms/modules/bms/invoices_addedit.php (modified) (14 diffs)
- trunk/phpbms/modules/bms/invoices_statushistory.php (modified) (1 diff)
- trunk/phpbms/modules/bms/invoicestatuses_addedit.php (modified) (2 diffs)
- trunk/phpbms/modules/bms/javascript/clientemail.js (modified) (1 diff)
- trunk/phpbms/modules/bms/javascript/invoice.js (modified) (2 diffs)
- trunk/phpbms/modules/bms/paymentmethods_addedit.php (modified) (3 diffs)
- trunk/phpbms/modules/bms/productcategories_addedit.php (modified) (2 diffs)
- trunk/phpbms/modules/bms/products_addedit.php (modified) (8 diffs)
- trunk/phpbms/modules/bms/products_prereq.php (modified) (3 diffs)
- trunk/phpbms/modules/bms/products_saleshistory.php (modified) (4 diffs)
- trunk/phpbms/modules/bms/quickview.php (modified) (3 diffs)
- trunk/phpbms/modules/bms/quickview_ajax.php (modified) (3 diffs)
- trunk/phpbms/modules/bms/report/clients_purchasehistory.php (modified) (2 diffs)
- trunk/phpbms/modules/bms/report/invoices_totals.php (modified) (10 diffs)
- trunk/phpbms/modules/bms/report/lineitems_totals.php (modified) (10 diffs)
- trunk/phpbms/modules/bms/report/products_saleshistory.php (modified) (3 diffs)
- trunk/phpbms/modules/bms/shippingmethods_addedit.php (modified) (2 diffs)
- trunk/phpbms/modules/bms/snapshot.php (modified) (3 diffs)
- trunk/phpbms/modules/bms/tax_addedit.php (modified) (2 diffs)
- trunk/phpbms/print.php (modified) (1 diff)
- trunk/phpbms/requirements.php (modified) (1 diff)
- trunk/phpbms/timepicker.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/phpbms/README
r145 r205 7 7 Your server must be running at least: 8 8 * MySQL 3.2358+ 9 * PHP 4. 1.2+ with MySQL support enabled.9 * PHP 4.3.0+ with MySQL support enabled. 10 10 11 11 trunk/phpbms/advancedsearch.php
r204 r205 56 56 ?> 57 57 <p align="right" style="float:right"> 58 <input id="ASsearchbutton" type="button" on Click="performAdvancedSearch(this)" class="Buttons" disabled="true" value="search" />58 <input id="ASsearchbutton" type="button" onclick="performAdvancedSearch(this)" class="Buttons" disabled="disabled" value="search" /> 59 59 </p> 60 60 … … 80 80 <option value="not like">not like</option> 81 81 </select> 82 <input type="text" id="ASC1text" size="30" maxlength="255" on KeyUp="updateAS()" value="" />83 <button type="button" id="ASC1minus" class="graphicButtons buttonMinusDisabled" on Click="removeLineAS(this)"><span>-</span></button>84 <button type="button" id="ASC1plus" class="graphicButtons buttonPlus" on Click="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> 85 85 </div> 86 86 </div> 87 87 <p> 88 88 sql where clause<br/> 89 <textarea id="ASSQL" style="width:99%" cols="90" rows="3" on KeyUp="ASEnableSave(this)"></textarea>89 <textarea id="ASSQL" style="width:99%" cols="90" rows="3" onkeyup="ASEnableSave(this)"></textarea> 90 90 </p><?php 91 91 } trunk/phpbms/advancedsort.php
r204 r205 103 103 </p> 104 104 <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" on Click="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()"/> 108 108 </p> 109 109 <?php … … 161 161 <p> 162 162 sql order by clause<br/> 163 <textarea id="sortSQL" style="width:98%;height:75px;" cols="57" rows="4" on KeyUp="sortEnableButtons(this)" ></textarea>163 <textarea id="sortSQL" style="width:98%;height:75px;" cols="57" rows="4" onkeyup="sortEnableButtons(this)" ></textarea> 164 164 </p> 165 165 </td> … … 167 167 <div style="float:right"> 168 168 <br/> 169 <p><input id="sortRunSort" type="button" on Click="performAdvancedSort(this)" class="Buttons" disabled="true" value="run sort" style="width:90px;" /></p>170 <p><input id="sortLoadSort" type="button" on Click="sortAskLoad('<?php echo $_SESSION["app_path"]?>')" class="Buttons" value="load sort..." style="width:90px;" /></p>171 <p><input id="sortSaveSort" type="button" on Click="sortAskSaveName('<?php echo $_SESSION["app_path"]?>')" class="Buttons" disabled="true" value="save sort..." style="width:90px;" /></p>172 <p><input id="sortClearSort" type="button" on Click="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> 173 173 </div> 174 174 </td> trunk/phpbms/choicelist.php
r204 r205 102 102 <p id="MLStatus" class="small"> </p> 103 103 <div class="box" align="right"> 104 <input type="button" id="MLok" name="MLok" value="ok" class="Buttons" style="width:75px;" on Click="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;" on Click="closeBox('<?php echo $listid?>');"/> 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?>');"/> 106 106 </div> 107 107 <?php }//end function trunk/phpbms/common/javascript/fields.js
r204 r205 138 138 } 139 139 if(errorMessage!=""){ 140 errorMessage="<UL>"+errorMessage+"</UL><DIV align=\"right\"><button class=\"Buttons\" on Click=\"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>"; 141 141 142 142 showModal(errorMessage,"Cannot Save",300); trunk/phpbms/common/javascript/queryfunctions.js
r204 r205 166 166 howmany+="s" 167 167 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\" on Click=\"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>" 169 169 showModal(content,"Confirm",300) ; 170 170 } … … 760 760 } 761 761 function sortAskSaveName(base){ 762 var text="<p>name<br /><input id=\"sortSaveName\" type=\"text\" maxlength=\"128\" length=\"40\" on KeyUp=\"sortEnableSave(this)\" style=\"width:98%\" /></p>";763 text+="<p align=\"right\"><input type=\"button\" class=\"Buttons\" id=\"sortDoSave\" on Click=\"sortSave('"+base+"')\" value=\"save\" style=\"width:75px\" disabled=\"true\"/>";764 text+="<input type=\"button\" class=\"Buttons\" on Click=\"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>" 765 765 showModal(text,"Save Sort As...",250); 766 766 } trunk/phpbms/datepicker.php
r204 r205 57 57 ?><script language="JavaScript" type="text/javascript">displayLongDate="<?php echo $displayLongDate ?>";</script> 58 58 <?php 59 ?><table class="dp" cellspacing="0" cellpadding="0" border= 0>59 ?><table class="dp" cellspacing="0" cellpadding="0" border="0"> 60 60 <tr> 61 61 <td colspan=6 class="dpHead"><?php echo date("F, Y",$thedate)?></td> … … 63 63 </tr> 64 64 <tr> 65 <td class="dpButtons" on Click="loadMonth('<?php echo $_SESSION["app_path"]?>','<?php echo $month?>','<?php echo $year-1?>'<?php if($selDate) echo ",'".date("m/d/Y",$selDate)."'"?>)"><<</td>66 <td class="dpButtons" on Click="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)."'"?>)"><</td>67 <td colspan=3 class="dpButtons" on Click="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" on Click="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)."'"?>)">></td>69 <td class="dpButtons" on Click="loadMonth('<?php echo $_SESSION["app_path"]?>','<?php echo $month?>','<?php echo $year+1?>'<?php if($selDate) echo ",'".date("m/d/Y",$selDate)."'"?>)">>></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)."'"?>)"><<</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)."'"?>)"><</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)."'"?>)">></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)."'"?>)">>></td> 70 70 </tr> 71 71 <tr class="dpDayNames"> … … 94 94 elseif($thedate==$today) $dayclass="dpToday"; 95 95 96 echo "<TD class=\"".$dayclass."\" onMouseOut=\"dpUnhighlightDay();\" onMouseOver=\"dpHighlightDay(".$mydate["year"].",".date("n",$thedate).",".$mydate["mday"].")\" on Click=\"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>"; 97 97 98 98 if($mydate["wday"]==6) echo "</tr>"; trunk/phpbms/fpdf/fpdf.php
r60 r205 620 620 } 621 621 622 function Cell($w,$h=0,$txt='',$border= 0,$ln=0,$align='',$fill=0,$link='')622 function Cell($w,$h=0,$txt='',$border="0",$ln=0,$align='',$fill=0,$link='') 623 623 { 624 624 //Output a cell … … 699 699 } 700 700 701 function MultiCell($w,$h,$txt,$border= 0,$align='J',$fill=0)701 function MultiCell($w,$h,$txt,$border="0",$align='J',$fill=0) 702 702 { 703 703 //Output text with automatic or explicit line breaks trunk/phpbms/help/index.php
r204 r205 77 77 <p> </p> 78 78 <p> 79 phpBMS takes advanage of HTML's access Key property to allow79 phpBMS takes advanage of HTML's accesskey property to allow 80 80 you to use your keyboard to navigate pages. Some browsers and OS's 81 81 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 < 2.0, hold 83 down the Alt key followed by the shortcut. When using Firefox > 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 < 2.0 and Safari. 85 86 </p> 86 87 <h4>Search/List Screens</h4> trunk/phpbms/include/common_functions.php
r204 r205 381 381 382 382 function 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" on Click="this.form.cancelclick.value=true;" <?php if($ids==1) {?>accesskey="x" <?php }?> title="(alt+x)" /></div><?php383 ?><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 384 384 } 385 385 trunk/phpbms/include/fields.php
r204 r205 58 58 ?><input id="<?php echo $name?>" name="<?php echo $name?>" type="text" value="<?php echo htmlQuotes($value) ?>" <?php 59 59 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 62 66 }//end function 63 67 … … 79 83 80 84 ?><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\" "; 83 87 if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\""; 84 88 ?> class="radiochecks" /><?php … … 101 105 foreach($list as $theitem){ 102 106 $theitem["value"]=str_replace("\"",""",$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> 104 108 <?php 105 109 } … … 164 168 if(!$querystatement) reportError(100,"SQL Statement Could not be executed."); 165 169 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?>');" on Focus="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)"> 167 171 <?php 168 172 $inlist=false; … … 176 180 } 177 181 if($therecord["thevalue"]==$value){ 178 $selected=" selected ";182 $selected=" selected=\"selected\""; 179 183 $inlist=true; 180 184 } … … 191 195 $theclass=""; 192 196 } 193 ?><option value="<?php echo $value?>" <?php echo $theclass?> selected ><?php echo $display?></option><?php197 ?><option value="<?php echo $value?>" <?php echo $theclass?> selected="selected"><?php echo $display?></option><?php 194 198 }//end if 195 199 ?> … … 380 384 if(!$queryresult) reportError(310,"Error Retrieving Roles"); 381 385 ?><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> 383 387 <?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> 385 389 <?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> 387 391 </select><?php 388 392 } trunk/phpbms/include/jstransport.php
r193 r205 39 39 40 40 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"]=""; 44 44 } 45 45 ?> trunk/phpbms/include/print_class.php
r204 r205 181 181 foreach($fieldlist as $field){ 182 182 echo "<option value=\"".$field."\""; 183 if($field=="id") echo "selected ";183 if($field=="id") echo "selected=\"selected\""; 184 184 echo ">".$field."</option>\n"; 185 185 } trunk/phpbms/include/search_class.php
r204 r205 90 90 ?> 91 91 <script language="JavaScript" type="text/javascript">selIDs=new Array();</script> 92 <input name="newsort" type="hidden" value="" /><table cellspacing= 0 cellpadding=0 border=0class="querytable" id="queryresults"><tr>92 <input name="newsort" type="hidden" value="" /><table cellspacing="0" cellpadding="0" border="0" class="querytable" id="queryresults"><tr> 93 93 <?php 94 94 $columncount=count($this->thecolumns); … … 96 96 97 97 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"]."\" ";?> > 99 99 <input name="sortit<?php echo $i?>" type="hidden" value="<?php echo $therow["name"]?>" /> 100 100 <a href="/" onclick="doSort(<?php echo $i?>);return false;"><?php echo $therow["name"]?></a> … … 134 134 135 135 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"]):" ")?></td><?php136 ?><td align="<?php echo $thecolumn["align"]?>" <?php if(!$thecolumn["wrap"]) echo "nowrap=\"nowrap\""?>><?php echo (($therecord[$thecolumn["name"]]!=="")?formatVariable($therecord[$thecolumn["name"]],$thecolumn["format"]):" ")?></td><?php 137 137 } 138 138 ?></tr><?php … … 144 144 function displayNoResults(){ 145 145 $i=count($this->thecolumns);?> 146 <tr><td colspan="<?php echo $i?>" align= centerstyle="padding:0px;">146 <tr><td colspan="<?php echo $i?>" align="center" style="padding:0px;"> 147 147 <?php if(!$this->sqlerror) {?> 148 148 <div class="norecords">No Records to Display</div> … … 392 392 393 393 ?> 394 <form name="search" id="search" method="post" action="<?php echo $_SERVER["PHP_SELF"]?>?id=<?php echo $this->thetabledef["id"]?>" on Submit="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;"> 395 395 <input id="tabledefid" name="tabledefid" type="hidden" value="<?php echo $this->thetabledef["id"]?>" /> 396 396 <input id="theids" name="theids" type="hidden" value="" /> … … 405 405 ?> 406 406 <ul class="tabs"> 407 <li id="basicSearchT" class="tabsSel"><a href="/" on Click="switchSearchTabs(this);return false">basic</a></li>408 <?php if(hasRights($this->thetabledef["advsearchroleid"])){?><li id="advancedSearchT"><a href="/" on Click="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">advanced</a></li><?php } //end access ?>409 <li id="loadSearchT"><a href="/" on Click="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">load search</a></li>410 <li id="saveSearchT"><a href="/" on Click="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">save search</a></li>411 <li id="advancedSortT"><a href="/" on Click="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> 412 412 </ul> 413 413 <div class="box" id="searchBox"> … … 415 415 <table cellpadding="0" cellspacing="0" border="0"> 416 416 <tr> 417 <td nowrap valign="top">417 <td nowrap="nowrap" valign="top"> 418 418 <p> 419 419 <label for="find">find</label><br /> … … 423 423 if(hasRights($this->findoptions[$i]["roleid"])){ 424 424 ?><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\""; 426 426 ?>><?php echo $this->findoptions[$i]["name"]?></option><?php 427 427 } … … 431 431 </p> 432 432 </td> 433 <td nowrap valign=top>433 <td nowrap="nowrap" valign="top"> 434 434 <p> 435 435 <label for="startswithfield">where</label><br /> … … 439 439 echo "<option value=\"".$this->searchablefields[$i]["id"]."\" "; 440 440 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\""; 442 442 } 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\""; 444 444 } 445 445 echo ">".$this->searchablefields[$i]["name"]."</option>\n"; … … 449 449 </p> 450 450 </td> 451 <td width="100%" nowrap valign="top" >451 <td width="100%" nowrap="nowrap" valign="top" > 452 452 <p><label for="startswith">starts with</label><br /> 453 453 <input id="startswith" name="startswith" type="text" value="<?php if($this->querytype=="search" and isset($this->savedstartswith)) echo str_replace("\"",""",stripslashes($this->savedstartswith))?>" size="35" maxlength="128" /><script language="JavaScript" type="text/javascript">setMainFocus()</script> 454 454 </p> 455 455 </td> 456 <td align="left" valign="top" nowrap class="small">456 <td align="left" valign="top" nowrap="nowrap" class="small"> 457 457 <p> 458 458 <br /> … … 462 462 </tr> 463 463 <tr> 464 <td colspan="3" align="left" valign= middle nowrap>464 <td colspan="3" align="left" valign="middle" nowrap="nowrap"> 465 465 <p> 466 466 <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> 473 473 </tr> 474 474 </table> … … 482 482 <p><label for="saveSearchName">save current search as</label> 483 483 <br /> 484 <input id="saveSearchName" name="saveSearchName" type="text" value="" size="35" maxlength="128" on KeyUp="enableSave(this)" />484 <input id="saveSearchName" name="saveSearchName" type="text" value="" size="35" maxlength="128" onkeyup="enableSave(this)" /> 485 485 </p> 486 486 </td> … … 488 488 <p> 489 489 <br /> 490 <input id="saveSearch" on Click="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" /> 491 491 </p> 492 492 </td> … … 530 530 echo "<div>records: ".$this->numrows."</div>"; 531 531 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();"> 533 533 <?php 534 534 $displayedoffset=0; 535 535 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><?php536 ?><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 537 537 $displayedoffset+=$_SESSION["record_limit"]; 538 538 } … … 543 543 } 544 544 if(($this->numrows+$this->recordoffset)<$this->truecount){ 545 ?><button type="button" class="graphicButtons buttonFF" on Click="document.search.offset.value=<?php echo $this->recordoffset+$_SESSION["record_limit"] ?>;document.search.submit();"><span>next</span></button><?php545 ?><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 546 546 } 547 547 … … 552 552 if ($this->tableoptions["new"]["allowed"] && hasRights($this->tableoptions["new"]["roleid"])) 553 553