当前位置: 首页>>代码示例>>PHP>>正文


PHP display_2bill函数代码示例

本文整理汇总了PHP中display_2bill函数的典型用法代码示例。如果您正苦于以下问题:PHP display_2bill函数的具体用法?PHP display_2bill怎么用?PHP display_2bill使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了display_2bill函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display_2bill

    ?>
</td>
		<td align="center" nowrap="nowrap" colspan="2" class="callhistory_td4"><?php 
    echo $totalminutes;
    ?>
 </td>
		<td align="center" nowrap="nowrap" class="callhistory_td4"><?php 
    echo $totalcall;
    ?>
</td>
		<td align="center" nowrap="nowrap" class="callhistory_td4"><?php 
    echo $total_tmc;
    ?>
</td>
		<td align="center" nowrap="nowrap" class="callhistory_td4"><?php 
    display_2bill($totalcost);
    ?>
</td>
	</tr>
	
	</table>
	  
</td></tr></table>

<?php 
} else {
    ?>
	<center><h3><?php 
    echo gettext("No calls in your selection");
    ?>
.</h3></center>
开发者ID:hellbound,项目名称:a2billing-mod,代码行数:31,代码来源:call-history.php

示例2: display_minute

				</td>
			
				<td class="tableBody"  align="center">
				  <?php echo $call['destination']; ?>
				</td>
				<td class="tableBody"  align="center">
				  <?php echo display_minute($call['sessiontime']); ?>
				</td>
				<td class="tableBody"  align="center">
				  <?php echo $dialstatus_list[$call['terminatecauseid']][0]; ?>
				</td>
				<td class="tableBody"  align="center">
				  <?php echo display_2bill($call['buycost']); ?>
				</td>
				<td class="tableBody"  align="center">
				  <?php echo display_2bill($call['sessionbill']); ?>
				</td>
				<td class="tableBody"  align="center">
					<?php if(!empty($call['id_ratecard'])){ ?>
					<a href="A2B_entity_def_ratecard.php?form_action=ask-edit&id=<?php echo $call['id_ratecard']?>"> <img src="<?php echo Images_Path."/link.png"?>" border="0" title="<?php echo gettext("Link to the used rate")?>" alt="<?php echo  gettext("Link to the used rate")?>"></a>
					 <?php } ?>
				</td>
				
			</tr>
		<?php 
		$i++;	
		}
}
?>
</table>
<?php
开发者ID:nixonch,项目名称:a2billing,代码行数:31,代码来源:A2B_card_info.php

示例3: display_2bill

display_2bill($prvat);
?>
&nbsp;</b></font></td>
	 </tr>
	 <tr>
	 <td><img src="<?php 
echo Images_Path;
?>
/spacer.jpg" height="30" align="middle"></td>
	 </tr>
	 <tr bgcolor="#CCCCCC" >
	 <td  align="right"><font color="#003399"><b><?php 
echo gettext("Grand Total");
?>
 = <?php 
echo display_2bill($totalcost + $prvat);
?>
&nbsp;</b></font></td>
	 </tr>
	 <tr>
	 <td><img src="<?php 
echo Images_Path;
?>
/spacer.jpg" height="30" align="middle"></td>
	 </tr>
	 </table>
	
<table cellspacing="0" cellpadding="2" width="80%" align="center">
<tr>
			<td colspan="3">&nbsp;</td>
			</tr>           			
开发者ID:sayemk,项目名称:a2billing,代码行数:31,代码来源:A2B_entity_invoice_detail_pdf.php

示例4: display_2bill

    ?>
</b></font></td>
		<td align="center" class="sidenav" nowrap="nowrap"><b><font face="verdana"  size="1" color="#ffffff"><?php 
    echo $totalcall;
    ?>
 </b></font></td>
	        <td align="center" class="sidenav" nowrap="nowrap"><b><font face="verdana"  size="1" color="#ffffff"><?php 
    echo $total_tmc;
    ?>
