Changeset 71
- Timestamp:
- 10/07/06 13:02:33
- Files:
-
- trunk/include/fields.php (modified) (3 diffs)
- trunk/index.php (modified) (1 diff)
- trunk/modules/base/include/reports_addedit_include.php (modified) (1 diff)
- trunk/modules/base/include/tabledefs_searchfields_include.php (modified) (1 diff)
- trunk/modules/base/tabledefs_searchfields.php (modified) (1 diff)
- trunk/modules/bms/include/invoices_addedit_include.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/fields.php
r68 r71 170 170 ?><input name="<?php echo $name?>" id="<?php echo $name?>" type="text" value="<?php echo $value?>" <?php 171 171 if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\""; 172 ?> /><button id="<?php echo $name?>Button" type="button" style="vertical-align:middle;" class="invisibleButtons" onClick="openEmail('<?php echo $name?>')" ><img src="<?php echo $_SESSION["app_path"]?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-email.png" align="absmiddle" alt="send email" width="16" height="16" border="0" /></button>172 ?> /><button id="<?php echo $name?>Button" type="button" style="vertical-align:middle;" class="invisibleButtons" onClick="openEmail('<?php echo $name?>')" title="Send E-Mail"><img src="<?php echo $_SESSION["app_path"]?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-email.png" align="absmiddle" alt="send email" width="16" height="16" border="0" /></button> 173 173 <script language="JavaScript">emailArray[emailArray.length]=new Array('<?php echo $name?>','One or more e-mail fields are invalid.');</script><?php 174 174 } … … 187 187 ?><input name="<?php echo $name?>" id="<?php echo $name?>" type="text" value="<?php echo $value?>" <?php 188 188 if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\""; 189 ?> /><button id="<?php echo $name?>Button" type="button" class="invisibleButtons" onClick="openWebpage('<?php echo $name?>')" ><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-www.png" align="absmiddle" alt="link" width="16" height="16" border="0" /></button>189 ?> /><button id="<?php echo $name?>Button" type="button" class="invisibleButtons" onClick="openWebpage('<?php echo $name?>')" title="Open in New Window"><img src="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/button-www.png" align="absmiddle" alt="link" width="16" height="16" border="0" /></button> 190 190 <script language="JavaScript">wwwArray[wwwArray.length]=new Array('<?php echo $name?>','One or more web page fields are invalid.');</script> 191 191 <?php … … 319 319 appPath="<?php echo $_SESSION["app_path"]?>"; 320 320 </script> 321 <input autocomplete="off" type="text" name="ds-<?php echo $fieldname?>" id="ds-<?php echo $fieldname?>" <?php321 <input autocomplete="off" type="text" name="ds-<?php echo $fieldname?>" id="ds-<?php echo $fieldname?>" title="Use '%' for wildcard." <?php 322 322 if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\""; 323 323 ?> value="<?php echo htmlQuotes($displayresult["display"]) ?>" onKeyUp="autofillChange(this);return true;" onBlur="blurAutofill(this)" onKeyDown="captureKey(event)" class="autofillField" /> trunk/index.php
r60 r71 91 91 </h2> 92 92 93 <div>name<br /> 94 <input name="name" type="text" id="username" size="25" maxlength="64" style="width:97%"> 95 <script>setMainFocus();</script> 96 </div> 97 <div>password<br /> 98 <input name="password" type="password" id="password" size="25" maxlength="24" style="width:97%"></div> 99 <div align=right style="padding-bottom:15px;"><input name="command" type="submit" class="Buttons" value="Log On" style="width:75px;"></div> 93 <label for="username">name<br /> 94 <input name="name" type="text" id="username" size="25" maxlength="64" style="width:97%" /> 95 <script>setMainFocus();</script></label> 96 <label for="password">password<br /> 97 <input name="password" type="password" id="password" size="25" maxlength="24" style="width:97%" /></label> 98 <div align=right style="padding-bottom:15px;"><input name="command" type="submit" class="Buttons" value="Log On" style="width:75px;" /></div> 100 99 101 100 <?php if (isset($failed)) {?> trunk/modules/base/include/reports_addedit_include.php
r52 r71 138 138 $querystatement="INSERT INTO reports "; 139 139 140 $querystatement.="(name,type,tabledefid,reportfile,description,displayorder,accesslevel 140 $querystatement.="(name,type,tabledefid,reportfile,description,displayorder,accesslevel, 141 141 createdby,creationdate,modifiedby) VALUES ("; 142 142 trunk/modules/base/include/tabledefs_searchfields_include.php
r51 r71 78 78 global $dblink; 79 79 $querystatement="UPDATE tablesearchablefields set "; 80 $querystatement.="field=\"".$ _POST["field"]."\", ";81 $querystatement.="type=\"".$ _POST["type"]."\", ";82 $querystatement.="name=\"".$ _POST["name"]."\" ";83 $querystatement.="WHERE id=".$ _POST["searchfieldid"];80 $querystatement.="field=\"".$variables["field"]."\", "; 81 $querystatement.="type=\"".$variables["type"]."\", "; 82 $querystatement.="name=\"".$variables["name"]."\" "; 83 $querystatement.="WHERE id=".$variables["searchfieldid"]; 84 84 if(mysql_query($querystatement)) $thereturn ="Search Field Updated"; else $thereturn=mysql_error($dblink)." -- ".$querystatement; 85 85 trunk/modules/base/tabledefs_searchfields.php
r51 r71 72 72 73 73 case "moveup": 74 $statusmessage=moveSearchfield($_GET[" searchfieldid"],"up");74 $statusmessage=moveSearchfield($_GET["columnid"],"up"); 75 75 break; 76 76 77 77 case "movedown": 78 $statusmessage=moveSearchfield($_GET[" searchfieldid"],"down");78 $statusmessage=moveSearchfield($_GET["columnid"],"down"); 79 79 break; 80 80 }//end switch trunk/modules/bms/include/invoices_addedit_include.php
r70 r71 161 161 modifiedby, modifieddate 162 162 FROM invoices 163 WHERE i d=".$id;163 WHERE invoices.id=".$id; 164 164 $queryresult = mysql_query($querystatement,$dblink); 165 165 if(!$queryresult) reportError(100,("Could not retrieve record: ".mysql_error($dblink)." ".$querystatement)); … … 265 265 $discountamount=ereg_replace("\\\$|,","",$variables["discountamount"]); 266 266 $querystatement.="discountamount=".$discountamount.", "; 267 if($variables["discountid"]= "")$variables["discountid"]="NULL";267 if($variables["discountid"]=="")$variables["discountid"]="NULL"; 268 268 $querystatement.="discountid=".$variables["discountid"].", "; 269 269 … … 393 393 $discountamount=ereg_replace("\\\$|,","",$variables["discountamount"]); 394 394 $querystatement.=$discountamount.", "; 395 if($variables["discountid"]= "")$variables["discountid"]="NULL";395 if($variables["discountid"]=="")$variables["discountid"]="NULL"; 396 396 $querystatement.=$variables["discountid"].", "; 397 397 … … 476 476 477 477 $queryresult = mysql_query($querystatement,$dblink); 478 if(!$queryresult) die ("Insert Failed: ".mysql_error($dblink)." --".$querystatement);478 if(!$queryresult) reportError(300,"Insert Failed: ".mysql_error($dblink)."\n<br \>\n".$querystatement); 479 479 480 480 $newid= mysql_insert_id($dblink);