Changeset 68
- Timestamp:
- 11/30/05 10:36:39
- Files:
-
- trunk/autofill.php (modified) (3 diffs)
- trunk/changelog.txt (modified) (1 diff)
- trunk/common/stylesheet/mozilla/base.css (modified) (6 diffs)
- trunk/include/common_functions.php (modified) (1 diff)
- trunk/include/fields.php (modified) (1 diff)
- trunk/include/search_class.php (modified) (4 diffs)
- trunk/install/createtables.sql (modified) (6 diffs)
- trunk/modules/bms/products_addedit.php (modified) (1 diff)
- trunk/print.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/autofill.php
r51 r68 36 36 */ 37 37 require("include/session.php"); 38 require("include/common_functions.php"); 38 39 39 40 function getAutofillXML($what,$displayfield,$xtrafield,$tabledefid,$thefield,$whereclause){ … … 53 54 $querystatement.=stripslashes($displayfield)." "; 54 55 if($thefield) 55 $querystatement.="=\"". addslashes($what)."\"";56 $querystatement.="=\"".$what."\""; 56 57 else 57 $querystatement.="LIKE \"". addslashes($what)."%\"";58 $querystatement.="LIKE \"".$what."%\""; 58 59 $querystatement.="ORDER BY ".stripslashes($displayfield); 59 60 if($thefield) … … 91 92 92 93 if(isset($_GET["l"])){ 94 $_GET=addSlashesToArray($_GET); 93 95 if(!isset($_GET["gf"]))$_GET["gf"]=""; 94 96 if(!isset($_GET["wc"]))$_GET["wc"]=""; trunk/changelog.txt
r67 r68 1 1 phpBMS v0.611/ BMS module v0.611 2 2 ================================== 3 - Fixed table creation script (install only) 3 4 - Fixed tasks display problem. 4 5 - Adjusted widths/truncation onf invoice PDF reports for line items. trunk/common/stylesheet/mozilla/base.css
r62 r68 70 70 vertical-align:middle; 71 71 cursor: pointer; 72 cursor: hand;73 72 } 74 73 … … 157 156 } 158 157 159 .bodyline{display:inline-block; padding:4px;margin-top:0px;} 158 .bodyline{ 159 display:inline-block; 160 padding:4px;margin-top:0px; 161 } 160 162 161 163 FIELDSET,.box{ … … 287 289 .qr1,.qr2{background-color:#D9DBE1; 288 290 cursor: pointer; 289 cursor: hand;290 291 } 291 292 .qr2{background-color:white;} … … 293 294 .qr1:hover, .qr2:Hover {background-color:#999999;} 294 295 295 .qh1, .qh2{background-color:black; cursor: pointer; cursor: hand;}296 .qh1, .qh2{background-color:black; cursor: pointer; } 296 297 .qh1 td, .qh2 td{color:white; border-right-color: white; border-bottom-color: white;} 297 .qh1, .qh2{background-color:black; cursor: pointer; cursor: hand;}298 .qh1, .qh2{background-color:black; cursor: pointer; } 298 299 .qh1 a, .qh2 a{color:white;} 299 300 … … 328 329 background-repeat:no-repeat; 329 330 background-position:right; 330 background-origin: border;331 /* background-origin: border; Commented out as of firefox 1.5*/ 331 332 } 332 333 .autofillDropDown{ … … 397 398 #menuBar { 398 399 background-image:url(menubar.png); 399 repeat:repeat-x;400 background-repeat:repeat-x; 400 401 background-color:#697388; 401 402 border-top:1px solid #8693ae; trunk/include/common_functions.php
r62 r68 159 159 160 160 function showSaveCancel($ids=1){ 161 ?><div align="right"><input <?php if($ids==1) {?>accesskey="s"<?php }?> id="saveButton<?php echo $ids?>" name="command" type="submit" value="save" class="Buttons" style="width:68px;margin-right:3px;" /><input id="cancelButton<?php echo $ids?>" name="command" type="submit" value="cancel" class="Buttons" style="width:68px;" onClick="this.form.cancelclick.value=true;" <?php if($ids==1) {?>accesskey="x"<?php }?>/></div><?php161 ?><div align="right"><input <?php if($ids==1) {?>accesskey="s"<?php }?> title="(alt+s)" id="saveButton<?php echo $ids?>" name="command" type="submit" value="save" class="Buttons" style="width:68px;margin-right:3px;" /><input id="cancelButton<?php echo $ids?>" name="command" type="submit" value="cancel" class="Buttons" style="width:68px;" onClick="this.form.cancelclick.value=true;" <?php if($ids==1) {?>accesskey="x" <?php }?> title="(alt+x)" /></div><?php 162 162 } 163 163 trunk/include/fields.php
r63 r68 267 267 if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\""; 268 268 ?> /><button id="<?php echo $name?>Button" type="button" class="invisibleButtons" onClick="showTP('<?php echo $_SESSION["app_path"]?>','<?php echo $name?>');"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-time.png" align="absmiddle" alt="pick time" width="16" height="16" border="0" /></button> 269 <?php if ($required) {?><script language="JavaScript">requiredArray[requiredArray.length]=new Array('<?php echo $name?>','<?php echo $mess sage?>');</script><?php }//end if269 <?php if ($required) {?><script language="JavaScript">requiredArray[requiredArray.length]=new Array('<?php echo $name?>','<?php echo $message?>');</script><?php }//end if 270 270 ?><script language="JavaScript">timeArray[timeArray.length]=new Array('<?php echo $name?>','<?php echo $message?>');</script><?php 271 271 }//end function trunk/include/search_class.php
r62 r68 404 404 <span id="saveSearchT"><a href="" onClick="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">save search</a></span> 405 405 <span id="advancedSortT"><a href="" onClick="switchSearchTabs(this,'<?php echo $_SESSION["app_path"]?>');return false">sorting</a></span> 406 </div><div class="box" style="margin:0px;margin-bottom:15px; display:inline-block;"><div id="basicSearchTab" style="padding:0px;margin:0px;">406 </div><div class="box" style="margin:0px;margin-bottom:15px;/* display:inline-block; */"><div id="basicSearchTab" style="padding:0px;margin:0px;"> 407 407 <table cellpadding="0" cellspacing="0" border="0"> 408 408 <tr> … … 461 461 <option value="narrow" <?php if ($this->querytype=="search" and $this->savedselection=="narrow")echo "checked"?>>narrow result</option> 462 462 </select></label> 463 <td align="left" valign=top nowrap ><label><input name="command" type="submit" id="reset" class="smallButtons" value="reset" style="width:90px;" accesskey="t" /></label></td>463 <td align="left" valign=top nowrap ><label><input name="command" type="submit" id="reset" class="smallButtons" value="reset" style="width:90px;" accesskey="t" title="(alt+t)"/></label></td> 464 464 </tr> 465 465 </table> 466 466 </div><?PHP if($_SESSION["userinfo"]["accesslevel"]>=30){?><div id="advancedSearchTab" style="display:none;padding:0px;margin:0px;"></div><?php } //end accesslevel ?> 467 467 <div id="loadSearchTab" style="display:none;padding:0px;margin:0px;"></div> 468 <div id="saveSearchTab" style="display:none;margin: padding:0px;margin:0px;">468 <div id="saveSearchTab" style="display:none;margin:0px;padding:0px;margin:0px;"> 469 469 <div id="saveSearchReults" style="display:none"></div> 470 470 <table cellpadding="0" cellspacing="0" border="0"> … … 552 552 553 553 <div> 554 <?php if ($this->tableoptions["new"]["allowed"] && $_SESSION["userinfo"]["accesslevel"]>=$this->tableoptions["new"]["accesslevel"]) {?><button type="button" accesskey="n" class="invisibleButtons" onClick="addRecord()" ><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-new.png" alt="new" width="16" height="16" border="0" /></button><?php }554 <?php if ($this->tableoptions["new"]["allowed"] && $_SESSION["userinfo"]["accesslevel"]>=$this->tableoptions["new"]["accesslevel"]) {?><button type="button" accesskey="n" class="invisibleButtons" onClick="addRecord()" title="new (alt+n)"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-new.png" alt="new" width="16" height="16" border="0" /></button><?php } 555 555 if($this->numrows) { 556 556 if ($this->tableoptions["edit"]["allowed"] && $_SESSION["userinfo"]["accesslevel"]>=$this->tableoptions["edit"]["accesslevel"]) { 557 ?><button id="edit" accesskey="e" type="button" disabled="true" class="invisibleButtons" onClick="editThis()" ><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-edit-disabled.png" alt="edit" width="16" height="16" border="0" /></button><?php557 ?><button id="edit" accesskey="e" type="button" disabled="true" class="invisibleButtons" onClick="editThis()" title="edit (alt+e)"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-edit-disabled.png" alt="edit" width="16" height="16" border="0" /></button><?php 558 558 } 559 559 if($this->tableoptions["printex"]["allowed"] && $_SESSION["userinfo"]["accesslevel"]>=$this->tableoptions["printex"]["accesslevel"]){ 560 ?><button id="print" name="doprint" accesskey="p" t ype="submit" disabled="true" class="invisibleButtons"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-print-disabled.png" alt="print" width="16" height="16" border="0" /></button><?php560 ?><button id="print" name="doprint" accesskey="p" title="print (alt+p)" type="submit" disabled="true" class="invisibleButtons"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-print-disabled.png" alt="print" width="16" height="16" border="0" /></button><?php 561 561 } 562 562 if($this->thetabledef["deletebutton"] == "delete") { 563 ?><button id="delete" name="dodelete" accesskey="d" type="button" disabled="true" onClick="confirmDelete('delete')" class="invisibleButtons" style="border-style:solid"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-delete-disabled.png" alt="print" width="16" height="16" border="0" /></button><?php563 ?><button id="delete" name="dodelete" accesskey="d" type="button" title="delete (alt+d)" disabled="true" onClick="confirmDelete('delete')" class="invisibleButtons" style="border-style:solid"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-delete-disabled.png" alt="print" width="16" height="16" border="0" /></button><?php 564 564 } 565 565 … … 579 579 ?></select><?php 580 580 } 581 if($this->tableoptions["select"]["allowed"] && $_SESSION["userinfo"]["accesslevel"]>=$this->tableoptions["select"]["accesslevel"]){?> <select id="searchSelection" onChange="perfromToSelection(this)">581 if($this->tableoptions["select"]["allowed"] && $_SESSION["userinfo"]["accesslevel"]>=$this->tableoptions["select"]["accesslevel"]){?> <select id="searchSelection" onChange="perfromToSelection(this)"> 582 582 <option class="choiceListBlank" value="">selection...</option> 583 583 <option value="">_____________</option> 584 <option value="selectall" >select all</option>585 <option value="selectnone" >select none</option>584 <option value="selectall" title="(alt+a)">select all</option> 585 <option value="selectnone" title="(alt+x)">select none</option> 586 586 <option value="">_____________</option> 587 <option value="keepselected" >keep selected</option>588 <option value="omitselected" >omit selected</option>587 <option value="keepselected" title="(alt+k)">keep selected</option> 588 <option value="omitselected" title="(alt+o)" >omit selected</option> 589 589 </select><a href="" onClick="changeSelection('selectall');return false;" accesskey="a" tabindex="-1"></a><a href="" onClick="changeSelection('selectnone');return false;" accesskey="x" tabindex="-1"></a><a href="" onClick="changeSelection('keepselected');return false;" accesskey="k" tabindex="-1"></a><a href="" onClick="changeSelection('omitselected');return false;" accesskey="o" tabindex="-1"></a><?php } 590 590 trunk/install/createtables.sql
r67 r68 113 113 KEY `tabledef` (`tabledefid`), 114 114 KEY `displayorder` (`displayorder`) 115 ) TYPE=MyISAM ;115 ) TYPE=MyISAM AUTO_INCREMENT=5000; 116 116 117 117 CREATE TABLE `tabledefs` ( … … 146 146 PRIMARY KEY (id), 147 147 KEY tabledef (tabledefid) 148 ) TYPE=MyISAM ;148 ) TYPE=MyISAM AUTO_INCREMENT=2000; 149 149 150 150 CREATE TABLE tableoptions ( … … 157 157 PRIMARY KEY (id), 158 158 KEY tabledef (tabledefid) 159 ) TYPE=MyISAM ;159 ) TYPE=MyISAM AUTO_INCREMENT=2000; 160 160 161 161 CREATE TABLE tablesearchablefields ( … … 167 167 type varchar(16) NOT NULL default 'field', 168 168 PRIMARY KEY (id) 169 ) TYPE=MyISAM ;169 ) TYPE=MyISAM AUTO_INCREMENT=2000; 170 170 171 171 CREATE TABLE users ( … … 209 209 `value` varchar(255) default '', 210 210 PRIMARY KEY (`id`) 211 ) TYPE=MyISAM ;211 ) TYPE=MyISAM AUTO_INCREMENT=1000; 212 212 213 213 CREATE TABLE `files` ( … … 223 223 `accesslevel` int(11) NOT NULL default '0', 224 224 PRIMARY KEY (`id`) 225 ) TYPE=MyISAM ;225 ) TYPE=MyISAM AUTO_INCREMENT=100; 226 226 227 227 CREATE TABLE `attachments` ( trunk/modules/bms/products_addedit.php
r64 r68 72 72 <?PHP field_checkbox("inactive",$therecord["inactive"],false,array("tabindex"=>"50"))?> inactive 73 73 </label> 74 <label for=" inactive"></label>74 <label for="taxable"> 75 75 <?PHP field_checkbox("taxable",$therecord["taxable"],false,array("tabindex"=>"60"))?> taxable 76 76 </label> trunk/print.php
r60 r68 220 220 <fieldset class="small"> 221 221 <legend>Notes</legend> 222 <div >222 <div class="notes"> 223 223 <strong>Window Pop-ups<br/></strong>Each report will display in its own window. If you have disabled 224 224 pop-ups within your browser's options or are running a third-party pop-up blocker, the report will not appear. 225 225 </div> 226 <div ><strong>Need More Reports?</strong><br/>226 <div class="notes"><strong>Need More Reports?</strong><br/> 227 227 Need more reports, or want to cuztomize an existing report to meet your specific needs? Contact <a href="http://www.kreotek.com" target="_blank">kreotek</a> for more information. 228 228 </div>