</b></font></td>
        	<td align="center" class="sidenav" nowrap="nowrap"><b><font face="verdana"  size="1" color="#ffffff"><?php 
    display_2bill($totalcost);
    ?>
 </b></font></td>
		<td align="center" class="sidenav" nowrap="nowrap"><b><font face="verdana"  size="1" color="#ffffff"><?php 
    display_2bill($totalbuycost);
    ?>
</b></font></td>
	</tr>
</tbody></table>

<?php 
} else {
    ?>
	<center><h3><?php 
    echo gettext("No calls in your selection");
    ?>
.</h3></center>
<?php 
}
?>
开发者ID:sayemk,项目名称:a2billing,代码行数:31,代码来源:call-count-reporting.php

示例5: display_2bill

    ?>
</font></td>
        <td align="center" nowrap="nowrap"><font class="fontstyle_003"><?php 
    echo $total_tmc_60;
    ?>
</font></td>
        <td align="center" nowrap="nowrap"><font class="fontstyle_003"><?php 
    display_2bill($totalsell);
    ?>
</font></td>
        <td align="center" nowrap="nowrap"><font class="fontstyle_003"><?php 
    display_2bill($totalbuy);
    ?>
</font></td>
        <td align="center" nowrap="nowrap"><font class="fontstyle_003"><?php 
    display_2bill($totalprofit);
    ?>
</font></td>
    </tr>
    <!-- FIN TOTAL -->

      </tbody></table>
      <!-- Fin Tableau Global //-->

</td></tr></tbody></table>
    <br>
     <IMG SRC="graph_stat.php?min_call=<?php 
    echo $min_call;
    ?>
&fromstatsday_sday=<?php 
    echo $fromstatsday_sday;
开发者ID:pearlvoip,项目名称:a2billing,代码行数:31,代码来源:call-comp.php

示例6: EmailInvoice

