Changeset 1077

Show
Ignore:
Timestamp:
09/26/08 07:13:20 (2 months ago)
Author:
rach
Message:

Correct bug about link to card

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/Public/card-history.php

    r1050 r1077  
    1313 
    1414 
    15 getpost_ifset(array('posted', 'Period', 'frommonth', 'fromstatsmonth', 'tomonth', 'tostatsmonth', 'fromday', 'fromstatsday_sday', 'fromstatsmonth_sday', 'today', 'tostatsday_sday', 'tostatsmonth_sday','entercustomer')); 
     15getpost_ifset(array('posted', 'Period', 'frommonth', 'fromstatsmonth', 'tomonth', 'tostatsmonth', 'fromday', 'fromstatsday_sday', 'fromstatsmonth_sday', 'today', 'tostatsday_sday', 'tostatsmonth_sday','entercustomer','id_cc_card')); 
    1616 
    1717 
     
    2525 
    2626// The variable FG_TABLE_NAME define the table name to use 
    27 $FG_TABLE_NAME="cc_card_history ch"; 
     27$FG_TABLE_NAME="cc_card_history ch LEFT JOIN cc_card ON cc_card.id=id_cc_card"; 
    2828 
    2929 
     
    3939// First Name of the column in the html page, second name of the field 
    4040$FG_TABLE_COL = array(); 
    41 $FG_TABLE_COL[]=array (gettext("Card Number"), "id_cc_card", "15%", "center", "sort", "", "30", "", "", "", "", "linktocustomer"); 
     41$FG_TABLE_COL[]=array (gettext("Merde"), "username", "15%", "center", "sort", "", "30", "", "", "", "", "linktocustomer"); 
    4242$FG_TABLE_COL[]=array (gettext("Date"), "datecreated", "20%", "center", "SORT"); 
    4343$FG_TABLE_COL[]=array (gettext("Description"), "description", "60%", "center", "SORT"); 
     
    4848         
    4949// This Variable store the argument for the SQL query 
    50 $FG_COL_QUERY='ch.id_cc_card, ch.datecreated, ch.description'; 
     50$FG_COL_QUERY='username, ch.datecreated, ch.description'; 
    5151 
    5252 
     
    361361                                                <?php                            
    362362                                                                        $record_display = $recordset[$i]; 
    363                                                                         echo stripslashes($record_display);     ?> 
     363                                                                        if($FG_TABLE_COL[$i][11] == "linktocustomer") echo linktocustomer(stripslashes($record_display)); 
     364                                                                        else echo stripslashes($record_display);        ?> 
    364365                                                        </TD> 
    365366                                                <?php } ?> 


Google