Changeset 706
- Timestamp:
- 01/03/10 21:33:53 (2 years ago)
- Location:
- trunk/phpbms
- Files:
-
- 2 added
- 13 modified
-
ChangeLog (modified) (1 diff)
-
common/stylesheet/mozilla/basics.css (modified) (2 diffs)
-
common/stylesheet/mozilla/boxes.css (modified) (3 diffs)
-
common/stylesheet/mozilla/forms.css (modified) (2 diffs)
-
common/stylesheet/mozilla/modal.css (modified) (2 diffs)
-
common/stylesheet/mozilla/pages/base/reports.css (modified) (1 diff)
-
common/stylesheet/mozilla/pages/bms/consolidateclients.css (added)
-
common/stylesheet/mozilla/pages/invoice.css (modified) (12 diffs)
-
common/stylesheet/mozilla/pages/login.css (modified) (1 diff)
-
common/stylesheet/mozilla/sizes.css (modified) (2 diffs)
-
modules/base/reports_addedit.php (modified) (2 diffs)
-
modules/bms/clients_consolidate.php (added)
-
modules/bms/clients_purchasehistory.php (modified) (2 diffs)
-
modules/bms/include/clients.php (modified) (17 diffs)
-
modules/bms/invoices_addedit.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/ChangeLog
r700 r706 15 15 * Automatically check for updates 16 16 * Increased security and security logging 17 * Formal credit memo functionality that can be associated with existing invoices 17 18 18 19 The complete list of closed tickets can be found here: http://phpbms.org/query?status=closed&milestone=0.98 -
trunk/phpbms/common/stylesheet/mozilla/basics.css
r308 r706 2 2 /* $LastChangedDate$ */ 3 3 4 BODY { 5 background: white url("image/back.png");4 BODY { 5 background: #F8F8F8; 6 6 margin:0; 7 7 } 8 8 9 BODY, P, TABLE, TD, FORM, INPUT, SELECT, TEXTAREA, OL, UL, LI, BUTTON { 9 BODY, P, TABLE, TD, FORM, INPUT, SELECT, TEXTAREA, OL, UL, LI, BUTTON { 10 10 font-size : 12px; 11 11 font-family : Arial,Helvitica,sans-serif; 12 color : black; 12 color : black; 13 13 } 14 14 15 15 P,.fauxP{ 16 16 margin:0; … … 28 28 LI{margin-bottom:5px;} 29 29 30 A { 31 color : #455372; 32 font-weight:bold; 30 A { 31 color : #455372; 32 font-weight:bold; 33 33 text-decoration:none; 34 34 } -
trunk/phpbms/common/stylesheet/mozilla/boxes.css
r308 r706 2 2 /* $LastChangedDate$ */ 3 3 4 fieldset,.bodyline,.box{ 5 border: 1px solid #ACB7C4; 6 padding:5px; 4 fieldset,.bodyline,.box{ 5 border: 1px solid #ACB7C4; 6 padding:5px; 7 7 margin-bottom:5px; 8 8 } … … 16 16 clear:both; 17 17 border-color:#CAD1D1; 18 border: none; 18 19 padding:10px; 19 20 } 20 21 21 fieldset,.box{ 22 fieldset,.box{ 22 23 margin:3px 3px 7px 3px; 23 24 } 24 25 25 26 fieldset{ 26 padding: 8px;27 padding:4px 8px; 27 28 overflow:hidden; 28 29 } … … 30 31 .box{ 31 32 background-color:#EFF9F9; 32 border-color:#CCCCCC; 33 border-color:#CCCCCC; 33 34 } -
trunk/phpbms/common/stylesheet/mozilla/forms.css
r543 r706 3 3 4 4 SELECT, INPUT, TEXTAREA, .uneditable,button{ 5 border:1px solid #ABB1B1; 5 /*border:1px solid #ABB1B1;*/ 6 border: 1px solid #C0C7C7; 6 7 font-size: 11px; 7 8 padding: 2px 0px 2px 3px; … … 21 22 .uneditable,.uneditable:Focus { 22 23 background-color:transparent; 23 border-color:# ABB1B1;24 border-color:#C0C7C7; 24 25 color:#666666; 25 26 } -
trunk/phpbms/common/stylesheet/mozilla/modal.css
r485 r706 11 11 padding:0px; 12 12 margin:0px; 13 background-color: #666666; 13 background-color: #666666; 14 14 } 15 15 16 #modalBox { 17 border:1px solid #ABB1B1;16 #modalBox { 17 /*border:1px solid #ABB1B1;*/ 18 18 padding:0px; 19 19 position: absolute; … … 29 29 background-color:#0B63A2; 30 30 border-bottom:1px solid #ABB1B1; 31 color:white; 31 color:white; 32 32 } 33 33 #modalContent{ -
trunk/phpbms/common/stylesheet/mozilla/pages/base/reports.css
r693 r706 33 33 34 34 #addNewRow td{ 35 border-color: #BBBBBB; 35 36 border-bottom:1px solid #BBBBBB; 36 37 color: #999999; -
trunk/phpbms/common/stylesheet/mozilla/pages/invoice.css
r384 r706 28 28 29 29 30 #fsTops{margin-right:270px;} 30 #fsTops{ 31 padding-top: 1px; 32 margin-right:270px; 33 } 31 34 32 35 #billingAddressDiv, #shiptoAddressDiv{ … … 53 56 display:block; 54 57 border:0; 55 margin: 0;58 margin:23px 0 0; 56 59 padding:0; 57 60 } … … 73 76 display:inline; 74 77 padding-left:15px; 75 color : #455372; 78 color : #455372; 76 79 font-weight:bold; 77 80 } … … 112 115 #lineItemsFS{clear:both;} 113 116 114 #LITable{ }117 #LITable{border-collapse: collapse;} 115 118 #LIHeader th{ 116 119 background:#455372; … … 120 123 } 121 124 125 #LIHeader #liHeaderExtendedTd{ 126 padding-right: 20px; 127 } 128 122 129 .LIRealInfo{display:none;} 123 130 124 #LIAdd TD{border-bottom:2px solid #999999} 131 #LIAdd td{ 132 border:1px solid #999999; 133 overflow: hidden; 134 } 135 136 #LIAdd input{ 137 font-size: 14px; 138 border: none; 139 } 140 141 #LIAdd #liAddButtonTd{ 142 border-right-width: 0; 143 border-left-width: 0; 144 } 145 146 #LIAdd #liAddExtendedTD{ 147 border-right-width: 0; 148 } 149 150 125 151 #LITotals TD{border-top:2px solid #999999} 126 152 … … 146 172 position:absolute; 147 173 background:white; 148 padding-bottom:4px; 149 padding-right:2px; 174 padding-right:3px; 150 175 } 151 176 … … 155 180 156 181 .lineitemsButtonDivs button{ 157 margin- top:4px;182 margin-bottom:4px; 158 183 } 159 184 … … 161 186 overflow:hidden; 162 187 background:none; 163 vertical-align: middle;164 padding: 0;188 vertical-align:top; 189 padding: 7px 0; 165 190 font-size:11px; 166 border-color:#AAAAAA; 191 border-color:#D0D0D0; 192 border-width: 1px; 167 193 border-left:0; 168 194 border-right:0; 169 195 } 170 196 171 .lineitems p{margin:4px;padding:0;} 172 173 .lineitems:hover td{ 174 background:white; 175 } 197 .lineitems p{ 198 margin:0 0 2px 5px; 199 padding:0; 200 } 201 202 .lineitems:hover td{ 203 background:white; 204 } 205 206 .lineitems input { 207 border: 1px solid #E6ECEC; 208 background: none; 209 } 210 211 .lineitems input:focus{ 212 background:white; 213 border-color: black; 214 } 215 216 .lineitems input[readonly]{ 217 padding: 3px 1px 3px 4px; 218 border: none; 219 } 220 221 .lineitems input[readonly]:focus{ 222 background: none; 223 } 176 224 177 225 .lineitemMemos{ … … 181 229 .lineitemsRight{ border-right:1px solid #AAAAAA;} 182 230 .lineitemsLeft{ border-left:1px solid #AAAAAA;} 231 232 183 233 .lineitemsBottom{ border-bottom:1px solid #AAAAAA;} 184 234 185 235 .totalItems,.invoiceTotalLabels,#parenInfo div span{border-bottom:1px solid #CCCCCC} 236 237 .totalItems input{ 238 border:none; 239 } 240 186 241 .invoiceTotalLabels{padding-left:25px;} 187 242 .invoiceTotalLabels div{height:24px; line-height:24px;vertical-align:bottom;} … … 200 255 padding:0 4px 0 4px; 201 256 border:0; 202 border-bottom:1px solid #CCCCCC;203 257 } 204 258 … … 214 268 #totalSpacer{height:55px;line-height:55px;border:0;} 215 269 #totalSpacer span{border:0;} 270 271 #lastTotalsTr td, #totalDisplayTr td{ 272 border: 0; 273 } 216 274 217 275 .vTabs,.vTabsHover{cursor:pointer;color:#455372;background:url(../image/button-rew.png) 5px 4px no-repeat;} … … 230 288 #fsInstructions{clear:both;} 231 289 #specialinstructions,#printedinstructions{width:99%} 232 -
trunk/phpbms/common/stylesheet/mozilla/pages/login.css
r485 r706 18 18 19 19 #loginbox h1{ 20 font-size: 21px; 21 font-weight: bold; 22 background-position: 6px 6px; 23 padding-left: 28px; 24 color:#455372; 20 margin: 10px 10px 0; 25 21 } 26 22 -
trunk/phpbms/common/stylesheet/mozilla/sizes.css
r705 r706 44 44 } 45 45 46 LEGEND {margin-top:0px; font-size:14px;} 46 legend { 47 margin-top:0px; 48 font-size:16px; 49 font-weight: normal; 50 padding: 0 3px; 51 margin-left: 4px; 52 } 47 53 48 54 H2{ … … 52 58 padding-bottom:0px; 53 59 margin:0px; 54 margin-top:3 0px;60 margin-top:35px; 55 61 margin-bottom:5px; 56 62 } -
trunk/phpbms/modules/base/reports_addedit.php
r703 r706 142 142 <fieldset> 143 143 <legend>settings</legend> 144 <div class="fauxP"> 144 145 <?php if(!$therecord["id"]) { 145 146 ?><p class="notes">Report settings are available after initial record creation.</p><?php … … 186 187 }//endif 187 188 ?> 189 </div> 188 190 </fieldset> 189 191 -
trunk/phpbms/modules/bms/clients_purchasehistory.php
r704 r706 71 71 72 72 $thestatus="(invoices.type =\""; 73 73 74 switch($_POST["status"]){ 74 75 case "Orders and Invoices": … … 142 143 <label for="status">type</label><br /> 143 144 <select name="status" id="status"> 144 <option value="Orders a bd Invoices" <?php if($_POST["status"]=="Orders and Invoices") echo "selected=\"selected\""?>>Orders and Invoices</option>145 <option value="Orders and Invoices" <?php if($_POST["status"]=="Orders and Invoices") echo "selected=\"selected\""?>>Orders and Invoices</option> 145 146 <option value="Invoices" <?php if($_POST["status"]=="Invoices") echo "selected=\"selected\""?>>Invoices</option> 146 147 <option value="Orders" <?php if($_POST["status"]=="Orders") echo "selected=\"selected\""?>>Orders</option> -
trunk/phpbms/modules/bms/include/clients.php
r703 r706 434 434 435 435 }//end method - insertRecord 436 436 437 437 /* 438 438 * function api_searchByEmail … … 446 446 * were encountered, or the original $requestData if there was an error 447 447 */ 448 448 449 449 function api_searchByEmail($requestData, $returnUuid = true) { 450 450 451 451 /** 452 452 * Check for required fields and return error if not there. … … 458 458 return $response; 459 459 }//end if 460 460 461 461 /** 462 * Do sql search 462 * Do sql search 463 463 */ 464 464 $querystatement = " … … 471 471 `email` = '".mysql_real_escape_string($requestData["email"])."' 472 472 "; 473 473 474 474 $queryresult = $this->db->query($querystatement); 475 475 476 476 /** 477 * Construct return array 477 * Construct return array 478 478 */ 479 479 $thereturn["type"] = "result"; … … 481 481 $thereturn["details"] = array(); 482 482 while($therecord = $this->db->fetchArray($queryresult)){ 483 483 484 484 if($returnUuid) 485 485 $thereturn["details"][] = $therecord["uuid"]; 486 486 else 487 487 $thereturn["details"][] = $therecord["id"]; 488 488 489 489 }//end while 490 490 491 491 return $thereturn; 492 492 493 493 }//end function --api_serchByEmail-- 494 494 495 495 /* 496 496 * function api_searchByNameAndPostalcode … … 505 505 * were encountered, or the original $requestData if there was an error 506 506 */ 507 507 508 508 function api_searchByNameAndPostalcode($requestData, $returnUuid = true) { 509 509 510 510 /** 511 * check for required fields 511 * check for required fields 512 512 */ 513 513 $requiredArray = array( … … 516 516 "lastname" 517 517 ); 518 518 519 519 $missingArray = array(); 520 520 521 521 foreach($requiredArray as $requiredField) 522 522 if(!isset($requestData[$requiredField])) 523 523 $missingArray[] = $requiredField; 524 524 525 525 $count = count($missingArray); 526 526 if($count){ 527 527 528 528 $response["type"] = "error"; 529 529 $response["details"] = $requestData; 530 530 $response["message"] = ""; 531 531 532 532 $i=0; 533 533 foreach($missingArray as $missingField){ 534 534 535 535 if(++$i == $count){ 536 536 if($response["message"]) … … 540 540 }else 541 541 $response["message"] .= "'".$missingField."', "; 542 542 543 543 }//end foreach 544 544 545 545 $response["messsage"] = "Data does not contain the key(s): ".$response["message"]; 546 546 547 547 return $response; 548 548 549 549 }//end if 550 550 551 551 /** 552 * do sql search 552 * do sql search 553 553 */ 554 554 $querystatement = " … … 568 568 `addresses`.`postalcode` = '".mysql_real_escape_string($requestData["postalcode"])."' 569 569 "; 570 570 571 571 $queryresult = $this->db->query($querystatement); 572 572 573 573 /** 574 * report findings 574 * report findings 575 575 */ 576 576 $thereturn["details"] = array(); … … 578 578 $thereturn["message"] = "The function api_searchByNameAndPostalcode has been run successfully."; 579 579 while($therecord = $this->db->fetchArray($queryresult)){ 580 580 581 581 if($returnUuid) 582 582 $thereturn["details"][] = $therecord["uuid"]; 583 583 else 584 584 $thereturn["details"][] = $therecord["id"]; 585 585 586 586 }//end while 587 587 588 588 return $thereturn; 589 589 590 590 }//end function --api_searchByNameAndPostalcode 591 591 592 592 /* 593 593 * function api_searchByUsernameAndPassword … … 602 602 * were encountered, or the original $requestData if there was an error 603 603 */ 604 604 605 605 function api_searchByUsernameAndPassword($requestData, $returnUuid = true) { 606 606 607 607 /** 608 * check for required fields 608 * check for required fields 609 609 */ 610 610 $requiredArray = array( … … 612 612 "password" 613 613 ); 614 614 615 615 $missingArray = array(); 616 616 617 617 foreach($requiredArray as $requiredField) 618 618 if(!isset($requestData[$requiredField])) 619 619 $missingArray[] = $requiredField; 620 620 621 621 $count = count($missingArray); 622 622 if($count){ 623 623 624 624 $response["type"] = "error"; 625 625 $response["details"] = $requestData; 626 626 $response["message"] = ""; 627 627 628 628 $i=0; 629 629 foreach($missingArray as $missingField){ 630 630 631 631 if(++$i == $count){ 632 632 if($response["message"]) … … 636 636 }else 637 637 $response["message"] .= "'".$missingField."', "; 638 638 639 639 }//end foreach 640 640 641 641 $response["messsage"] = "Data does not contain the key(s): ".$response["message"]; 642 642 643 643 return $response; 644 644 645 645 }//end if 646 646 647 647 /** 648 * do sql search 648 * do sql search 649 649 */ 650 650 $querystatement = " … … 659 659 `password` = '".mysql_real_escape_string($requestData["password"])."' 660 660 "; 661 661 662 662 $queryresult = $this->db->query($querystatement); 663 663 664 664 /** 665 * report findings 665 * report findings 666 666 */ 667 667 $thereturn["details"] = array(); … … 669 669 $thereturn["message"] = "The function api_searchByUsernameAndPassword has been run successfully."; 670 670 while($therecord = $this->db->fetchArray($queryresult)){ 671 671 672 672 if($returnUuid) 673 673 $thereturn["details"][] = $therecord["uuid"]; 674 674 else 675 675 $thereturn["details"][] = $threturn["id"]; 676 676 677 677 }//end while 678 678 679 679 return $thereturn; 680 680 681 681 }//end function --api_searchByUsernameAndPassword-- 682 682 … … 688 688 if(class_exists("searchFunctions")){ 689 689 class clientsSearchFunctions extends searchFunctions{ 690 691 function consolidate_clients($useUuid = false){ 692 693 $noOutput = true; 694 include("modules/bms/clients_consolidate.php"); 695 696 $consolidator = new clientConsolidator($this->db); 697 698 $consolidator->showPicker($this->idsArray, $useUuid); 699 exit(); 700 701 702 }//end function consolidate_clients 690 703 691 704 function mark_asclient($useUuid = false){ … … 941 954 }//end class 942 955 }//end if 956 943 957 if(class_exists("phpbmsImport")){ 944 958 class clientsImport extends phpbmsImport{ -
trunk/phpbms/modules/bms/invoices_addedit.php
r704 r706 461 461 <th nowrap="nowrap" class="queryheader" align="left" id="memoHeader">memo</th> 462 462 <th align="right" nowrap="nowrap" class="queryheader">price</th> 463 <th align="center" nowrap="nowrap" class="queryheader">qty.</th> 464 <th align="right" nowrap="nowrap" class="queryheader">extended</th> 465 <th nowrap="nowrap" class="queryheader"> </th> 463 <th align="right" nowrap="nowrap" class="queryheader">qty.</th> 464 <th align="right" nowrap="nowrap" class="queryheader" colspan="2" id="liHeaderExtendedTd">extended</th> 466 465 </tr> 467 466 </thead> … … 474 473 <td align="right" nowrap="nowrap"><input name="price" type="text" id="price" value="<?php echo htmlQuotes(numberToCurrency(0))?>" size="10" maxlength="16" class="fieldCurrency" /></td> 475 474 <td align="center" nowrap="nowrap"><input name="qty" type="text" id="qty" value="1" size="5" maxlength="16" /></td> 476 <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>477 <td nowrap="nowrap" align="left" ><button type="button" id="lineitemAddButton" class="graphicButtons buttonPlus" title="Add Line Item"><span>+</span></button></td>475 <td align="right" nowrap="nowrap"id="liAddExtendedTD"><input name="extended" type="text" id="extended" class="uneditable fieldCurrency" value="<?php echo htmlQuotes(numberToCurrency(0))?>" size="12" maxlength="16" readonly="readonly" /></td> 476 <td nowrap="nowrap" align="left" id="liAddButtonTd"><button type="button" id="lineitemAddButton" class="graphicButtons buttonPlus" title="Add Line Item"><span>+</span></button></td> 478 477 </tr><?php }//end if 479 478 … … 671 670 <td class="totalItems"> </td> 672 671 </tr> 673 <tr >672 <tr id="totalDisplayTr"> 674 673 <td colspan="2" class="invoiceTotalLabels important"><div>total</div></td> 675 674 <td class="totalItems"> … … 688 687 <td class="totalItems"><button id="payinfull" type="button" onclick="payInFull()" class="graphicButtons buttonCheck" title="Pay in full"><span>pay in full</span></button></td> 689 688 </tr> 690 <tr >689 <tr id="lastTotalsTr"> 691 690 <td colspan="2" class="invoiceTotalLabels" nowrap="nowrap"><div>amount due</div></td> 692 691 <td class="totalItems"><input id="amountdue" name="amountdue" type="text" value="<?php echo numberToCurrency($therecord["amountdue"]) ?>" size="12" maxlength="15" onchange="calculatePaidDue();" class="important fieldCurrency fieldTotal" /></td>