Changeset 700 for trunk/phpbms/modules
- Timestamp:
- 01/01/10 13:45:44 (2 years ago)
- Location:
- trunk/phpbms/modules/bms
- Files:
-
- 3 modified
-
javascript/quickview.js (modified) (5 diffs)
-
quickview.php (modified) (2 diffs)
-
quickview_ajax.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/bms/javascript/quickview.js
r617 r700 46 46 47 47 var clientid = getObjectFromID("theuuid"); 48 var clientrealid = getObjectFromID("theid"); 48 49 var theURL = addeditfile; 49 50 … … 65 66 66 67 case "client": 67 theid = client id.value;68 theid = clientrealid.value; 68 69 break; 69 70 … … 72 73 theURL += "?backurl=" + encodeURIComponent(currentURL + "?cid=" + clientid.value) 73 74 74 if(newedit == "edit") 75 theURL += "&id=" + encodeURIComponent(theid); 76 else 75 if(newedit == "edit"){ 76 77 if(!theid) 78 return false; 79 else 80 theURL += "&id=" + encodeURIComponent(theid); 81 82 } else 77 83 theURL += "&cid=" + encodeURIComponent(clientid.value); 78 84 79 //console.log(theURL);80 //return false;81 85 document.location = theURL; 82 86 87 return false; 88 83 89 }//end function addEditRecord 84 90 91 85 92 function selectEdit(thetr,id,noteinvoice){ 93 86 94 var theeditbutton=getObjectFromID(noteinvoice+"edit"); 87 95 var theSelected; 96 88 97 if(noteinvoice=="note") 89 98 theSelected=selectedNote; … … 91 100 theSelected=selectedInvoice; 92 101 93 94 102 if(theSelected==id){ 95 theeditbutton.className="graphicButtons buttonEditDisabled"; 96 theeditbutton. disabled = true;103 104 theeditbutton.className="editRecordDisabled"; 97 105 theSelected=""; 98 106 thetr.className="" 107 99 108 } else { 100 109 for(var i=0; i<thetr.parentNode.childNodes.length;i++){ … … 105 114 thetr.className="smallQueryTableSelected"; 106 115 theSelected=id; 107 theeditbutton.className="graphicButtons buttonEdit"; 108 theeditbutton.disabled = false; 116 theeditbutton.className="editRecord"; 109 117 } 110 118 if(noteinvoice=="note") -
trunk/phpbms/modules/bms/quickview.php
r617 r700 40 40 require_once("include/fields.php"); 41 41 42 $pagetitle=" Quick View";42 $pagetitle="Search Clients and Prospects"; 43 43 44 44 $phpbms->cssIncludes[] = "pages/quickview.css"; … … 75 75 <h1><?php echo $pagetitle?></h1> 76 76 77 <div class="fauxDiv"> 78 79 <label for="lookupby">search by</label><br /> 77 <div class="fauxDiv big"> 80 78 81 79 <select id="lookupby"> -
trunk/phpbms/modules/bms/quickview_ajax.php
r617 r700 141 141 <fieldset> 142 142 <legend>sales</legend> 143 < p>144 <button type="button" class="graphicButtons buttonNew" onclick="addEditRecord('new','invoice','<?php echo getAddEditFile($this->db, "tbld:62fe599d-c18f-3674-9e54-b62c2d6b1883","add")?>')"><span>new</span></button>145 <button id="invoiceedit" type="button" disabled="disabled" class="graphicButtons buttonEditDisabled" onclick="addEditRecord('edit','invoice','<?php echo $invoiceEditFile?>')"><span>edit</span></button>146 </ p>147 <div class=" fauxP">143 <ul class="recordCommands"> 144 <li class="firstToolbarItem"><a href="#" class="newRecord" onclick="addEditRecord('new','invoice','<?php echo getAddEditFile($this->db, "tbld:62fe599d-c18f-3674-9e54-b62c2d6b1883","add")?>')" title="new sales order"><span>new</span></a></li> 145 <li><a href="#" id="invoiceedit" class="editRecordDisabled" onclick="addEditRecord('edit','invoice','<?php echo $invoiceEditFile?>')" title="edit"><span>edit</span></a></li> 146 </ul> 147 <div class="recordContainers"> 148 148 <div id="salesTable" class="smallQueryTableHolder"> 149 149 <?php if(!count($clientInfo["invoices"])) {?> … … 175 175 <legend>notes</legend> 176 176 177 <div class="fauxP"> 178 <p> 179 <button type="button" class="graphicButtons buttonNew" onclick="addEditRecord('new','note','<?php echo getAddEditFile($this->db, "tbld:a4cdd991-cf0a-916f-1240-49428ea1bdd1","add")?>')"><span>new</span></button> 180 <button id="noteedit" type="button" class="graphicButtons buttonEditDisabled" disabled="disabled" onclick="addEditRecord('edit','note','<?php echo $noteEditFile?>')"><span>edit</span></button> 181 </p> 177 178 <ul class="recordCommands"> 179 <li class="firstToolbarItem"><a href="#" title="new note" class="newRecord" onclick="addEditRecord('new','note','<?php echo getAddEditFile($this->db, "tbld:a4cdd991-cf0a-916f-1240-49428ea1bdd1","add")?>')"><span>new</span></a></li> 180 <li><a href="#" title="edit" id="noteedit" class="editRecordDisabled" onclick="addEditRecord('edit','note','<?php echo $noteEditFile?>')"><span>edit</span></a></li> 181 </ul> 182 <div class="recordContainers"> 183 182 184 <div id="notesTable" class="smallQueryTableHolder"> 183 185 <?php if(!count($clientInfo["notes"])) {?>