本文整理汇总了PHP中sms::getBalance方法的典型用法代码示例。如果您正苦于以下问题:PHP sms::getBalance方法的具体用法?PHP sms::getBalance怎么用?PHP sms::getBalance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sms
的用法示例。
在下文中一共展示了sms::getBalance方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: implode
$sms->getSmsKeys();
$sense = implode("|", $sms->sense);
$sql = "update " . $ecs->table("sms_server") . " set sense='" . addslashes($sense) . "' where sms_server_id=" . $sms->sms_server_id;
//mysql_like_quote
$db->query($sql);
$smarty->assign('sense', $sense);
$smarty->assign('info', "更新成功!");
assign_query_info();
$smarty->display('sms_sense_info.htm');
exit;
case 'statistics':
$smarty->assign('ur_here', "短信统计");
$statics = array();
$sms = new sms();
$statics = array('total' => $sms->total, 'used' => $sms->used);
$inf = $sms->getBalance();
$statics["remainder"] = empty($inf[1]) ? 0 : intval($inf[1]);
$schools = get_school_list();
foreach ($schools as $s) {
$statics['school'][$s['code']]['name'] = $s['name'];
$num = $db->getOne("select sum(num) from " . $s['code'] . "_school.ht_sms ");
$statics['school'][$s['code']]['num'] = $num ? $num : 0;
}
$smarty->assign('statics', $statics);
assign_query_info();
$smarty->display('sms_statics_info.htm');
exit;
case 'record':
$smarty->assign('ur_here', "短信发送记录");
$schools = get_school_list();
$smarty->assign('schools', $schools);