phpBMS

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

Updated XHTML compliance

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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"] ?>" /> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.