Changeset 1014
- Timestamp:
- 09/14/08 19:04:12 (4 months ago)
- Files:
-
- trunk/customer/call-history.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/customer/call-history.php
r1004 r1014 29 29 } 30 30 31 $customer = $_SESSION[" pr_login"];31 $customer = $_SESSION["card_id"]; 32 32 33 33 getpost_ifset(array('posted', 'Period', 'frommonth', 'fromstatsmonth', 'tomonth', 'tostatsmonth', 'fromday', 'fromstatsday_sday', 'fromstatsmonth_sday', 'today', 'tostatsday_sday', 'tostatsmonth_sday', 'dsttype', 'sourcetype', 'clidtype', 'channel', 'resulttype', 'stitle', 'atmenu', 'current_page', 'order', 'sens', 'dst', 'src', 'clid', 'choose_currency', 'terminatecauseid', 'choose_calltype')); 34 34 35 $dialstatus_list = Constants::getDialStatusList(); 35 36 36 37 if (!isset ($current_page) || ($current_page == "")){ … … 67 68 $FG_TABLE_COL[]=array (gettext("Source"), "source", "12%", "center", "SORT", "30"); 68 69 $FG_TABLE_COL[]=array (gettext("PhoneNumber"), "calledstation", "12%", "center", "SORT", "30", "", "", "", "", "", "remove_prefix"); 69 $FG_TABLE_COL[]=array (gettext("Destination"), " destination", "12%", "center", "SORT", "30", "", "", "", "", "", "remove_prefix");70 $FG_TABLE_COL[]=array (gettext("Destination"), "id_cc_prefix", "12%", "center", "SORT", "30", "", "", "", "", "", "remove_prefix"); 70 71 $FG_TABLE_COL[]=array (gettext("Duration"), "sessiontime", "7%", "center", "SORT", "30", "", "", "", "", "", "display_minute"); 71 $FG_TABLE_COL[]=array (gettext("Cardused"), "username", "11%", "center", "SORT", "30"); 72 $FG_TABLE_COL[]=array ('<acronym title="'.gettext("Terminate Cause").'">'.gettext("TC").'</acronym>', "terminatecauseid", "9%", "center", "SORT", "30"); 72 $FG_TABLE_COL[]=array ('<acronym title="'.gettext("Terminate Cause").'">'.gettext("TC").'</acronym>', "terminatecauseid", "7%", "center", "SORT", "", "list", $dialstatus_list); 73 73 $FG_TABLE_COL[]=array (gettext("Calltype"), "sipiax", "6%", "center", "SORT", "", "list", $list_calltype); 74 74 $FG_TABLE_COL[]=array (gettext("InitalRate"), "calledrate", "9%", "center", "SORT", "30", "", "", "", "", "", "display_2bill"); … … 80 80 81 81 // This Variable store the argument for the SQL query 82 $FG_COL_QUERY='t1.starttime, t1.src, t1.calledstation, t1.destination, t1.sessiontime, t1. username, t1.terminatecauseid, t1.sipiax, t1.calledrate, t1.sessionbill';82 $FG_COL_QUERY='t1.starttime, t1.src, t1.calledstation, t1.destination, t1.sessiontime, t1.terminatecauseid, t1.sipiax, t1.calledrate, t1.sessionbill'; 83 83 // t1.stoptime, 84 84 … … 170 170 171 171 if (strlen($FG_TABLE_CLAUSE)>0) $FG_TABLE_CLAUSE.=" AND "; 172 $FG_TABLE_CLAUSE.="t1. username='$customer'";172 $FG_TABLE_CLAUSE.="t1.card_id='$customer'"; 173 173 174 174 … … 638 638 </table> 639 639 640 <?php if (is_array($list) && count($list)>0 && 3==4){ ?>641 <!-- ************** TOTAL SECTION ************* -->642 <br/>643 <div style="padding-right: 15px;">644 <table cellpadding="1" bgcolor="#000000" cellspacing="1" width="200" align="right">645 <tbody>646 <tr class="form_head">647 <td width="33%" align="center" class="tableBodyRight" bgcolor="#600101" style="padding: 5px;"><strong><?php echo gettext("Total Cost");?></strong></td>648 649 </tr>650 <tr>651 <td valign="top" align="center" class="tableBody" bgcolor="white"><b><?php echo $total_cost[0][0]?></b></td>652 653 </tr>654 </table>655 </div>656 <br/><br/>657 658 <!-- ************** TOTAL SECTION ************* -->659 <?php } ?>660 661 640 <!-- ** ** ** ** ** Part to display the GRAPHIC ** ** ** ** ** --> 662 641 <br>
