• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP g2u函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了g2u函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
 }
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:30,代码来源:ApiAuCardInfo.php


示例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);
 }
开发者ID:nomagame,项目名称:ZiFeiYu-Management-System,代码行数:11,代码来源:FileFS.class.php


示例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();
开发者ID:Wen1750686723,项目名称:webftp,代码行数:31,代码来源:do.php


示例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;
 }
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:35,代码来源:ApiOrderInfo.php


示例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;
 }
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:40,代码来源:ofpay.class.php


示例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;
 }
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:36,代码来源:ApiAppInfo.php


示例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();
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:readsalerlist.php


示例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);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:readauthorbank.php


示例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');
}
开发者ID:huzhongchun,项目名称:bbs,代码行数:30,代码来源:plugin.inc.php


示例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()) {
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:readsalermonthmoney.php


示例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)) {
开发者ID:qinquanxing,项目名称:huaxia,代码行数:31,代码来源:collect.php


示例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);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:checkmemberfanli.php


示例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()
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:readsalepaycardback.php


示例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);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:readpayfeelist.php


示例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 . ')">&nbsp;</a>&nbsp;&nbsp;<a class="del" onclick="del(' . $vid . ')">&nbsp;</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()) {
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:readsalercardlist.php


示例16: array

            }
            if ($defeedirct == "f") {
                $defeedirct = "付款方";
            } else {
                $defeedirct = "收款方";
            }
            if ($mode == "fix") {
                $mode = "固定费率";
            } else {
                $mode = "浮动费率";
            }
            $arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $scdmset_name, $auindustry_name, $authornum, g2u($scope), $arrivename, g2u($defeedirct), g2u($mode), $fixfee, $fee, $minfee, $maxfee);
        }
    } else {
        $vmember = "暂无数据";
        $arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $scdmset_name, $auindustry_name, $authornum, g2u($scope), $arrivename, g2u($defeedirct), g2u($mode), $fixfee, $fee, $minfee, $maxfee);
    }
}
$returnarray['sEcho'] = intval($sEcho);
$returnarray['iTotalRecords'] = $totoalcount;
$returnarray['iTotalDisplayRecords'] = $totoalcount;
$returnarray['aaData'] = $arr_list;
$returnvalue = json_encode($returnarray);
echo json_encode($returnarray);
function getauthormeal($type)
{
    $db = new db_test();
    $query = 'select fd_author_' . $type . ',count(fd_author_' . $type . ') as authornum from tb_author group by  fd_author_' . $type . '';
    $db->query($query);
    if ($db->nf()) {
        while ($db->next_record()) {
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:readsetmeal.php


示例17: trim

            $sWhere .= " AND ";
        }
        $sWhere .= $aColumns[$i] . " LIKE '%" . trim(${$s_s}) . "%' ";
    }
}
$query = "SELECT * FROM `tb_authoraccountglist`\nleft join tb_paycard on fd_paycard_id=fd_accglist_paycardid \nwhere fd_accglist_authorid='{$authorid}' {$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_accglist_no);
        //idºÅ
        $vpaycardid = $db->f(fd_paycard_key);
        $vaddmoney = $db->f(fd_accglist_money);
        $vpaymode = g2u($db->f(fd_accglist_paytype));
        $vtime = $db->f(fd_accglist_datetime);
        $arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $vid, g2u($vtype), $vpaycardid, $vaddmoney, $vpaymode, $vtime);
    }
} else {
    $vmembernum = "ÔÝÎÞÊý¾Ý";
    $arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $vid, $vtype, $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);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:readaccountlist.php


示例18: header

<?php

require "../include/common.inc.php";
require "../include/json.php";
header('Content-Type:text/html;charset=utf-8');
$db = new db_test();
$query = "select * from web_i_procahotshop  where fd_phs_areaid = '{$areaid}' ";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $fd_phs_procaid = $db->f(fd_phs_procaid);
        $fd_phs_procaname = g2u($db->f(fd_phs_procaname));
        $select[] = array("id" => $fd_phs_procaid, "title" => $fd_phs_procaname);
    }
}
if (empty($select)) {
    $select[] = array("id" => "", "title" => "");
}
echo json_encode($select);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:19,代码来源:readprocaid.php


示例19: g2u

            $vtype = "网导员";
        } else {
            if ($vtype == 2) {
                $vtype = "网导经理";
            }
        }
        $vtype = g2u($vtype);
        $cardsmoney = $cardmoney * $vmembernum;
        $ordersmoney = $ordermoney * $vallquanity;
        //if($j==1) $money=$upmoney;
        $vedit = '<a class="edit" onclick="edit(' . $vid . ')">&nbsp;</a><a class="del" onclick="del(' . $vid . ')">&nbsp;</a>';
        $arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $beginmonth, $vtruename, $vtype, $vsharesaler, $vzjl, $vmembernum, $cardsmoney, $vallquanity, $ordersmoney);
    }
} else {
    $vmembernum = "暂无数据";
    $arr_list[] = array("DT_RowId" => $vid, "DT_RowClass" => "", $beginmonth, $vzjl, $vtruename, $vidcard, $vtype, $vsharesaler, g2u($vmembernum), $vstate, $vusername, $vedit);
}
$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()) {
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:readsalerdmonthmoney.php


示例20: while

$query = "select * from web_test_interface where fd_interface_id ='{$interface_id}'";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        //$interface_id  = $db->f(fd_interface_id);
        $interface_no = $db->f(fd_interface_no);
        $interface_name = $db->f(fd_interface_name);
        $interface_url = $db->f(fd_interface_apinamefunc);
        $apiname = g2u($db->f(fd_interface_demo));
    }
}
$query = "select * from web_test_interface where fd_interface_active = 1 order by fd_interface_sortorder,fd_interface_no asc";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $arr_dept_easyname[] = $db->f(fd_interface_no) . g2u($db->f(fd_interface_name));
        $arr_dept_id[] = $db->f(fd_interface_id);
    }
}
// echo $interface_id;
$interface_id = makeselect($arr_dept_easyname, $interface_id, $arr_dept_id);
//生成选择菜单的函数
function makeselect($arritem, $hadselected, $arry)
{
    for ($i = 0; $i < count($arritem); $i++) {
        if ($hadselected == $arry[$i]) {
            $x .= "<option selected value='{$arry[$i]}'>" . $arritem[$i] . "</option>";
        } else {
            $x .= "<option value='{$arry[$i]}'>" . $arritem[$i] . "</option>";
        }
    }
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:index.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP gGetDb函数代码示例发布时间:2022-05-15
下一篇:
PHP g2函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap