phpBMS

Changeset 700 for trunk/phpbms/modules

Show
Ignore:
Timestamp:
01/01/10 13:45:44 (2 years ago)
Author:
brieb
Message:
  • updated references to FPDI and mailchimp on info page
  • Added notes to ChangeLog?
  • Fixed broken js linking in quickview
  • reformatted old quickview button styles for consistency
Location:
trunk/phpbms/modules/bms
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/bms/javascript/quickview.js

    r617 r700  
    4646 
    4747    var clientid = getObjectFromID("theuuid"); 
     48    var clientrealid = getObjectFromID("theid"); 
    4849    var theURL = addeditfile; 
    4950 
     
    6566 
    6667        case "client": 
    67             theid = clientid.value; 
     68            theid = clientrealid.value; 
    6869            break; 
    6970 
     
    7273    theURL += "?backurl=" + encodeURIComponent(currentURL + "?cid=" + clientid.value) 
    7374 
    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 
    7783        theURL += "&cid=" + encodeURIComponent(clientid.value); 
    7884 
    79 //console.log(theURL); 
    80 //return false; 
    8185    document.location = theURL; 
    8286 
     87    return false; 
     88 
    8389}//end function addEditRecord 
    8490 
     91 
    8592function selectEdit(thetr,id,noteinvoice){ 
     93 
    8694        var theeditbutton=getObjectFromID(noteinvoice+"edit"); 
    8795        var theSelected; 
     96 
    8897        if(noteinvoice=="note") 
    8998                theSelected=selectedNote; 
     
    91100                theSelected=selectedInvoice; 
    92101 
    93  
    94102        if(theSelected==id){ 
    95                 theeditbutton.className="graphicButtons buttonEditDisabled"; 
    96                 theeditbutton.disabled = true; 
     103 
     104                theeditbutton.className="editRecordDisabled"; 
    97105                theSelected=""; 
    98106                thetr.className="" 
     107 
    99108        } else { 
    100109                for(var i=0; i<thetr.parentNode.childNodes.length;i++){ 
     
    105114                thetr.className="smallQueryTableSelected"; 
    106115                theSelected=id; 
    107                 theeditbutton.className="graphicButtons buttonEdit"; 
    108                 theeditbutton.disabled = false; 
     116                theeditbutton.className="editRecord"; 
    109117        } 
    110118        if(noteinvoice=="note") 
  • trunk/phpbms/modules/bms/quickview.php

    r617 r700  
    4040        require_once("include/fields.php"); 
    4141 
    42         $pagetitle="Quick View"; 
     42        $pagetitle="Search Clients and Prospects"; 
    4343 
    4444        $phpbms->cssIncludes[] = "pages/quickview.css"; 
     
    7575        <h1><?php echo $pagetitle?></h1> 
    7676 
    77         <div class="fauxDiv"> 
    78  
    79                 <label for="lookupby">search by</label><br /> 
     77        <div class="fauxDiv big"> 
    8078 
    8179                <select id="lookupby"> 
  • trunk/phpbms/modules/bms/quickview_ajax.php

    r617 r700  
    141141                            <fieldset> 
    142142                                    <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"> 
    148148                                    <div id="salesTable" class="smallQueryTableHolder"> 
    149149                                            <?php if(!count($clientInfo["invoices"])) {?> 
     
    175175                                    <legend>notes</legend> 
    176176 
    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 
    182184                                    <div id="notesTable"  class="smallQueryTableHolder"> 
    183185                                            <?php if(!count($clientInfo["notes"])) {?> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.