function EmailInvoice($id, $invoice_type = 1)
{
    //getpost_ifset(array('customer', 'posted', 'Period', 'cardid','exporttype','choose_billperiod','id','invoice_type'));
    if ($invoice_type == "") {
        $invoice_type = 1;
    }
    if ($invoice_type == 1) {
        $cardid = $id;
        if ($cardid == "") {
            exit("Invalid ID");
        }
    }
    if ($invoice_type == 2) {
        if ($id == "" || !is_numeric($id)) {
            exit(gettext("Invalid ID"));
        }
    }
    if ($invoice_type == 1) {
        $invoice_heading = gettext("Unbilled Details");
        $invocie_top_heading = gettext("Unbilled Invoice Details for Card Number");
    } else {
        $invoice_heading = gettext("Billed Details");
        $invocie_top_heading = gettext("Billed Invoice Details for Card Number");
    }
    $DBHandle = DbConnect();
    $num = 0;
    if ($invoice_type == 1) {
        $QUERY = "Select username, vat, t1.id from cc_card t1 where t1.id = {$cardid}";
    } else {
        $QUERY = "Select username, vat, t1.id from cc_card t1, cc_invoices t2 where t1.id = t2.cardid and t2.id = {$id}";
    }
    $res_user = $DBHandle->Execute($QUERY);
    if ($res_user) {
        $num = $res_user->RecordCount();
    }
    if ($num > 0) {
        $userRecord = $res_user->fetchRow();
        $customer = $userRecord[0];
        $vat = $userRecord[1];
        $customerID = $userRecord[2];
    } else {
        exit(gettext("No User found"));
    }
    if (!isset($current_page) || $current_page == "") {
        $current_page = 0;
    }
    // this variable specifie the debug type (0 => nothing, 1 => sql result, 2 => boucle checking, 3 other value checking)
    $FG_DEBUG = 0;
    // The variable FG_TABLE_NAME define the table name to use
    $FG_TABLE_NAME = "cc_call t1";
    // The variable Var_col would define the col that we want show in your table
    // First Name of the column in the html page, second name of the field
    $FG_TABLE_COL = array();
    $FG_TABLE_COL[] = array(gettext("Calldate"), "starttime", "18%", "center", "SORT", "19", "", "", "", "", "", "display_dateformat");
    $FG_TABLE_COL[] = array(gettext("Source"), "src", "10%", "center", "SORT", "30");
    $FG_TABLE_COL[] = array(gettext("Callednumber"), "calledstation", "18%", "right", "SORT", "30", "", "", "", "", "", "");
    $FG_TABLE_COL[] = array(gettext("Destination"), "destination", "18%", "center", "SORT", "30", "", "", "", "", "", "remove_prefix");
    $FG_TABLE_COL[] = array(gettext("Duration"), "sessiontime", "8%", "center", "SORT", "30", "", "", "", "", "", "display_minute");
    if (!(isset($customer) && $customer > 0) && !(isset($entercustomer) && $entercustomer > 0)) {
        $FG_TABLE_COL[] = array(gettext("Cardused"), "username", "11%", "center", "SORT", "30");
    }
    $FG_TABLE_COL[] = array(gettext("Cost"), "sessionbill", "9%", "center", "SORT", "30", "", "", "", "", "", "display_2bill");
    $FG_TABLE_DEFAULT_ORDER = "t1.starttime";
    $FG_TABLE_DEFAULT_SENS = "DESC";
    // This Variable store the argument for the SQL query
    $FG_COL_QUERY = 't1.starttime, t1.src, t1.calledstation, t1.destination, t1.sessiontime  ';
    if (!(isset($customer) && $customer > 0) && !(isset($entercustomer) && $entercustomer > 0)) {
        $FG_COL_QUERY .= ', t1.username';
    }
    $FG_COL_QUERY .= ', t1.sessionbill';
    if (LINK_AUDIO_FILE == 'YES') {
        $FG_COL_QUERY .= ', t1.uniqueid';
    }
    $FG_COL_QUERY_GRAPH = 't1.callstart, t1.duration';
    // The variable LIMITE_DISPLAY define the limit of record to display by page
    $FG_LIMITE_DISPLAY = 500;
    // Number of column in the html table
    $FG_NB_TABLE_COL = count($FG_TABLE_COL);
    //This variable will store the total number of column
    $FG_TOTAL_TABLE_COL = $FG_NB_TABLE_COL;
    if ($FG_DELETION || $FG_EDITION) {
        $FG_TOTAL_TABLE_COL++;
    }
    if ($FG_DEBUG == 3) {
        echo "<br>Table : {$FG_TABLE_NAME}  \t- \tCol_query : {$FG_COL_QUERY}";
    }
    $instance_table = new Table($FG_TABLE_NAME, $FG_COL_QUERY);
    $instance_table_graph = new Table($FG_TABLE_NAME, $FG_COL_QUERY_GRAPH);
    if (is_null($order) || is_null($sens)) {
        $order = $FG_TABLE_DEFAULT_ORDER;
        $sens = $FG_TABLE_DEFAULT_SENS;
    }
    if ($posted == 1) {
        $SQLcmd = '';
        $SQLcmd = do_field($SQLcmd, 'src', 'src');
        $SQLcmd = do_field($SQLcmd, 'dst', 'calledstation');
    }
    $date_clause = '';
    // Period (Month-Day)
    if (DB_TYPE == "postgres") {
//.........这里部分代码省略.........
开发者ID:sayemk,项目名称:a2billing,代码行数:101,代码来源:invoice.php

示例7: gettext

	 ?>                   	
	</tr>
	<!-- FIN DETAIL -->		
	
	<!-- FIN BOUCLE -->

	<!-- TOTAL -->
	<tr bgcolor="bgcolor_019">
		<td align="right" nowrap="nowrap"><font class="fontstyle_003"><?php echo gettext("TOTAL");?></font></td>
		<td align="center" nowrap="nowrap" colspan="2"><font class="fontstyle_003"><?php echo $totalminutes?> </font></td>
		<td align="center" nowrap="nowrap"><font class="fontstyle_003"><?php echo $totalcall?></font></td>
		<td align="center" nowrap="nowrap"><font class="fontstyle_003"><?php echo $total_tmc?></font></td>   
        	<td align="center" nowrap="nowrap"><font class="fontstyle_003"><?php display_2dec($totalsuccess/$totalcall)?> </font></td>
		<td align="center" nowrap="nowrap"><font class="fontstyle_003"><?php display_2bill($totalcost) ?></font></td>
		<td align="center" nowrap="nowrap"><font class="fontstyle_003"><?php display_2bill($totalbuycost) ?></font></td>
		<td align="center" nowrap="nowrap"><font class="fontstyle_003"><?php display_2bill($totalcost - $totalbuycost) ?></font></td>
		<td align="center" nowrap="nowrap"><font class="fontstyle_003"><?php if ($totalcost!=0){ display_2dec_percentage((($totalcost - $totalbuycost)/$totalcost)*100); }else{ echo "NULL";} ?></font></td>
		<td align="center" nowrap="nowrap"><font class="fontstyle_003"><?php if ($totalbuycost!=0){ display_2dec_percentage((($totalcost - $totalbuycost)/$totalbuycost)*100);  }else{ echo "NULL";} ?></font></td>
	</tr>
	<!-- END TOTAL -->

	  </tbody></table>
	  <!-- END ARRAY GLOBAL //-->

</td></tr></tbody></table>

<br>
	<!-- SECTION EXPORT //-->
		 &nbsp; &nbsp; <a href="export_csv.php?var_export=<?php echo $FG_EXPORT_SESSION_VAR ?>&var_export_type=type_csv" target="_blank" ><img src="<?php echo Images_Path;?>/excel.gif" border="0" height="30"/><?php echo gettext("Export CSV");?></a>
		
		 - &nbsp; &nbsp; <a href="export_csv.php?var_export=<?php echo $FG_EXPORT_SESSION_VAR ?>&var_export_type=type_xml" target="_blank" ><img src="<?php echo Images_Path;?>/icons_xml.gif" border="0" height="32"/><?php echo gettext("Export XML");?></a>
开发者ID:nixonch,项目名称:a2billing,代码行数:31,代码来源:call-dnid.php

示例8: sprintf

			$total_tmc = sprintf("%02d",intval(($totalminutes/$totalcall)/60)).":".sprintf("%02d",intval(($totalminutes/$totalcall)%60));				
			$totalminutes = sprintf("%02d",intval($totalminutes/60)).":".sprintf("%02d",intval($totalminutes%60));
		}else{
			$total_tmc = intval($totalminutes/$totalcall);			
		}
	 
	 ?>                   	
	</tr>

	<!-- TOTAL -->
	<tr class="callhistory_td2">
		<td align="right" nowrap="nowrap" class="callhistory_td4"><?php echo gettext("TOTAL");?></td>
		<td align="center" nowrap="nowrap" colspan="2" class="callhistory_td4"><?php echo $totalminutes?> </td>
		<td align="center" nowrap="nowrap" class="callhistory_td4"><?php echo $totalcall?></td>
		<td align="center" nowrap="nowrap" class="callhistory_td4"><?php echo $total_tmc?></td>
		<td align="center" nowrap="nowrap" class="callhistory_td4"><?php  display_2bill($totalcost) ?></td>
	</tr>
	
	</table>
	  
</td></tr></table>

<?php  } else { ?>
	<center><h3><?php echo gettext("No calls in your selection");?>.</h3></center>
<?php  } ?>
</center>

<?php

$smarty->display( 'footer.tpl');
开发者ID:nixonch,项目名称:a2billing,代码行数:30,代码来源:call-history.php

示例9: gettext

			<tr bgcolor="#CCCCCC">
			  <td align="right"><font color="#003399"><b><?php 
    echo gettext("VAT");
    ?>
 = <?php 
    $prvat = $info_customer[0][13] / 100 * $total_invoice_cost;
    display_2bill($prvat);
    ?>
&nbsp;</font></b></td>
			  </tr>
			<tr bgcolor="#CCCCCC"><font color="#003399"><b>
			  <td align="right"><?php 
    echo gettext("Grand Total");
    ?>
 = <?php 
    echo display_2bill($total_invoice_cost + $prvat);
    ?>
&nbsp;</font></td></b>
			  </tr>
			</table>
			

<?php 
}
?>

<?php 
if ($exporttype != "pdf") {
    include 'PP_footer.php';
    ?>
开发者ID:sayemk,项目名称:a2billing,代码行数:30,代码来源:invoices_customer.php


注:本文中的display_2bill函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。