phpBMS

Show
Ignore:
Timestamp:
04/07/09 11:44:18 (3 years ago)
Author:
nate
Message:
  • Merged Nathan branch back into trunk.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/bms/invoices_notes.php

    r285 r485  
    1 <?php  
     1<?php 
    22/* 
    33 $Rev$ | $LastChangedBy$ 
     
    3939 
    4040        include("../../include/session.php"); 
    41          
     41 
    4242 
    4343        require_once("../../include/search_class.php"); 
    44                  
     44 
    4545 
    4646        //set the table passing stuff 
     
    5353 
    5454        $refquery="SELECT 
    55                            invoices.id, if(clients.lastname!=\"\",concat(clients.lastname,\", \",clients.firstname,if(clients.company!=\"\",concat(\" (\",clients.company,\")\"),\"\")),clients.company) as name  
    56                            FROM invoices INNER JOIN clients ON invoices.clientid=clients.id  
     55                           invoices.id, if(clients.lastname!=\"\",concat(clients.lastname,\", \",clients.firstname,if(clients.company!=\"\",concat(\" (\",clients.company,\")\"),\"\")),clients.company) as name 
     56                           FROM invoices INNER JOIN clients ON invoices.clientid=clients.id 
    5757                           WHERE invoices.id=".$refid; 
    5858        $refquery=$db->query($refquery); 
    59         $refrecord=$db->fetchArray($refquery);   
    60          
    61         $pageTitle="Notes/Tasks/Events: ".$refrecord["id"].", ".$refrecord["name"]; 
     59        $refrecord=$db->fetchArray($refquery); 
     60 
     61        $pageTitle="Notes/Tasks/Events: ".$refrecord["id"]; 
     62        if($refrecord["name"] !== "") 
     63                $pageTitle .= ", ".$refrecord["name"]; 
    6264 
    6365        $tabgroup="invoices entry"; 
    6466        $selectedtabid=18; 
    65          
     67 
    6668        include("../base/notes_records.php"); 
    6769        //=================================================================================== 
    6870        //==  THAT's IT                                                                    == 
    6971        //=================================================================================== 
    70          
     72 
    7173?> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.