本文整理汇总了PHP中g2u函数的典型用法代码示例。如果您正苦于以下问题:PHP g2u函数的具体用法?PHP g2u怎么用?PHP g2u使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了g2u函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: readAuBkCardInfo
public function readAuBkCardInfo()
{
$db = new DB_test();
$arr_header = $this->arr_header;
$arr_body = $this->arr_body;
$arr_channelinfo = $this->arr_channelinfo;
$authorid = trim($arr_channelinfo['authorid']);
$arr_message = array("error_id" => "0", "result" => "success", "message" => "读取成功");
$retcode = "0";
//反馈状态 0 成功 200 自定义错误
$query = "select * from tb_author where fd_author_id = '{$authorid}'";
$db->query($query);
if ($db->nf()) {
$db->next_record();
$arr_msg['msgbody']['aushoucardman'] = g2u($db->f(fd_author_shoucardman));
$arr_msg['msgbody']['aushoucardphone'] = $db->f(fd_author_shoucardphone);
$arr_msg['msgbody']['aushoucardno'] = $db->f(fd_author_shoucardno);
$arr_msg['msgbody']['aushoucardbank'] = g2u($db->f(fd_author_shoucardbank));
$arr_msg['msgbody']['aushoucardstate'] = $db->f(fd_author_shoucardstate) + 0;
} else {
$arr_message = array("error_id" => "1", "result" => "failure", "message" => "用户信息已失效,请重新登录");
$retcode = "200";
//反馈状态 0 成功 200 自定义错误
}
$arr_msg['msgbody']['result'] = $arr_message['result'];
$arr_msg['msgbody']['message'] = $arr_message['message'];
$returnvalue = array("msgbody" => $arr_msg['msgbody']);
$returnval = TfbxmlResponse::ResponsetoApp($retcode, $returnvalue);
return $returnval;
}
示例2: get_upath
function get_upath($path, $type = 'u')
{
$path = SYS_WIN ? g2u($path) : $path;
if ('r' == $type) {
$path = substr($path, strlen(REAL_ROOT_PATH) - 1);
}
if ('u' == $type) {
$path = substr($path, strlen(REAL_USER_PATH) - 1);
}
return str_replace('//', '/', $path);
}
示例3: g2u
$data['statusCode'] = 200;
$data['message'] = '<font color="green">新建成功:</font><font color="red">' . g2u(basename($name)) . '</font><br />';
} else {
$data['statusCode'] = 300;
$data['message'] = '<font color="blue">新建失败:</font><font color="red">错误原因未知</font><br />';
}
}
} elseif ('dir' == $type) {
if (is_dir($name)) {
$data['statusCode'] = 300;
$data['message'] = '<font color="blue">新建失败:</font><font color="red">目录已存在</font><br />';
} else {
$result = (bool) @mkdir($name, 0755);
if ($result) {
$data['statusCode'] = 200;
$data['message'] = '<font color="green">新建成功:</font><font color="red">' . g2u(basename($name)) . '</font><br />';
} else {
$data['statusCode'] = 300;
$data['message'] = '<font color="blue">新建失败:</font><font color="red">错误原因未知</font><br />';
}
}
} else {
$data['statusCode'] = 300;
$data['message'] = '<font color="blue">操作失败:</font><font color="red">未知操作指令</font><br />';
}
$data['message'] .= '<font color="green">执行耗时:</font><font color="red">' . G('_run_start', '_run_end', 6) . ' 秒</font><br />';
exit(json_encode($data));
} elseif ('imageview' == $action) {
$file = u2g(trim($_REQUEST['file']));
require INC_ROOT . 'Image.class.php';
$Image = new Image();
示例4: orderPayReq
public function orderPayReq()
{
$db = new DB_test();
$arr_header = $this->arr_header;
$arr_body = $this->arr_body;
$arr_channelinfo = $this->arr_channelinfo;
$orderid = g2u(trim($arr_body['orderid']));
$orderno = g2u(trim($arr_body['orderno']));
$paymoney = trim($arr_body['paymoney'] + 0);
$fucardno = g2u(trim($arr_body['bankcardno']));
$bankname = g2u(trim($arr_body['bankname']));
$authorid = g2u(trim($arr_channelinfo['authorid']));
//$paycardid = u2g(trim(GetPayCalcuInfo::readpaycardid($arr_body['paycardid']))); //银行类型
$arr_message = array("result" => "success", "message" => "成功获取订单交易流水号!");
$arr_msg['msgbody']['result'] = $arr_message['result'];
$arr_msg['msgbody']['message'] = $arr_message['message'];
$bkmoney = $paymoney;
$arr_bkinfo = BankPayInfo::bankpayorder($authorid, $paycardid, $paymoney, $fucardno);
$bkntno = trim($arr_bkinfo['bkntno']);
$arr_feeinfo['bkordernumber'] = $bkorderNumber = $arr_bkinfo['bkorderNumber'];
$arr_feeinfo['sdcrid'] = $sdcrid = trim($arr_bkinfo['sdcrid']);
$sdcrpayfee = substr($arr_bkinfo['sdcrpayfee'], 0, -1);
//银联收取明盛浮动费率
$arr_feeinfo['sdcrpayfeemoney'] = $sdcrpayfeemoney = $bkmoney * $sdcrpayfee / 100 > $arr_bkinfo['minsdcrpayfee'] ? $bkmoney * $sdcrpayfee / 100 : $arr_bkinfo['minsdcrpayfee'];
$paytype = 'order';
$arr_msg['msgbody']['bkntno'] = $bkntno;
$ccgno = makeorderno("orderpayglist", "oplist", "opg");
$query = "insert into tb_orderpayglist(\n\t\t\t\t\t\t\t\t\tfd_oplist_no\t\t\t,fd_oplist_paycardid\t\t,fd_oplist_authorid\t,\n\t\t\t\t\t\t fd_oplist_paydate\t\t,fd_oplist_orderid \t\t,fd_oplist_fucardno\t,\n\t\t\t\t\t\t fd_oplist_bkntno\t\t,fd_oplist_payrq ,fd_oplist_paytype ,\n\t\t\t\t\t\t fd_oplist_current\t\t,fd_oplist_paymoney\t\t ,fd_oplist_payfee\t\t,\n\t\t\t\t\t\t fd_oplist_money\t\t,fd_oplist_orderno ,fd_oplist_shopid ,\n\t\t\t\t\t\t fd_oplist_fucardbank\t\t,fd_oplist_fucardmobile,\n\t\t\t\t\t\t fd_oplist_fucardman ,fd_oplist_feebankid ,fd_oplist_state ," . "fd_oplist_bkorderNumber,fd_oplist_sdcrid\t\t,fd_oplist_sdcrpayfeemoney \t\n\t\t\t\t\t\t )values\n\t\t\t\t\t\t\t\t ('{$ccgno}'\t\t,'{$paycardid}'\t,'{$authorid}'\t\t,\n\t\t\t\t\t\t\t\t '{$paydate}'\t\t,'{$orderid}'\t\t,'{$fucardno}'\t\t,\n\t\t\t\t\t\t\t\t '{$bkntno}'\t\t,'01'\t\t\t,'{$paytype}'\t\t\t,\n\t\t\t\t\t\t\t\t '{$current}'\t\t,'{$paymoney}'\t,'{$payfee}'\t\t\t,\n\t\t\t\t\t\t\t\t '{$paymoney}'\t\t,'{$orderno}'\t\t,'{$shopid}'\t\t\t,\n\t\t\t\t\t\t\t\t '{$fucardbank}'\t,'{$fucardmobile}',\n\t\t\t\t\t\t\t\t '{$fucardman}'\t\t,'{$feebankid}'\t,'0'," . "'{$bkorderNumber}' ,'{$sdcrid}' \t\t, '{$sdcrpayfeemoney}')";
$db->query($query);
$returnvalue = array("msgbody" => $arr_msg['msgbody']);
$retcode = "0";
//反馈状态 0 成功 200 自定义错误
$returnval = TfbxmlResponse::ResponsetoApp($retcode, $returnvalue);
return $returnval;
}
示例5: qqrecharge
public function qqrecharge($qq, $cardnum)
{
$userid = "A942987";
// 商户编号
$userpws = md5("tfbao20140603");
//密码md5(******);
$userpws1 = "tfbao20140603";
//密码md5(******);
$cardid = "220612";
//快充值编号
$cardnum = $cardnum + 0;
//充值面额 1,2,4,6,10,20,30,50,100,300
$mctype = "";
//慢充使用参数 此处不用
$sporder_id = "tfb" . time();
//商家订单号 (自定义设置)
$sporder_time = date("YmdHis");
$game_userid = $qq;
//qq号码
$game_srv = "";
//游戏使用到
$game_area = "";
//游戏使用到
$md5_str = strtoupper(md5($userid . $userpws . $cardid . $cardnum . $sporder_id . $sporder_time . $game_userid . "OFCARD"));
$ret_url = "";
//可以返回空
$version = '6.0';
//默认等于6.0即可
$gourl = "http://api2.ofpay.com/onlineorder.do?userid={$userid}&userpws={$userpws}&cardid={$cardid}&cardnum={$cardnum}&sporder_id={$sporder_id}&sporder_time={$sporder_time}&game_userid={$game_userid}&game_area={$game_area}&game_srv={$game_srv}&md5_str={$md5_str}&ret_url=&version=6.0";
$result = $this->getcontent($gourl);
$arr_xml = $this->Publiccls->xml_to_array($result);
$arr_xml['ofreqcontent'] = $gourl;
$arr_xml['ofanscontent'] = $result;
// echo $arr_xml['orderinfo']['retcode'];
$file = "../../" . CONST_LOGDIR . "/" . date('Y-m-d') . "qq充值-log" . ".txt";
$filehandle = fopen($file, "a");
fwrite($filehandle, "\r\n======qq充值响应内容:\r\n" . $gourl . "\r\n\r\n返回值:" . serialize($arr_xml) . "\r\n\r\n" . g2u($result) . "<!----结束------------>\r\n\r\n\r\n");
fclose($filehandle);
return $arr_xml;
}
示例6: readQueryCardMoney
public function readQueryCardMoney()
{
$db = new DB_test();
$arr_header = $this->arr_header;
$arr_body = $this->arr_body;
$arr_channelinfo = $this->arr_channelinfo;
$bankcardno = $arr_body['bankcardno'];
$bankid = $arr_body['bankid'];
$bankname = $arr_body['bankname'];
$lastfour = substr($bankcardno, -4);
$query = "select fd_bank_sendmesage as smsmsg ,fd_bank_smsphone as smsphone from \n\t\t\t tb_bank where fd_bank_id = '{$bankid}'";
//只显示激活的银行列表
$db->query($query);
if ($db->nf()) {
$db->next_record();
$smsmsg = $db->f('smsmsg');
$smsphone = $db->f('smsphone');
}
if (!$db->nf()) {
$arr_message = array("result" => "failure", "message" => "暂不支持该银行手机查询余额业务", "retcode" => "200");
$retcode = "200";
//反馈状态 0 成功 200 自定义错误
} else {
$arr_message = array("result" => "success", "message" => "成功获取余额查询短信码!", "retcode" => "0");
$retcode = "0";
//反馈状态 0 成功 200 自定义错误
}
$smsmsg = str_replace("%f", $lastfour, $smsmsg);
$arr_msg['msgbody']['result'] = $arr_message['result'];
$arr_msg['msgbody']['message'] = $arr_message['message'];
$arr_msg['msgbody']['smsmsg'] = g2u($smsmsg);
$arr_msg['msgbody']['smsphone'] = $smsphone;
$returnvalue = array("msgbody" => $arr_msg['msgbody']);
$returnval = TfbxmlResponse::ResponsetoApp($retcode, $returnvalue);
return $returnval;
}
示例7: paycardnum
$vstate = $db->f(fd_saler_state);
$vpaycardnum = paycardnum($vid);
if ($vstate == 0) {
$vstate = "初始";
} else {
if ($vstate == 1) {
$vstate = "正常";
} else {
if ($vstate == -1) {
$vstate = "冻结";
}
}
}
$vstate = $vstate;
$vedit = '<a class="edit" onclick="edit(' . $vid . ')">编辑</a><a class="del" onclick="del(' . $vid . ')">删除</a>';
$arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $vtruename, $vidcard, $vpaycardnum, $vsalerlevel, $vstate, $vusername, $vphone, g2u($vedit));
}
} else {
$vmembernum = "暂无数据";
$arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $vtruename, $vidcard, $vpaycardnum, $vsalerlevel, $vstate, $vusername, $vphone, $vedit);
}
$returnarray['sEcho'] = intval($sEcho);
$returnarray['iTotalRecords'] = $totoalcount;
$returnarray['iTotalDisplayRecords'] = $totoalcount;
$returnarray['aaData'] = $arr_list;
$returnvalue = json_encode($returnarray);
echo json_encode($returnarray);
//显示帐户列表
function paycardnum($salerid)
{
$db = new DB_test();
示例8: while
if ($db->nf()) {
while ($db->next_record()) {
$bank_name = g2u($db->f(fd_bank_name));
$paycardkey = $db->f(fd_paycard_key);
$cardno = $db->f(fd_authorbkcard_no);
$cardname = g2u($db->f(fd_authorbkcard_cardname));
$ckr = g2u($db->f(fd_authorbkcard_ckr));
$creditmoney = $db->f(fd_authorbkcard_creditmoney);
$zdr = g2u($db->f(fd_authorbkcard_zdr));
$hkr = g2u($db->f(fd_authorbkcard_hkr));
$mxq = $db->f(fd_authorbkcard_mxq);
$txr = $db->f(fd_authorbkcard_txr);
$dqr = $db->f(fd_authorbkcard_dqr);
$activetime = $db->f(fd_authorbkcard_activetime);
$datetime = $db->f(fd_authorbkcard_datetime);
$txr = g2u($arr_name[$txr]);
if (!$paycardkey) {
$paycardkey = "未绑定刷卡器";
}
$arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $bank_name, g2u($paycardkey), $cardno, $cardname, $ckr, $creditmoney, $zdr, $hkr, $mxq, $txr, $dqr, $activetime, $datetime);
}
} else {
$vmember = "暂无数据";
$arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $bank_name, g2u($paycardkey), $cardno, $cardname, $ckr, $creditmoney, $zdr, $hkr, $mxq, $txr, $dqr, $activetime, $datetime);
}
$returnarray['sEcho'] = intval($sEcho);
$returnarray['iTotalRecords'] = $totoalcount;
$returnarray['iTotalDisplayRecords'] = $totoalcount;
$returnarray['aaData'] = $arr_list;
$returnvalue = json_encode($returnarray);
echo json_encode($returnarray);
示例9: u2g
if($key==$zhunub-1){
$dharray.=']}';
}else{
$dharray.=']},';
}
}else{
if($zhudh['type']==1){
$type='url';
}else{
$type='key';
}
if($key==$zhunub-1){
$dharray.='{"type":"'.$leixin[$zhudh['type']].'","name":"'.g2u($zhudh['title']).'","'.$type.'":"'.g2u($zhudh['content']).'"}';
}else{
$dharray.='{"type":"'.$leixin[$zhudh['type']].'","name":"'.g2u($zhudh['title']).'","'.$type.'":"'.g2u($zhudh['content']).'"},';
}
}
}
$dharray.=']}';
echo $dharray;
}
function u2g($a) {
return is_array($a) ? array_map('u2g', $a) : diconv($a, 'UTF-8', CHARSET);
}
function g2u($a) {
return is_array($a) ? array_map('g2u', $a) : diconv($a, CHARSET, 'UTF-8');
}
示例10: trim
}
$vtype = trim($vtype);
$cardsmoney = $cardmoney * $vmembernum;
$ordersmoney = $ordermoney * $vallquanity;
$downcardsmoney = $upcardmoney * $vdownmembernum;
$downordersmoney = $upordermoney * $valldownquanity;
$allmoney = 0;
$allmoney = $cardsmoney + $ordersmoney + $downcardsmoney + $downordersmoney;
//if($j==1) $money=$upmoney;
$arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $beginmonth, $vtruename, $vtype, $vmembernum, $cardsmoney, $vallquanity, $ordersmoney, $vdownmembernum, $downcardsmoney, $valldownquanity, $downordersmoney, $allmoney);
}
}
}
if ($arr_list == "") {
$vmembernum = "";
$arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $beginmonth, $vtruename, $vtype, $vsharesaler, $vzjl, $vtype, $vsharesaler, $vzjl, g2u($vmembernum), $cardsmoney, $vallquanity, $ordersmoney);
}
$returnarray['sEcho'] = intval($sEcho);
$returnarray['iTotalRecords'] = $totoalcount;
$returnarray['iTotalDisplayRecords'] = $totoalcount;
$returnarray['aaData'] = $arr_list;
$returnvalue = json_encode($returnarray);
echo json_encode($returnarray);
//显示帐户列表
function selectsaler($sharesalerid)
{
$db = new DB_test();
//显示帐户选择列表
$query = "select * from web_saler where fd_saler_id='{$sharesalerid}'";
$db->query($query);
if ($db->nf()) {
示例11: intval
$article = $Db->Fetch($Db->ThisQuery("SELECT * FROM `" . $db_prefix . "collect` WHERE `id` = " . intval($ccid) . ""));
//$idurl=stripslashes($article['idurl']);
//$cc_bid=stripslashes($article['cc_bid']);
//$ccurl=str_replace("[ID]",$cc_bid,$idurl);
$article['charset'] == "gb2312" ? $bodys = g2u(ovovgetfile($cc_lurl)) : ($bodys = ovovgetfile($cc_lurl));
$body_ruler = getrole("</head>||</body>", $article['charset']);
//字符编码
preg_match("/" . $body_ruler . "/iU", $bodys, $bdtt);
echo "<textarea name=\"textarea\" id=\"textarea\" cols=\"92\" rows=\"22\">" . $bdtt[1] . "</textarea>";
break;
case 'viewbody2':
$ccid = intval(trim($_GET['ccid']));
$cc_curl = trim($_GET['cc_curl']);
$article = $Db->Fetch($Db->ThisQuery("SELECT * FROM `" . $db_prefix . "collect` WHERE `id` = " . intval($ccid) . ""));
//echo getfile($cc_curl);
$article['charset'] == "gb2312" ? $bodys = g2u(ovovgetfile($cc_curl)) : ($bodys = ovovgetfile($cc_curl));
$body_ruler = getrole("</head>||</body>", $article['charset']);
//字符编码
preg_match("/" . $body_ruler . "/iU", $bodys, $bdtt);
echo "<textarea name=\"textarea\" id=\"textarea\" cols=\"92\" rows=\"22\">" . $bdtt[1] . "</textarea>";
break;
case 'do_setadd2':
//保存第二步
$cccharset = htmlspecialchars(trim($_POST['cccharset']));
$liebiaoid = intval(trim($_POST['liebiaoid']));
$cc_url = trim($_POST['cc_url']);
$cc_bid = htmlspecialchars(trim($_POST['cc_bid']));
$cc_eid = htmlspecialchars(trim($_POST['cc_eid']));
$cc_buno = intval(trim($_POST['cc_buno']));
$url_list = htmlspecialchars(trim($_POST['url_list']));
if (empty($cc_url) || empty($liebiaoid)) {
示例12: array
$vofanli = "";
$selectarray = array("赠送账户", "充值账户");
$query = "select * from web_memfanlilist\n left join tb_organmem on fd_organmem_id = fd_fanlilist_memberid where fd_fanlilist_state='{$state}' \n {$sWhere} ";
$db->query($query);
//echo $query;
$totoalcount = $db->nf() + 0;
$query .= " limit {$iDisplayStart},{$iDisplayLength} ";
$db->query($query);
if ($db->nf()) {
while ($db->next_record()) {
$memberid = $db->f(fd_organmem_id);
$vmember = g2u($db->f(fd_organmem_comnpany));
$s_month = $db->f(fd_fanlilist_month);
$vfanli = $db->f(fd_fanlilist_fanli) + 0;
//echo $vfanli;
$vaccount = $db->f(fd_fanlilist_account);
$vfanli = $vfanli . "<input type='hidden' value='" . $vfanli . "' name='arr_fanli[]'>\n\t <input type='hidden' value='" . $memberid . "' name='arr_memberid[]'>\n\t\t\t\t\t\t <input type='hidden' value='" . $s_month . "' name='arr_month[]'>";
$account = makeselect($selectarray, $vaccount, $selectarray);
$account = "<select name='arr_account[]' >" . g2u($account) . "</select>";
$arr_list[] = array("DT_RowId" => $vmember, "DT_RowClass" => "", $s_month, $vmember, $vfanli, $account);
}
} else {
$vmember = "暂无数据";
$arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", "", "", "", "");
}
$returnarray['sEcho'] = intval($sEcho);
$returnarray['iTotalRecords'] = $totoalcount;
$returnarray['iTotalDisplayRecords'] = $totoalcount;
$returnarray['aaData'] = $arr_list;
$returnvalue = json_encode($returnarray);
echo json_encode($returnarray);
示例13: g2u
$paycardid = $db->f(fd_paycard_id);
if ($salepaycardbackstate[$paycardid]['state'] == "9") {
$batches = $db->f(fd_paycard_batches);
$paycardkey = $db->f(fd_paycard_key);
$stockprice = $db->f(fd_paycard_stockprice);
$suppname = g2u($db->f(fd_product_suppname));
$productname = g2u($db->f(fd_product_name));
$scope = $db->f(fd_paycard_scope);
if ($scope == "creditcard") {
$scope = "信用卡";
}
if ($scope == "bankcard") {
$scope = "储蓄卡";
}
$action = "<span style='cursor:pointer;color:blue;' onclick='changestate({$paycardid})'>重新出售</span>";
$arr_list[$count] = array("DT_RowId" => $vid, "DT_RowClass" => "", g2u($action), $paycardid, $batches, $paycardkey, $suppname, $productname, $stockprice, g2u($scope), $salepaycardbackstate[$paycardid]['date'], g2u($salepaycardbackstate[$paycardid]['memo']));
}
}
} else {
$vmember = "暂无数据";
}
if (!$arr_list) {
$arr_list[$count] = array("DT_RowId" => $vid, "DT_RowClass" => "", "", "", "", "", "", "", "", "", "", "");
}
$returnarray['sEcho'] = intval($sEcho);
$returnarray['iTotalRecords'] = $totoalcount;
$returnarray['iTotalDisplayRecords'] = $totoalcount;
$returnarray['aaData'] = $arr_list;
$returnvalue = json_encode($returnarray);
echo json_encode($returnarray);
function getsalepaycardbackstate()
示例14: while
}
$query = "SELECT * FROM `tb_payfeelist`\nleft join tb_paycard on fd_paycard_id=fd_payfee_paycardid \nwhere fd_payfee_tabname='{$tabname}' {$sWhere}";
$db->query($query);
$totoalcount = $db->nf() + 0;
$count = 0;
$query = "{$query} limit {$iDisplayStart},{$iDisplayLength} ";
$db->query($query);
if ($db->nf()) {
while ($db->next_record()) {
$vid = $db->f(fd_payfee_id);
//idºÅ
$vpayfeeno = $db->f(fd_payfee_no);
//idºÅ
$vpaycardid = $db->f(fd_paycard_no);
$vaddmoney = $db->f(fd_payfee_addmoney);
$vlessmoney = $db->f(fd_payfee_lessmoney);
$vpaymode = g2u($db->f(fd_payfee_paymode));
$vtime = $db->f(fd_payfee_datetime);
$vpaymemo = g2u($db->f(fd_payfee_memo));
$arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $vpayfeeno, $vpaycardid, $vaddmoney, $vpaymode, $vtime);
}
} else {
$vmembernum = "ÔÝÎÞÊý¾Ý";
$arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $vpayfeeno, $vpaycardid, $vaddmoney, $vpaymode, $vtime);
}
$returnarray['sEcho'] = intval($sEcho);
$returnarray['iTotalRecords'] = $totoalcount;
$returnarray['iTotalDisplayRecords'] = $totoalcount;
$returnarray['aaData'] = $arr_list;
$returnvalue = json_encode($returnarray);
echo json_encode($returnarray);
示例15: g2u
$vperent = g2u($vperent);
$vinitialmoney = $vinitialmoney . "/" . $vsalemoney;
if ($vtype == 1) {
$vtype = "网导员";
} else {
if ($vtype == 2) {
$vtype = "网导经理";
}
}
$vtype = g2u($vtype);
$vedit = '<a class="edit" onclick="edit(' . $vid . ')"> </a> <a class="del" onclick="del(' . $vid . ')"> </a>';
$arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $vtruename, $vidcard, $vtype, $vsharesaler, $vzjl, $vno, $vinitialmoney, $vperent, $vstate, $vmember, $vedit);
}
} else {
$vmember = "暂无数据";
$arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $vtruename, $vidcard, $vtype, $vsharesaler, $vzjl, $vno, $vstate, $vno, $vstate, g2u($vmember), $vedit);
}
$returnarray['sEcho'] = intval($sEcho);
$returnarray['iTotalRecords'] = $totoalcount;
$returnarray['iTotalDisplayRecords'] = $totoalcount;
$returnarray['aaData'] = $arr_list;
$returnvalue = json_encode($returnarray);
echo json_encode($returnarray);
//显示帐户列表
function selectsalercard($sharesalerid)
{
$db = new DB_test();
//显示帐户选择列表
$query = "select * from web_saler where fd_saler_id='{$sharesalerid}'";
$db->query($query);
if ($db->nf()) {