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


PHP mobile_url函数代码示例

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


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

示例1: getSignPackage

 public function getSignPackage($listid)
 {
     $configs = globaSetting(array("weixin_appId", "shop_logo"));
     $appid = $configs['weixin_appId'];
     $scene_list = mysqld_select('SELECT * FROM' . table('addon10_scene_list') . ' WHERE `id`=:id  ', array(':id' => $listid));
     $protocol = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443 ? "https://" : "http://";
     $url = "{$protocol}{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
     $jsapiTicket = $this->addon_get_js_ticket();
     $timestamp = time();
     $nonceStr = $this->createNonceStr();
     $string = "jsapi_ticket={$jsapiTicket}&noncestr={$nonceStr}&timestamp={$timestamp}&url={$url}";
     $signature = sha1($string);
     $title = $scene_list['share_title'];
     $imgUrl = WEBSITE_ROOT . "attachment/" . $scene_list['share_thumb'];
     $description = $scene_list['share_content'];
     if (empty($imgUrl)) {
         $imgUrl = WEBSITE_ROOT . "attachment/" . $configs['shop_logo'];
     }
     if (empty($description)) {
         $description = $configs['shop_title'];
     }
     if (empty($title)) {
         $title = $configs['shop_title'];
     }
     $signPackage = array("appId" => $appid, "nonceStr" => $nonceStr, "timestamp" => $timestamp, "url" => $url, "title" => $title, "imgUrl" => $imgUrl, "link" => WEBSITE_ROOT . mobile_url('show', array('id' => $listid)), "signature" => $signature, "description" => $description, "rawString" => $string);
     return $signPackage;
 }
开发者ID:jasonhzy,项目名称:bjcms2.3,代码行数:27,代码来源:mobile.php

示例2: mobile_url

" />
			
				 <div class="form-group">
										<label class="col-sm-2 control-label no-padding-left" > 访问链接</label>

										<div class="col-sm-9">
											<?php 
if (!empty($scene['id'])) {
    ?>
													<input readonly="readlony" type="text"  name="mobile_url" class="col-xs-10 col-sm-6" value="<?php 
    echo WEBSITE_ROOT;
    echo mobile_url('show', array('id' => $scene['id']));
    ?>
" /> &nbsp;&nbsp;&nbsp;<a target="_blank" href="<?php 
    echo WEBSITE_ROOT;
    echo mobile_url('show', array('id' => $scene['id']));
    ?>
">预览</a>
													<?php 
} else {
    ?>
													提交后生成链接
														<?php 
}
?>
										</div>
									</div>
			
		 <div class="form-group">
										<label class="col-sm-2 control-label no-padding-left" > 画报名称</label>
开发者ID:jasonhzy,项目名称:bjcms2.3,代码行数:30,代码来源:scene_post.php

示例3: get_member_account

<?php

