예제 #1
0
if (!($popup_select>=1)) $HD_Form -> FG_EXPORT_CSV = true;
if (!($popup_select>=1)) $HD_Form -> FG_EXPORT_XML = true;
$HD_Form -> FG_EXPORT_SESSION_VAR = "pr_export_pnl_report";

if (!isset($form_action))  $form_action="list"; //ask-add
if (!isset($action)) $action = $form_action;


$list = $HD_Form -> perform_action($form_action);


// #### TOP SECTION PAGE
$HD_Form -> create_toppage ($form_action);


$HD_Form -> create_form ($form_action, $list, $id=null) ;



$res = $HD_Form -> DBHandle -> Execute("select $FG_COL_QUERY_SUM from pnl_report");
if ($res){

	?><br><br><table cellspacing="0" cellpadding="0" border="0" align="center" width="95%">
	<tr class="form_head"><td class='tableBody'></td>
	<td class='tableBody'><?php gettext('Total Calls');?></td>
	<td class='tableBody'><?php gettext('Total Min');?></td>
	<td class='tableBody'><?php gettext('Toll Free Cost');?></td>
	<td class='tableBody'><?php gettext('PayPhone Cost');?></td>
	<td class='tableBody'><?php gettext('Origination Cost');?></td>
	<td class='tableBody'><?php gettext('Credits');?></td>
	<td class='tableBody'><?php gettext('Total Cost');?></td>