navigation  interaction  search

 other resources

Changeset 71

Show
Ignore:
Timestamp:
10/07/06 13:02:33
Author:
brieb
Message:

resolved bugs... checked in before switching SVN servers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/fields.php

    r68 r71  
    170170        ?><input name="<?php echo $name?>" id="<?php echo $name?>" type="text" value="<?php echo $value?>" <?php 
    171171        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> 
    173173        <script language="JavaScript">emailArray[emailArray.length]=new Array('<?php echo $name?>','One or more e-mail fields are invalid.');</script><?php      
    174174} 
     
    187187        ?><input name="<?php echo $name?>" id="<?php echo $name?>" type="text" value="<?php echo $value?>" <?php 
    188188        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> 
    190190        <script language="JavaScript">wwwArray[wwwArray.length]=new Array('<?php echo $name?>','One or more web page fields are invalid.');</script>     
    191191        <?php 
     
    319319                appPath="<?php echo $_SESSION["app_path"]?>"; 
    320320        </script> 
    321         <input autocomplete="off" type="text" name="ds-<?php echo $fieldname?>" id="ds-<?php echo $fieldname?>" <?php  
     321        <input autocomplete="off" type="text" name="ds-<?php echo $fieldname?>" id="ds-<?php echo $fieldname?>" title="Use '%' for wildcard." <?php  
    322322                if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\""; 
    323323        ?> value="<?php echo htmlQuotes($displayresult["display"]) ?>" onKeyUp="autofillChange(this);return true;" onBlur="blurAutofill(this)"  onKeyDown="captureKey(event)" class="autofillField" /> 
  • trunk/index.php

    r60 r71  
    9191                </h2> 
    9292                 
    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> 
    10099                 
    101100                <?php if (isset($failed)) {?> 
  • trunk/modules/base/include/reports_addedit_include.php

    r52 r71  
    138138        $querystatement="INSERT INTO reports "; 
    139139         
    140         $querystatement.="(name,type,tabledefid,reportfile,description,displayorder,accesslevel 
     140        $querystatement.="(name,type,tabledefid,reportfile,description,displayorder,accesslevel, 
    141141                                                createdby,creationdate,modifiedby) VALUES ("; 
    142142         
  • trunk/modules/base/include/tabledefs_searchfields_include.php

    r51 r71  
    7878                global $dblink; 
    7979                $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"]; 
    8484                if(mysql_query($querystatement)) $thereturn ="Search Field Updated"; else $thereturn=mysql_error($dblink)." -- ".$querystatement; 
    8585                 
  • trunk/modules/base/tabledefs_searchfields.php

    r51 r71  
    7272                 
    7373                case "moveup": 
    74                         $statusmessage=moveSearchfield($_GET["searchfieldid"],"up"); 
     74                        $statusmessage=moveSearchfield($_GET["columnid"],"up"); 
    7575                break; 
    7676                 
    7777                case "movedown": 
    78                         $statusmessage=moveSearchfield($_GET["searchfieldid"],"down"); 
     78                        $statusmessage=moveSearchfield($_GET["columnid"],"down"); 
    7979                break; 
    8080        }//end switch 
  • trunk/modules/bms/include/invoices_addedit_include.php

    r70 r71  
    161161                                modifiedby, modifieddate 
    162162                                FROM invoices 
    163                                 WHERE id=".$id;                
     163                                WHERE invoices.id=".$id;               
    164164        $queryresult = mysql_query($querystatement,$dblink); 
    165165        if(!$queryresult) reportError(100,("Could not retrieve record: ".mysql_error($dblink)." ".$querystatement)); 
     
    265265                                $discountamount=ereg_replace("\\\$|,","",$variables["discountamount"]); 
    266266                        $querystatement.="discountamount=".$discountamount.", "; 
    267                         if($variables["discountid"]="")$variables["discountid"]="NULL"; 
     267                        if($variables["discountid"]=="")$variables["discountid"]="NULL"; 
    268268                        $querystatement.="discountid=".$variables["discountid"].", ";  
    269269 
     
    393393                                $discountamount=ereg_replace("\\\$|,","",$variables["discountamount"]); 
    394394                        $querystatement.=$discountamount.", ";                           
    395                         if($variables["discountid"]="")$variables["discountid"]="NULL"; 
     395                        if($variables["discountid"]=="")$variables["discountid"]="NULL"; 
    396396                        $querystatement.=$variables["discountid"].", ";  
    397397 
     
    476476         
    477477        $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); 
    479479 
    480480        $newid= mysql_insert_id($dblink); 
Copyright © 2006-2007 Kreotek, LLC. All Rights reserved.