$member = get_member_account();
$openid = $member['openid'];
$orderid = intval($_GP['orderid']);
$order = mysqld_select("SELECT * FROM " . table('shop_order') . " WHERE id = :id and openid =:openid", array(':id' => $orderid, ':openid' => $openid));
$goodsstr = "";
if (empty($order['id'])) {
    message("未找到相关订单");
}
if ($_GP['isok'] == '1' && $order['paytypecode'] == 'weixin') {
    message('支付成功!', WEBSITE_ROOT . mobile_url('myorder'), 'success');
}
if ($order['paytype'] != 3 && $order['status'] > 0 && !($order['paytype'] == 3 && $order['status'] == 1)) {
    message('抱歉,您的订单已经付款或是被关闭,请重新进入付款!', mobile_url('myorder'), 'error');
}
$ordergoods = mysqld_selectall("SELECT goodsid,optionid,total FROM " . table('shop_order_goods') . " WHERE orderid = '{$orderid}'");
if (!empty($ordergoods)) {
    $goodsids = array();
    foreach ($ordergoods as $gooditem) {
        $goodsids[] = $gooditem['goodsid'];
    }
    $goods = mysqld_selectall("SELECT id, title, thumb, marketprice, total,credit FROM " . table('shop_goods') . " WHERE id IN ('" . implode("','", $goodsids) . "')");
}
$goodtitle = '';
if (!empty($goods)) {
    foreach ($goods as $row) {
        if (empty($goodtitle)) {
            $goodtitle = $row['title'];
        }
        $_optionid = $ordergoods[$row['id']]['optionid'];
开发者ID:skystar,项目名称:cms,代码行数:31,代码来源:pay.php

示例4: mobile_url

			KindEditor.ready(function(K) {
				var editor;
			
					if (editor) {
						editor.remove();
						editor = null;
					}
					editor = K.create('textarea[name="content"]', {
						allowFileManager : false,
						height:'400px',
						 filterMode: false,
						 
						 formatUploadUrl:false,
		uploadJson : "<?php 
echo WEBSITE_ROOT . mobile_url('keupload', array('name' => 'shop'));
?>
",
						newlineTag : 'br',
								items : [
						'source','fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image',  'multiimage','insertfile','link']
					});
			
				
			});


</script>
开发者ID:jaydom,项目名称:weishang,代码行数:29,代码来源:singlepage.php

示例5: message

<?php

if (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') == false) {
    message('暂不支持非微信上进行微支付');
}
$weixinthirdlogin = mysqld_select("SELECT * FROM " . table('thirdlogin') . " WHERE enabled=1 and `code`='weixin'");
if (empty($weixinthirdlogin) || empty($weixinthirdlogin['id'])) {
    message('需开启微信登录功能!');
}
if ($_GP['isok'] == '1') {
    message('支付成功!', WEBSITE_ROOT . mobile_url('myorder'), 'success');
}
$payment = mysqld_select("SELECT * FROM " . table('payment') . " WHERE  enabled=1 and code='weixin' limit 1");
$configs = unserialize($payment['configs']);
$settings = globaSetting(array("weixin_appId", "weixin_appSecret"));
$_CMS['weixin_pay_appid'] = $settings['weixin_appId'];
//受理商ID,身份标识
$_CMS['weixin_pay_mchId'] = $configs['weixin_pay_mchId'];
//商户支付密钥Key。审核通过后,在微信发送的邮件中查看
$_CMS['weixin_pay_paySignKey'] = $configs['weixin_pay_paySignKey'];
//JSAPI接口中获取openid,审核后在公众平台开启开发模式后可查看
$_CMS['weixin_pay_appSecret'] = $settings['weixin_appSecret'];
include_once "WxPayPubHelper/WxPayPubHelper.php";
$weixin_openid = get_weixin_openid();
//=========步骤2:使用统一支付接口,获取prepay_id============
//使用统一支付接口
$unifiedOrder = new UnifiedOrder_pub();
//设置统一支付接口参数
//设置必填参数
//appid已填,商户无需重复填写
//mch_id已填,商户无需重复填写
开发者ID:jasonhzy,项目名称:bjcms,代码行数:31,代码来源:payaction.php

示例6: mobile_url

			KindEditor.ready(function(K) {
				var editor;
			
					if (editor) {
						editor.remove();
						editor = null;
					}
					editor = K.create('textarea[name="help"]', {
						allowFileManager : false,
						height:'400px',
						 filterMode: false,
						 
						 formatUploadUrl:false,
		uploadJson : "<?php 
echo WEBSITE_ROOT . mobile_url('keupload');
?>
",
						newlineTag : 'br',
					items : [
						'source','fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image',  'multiimage','insertfile','link']
					});
			
				
			});


</script>
开发者ID:skystar,项目名称:cms,代码行数:29,代码来源:setting.php

示例7: mobile_url

            $sortfield = "viewcount " . $sortb2;
            $sortb00 = "desc";
            $sortb11 = "desc";
            $sortb33 = "asc";
        } else {
            if ($sort == 3) {
                $sortb33 = $sortb3 == "asc" ? "desc" : "asc";
                $sortfield = "marketprice " . $sortb3;
                $sortb00 = "desc";
                $sortb11 = "desc";
                $sortb22 = "desc";
            }
        }
    }
}
$sorturl = mobile_url('goodlist', array("keyword" => $_GP['keyword'], "pcate" => $_GP['pcate'], "ccate" => $_GP['ccate']));
if (!empty($_GP['isnew'])) {
    $condition .= " AND isnew = 1";
    $sorturl .= "&isnew=1";
}
if (!empty($_GP['ishot'])) {
    $condition .= " AND ishot = 1";
    $sorturl .= "&ishot=1";
}
if (!empty($_GP['isdiscount'])) {
    $condition .= " AND isdiscount = 1";
    $sorturl .= "&isdiscount=1";
}
if (!empty($_GP['istime'])) {
    $condition .= " AND istime = 1 ";
    $sorturl .= "&istime=1";
开发者ID:jaydom,项目名称:weishang,代码行数:31,代码来源:goodlist.php

示例8: mobile_url

			<section class="page-content">
				<div class="m-contactUs m-link">
				<a href="javascript:void(0);" class="textLink" style='background-color:#FFCC00'><?php 
                echo $data['btxt'];
                ?>
</a>
				</div>
				<div class="u-maskLayer m-contactFormLayer z-hide">
					<div>
						<div class="m-contactForm">
							<h2><span><?php 
                echo $data['btxt'];
                ?>
</span></h2>
							<form action="<?php 
                echo mobile_url('formsubmit', array('id' => $id, 'isyuyue' => $list['isyuyue']));
                ?>
" method="post" id="formContact">
								<input type="hidden" name="layout_id" value="0">
								<dl>
									<dt class="icon-name"><?php 
                echo $data['str1'];
                ?>
:</dt>
									<dd>
										<input type="text" name="str1" required="required" placeholder="<?php 
                echo $data['str1'];
                ?>
">
									</dd>
								</dl>
开发者ID:jasonhzy,项目名称:bjcms2.3,代码行数:31,代码来源:show.php

示例9: parseFloat

<script type="text/javascript">
	if(/Android (\d+\.\d+)/.test(navigator.userAgent)){
		var version = parseFloat(RegExp.$1);
		if(version>2.3){
			var phoneScale = parseInt(window.screen.width)/640;
			document.write('<meta name="viewport" content="width=640, minimum-scale = '+ phoneScale +', maximum-scale = '+ phoneScale +', target-densitydpi=device-dpi">');
		}else{
			document.write('<meta name="viewport" content="width=640, target-densitydpi=device-dpi">');
		}
	}else{
		document.write('<meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">');
	}

	
	var comment_url="<?php 
echo mobile_url('formsubmit', array('id' => $_GP['id'], 'iscomment' => 1));
?>
";
	</script>
	<?php 
include addons_page('share');
?>
 
<link rel="stylesheet" type="text/css" href="<?php 
echo WEBSITE_ROOT;
?>
/addons/addon10/resource/26/assets/styles/app.min.css?ver=3.0">
<head>
<body class="app" data-app-id="5262">
<div id="app-loading" class="app-loading">
<div class="cycleWrap">
开发者ID:jasonhzy,项目名称:bjcms2.3,代码行数:31,代码来源:show.php

示例10: mysqld_update

<?php

mysqld_update('shop_order', array('status' => '1', 'paytype' => '3'), array('id' => $orderid));
require_once WEB_ROOT . '/system/shopwap/class/mobile/order_notice_mail.php';
mailnotice($orderid);
message('订单提交成功,请您收到货时付款!', WEBSITE_ROOT . mobile_url('myorder'), 'success');
开发者ID:skystar,项目名称:cms,代码行数:6,代码来源:payaction.php

示例11: mobile_url

   document.getElementById("cate_2").value="<?php 
    echo $item['ccate'];
    ?>
";
 <?php 
}
?>
$(function(){
	 
	var i = 0;
	$('#selectimage').click(function() {
		var editor = KindEditor.editor({
			allowFileManager : false,
			imageSizeLimit : '10MB',
			uploadJson : '<?php 
echo mobile_url('upload');
?>
'
		});
		editor.loadPlugin('multiimage', function() {
			editor.plugin.multiImageDialog({
				clickFn : function(list) {
					if (list && list.length > 0) {
						for (i in list) {
							if (list[i]) {
								html =	'<li class="imgbox" style="list-style-type:none;display:inline;  float: left;  position: relative;  width: 125px;  height: 130px;">'+
								'<span class="item_box"> <img src="'+list[i]['url']+'" style="width:50px;height:50px"></span>'+
								'<a href="javascript:;" onclick="deletepic(this);" title="删除">删除</a>'+
								'<input type="hidden" name="attachment-new[]" value="'+list[i]['filename']+'" />'+
								'</li>';
								$('#fileList').append(html);
开发者ID:skystar,项目名称:cms,代码行数:31,代码来源:goods.php

示例12: message

}
if ($award_info['amount'] <= 0) {
    message("该商品已兑换完。");
}
$setting = mysqld_select("SELECT * FROM " . table('addon7_config'));
$request_info = mysqld_select("SELECT * FROM " . table('addon7_request') . " where openid=:openid order by id desc limit 1", array(":openid" => $openid));
$address = $request_info['address'];
$mobile = $request_info['mobile'];
$realname = $request_info['realname'];
if (empty($realname)) {
    $realname = $member['realname'];
}
if (empty($mobile)) {
    $mobile = $member['mobile'];
}
if (checksubmit("submit")) {
    $award_info = mysqld_select("SELECT * FROM " . table('addon7_award') . " where id=:id", array(":id" => intval($_GP['award_id'])));
    if (!empty($award_info['id'])) {
        if ($award_info['awardtype'] == 1) {
            member_credit($openid, $award_info['credit_cost'], 'usecredit', '积分兑换消费积分,兑换id:' . intval($_GP['award_id']));
            member_gold($openid, $award_info['gold'], 'addgold', $award_info['credit_cost'] . '积分兑换' . $award_info['gold'] . '余额,兑换id:' . intval($_GP['award_id']));
            message('提交成功', mobile_url('index'), 'success');
        } else {
            $insert = array('openid' => $openid, 'realname' => $_GP['realname'], 'mobile' => $_GP['mobile'], 'status' => 0, 'address' => $_GP['address'], 'createtime' => time(), "award_id" => intval($_GP['award_id']));
            member_credit($openid, $award_info['credit_cost'], 'usecredit', '积分兑换消费积分,兑换id:' . intval($_GP['award_id']));
            mysqld_insert('addon7_request', $insert);
            message('提交成功', mobile_url('index'), 'success');
        }
    }
}
include addons_page('useaward');
开发者ID:jaydom,项目名称:weishang,代码行数:31,代码来源:useaward.php

示例13: mysqld_select

    $payment = mysqld_select("select * from " . table("payment") . " where enabled=1 and code=:payment", array(':payment' => $_GP['payment']));
    if (empty($payment['id'])) {
        message("没有获取到付款方式");
    }
    $paytype = $this->getPaytypebycode($payment['code']);
    $data = array('openid' => $openid, 'ordersn' => $ordersns, 'price' => $goodsprice + $dispatchprice, 'dispatchprice' => $dispatchprice, 'goodsprice' => $goodsprice, 'credit' => $goodscredit, 'status' => 0, 'paytype' => $paytype, 'sendtype' => intval($dispatchitem['sendtype']), 'dispatchexpress' => $dispatchitem['express'], 'dispatch' => $dispatchid, 'paytypecode' => $payment['code'], 'paytypename' => $payment['name'], 'remark' => $_GP['remark'], 'address_mobile' => $address['mobile'], 'address_realname' => $address['realname'], 'address_province' => $address['province'], 'address_city' => $address['city'], 'address_area' => $address['area'], 'address_address' => $address['address'], 'createtime' => time());
    mysqld_insert('shop_order', $data);
    $orderid = mysqld_insertid();
    //插入订单商品
    foreach ($allgoods as $row) {
        if (empty($row)) {
            continue;
        }
        $d = array('goodsid' => $row['id'], 'orderid' => $orderid, 'total' => $row['total'], 'price' => $row['marketprice'], 'createtime' => time(), 'optionid' => $row['optionid']);
        $o = mysqld_select("select title from " . table('shop_goods_option') . " where id=:id limit 1", array(":id" => $row['optionid']));
        if (!empty($o)) {
            $d['optionname'] = $o['title'];
        }
        //获取商品id
        $ccate = $row['ccate'];
        mysqld_insert('shop_order_goods', $d);
    }
    //清空购物车
    if (!$direct) {
        mysqld_delete("shop_cart", array("session_id" => $openid));
    }
    $this->setOrderStock($orderid);
    clearloginfrom();
    header("Location:" . mobile_url('pay', array('orderid' => $orderid, 'topay' => '1')));
}
include themePage('confirm');
开发者ID:jasonhzy,项目名称:bjcms,代码行数:31,代码来源:confirm.php

示例14: mysqld_select

<?php

$payment = mysqld_select("SELECT * FROM " . table('payment') . " WHERE  enabled=1 and code='bank' limit 1");
$configs = unserialize($payment['configs']);
message($configs['bank_pay_desc'], WEBSITE_ROOT . mobile_url('myorder'), 'success', false);
开发者ID:jasonhzy,项目名称:bjcms,代码行数:5,代码来源:payaction.php

示例15: get_member_account

<?php

$member = get_member_account(true, true);
$openid = $member['openid'];
$member = member_get($openid);
if (empty($member['outgoldinfo'])) {
    message('您的资料不完善,请提现相关账户资料。', mobile_url('member'), 'error');
}
$op = $_GP['op'] ? $_GP['op'] : 'display';
if ($op == 'display') {
    if (checksubmit('submit')) {
        if (empty($_GP['charge']) || round($_GP['charge'], 2) <= 0) {
            message("请输入要充值的金额");
        }
        $fee = round($_GP['charge'], 2);
        if ($fee > $member['gold']) {
            message('账户余额不足,最多能提取' . $member['gold'] . '元');
        }
        $ordersn = 'rg' . date('Ymd') . random(6, 1);
        $gold_order = mysqld_select("SELECT * FROM " . table('gold_teller') . " WHERE ordersn = '{$ordersn}'");
        if (!empty($gold_order['ordersn'])) {
            $ordersn = 'rg' . date('Ymd') . random(6, 1);
        }
        member_gold($openid, $fee, 'usegold', '余额提取' . $fee . '元');
        mysqld_insert('gold_teller', array('openid' => $openid, 'fee' => $fee, 'status' => 0, 'ordersn' => $ordersn, 'createtime' => time()));
        message('余额提取申请成功!', 'refresh', 'success');
        exit;
    }
    $applygold = mysqld_selectcolumn("select sum(fee) from " . table("gold_teller") . " where status=0 and openid=" . $openid);
    if (empty($applygold)) {
        $applygold = '0';
开发者ID:jaydom,项目名称:weishang,代码行数:31,代码来源:outchargegold.php


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