phpBMS

Changeset 186

Show
Ignore:
Timestamp:
02/16/07 11:59:50 (5 years ago)
Author:
brieb
Message:

Implemented #3. Fixed XHTML compliance of some <br> tags. Fixed invoice report errors. Fixed update.sql naming problem (had leading space)

Location:
trunk/phpbms
Files:
2 added
1 removed
26 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/changepassword.php

    r145 r186  
    5757        if($queryresult) 
    5858                        echo "ok"; 
    59         else echo mysql_error($dblink)."<br><br>".$querystatement; 
     59        else echo mysql_error($dblink)."<br /><br />".$querystatement; 
    6060} 
    6161                 
  • trunk/phpbms/common/javascript/fields.js

    r184 r186  
    210210// validate phone number 
    211211function validatePhone(thevalue){ 
    212         var pattern= /^(?:[\+]?(?:[\d]{1,3})?(?:\s*[\(\.-]?(\d{3})[\)\.-])?\s*(\d{3})[\.-](\d{4}))(?:(?:[ ]+(?:[xX]|(?:[eE][xX][tT][\.]?)))[ ]?[\d]{1,5})?$/; 
    213         return !(pattern.exec(thevalue)==null); 
     212        return !(phoneRegExpression.exec(thevalue)==null); 
    214213} 
    215214 
  • trunk/phpbms/fpdf/font/makefont/makefont.php

    r1 r186  
    122122                        if(!isset($widths[$map[$i]])) 
    123123                        { 
    124                                 echo '<B>Warning:</B> character '.$map[$i].' is missing<BR>'; 
     124                                echo '<B>Warning:</B> character '.$map[$i].' is missing<br />'; 
    125125                                $widths[$i]=$widths['.notdef']; 
    126126                        } 
     
    390390                        SaveToFile($cmp,gzcompress($file),'b'); 
    391391                        $s.='$file=\''.$cmp."';\n"; 
    392                         echo 'Font file compressed ('.$cmp.')<BR>'; 
     392                        echo 'Font file compressed ('.$cmp.')<br />'; 
    393393                } 
    394394                else 
    395395                { 
    396396                        $s.='$file=\''.basename($fontfile)."';\n"; 
    397                         echo '<B>Notice:</B> font file could not be compressed (zlib extension not available)<BR>'; 
     397                        echo '<B>Notice:</B> font file could not be compressed (zlib extension not available)<br />'; 
    398398                } 
    399399                if($type=='Type1') 
     
    412412        $s.="?>\n"; 
    413413        SaveToFile($basename.'.php',$s); 
    414         echo 'Font definition file generated ('.$basename.'.php'.')<BR>'; 
     414        echo 'Font definition file generated ('.$basename.'.php'.')<br />'; 
    415415} 
    416416?> 
  • trunk/phpbms/head.php

    r166 r186  
    11<link href="<?php echo $_SESSION["app_path"] ?>common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/base.css" rel="stylesheet" type="text/css" /> 
    22<script language="JavaScript" src="<?php echo $_SESSION["app_path"]?>common/javascript/common.js" type="text/javascript" ></script> 
     3<script language="JavaScript" src="<?php echo $_SESSION["app_path"]?>include/jstransport.php" type="text/javascript" ></script> 
    34<script language="JavaScript" src="<?php echo $_SESSION["app_path"]?>common/javascript/menu.js" type="text/javascript" ></script> 
    45<script language="JavaScript" src="<?php echo $_SESSION["app_path"]?>common/javascript/moo/prototype.lite.js" type="text/javascript" ></script> 
  • trunk/phpbms/include/fields.php

    r184 r186  
    338338        $querystatement="SELECT ".$displayfield." AS display FROM ".$tableinfo["maintable"]." WHERE ".$getfield."=\"".$initialvalue."\" LIMIT 1;"; 
    339339        $queryresult = mysql_query($querystatement,$dblink); 
    340         if(!$queryresult) reportError(100,"Could not retrieve autofill inital data.<br>".$querystatement); 
     340        if(!$queryresult) reportError(100,"Could not retrieve autofill inital data.<br />".$querystatement); 
    341341        if(mysql_num_rows($queryresult)) 
    342342                $displayresult = mysql_fetch_array($queryresult); 
  • trunk/phpbms/include/search_class.php

    r184 r186  
    293293                         
    294294                        $queryresult=mysql_query($querystatement,$dblink); 
    295                         if(!$queryresult) reportError(100,"Error Retrieving Initial Rowset: ".mysql_error($dblink)."<br>".$querystatement); 
     295                        if(!$queryresult) reportError(100,"Error Retrieving Initial Rowset: ".mysql_error($dblink)."<br />".$querystatement); 
    296296                         
    297297                        return $queryresult; 
  • trunk/phpbms/install/settings.sql

    r145 r186  
    1 INSERT INTO `settings` VALUES (1, 'application_name', 'phpBMS'); 
    2 INSERT INTO `settings` VALUES (2, 'encryption_seed', 'freeble'); 
    3 INSERT INTO `settings` VALUES (3, 'record_limit', '50'); 
    4 INSERT INTO `settings` VALUES (4, 'default_load_page', 'modules/base/snapshot.php'); 
    5 INSERT INTO `settings` VALUES (5, 'company_name', 'Kreotek LLC'); 
    6 INSERT INTO `settings` VALUES (6, 'company_address', '481 Rio Rancho Blvd. NE'); 
    7 INSERT INTO `settings` VALUES (7, 'company_csz', 'Rio Rancho, NM 87124'); 
    8 INSERT INTO `settings` VALUES (8, 'company_phone', '505.994.6388'); 
    9 INSERT INTO `settings` VALUES (11,'stylesheet', 'mozilla');  
     1INSERT INTO `settings` (`name`, `value`) VALUES ('application_name','phpBMS'); 
     2INSERT INTO `settings` (`name`, `value`) VALUES ('encryption_seed','freeble'); 
     3INSERT INTO `settings` (`name`, `value`) VALUES ('record_limit','45'); 
     4INSERT INTO `settings` (`name`, `value`) VALUES ('default_load_page','modules/base/snapshot.php'); 
     5INSERT INTO `settings` (`name`, `value`) VALUES ('company_name','Kreotek LLC'); 
     6INSERT INTO `settings` (`name`, `value`) VALUES ('company_address','481 Rio Rancho Blvd. NE '); 
     7INSERT INTO `settings` (`name`, `value`) VALUES ('company_csz','Rio Rancho, NM 87124'); 
     8INSERT INTO `settings` (`name`, `value`) VALUES ('company_phone','505.994.6388'); 
     9INSERT INTO `settings` (`name`, `value`) VALUES ('stylesheet','mozilla'); 
     10INSERT INTO `settings` (`name`, `value`) VALUES ('phone_format','US - Loose'); 
  • trunk/phpbms/modules/base/adminsettings.php

    r155 r186  
    157157                <div class="fauxP"> 
    158158                        <br />Printed Logo 
    159                         <div id="graphicHolder"><img src="<?php echo $_SESSION["app_path"]?>dbgraphic.php?t=files&f=file&mf=type&r=1"></div> 
     159                        <div id="graphicHolder"><img alt="logo" src="<?php echo $_SESSION["app_path"]?>dbgraphic.php?t=files&amp;f=file&amp;mf=type&amp;r=1" /></div> 
    160160                </div> 
    161161                 
     
    181181                                        if ($entry!="." and  $entry!=".." and is_dir($thedir."/".$entry)) { 
    182182                                                echo "<option value=\"".$entry."\""; 
    183                                                         if($entry==$_SESSION["stylesheet"]) echo " selected "; 
     183                                                        if($entry==$_SESSION["stylesheet"]) echo " selected=\selected\" "; 
    184184                                                echo ">".$entry."</option>"; 
    185185                                        } 
     
    190190                </p> 
    191191        </fieldset> 
    192  
     192        <fieldset> 
     193                <legend>Localization</legend> 
     194                <p> 
     195                        <label for="">phone format</label><br /> 
     196                        <select id="sphone_format" name="sphone_format"> 
     197                                <option value="US - Strict" <?php if($_SESSION["phone_format"]=="US - Strict")  echo "selected=\selected\"";?>>US - Strict</option> 
     198                                <option value="US - Loose" <?php if($_SESSION["phone_format"]=="US - Loose")  echo "selected=\selected\"";?>>US - Loose</option> 
     199                        </select> 
     200                </p> 
     201        </fieldset> 
    193202        <?php  
    194203        $querystatement="SELECT name FROM modules WHERE name!=\"base\" ORDER BY name"; 
  • trunk/phpbms/modules/base/include/notes_records_process.php

    r166 r186  
    6666                        $thequery = "delete from notes where (createdby=".$_SESSION["userinfo"]["id"]." or assignedtoid=".$_SESSION["userinfo"]["id"].") and (".$dwhereclause.");"; 
    6767                        $theresult = mysql_query($thequery); 
    68                         if (!$theresult) die ("Couldn't Update: ".mysql_error($dblink)."<BR>\n SQL STATEMENT [".$thequery."]");          
     68                        if (!$theresult) die ("Couldn't Update: ".mysql_error($dblink)."<br />\n SQL STATEMENT [".$thequery."]");                
    6969        break; 
    7070        case "edit/view": 
  • trunk/phpbms/modules/base/include/notes_search_functions.php

    r170 r186  
    7979        $querystatement="SELECT distinct notes.parentid FROM notes where notes.parentid is not null and notes.completed=0 and (".$whereclause.")"; 
    8080        $repeatqueryresult = mysql_query($querystatement,$dblink); 
    81         if (!$repeatqueryresult) reportError(300,"Couldn't Delete: ".mysql_error($dblink)."<BR>\n SQL STATEMENT [".$querystatement."]");                 
     81        if (!$repeatqueryresult) reportError(300,"Couldn't Delete: ".mysql_error($dblink)."<br />\n SQL STATEMENT [".$querystatement."]");               
    8282 
    8383        $querystatement = "DELETE FROM notes WHERE ((notes.createdby=".$_SESSION["userinfo"]["id"]." or notes.assignedtoid=".$_SESSION["userinfo"]["id"].") OR (".$_SESSION["userinfo"]["admin"]." =1)) and (".$whereclause.") and (notes.`repeat`!=1);"; 
    8484        $queryresult = mysql_query($querystatement,$dblink); 
    85         if (!$queryresult) reportError(300,"Couldn't Delete: ".mysql_error($dblink)."<BR>\n SQL STATEMENT [".$querystatement."]");               
     85        if (!$queryresult) reportError(300,"Couldn't Delete: ".mysql_error($dblink)."<br />\n SQL STATEMENT [".$querystatement."]");             
    8686 
    8787        $message=buildStatusMessage(mysql_affected_rows($dblink),count($theids)); 
  • trunk/phpbms/modules/base/include/tabledefs_columns_include.php

    r170 r186  
    8888                $querystatement.=" ".$variables["wrap"]." )";            
    8989 
    90                 if(mysql_query($querystatement,$dblink)) $thereturn ="Column Added"; else $thereturn=mysql_error($dblink)." <BR>".$querystatement; 
     90                if(mysql_query($querystatement,$dblink)) $thereturn ="Column Added"; else $thereturn=mysql_error($dblink)." <br />".$querystatement; 
    9191                 
    9292                return $thereturn; 
     
    110110                $querystatement.="wrap=".$variables["wrap"]." ";                 
    111111                $querystatement.="WHERE id=".$variables["columnid"]; 
    112                 if(mysql_query($querystatement,$dblink)) $thereturn ="Column Updated"; else $thereturn=mysql_error($dblink)." <br>".$querystatement; 
     112                if(mysql_query($querystatement,$dblink)) $thereturn ="Column Updated"; else $thereturn=mysql_error($dblink)." <br />".$querystatement; 
    113113                 
    114114                return $thereturn; 
  • trunk/phpbms/modules/base/include/tasks_search_functions.php

    r145 r186  
    5454        $thequery = "update notes set notes.beenread=1 where (".$whereclause.") and type!=\"System\";"; 
    5555        $theresult = mysql_query($thequery); 
    56         if (!$theresult) die ("Couldn't mark as read: ".mysql_error($dblink)."<BR>\n SQL STATEMENT [".$thequery."]");            
     56        if (!$theresult) die ("Couldn't mark as read: ".mysql_error($dblink)."<br />\n SQL STATEMENT [".$thequery."]");          
    5757} 
    5858 
     
    7070        $querystatement = "delete from notes where (createdby=".$_SESSION["userinfo"]["id"]." or assignedtoid=".$_SESSION["userinfo"]["id"].") and (".$whereclause.");"; 
    7171        $queryresult = mysql_query($querystatement,$dblink); 
    72         if (!$queryresult) reportError(1,"Couldn't Update: ".mysql_error($dblink)."<BR>\n SQL STATEMENT [".$querystatement."]");                 
     72        if (!$queryresult) reportError(1,"Couldn't Update: ".mysql_error($dblink)."<br />\n SQL STATEMENT [".$querystatement."]");               
    7373} 
    7474 
  • trunk/phpbms/modules/base/javascript/snapshot.js

    r145 r186  
    8282        loadXMLDoc(theURL,null,false); 
    8383        if(req.responseText!="success") 
    84                 alert("Error: <br>"+req.responseText);   
     84                alert("Error: <br />"+req.responseText);         
    8585         
    8686} 
  • trunk/phpbms/modules/base/report/notes_summary.php

    r145 r186  
    5454                                                FROM notes INNER JOIN users on notes.createdby=users.id ".$_SESSION["printing"]["whereclause"].$sortorder; 
    5555        $thequery=mysql_query($querystatement,$dblink); 
    56         if(!$thequery) die("No records, or invlaid SQL statement:<BR>".$querystatement); 
     56        if(!$thequery) die("No records, or invlaid SQL statement:<br />".$querystatement); 
    5757        //=================================================================================================== 
    5858        // Generating PDF File. 
  • trunk/phpbms/modules/bms/adminsettings.php

    r155 r186  
    1010        <p> 
    1111                <label for="sshipping_markup">markup</label><br /> 
    12                 <?php field_text("sshipping_markup",$_SESSION["shipping_markup"],0,"","real",Array("size"=>"10","maxlength"=>"10")); ?><br> 
    13                 <span class="notes"><strong>Note:</strong> Enter the number to multiply the calculated shipping cost. <br> 
     12                <?php field_text("sshipping_markup",$_SESSION["shipping_markup"],0,"","real",Array("size"=>"10","maxlength"=>"10")); ?><br /> 
     13                <span class="notes"><strong>Note:</strong> Enter the number to multiply the calculated shipping cost. <br /> 
    1414                For example to mark up shipping costs by 10%, enter 1.1</span> 
    1515        </p> 
  • trunk/phpbms/modules/bms/install/settings.sql

    r145 r186  
    1 INSERT INTO `settings` VALUES (9, 'shipping_markup', '1.1'); 
    2 INSERT INTO `settings` VALUES (10,'shipping_postalcode', '87124'); 
    3 INSERT INTO `settings` VALUES (12,'invoice_default_printinstruc', 'Thank You For Your Order.');  
     1INSERT INTO `settings` (`name`, `value`) VALUES ('shipping_markup','1.1'); 
     2INSERT INTO `settings` (`name`, `value`) VALUES ('shipping_postalcode','87124\"'); 
     3INSERT INTO `settings` (`name`, `value`) VALUES ('invoice_default_printinstruc','Thank You For Your Order.'); 
  • trunk/phpbms/modules/bms/install/uninstall.php

    r150 r186  
    6565                        $theresult=mysql_query(trim($deletestatement),$dbtlink);  
    6666                        if(!$theresult){ 
    67                                 echo "<div style=\"font-size:10px;\">".mysql_error($dbtlink)." -- '".$deletestatement."'<br>&nbsp;</div>"; 
     67                                echo "<div style=\"font-size:10px;\">".mysql_error($dbtlink)." -- '".$deletestatement."'<br />&nbsp;</div>"; 
    6868                                $thereturn="false"; 
    6969                        } 
     
    162162                <?php if (!$_POST["command"]){?> 
    163163                <p>Uninstalling the BMS module will <strong>not</strong> delete the module directory module or files form the server, but it will uninstall the entries from the phpBMS applications and drop all the tables that were installed by the module.</p> 
    164             <div align="center"><strong class="large">Before clicking the uninstall module, make certain this the action you want to take.</strong><br> 
     164            <div align="center"><strong class="large">Before clicking the uninstall module, make certain this the action you want to take.</strong><br /> 
    165165            <form name="form1" method="post" action="<?php echo $_SERVER["PHP_SELF"]?>"> 
    166166                        <input name="command" type="submit" class="Buttons" value="Uninstall BMS Module"> 
  • trunk/phpbms/modules/bms/report/clients_purchasehistory.php

    r170 r186  
    207207        <ul> 
    208208                <li> 
    209                         source:<br> 
     209                        source:<br /> 
    210210                        <?php echo $_SESSION["printing"]["dataprint"]?> 
    211211                </li> 
    212212                <li> 
    213                         date generated:<br> 
     213                        date generated:<br /> 
    214214                        <?php echo date("m/d/Y H:i");?> 
    215215                </li> 
    216216                <li style="padding-left:30px;padding-right:20px;"> 
    217                         view:<br> 
     217                        view:<br /> 
    218218                        <?php echo $this->view?> 
    219219                </li> 
    220220                <li> 
    221                         from:<br> 
     221                        from:<br /> 
    222222                        <?php echo $this->fromdate?> 
    223223                </li> 
    224224                <li> 
    225                         to:<br> 
     225                        to:<br /> 
    226226                        <?php echo $this->todate?> 
    227227                </li> 
    228         </ul><br><br> 
     228        </ul><br /><br /> 
    229229</h2> 
    230230<?php while($therecord=mysql_fetch_array($this->clientQuery)){?> 
  • trunk/phpbms/modules/bms/report/invoices_pdfinvoice.php

    r176 r186  
    6262                                        date_Format(invoicedate,\"%c/%e/%Y\") as invoicedate, 
    6363                                        date_Format(orderdate,\"%c/%e/%Y\") as orderdate, 
    64                                         date_Format(shippeddate,\"%c/%e/%Y\") as shippeddate, 
    6564                                        invoices.totalti-invoices.amountpaid as amountdue, 
    6665                                        invoices.ponumber,invoices.discountamount,invoices.discountid, 
     
    344343                        $taxstatement="SELECT id, name, percentage FROM tax WHERE id=".$therecord["taxareaid"]; 
    345344                        $taxquery=mysql_query($taxstatement,$dblink); 
    346                         if(!$taxquery) die ("cannot get tax: ".mysql_error($dblink)."<br>".$taxstatement); 
     345                        if(!$taxquery) die ("cannot get tax: ".mysql_error($dblink)."<br />".$taxstatement); 
    347346                        $taxrecord=mysql_fetch_array($taxquery); 
    348347                        $pdf->SetFont("Arial","",7); 
  • trunk/phpbms/modules/bms/report/invoices_pdfpackinglist.php

    r176 r186  
    6161                                        date_Format(invoicedate,\"%c/%e/%Y\") as invoicedate, 
    6262                                        date_Format(orderdate,\"%c/%e/%Y\") as orderdate, 
    63                                         date_Format(shippeddate,\"%c/%e/%Y\") as shippeddate, 
    6463                                        invoices.totalti-invoices.amountpaid as amountdue, 
    6564                                        invoices.ponumber,invoices.discountamount,invoices.discountid, 
  • trunk/phpbms/modules/bms/report/invoices_pdfquote.php

    r176 r186  
    6161                                        date_Format(invoicedate,\"%c/%e/%Y\") as invoicedate, 
    6262                                        date_Format(orderdate,\"%c/%e/%Y\") as orderdate, 
    63                                         date_Format(shippeddate,\"%c/%e/%Y\") as shippeddate, 
    6463                                        invoices.totalti-invoices.amountpaid as amountdue, 
    6564                                        invoices.ponumber,invoices.discountamount,invoices.discountid, 
     
    333332                        $taxstatement="select id, name, percentage from tax where id=".$therecord["taxareaid"]; 
    334333                        $taxquery=mysql_query($taxstatement,$dblink); 
    335                         if(!$taxquery) die ("cannot get tax: ".mysql_error($dblink)."<br>".$taxstatement); 
     334                        if(!$taxquery) die ("cannot get tax: ".mysql_error($dblink)."<br />".$taxstatement); 
    336335                        $taxrecord=mysql_fetch_array($taxquery); 
    337336                        $pdf->SetFont("Arial","",8); 
  • trunk/phpbms/modules/bms/report/invoices_pdfworkorder.php

    r176 r186  
    6161                                        date_Format(invoicedate,\"%c/%e/%Y\") as invoicedate, 
    6262                                        date_Format(orderdate,\"%c/%e/%Y\") as orderdate, 
    63                                         date_Format(shippeddate,\"%c/%e/%Y\") as shippeddate, 
    6463                                        invoices.totalti-invoices.amountpaid as amountdue, 
    6564                                        invoices.ponumber,invoices.discountamount,invoices.discountid, 
     
    355354                        $taxstatement="SELECT id, name, percentage FROM tax WHERE id=".$therecord["taxareaid"]; 
    356355                        $taxquery=mysql_query($taxstatement,$dblink); 
    357                         if(!$taxquery) die ("cannot get tax: ".mysql_error($dblink)."<br>".$taxstatement); 
     356                        if(!$taxquery) die ("cannot get tax: ".mysql_error($dblink)."<br />".$taxstatement); 
    358357                        $taxrecord=mysql_fetch_array($taxquery); 
    359358                        $pdf->SetFont("Arial","",7); 
  • trunk/phpbms/modules/bms/report/invoices_totals.php

    r184 r186  
    108108                $querystatement.=" FROM ".$this->selecttable.$this->whereclause;                 
    109109                $queryresult=mysql_query($querystatement,$dblink); 
    110                 if(!$queryresult) reportError(500,"Bad SQL:".mysql_error($dblink)."<br><br>".$querystatement); 
     110                if(!$queryresult) reportError(500,"Bad SQL:".mysql_error($dblink)."<br /><br />".$querystatement); 
    111111                $therecord=mysql_fetch_array($queryresult); 
    112112                ?> 
     
    136136                        $querystatement.=" FROM ".$this->selecttable.$this->whereclause.$where." GROUP BY ".$groupby; 
    137137                        $queryresult=mysql_query($querystatement,$dblink); 
    138                         if(!$queryresult) reportError(500,"Bad SQL:".mysql_error($dblink)."<br><br>".$querystatement); 
     138                        if(!$queryresult) reportError(500,"Bad SQL:".mysql_error($dblink)."<br /><br />".$querystatement); 
    139139                         
    140140                        while($therecord=mysql_fetch_array($queryresult)){ 
     
    182182                $querystatement.=" FROM ".$this->selecttable.$this->whereclause.$where." GROUP BY invoices.id";          
    183183                $queryresult=mysql_query($querystatement,$dblink); 
    184                 if(!$queryresult) reportError(500,"Bad SQL:".mysql_error($dblink)."<br><br>".$querystatement);   
     184                if(!$queryresult) reportError(500,"Bad SQL:".mysql_error($dblink)."<br /><br />".$querystatement);       
    185185 
    186186                while($therecord=mysql_fetch_array($queryresult)){                       
     
    214214                                                WHERE lineitems.invoiceid=".$invoiceid; 
    215215                $queryresult=mysql_query($querystatement,$dblink); 
    216                 if(!$queryresult) reportError(500,"Bad SQL:".mysql_error($dblink)."<br><br>".$querystatement);   
     216                if(!$queryresult) reportError(500,"Bad SQL:".mysql_error($dblink)."<br /><br />".$querystatement);       
    217217                                 
    218218                ?> 
     
    282282<h2> 
    283283        <div> 
    284         source:<br> 
     284        source:<br /> 
    285285        <?php echo $_SESSION["printing"]["dataprint"]?> 
    286286        </div> 
    287287        <div> 
    288         date generated:<br> 
     288        date generated:<br /> 
    289289        <?php echo date("m/d/Y H:i");?> 
    290290        </div> 
     
    370370        <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" name="totals" onSubmit="return submitForm(this)"> 
    371371                <div> 
    372                         report title<br>                         
     372                        report title<br />                       
    373373                        <input type="text" name="reporttitle" value="" style="width:100%"> 
    374374                </div> 
    375375                <div class="box"> 
    376                         <strong>Grouping</strong><br> 
     376                        <strong>Grouping</strong><br /> 
    377377                        <table border=0 cellspacing=0 cellpadding=0> 
    378378                                <tr> 
    379379                                        <td width="50%"> 
    380                                                 selected groupings<br> 
     380                                                selected groupings<br /> 
    381381                                                <select name="selectedgroupings" size="5" style="width:100%" multiple> 
    382382                                                </select> 
     
    384384                                        </td> 
    385385                                        <td> 
    386                                                 <div><br> 
    387                                                         <input type="button" value="&lt;&lt;" class="Buttons" onClick="moveItem('groupings','to',this.form);"><br><br> 
     386                                                <div><br /> 
     387                                                        <input type="button" value="&lt;&lt;" class="Buttons" onClick="moveItem('groupings','to',this.form);"><br /><br /> 
    388388                                                        <input type="button" value="&gt;&gt;" class="Buttons" onClick="moveItem('groupings','from',this.form);">                                                         
    389389                                                </div> 
    390390                                        </td> 
    391391                                        <td width="50%"> 
    392                                                 available groupings<br> 
     392                                                available groupings<br /> 
    393393                                                <select name="availablegroupings" size="5" style="width:100%" multiple> 
    394394                                                        <option value="invoices.invoicedate">Invoice Date</option> 
     
    419419                </div> 
    420420                <div class="box"> 
    421                         <strong>Columns</strong><br> 
     421                        <strong>Columns</strong><br /> 
    422422                        <table border=0 cellspacing=0 cellpadding=0> 
    423423                                <tr> 
    424424                                        <td width="50%"> 
    425                                                 shown columns<br> 
     425                                                shown columns<br /> 
    426426                                                <select name="selectedcolumns" size="7" style="width:100%"> 
    427427                                                        <option value="concat('$',format(sum(invoices.totalti),2))">Invoice Total</option>                                               
     
    430430                                        </td> 
    431431                                        <td> 
    432                                                 <div><br> 
    433                                                         <input type="button" value="&lt;&lt;" class="Buttons" onClick="moveItem('columns','to',this.form);"><br><br> 
     432                                                <div><br /> 
     433                                                        <input type="button" value="&lt;&lt;" class="Buttons" onClick="moveItem('columns','to',this.form);"><br /><br /> 
    434434                                                        <input type="button" value="&gt;&gt;" class="Buttons" onClick="moveItem('columns','from',this.form);">                                                   
    435435                                                </div> 
    436436                                        </td> 
    437437                                        <td width="50%"> 
    438                                                 available columns<br> 
     438                                                available columns<br /> 
    439439                                                <select name="availablecolumns" size="7" style="width:100%"> 
    440440                                                        <option value="count(invoices.id)">count</option>                                                
     
    462462                </div> 
    463463                <div class=box> 
    464                         <strong>Additional Options</strong><br> 
    465                         information shown<br> 
     464                        <strong>Additional Options</strong><br /> 
     465                        information shown<br /> 
    466466                        <select name="showwhat"> 
    467467                                <option selected value="totals">Totals Only</option> 
  • trunk/phpbms/modules/bms/report/lineitems_totals.php

    r176 r186  
    115115                $querystatement.=" FROM ".$this->selecttable.$this->whereclause;                 
    116116                $queryresult=mysql_query($querystatement,$dblink); 
    117                 if(!$queryresult) reportError(500,"showGrandTotals - Bad SQL:".mysql_error($dblink)."<br><br>".$querystatement); 
     117                if(!$queryresult) reportError(500,"showGrandTotals - Bad SQL:".mysql_error($dblink)."<br /><br />".$querystatement); 
    118118                $therecord=mysql_fetch_array($queryresult); 
    119119                ?> 
     
    143143                        $querystatement.=" FROM ".$this->selecttable.$this->whereclause.$where." GROUP BY ".$groupby; 
    144144                        $queryresult=mysql_query($querystatement,$dblink); 
    145                         if(!$queryresult) reportError(500,"showGroup - Bad SQL:".mysql_error($dblink)."<br><br>".$querystatement); 
     145                        if(!$queryresult) reportError(500,"showGroup - Bad SQL:".mysql_error($dblink)."<br /><br />".$querystatement); 
    146146                         
    147147                        while($therecord=mysql_fetch_array($queryresult)){ 
     
    189189                                                FROM ".$this->selecttable.$this->whereclause.$where." GROUP BY lineitems.id "; 
    190190                $queryresult=mysql_query($querystatement,$dblink); 
    191                 if(!$queryresult) reportError(500,"showLineItems Bad SQL:".mysql_error($dblink)."<br><br>".$querystatement);     
     191                if(!$queryresult) reportError(500,"showLineItems Bad SQL:".mysql_error($dblink)."<br /><br />".$querystatement);         
    192192                                 
    193193                ?> 
     
    260260<h2> 
    261261        <div> 
    262         source:<br> 
     262        source:<br /> 
    263263        <?php echo $_SESSION["printing"]["dataprint"]?> 
    264264        </div> 
    265265        <div> 
    266         date generated:<br> 
     266        date generated:<br /> 
    267267        <?php echo date("m/d/Y H:i");?> 
    268268        </div> 
     
    346346        <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" name="totals" onSubmit="return submitForm(this)"> 
    347347                <div> 
    348                         report title<br>                         
     348                        report title<br />                       
    349349                        <input type="text" name="reporttitle" value="" style="width:100%"> 
    350350                </div> 
    351351                <div class="box"> 
    352                         <strong>Grouping</strong><br> 
     352                        <strong>Grouping</strong><br /> 
    353353                        <table border=0 cellspacing=0 cellpadding=0> 
    354354                                <tr> 
    355355                                        <td width="50%"> 
    356                                                 selected groupings<br> 
     356                                                selected groupings<br /> 
    357357                                                <select name="selectedgroupings" size="5" style="width:100%" multiple> 
    358358                                                </select> 
     
    360360                                        </td> 
    361361                                        <td> 
    362                                                 <div><br> 
    363                                                         <input type="button" value="&lt;&lt;" class="Buttons" onClick="moveItem('groupings','to',this.form);"><br><br> 
     362                                                <div><br /> 
     363                                                        <input type="button" value="&lt;&lt;" class="Buttons" onClick="moveItem('groupings','to',this.form);"><br /><br /> 
    364364                                                        <input type="button" value="&gt;&gt;" class="Buttons" onClick="moveItem('groupings','from',this.form);">                                                         
    365365                                                </div> 
    366366                                        </td> 
    367367                                        <td width="50%"> 
    368                                                 available groupings<br> 
     368                                                available groupings<br /> 
    369369                                                <select name="availablegroupings" size="5" style="width:100%" multiple> 
    370370                                                        <option value="invoices.id">Invoice ID</option> 
     
    399399                </div> 
    400400                <div class="box"> 
    401                         <strong>Columns</strong><br> 
     401                        <strong>Columns</strong><br /> 
    402402                        <table border=0 cellspacing=0 cellpadding=0> 
    403403                                <tr> 
    404404                                        <td width="50%"> 
    405                                                 shown columns<br> 
     405                                                shown columns<br /> 
    406406                                                <select name="selectedcolumns" size="7" style="width:100%"> 
    407407                                                        <option value="concat('$',format(sum(lineitems.unitprice*lineitems.quantity),2))">Extended Price</option>                                                
     
    410410                                        </td> 
    411411                                        <td> 
    412                                                 <div><br> 
    413                                                         <input type="button" value="&lt;&lt;" class="Buttons" onClick="moveItem('columns','to',this.form);"><br><br> 
     412                                                <div><br /> 
     413                                                        <input type="button" value="&lt;&lt;" class="Buttons" onClick="moveItem('columns','to',this.form);"><br /><br /> 
    414414                                                        <input type="button" value="&gt;&gt;" class="Buttons" onClick="moveItem('columns','from',this.form);">                                                   
    415415                                                </div> 
    416416                                        </td> 
    417417                                        <td width="50%"> 
    418                                                 available columns<br> 
     418                                                available columns<br /> 
    419419                                                <select name="availablecolumns" size="7" style="width:100%"> 
    420420                                                        <option value="count(lineitems.id)">count</option>                                               
     
    437437                </div> 
    438438                <div class=box> 
    439                         <strong>Additional Options</strong><br> 
    440                         information shown<br> 
     439                        <strong>Additional Options</strong><br /> 
     440                        information shown<br /> 
    441441                        <select name="showwhat"> 
    442442                                <option selected value="totals">Totals Only</option> 
  • trunk/phpbms/modules/bms/report/products_saleshistory.php

    r163 r186  
    212212        <ul> 
    213213                <li> 
    214                         source:<br> 
     214                        source:<br /> 
    215215                        <?php echo $_SESSION["printing"]["dataprint"]?> 
    216216                </li> 
    217217                <li> 
    218                         date generated:<br> 
     218                        date generated:<br /> 
    219219                        <?php echo date("m/d/Y H:i");?> 
    220220                </li> 
    221221                <li style="padding-left:30px;padding-right:20px;"> 
    222                         view:<br> 
     222                        view:<br /> 
    223223                        <?php echo $this->view?> 
    224224                </li> 
    225225                <li> 
    226                         from:<br> 
     226                        from:<br /> 
    227227                        <?php echo $this->fromdate?> 
    228228                </li> 
    229229                <li> 
    230                         to:<br> 
     230                        to:<br /> 
    231231                        <?php echo $this->todate?> 
    232232                </li> 
    233         </ul><br><br> 
     233        </ul><br /><br /> 
    234234</h2> 
    235235<?php while($therecord=mysql_fetch_array($this->productQuery)){?> 
  • trunk/phpbms/report/general_labels.php

    r164 r186  
    6363                $reportquerystatement.=$_SESSION["printing"]["whereclause"].$sortorder; 
    6464                $thequery=mysql_query($reportquerystatement,$dblink); 
    65                 if(!$thequery) die("No records, or invlaid SQL statement:<BR>".$reportquerystatement); 
     65                if(!$thequery) die("No records, or invlaid SQL statement:<br />".$reportquerystatement); 
    6666                //=================================================================================================== 
    6767                // Generating PDF File. 
Scanned by Orvant Copyright © 2010 Kreotek, LLC. All Rights reserved.