本文整理汇总了PHP中urlAdmin函数的典型用法代码示例。如果您正苦于以下问题:PHP urlAdmin函数的具体用法?PHP urlAdmin怎么用?PHP urlAdmin使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了urlAdmin函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: payment_saveOp
/**
* 编辑保存
*/
public function payment_saveOp()
{
$payment_id = intval($_POST["payment_id"]);
$data = array();
$data['payment_state'] = intval($_POST["payment_state"]);
switch ($_POST['payment_code']) {
case 'alipay':
$payment_config = array('alipay_account' => $_POST['alipay_account'], 'alipay_key' => $_POST['alipay_key'], 'alipay_partner' => $_POST['alipay_partner']);
break;
case 'wxpay':
$payment_config = array('wxpay_appid' => $_POST['wxpay_appid'], 'wxpay_mch_id' => $_POST['wxpay_mch_id'], 'wxpay_appsecret' => $_POST['wxpay_appsecret'], 'wxpay_key' => $_POST['wxpay_key']);
break;
case 'unionpay':
$payment_config = array('unionpay_account' => $_POST['unionpay_account'], 'cert_passwd' => $_POST['cert_passwd']);
break;
default:
showMessage(L('param_error'), '');
}
$data['payment_config'] = $payment_config;
$model_mb_payment = Model('mb_payment');
$result = $model_mb_payment->editMbPayment($data, array('payment_id' => $payment_id));
if ($result) {
showMessage(Language::get('nc_common_save_succ'), urlAdmin('mb_payment', 'payment_list'));
} else {
showMessage(Language::get('nc_common_save_fail'), urlAdmin('mb_payment', 'payment_list'));
}
}
开发者ID:qqq232575,项目名称:extends,代码行数:30,代码来源:mb_payment.php
示例2: date
</span></a></td>
<td class="align-center"><?php
echo date('Y-m-d', $val['booth_quota_starttime']);
?>
</td>
<td class="align-center"><?php
echo date('Y-m-d', $val['booth_quota_endtime']);
?>
</td>
<td class="align-center">
<?php
echo $output['state_array'][$val['booth_state']];
?>
</td>
<td class="align-center"><a href="<?php
echo urlAdmin('promotion_booth', 'goods_list', array('store_id' => $val['store_id']));
?>
">查看商品</a></td>
</tr>
<?php
}
?>
<?php
} else {
?>
<tr class="no_data">
<td colspan="16"><?php
echo $lang['nc_no_record'];
?>
</td>
</tr>
开发者ID:Maplecms,项目名称:shopnc-api,代码行数:31,代码来源:promotion_booth_quota.list.php
示例3: urlAdmin
}
?>
<?php
} else {
?>
<tr class="no_data">
<td colspan="10"><?php
echo $lang['nc_no_record'];
?>
</td>
</tr>
<?php
}
?>
<tr><td colspan="20"><a href="<?php
echo urlAdmin('groupbuy', 'price_add');
?>
" class="btn-add marginleft"><?php
echo $lang['groupbuy_price_add'];
?>
</a></td></tr>
</tbody>
<?php
if (!empty($output['list']) && is_array($output['list'])) {
?>
<tfoot>
<tr class="tfoot">
<td><input type="checkbox" class="checkall" id="checkall_1"></td>
<td id="batchAction" colspan="15"><span class="all_checkbox">
<label for="checkall_1"><?php
echo $lang['nc_select_all'];
开发者ID:Maplecms,项目名称:shopnc-yhmall,代码行数:31,代码来源:groupbuy_price.list.php
示例4: foreach
if (!empty($output['mb_payment_list']) && is_array($output['mb_payment_list'])) {
?>
<?php
foreach ($output['mb_payment_list'] as $k => $v) {
?>
<tr class="hover">
<td><?php
echo $v['payment_name'];
?>
</td>
<td class="w25pre align-center"><?php
echo $v['payment_state_text'];
?>
</td>
<td class="w156 align-center"><a href="<?php
echo urlAdmin('mb_payment', 'payment_edit', array('payment_id' => $v['payment_id']));
?>
"><?php
echo $lang['nc_edit'];
?>
</a></td>
</tr>
<?php
}
}
?>
</tbody>
<tfoot>
<tr class="tfoot">
<td colspan="15"></td>
</tr>
开发者ID:uwitec,项目名称:xbshop,代码行数:31,代码来源:mb_payment.list.php
示例5: urlAdmin
echo $menu['menu_url'];
?>
" ><span><?php
echo $menu['menu_name'];
?>
</span></a></li>
<?php
}
}
?>
</ul>
</div>
</div>
<div class="fixed-empty"></div>
<form id="add_form" method="post" action="<?php
echo urlAdmin('waybill', 'waybill_save');
?>
" enctype="multipart/form-data">
<?php
if ($output['waybill_info']) {
?>
<input type="hidden" name="waybill_id" value="<?php
echo $output['waybill_info']['waybill_id'];
?>
">
<input type="hidden" name="old_waybill_image" value="<?php
echo $output['waybill_info']['waybill_image'];
?>
">
<?php
}
开发者ID:dotku,项目名称:shopnc_cnnewyork,代码行数:31,代码来源:waybill.add.php
示例6: urlAdmin
echo $menu['menu_url'];
?>
" ><span><?php
echo $menu['menu_name'];
?>
</span></a></li>
<?php
}
}
?>
</ul>
</div>
</div>
<div class="fixed-empty"></div>
<form id="add_form" method="post" enctype="multipart/form-data" action="<?php
echo urlAdmin('groupbuy', 'groupbuy_setting_save');
?>
">
<input type="hidden" id="submit_type" name="submit_type" />
<table class="table tb-type2">
<tbody>
<tr class="noborder">
<td colspan="2" class="required"><label class="validation">抢购价格:</label></td>
</tr>
<tr class="noborder">
<td class="vatop rowform">
<input type="text" id="groupbuy_price" name="groupbuy_price" value="<?php
echo $output['setting']['groupbuy_price'];
?>
" class="txt">
</td>
开发者ID:uwitec,项目名称:xbshop,代码行数:31,代码来源:groupbuy.setting.php
示例7: member_tpl_update_showmessage
private function member_tpl_update_showmessage($result)
{
if ($result) {
showMessage(L('nc_common_op_succ'), urlAdmin('message', 'member_tpl'));
} else {
showMessage(L('nc_common_op_fail'));
}
}
开发者ID:ff00x0,项目名称:shopnc,代码行数:8,代码来源:message.php
示例8: add_cardOp
//.........这里部分代码省略.........
if (!chksubmit()) {
Tpl::showpage('rechargecard.add_card');
return;
}
$denomination = (double) $_POST['denomination'];
if ($denomination < 0.01) {
showMessage('面额不能小于0.01', '', 'html', 'error');
return;
}
if ($denomination > 1000) {
showMessage('面额不能大于1000', '', 'html', 'error');
return;
}
$snKeys = array();
switch ($_POST['type']) {
case '0':
$total = (int) $_POST['total'];
if ($total < 1 || $total > 9999) {
showMessage('总数只能是1~9999之间的整数', '', 'html', 'error');
exit;
}
$prefix = (string) $_POST['prefix'];
if (!preg_match('/^[0-9a-zA-Z]{0,16}$/', $prefix)) {
showMessage('前缀只能是16字之内字母数字的组合', '', 'html', 'error');
exit;
}
while (count($snKeys) < $total) {
$snKeys[$prefix . md5(uniqid(mt_rand(), true))] = null;
}
break;
case '1':
$f = $_FILES['_textfile'];
if (!$f || $f['error'] != 0) {
showMessage('文件上传失败', '', 'html', 'error');
exit;
}
if (!is_uploaded_file($f['tmp_name'])) {
showMessage('未找到已上传的文件', '', 'html', 'error');
exit;
}
foreach (file($f['tmp_name']) as $sn) {
$sn = trim($sn);
if (preg_match('/^[0-9a-zA-Z]{1,50}$/', $sn)) {
$snKeys[$sn] = null;
}
}
break;
case '2':
foreach (explode("\n", (string) $_POST['manual']) as $sn) {
$sn = trim($sn);
if (preg_match('/^[0-9a-zA-Z]{1,50}$/', $sn)) {
$snKeys[$sn] = null;
}
}
break;
default:
showMessage('参数错误', '', 'html', 'error');
exit;
}
$totalKeys = count($snKeys);
if ($totalKeys < 1 || $totalKeys > 9999) {
showMessage('只能在一次操作中增加1~9999个充值卡号', '', 'html', 'error');
exit;
}
if (empty($snKeys)) {
showMessage('请输入至少一个合法的卡号', '', 'html', 'error');
exit;
}
$snOccupied = 0;
$model = Model('rechargecard');
// chunk size = 50
foreach (array_chunk(array_keys($snKeys), 50) as $snValues) {
foreach ($model->getOccupiedRechargeCardSNsBySNs($snValues) as $sn) {
$snOccupied++;
unset($snKeys[$sn]);
}
}
if (empty($snKeys)) {
showMessage('操作失败,所有新增的卡号都与已有的卡号冲突', '', 'html', 'error');
exit;
}
$batchflag = $_POST['batchflag'];
$adminName = $this->admin_info['name'];
$ts = time();
$snToInsert = array();
foreach (array_keys($snKeys) as $sn) {
$snToInsert[] = array('sn' => $sn, 'denomination' => $denomination, 'batchflag' => $batchflag, 'admin_name' => $adminName, 'tscreated' => $ts);
}
if (!$model->insertAll($snToInsert)) {
showMessage('操作失败', '', 'html', 'error');
exit;
}
$countInsert = count($snToInsert);
$this->log("新增{$countInsert}张充值卡(面额¥{$denomination},批次标识“{$batchflag}”)");
$msg = '操作成功';
if ($snOccupied > 0) {
$msg .= "有 {$snOccupied} 个卡号与已有的未使用卡号冲突";
}
showMessage($msg, urlAdmin('rechargecard', 'index'));
}
开发者ID:dotku,项目名称:shopnc_cnnewyork,代码行数:101,代码来源:rechargecard.php
示例9: urlAdmin
echo urlAdmin('circle_setting', 'sec');
?>
"><span><?php
echo $lang['circle_setting_sec'];
?>
</span></a></li>
<li><a href="<?php
echo urlAdmin('circle_setting', 'exp');
?>
"><span><?php
echo $lang['circle_setting_exp'];
?>
</span></a></li>
<li><a href="JavaScript:void(0);" class="current"><span>设置超管</span></a></li>
<li><a href="<?php
echo urlAdmin('circle_setting', 'super_list');
?>
"><span>超管列表</span></a></li>
</ul>
</div>
</div>
<div class="fixed-empty"></div>
<form id="super_form" method="post" enctype="multipart/form-data">
<input type="hidden" name="form_submit" value="ok" />
<table class="table tb-type2">
<tbody>
<tr class="noborder">
<td colspan="2" class="required"><label for="menber_name">会员名称:</label></td>
</tr>
<tr class="noborder">
<td class="vatop rowform">
开发者ID:Maplecms,项目名称:shopnc-api,代码行数:31,代码来源:circle_setting.super_add.php
示例10: defined
<?php
defined('InShopNC') or exit('Access Invalid!');
?>
<style>
.switch-tab-title {font-size:14px; margin-right:15px; }
</style>
<div class="page">
<div class="fixed-bar">
<div class="item-title">
<h3>平台充值卡</h3>
<ul class="tab-base">
<li><a href="<?php
echo urlAdmin('rechargecard', 'index');
?>
"><span>列表</span></a></li>
<li><a href="javascript:void(0);" class="current"><span>新增</span></a></li>
</ul>
</div>
</div>
<div class="fixed-empty"></div>
<table class="table tb-type2" id="prompt">
<tbody>
<tr class="space odd">
<th colspan="12"><div class="title"><h5><?php
echo $lang['nc_prompts'];
?>
</h5><span class="arrow"></span></div></th>
</tr>
<tr>
开发者ID:dotku,项目名称:shopnc_cnnewyork,代码行数:31,代码来源:rechargecard.add_card.php
示例11: urlAdmin
?>
</h3>
<ul class="tab-base">
<li><a href="<?php
echo urlAdmin('consulting', 'consulting');
?>
"><span><?php
echo $lang['nc_manage'];
?>
</span></a></li>
<li><a href="<?php
echo urlAdmin('consulting', 'setting');
?>
"><span>设置</span></a></li>
<li><a href="<?php
echo urlAdmin('consulting', 'type_list');
?>
"><span>咨询类型</span></a></li>
<li><a href="JavaScript:void(0);" class="current"><span>新增类型</span></a></li>
</ul>
</div>
</div>
<div class="fixed-empty"></div>
<form method="post" name="form_typeadd" id="form_typeadd">
<input type="hidden" name="form_submit" value="ok" />
<table class="table tb-type2">
<tbody>
<tr class="noborder">
<td colspan="2" class="required"><label class="validation">类型名称:</label></td>
</tr>
<tr class="noborder">
开发者ID:ff00x0,项目名称:shopnc-api,代码行数:31,代码来源:consulting.type_add.php
示例12: urlAdmin
<tr>
<td><ul>
<li>勾选需要打印的项目,勾选后可以用鼠标拖动确定项目的位置、宽度和高度,也可以点击项目后边的微调按钮手工录入</li>
<li>设置完成后点击提交按钮完成设计</li>
</ul></td>
</tr>
</tbody>
</table>
<table class="table tb-type2">
<tbody>
<tr>
<td class="required">选择打印项:</td>
</tr>
<tr class="noborder">
<td class="vatop rowform"><form id="design_form" action="<?php
echo urlAdmin('waybill', 'waybill_design_save');
?>
" method="post">
<input type="hidden" name="waybill_id" value="<?php
echo $output['waybill_info']['waybill_id'];
?>
">
<ul id="waybill_item_list" class="waybill-item-list">
<?php
if (!empty($output['waybill_item_list']) && is_array($output['waybill_item_list'])) {
?>
<?php
foreach ($output['waybill_item_list'] as $key => $value) {
?>
<li>
<input id="check_<?php
开发者ID:Maplecms,项目名称:shopnc-api,代码行数:31,代码来源:waybill.design.php
示例13: function
});
$("#btn_fail").click(function(){
$("#joinin_form").submit();
});
$('#store_form').validate({
errorPlacement: function(error, element){
error.appendTo(element.parentsUntil('tr').parent().prev().find('td:first'));
},
ignore:"#end_time",
rules : {
store_name: {
required : true,
remote : '<?php
echo urlAdmin('store', 'ckeck_store_name', array('store_id' => $output['store_array']['store_id']));
?>
'
}
},
messages : {
store_name: {
required: '<?php
echo $lang['please_input_store_name'];
?>
',
remote : '店铺名称已存在'
}
}
});
开发者ID:qqq232575,项目名称:shopx,代码行数:30,代码来源:store.edit.php
示例14: urlAdmin
if (!empty($output['evalstore_list']) && is_array($output['evalstore_list'])) {
?>
<tr class="tfoot">
<td colspan="15" id="dataFuncs"><div class="pagination"><?php
echo $output['show_page'];
?>
</div></td>
</tr>
</tfoot>
<?php
}
?>
</table>
</div>
<form id="submit_form" action="<?php
echo urlAdmin('evaluate', 'evalstore_del');
?>
" method="post">
<input id="seval_id" name="seval_id" type="hidden">
</form>
<script type="text/javascript" src="<?php
echo RESOURCE_SITE_URL;
?>
/js/jquery-ui/jquery.ui.js"></script>
<script type="text/javascript" src="<?php
echo RESOURCE_SITE_URL;
?>
/js/jquery-ui/i18n/zh-CN.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="<?php
echo RESOURCE_SITE_URL;
?>
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:evalstore.index.php
示例15: defined
<?php
defined('InShopNC') or exit('Access Invalid!');
?>
<div class="page">
<form method="post" name="form1" id="form1" action="<?php
echo urlAdmin('decoration', 'designer_work_del');
?>
">
<input type="hidden" name="form_submit" value="ok" />
<input type="hidden" value="<?php
echo $output["commonids"];
?>
" name="commonids">
<table class="table tb-type2 nobdb">
<tbody>
<tr class="noborder">
<td colspan="2" class="required"><label for="close_reason">违规删除理由:</label></td>
</tr>
<tr class="noborder">
<td class="vatop rowform"><textarea rows="6" class="tarea" cols="60" name="close_reason" id="close_reason"></textarea></td>
</tr>
</tbody>
<tfoot>
<tr class="tfoot">
<td colspan="2"><a href="javascript:void(0);" class="btn" nctype="btn_submit"><span><?php
echo $lang['nc_submit'];
?>
</span></a></td>
</tr>
开发者ID:lehman3087,项目名称:wanhaoshop,代码行数:31,代码来源:designerwork.close_remark.php
示例16: urlAdmin
<div class="item-title">
<h3>物流自提服务站管理</h3>
<ul class="tab-base">
<li><a href="<?php
echo urlAdmin('delivery', 'index');
?>
"><span><?php
echo $lang['nc_manage'];
?>
</span></a></li>
<li><a href="<?php
echo urlAdmin('delivery', 'index', array('sign' => 'verify'));
?>
"><span>等待审核</span></a></li>
<li><a href="<?php
echo urlAdmin('delivery', 'setting');
?>
"><span>设置</span></a></li>
<li><a href="javascript:void(0);" class="current"><span>订单列表</span></a></li>
</ul>
</div>
</div>
<div class="fixed-empty"></div>
<form method="get" name="formSearch">
<input type="hidden" value="delivery" name="act">
<input type="hidden" value="order_list" name="op">
<input type="hidden" value="<?php
echo $_GET['d_id'];
?>
" name="d_id">
<table class="tb-type1 noborder search">
开发者ID:dotku,项目名称:shopnc_cnnewyork,代码行数:31,代码来源:delivery.order_list.php
示例17: save_editOp
/**
* 编辑保存
*/
public function save_editOp()
{
$dlyp_id = intval($_POST['did']);
if (!chksubmit() || $dlyp_id <= 0) {
showMessage(L('param_error'));
}
$where = array('dlyp_id' => $dlyp_id);
$update = array();
$update['dlyp_mobile'] = $_POST['dmobile'];
$update['dlyp_telephony'] = $_POST['dtelephony'];
$update['dlyp_address_name'] = $_POST['daddressname'];
$update['dlyp_address'] = $_POST['daddress'];
if ($_POST['dpasswd'] != '') {
$update['dlyp_passwd'] = md5($_POST['dpasswd']);
}
$update['dlyp_state'] = intval($_POST['dstate']);
$update['dlyp_fail_reason'] = $_POST['fail_reason'];
$result = Model('delivery_point')->editDeliveryPoint($update, $where);
if ($result) {
// 删除相关联的收货地址
Model('address')->delAddress(array('dlyp_id' => $dlyp_id));
$this->log('编辑物流自提服务站功能,ID:' . $dlyp_id, 1);
showMessage(L('nc_common_op_succ'), urlAdmin('delivery', 'index'));
} else {
$this->log('编辑物流自提服务站功能,ID:' . $dlyp_id, 0);
showMessage(L('nc_common_op_fail'));
}
}
开发者ID:noikiy,项目名称:ejia,代码行数:31,代码来源:delivery.php
示例18: urlAdmin
?>
</td>
<td><?php
echo $lang['currency'] . $v['goods_price'] * $output['storage_array'][$v['goods_commonid']]['sum'];
?>
</td>
<td class="align-center"><?php
echo $output['state'][$v['goods_state']];
?>
</td>
<td class="align-center"><?php
echo $output['verify'][$v['goods_verify']];
?>
</td>
<td class="align-center"><p><a href="<?php
echo urlAdmin('goods', 'edit_goods', array('commonid' => $v['goods_commonid']));
?>
" ><?php
echo $lang['nc_edit'];
?>
</a></p>
<p><a href="javascript:void(0);" onclick="goods_lockup(<?php
echo $v['goods_commonid'];
?>
);">商品下架</a></p></td>
</tr>
<tr style="display:none;">
<td colspan="20"><div class="ncsc-goods-sku ps-container"></div></td>
</tr>
<?php
}
开发者ID:noikiy,项目名称:haifenbao,代码行数:31,代码来源:goods.index.php
示例19: urlAdmin
?>
<div class="page">
<div class="fixed-bar">
<div class="item-title">
<h3>平台客服</h3>
<ul class="tab-base">
<li><a href="<?php
echo urlAdmin('mall_consult', 'index');
?>
"><span>平台客服咨询列表</span></a></li>
<li><a href="<?php
echo urlAdmin('mall_consult', 'type_list');
?>
"><span>平台咨询类型</span></a></li>
<li><a href="<?php
echo urlAdmin('mall_consult', 'type_add');
?>
"><span>新增类型</span></a></li>
<li><a href="JavaScript:void(0);" class="current"><span>编辑类型</span></a></li>
</ul>
</div>
</div>
<div class="fixed-empty"></div>
<form method="post" name="form_typeadd" id="form_typeadd">
<input type="hidden" name="form_submit" value="ok" />
<input type="hidden" name="mct_id" value="<?php
echo $output['mct_info']['mct_id'];
?>
" />
<table class="table tb-type2">
<tbody>
开发者ID:Maplecms,项目名称:shopnc-api,代码行数:31,代码来源:mall_consult.type_edit.php
示例20: function
$('#goods_class').val(category_id);
$('#add_form').submit();
});
$('#gcategory select').live('change', function() {
var cr = $(this).children(':selected').attr('data-explain');
$('#commis_rate').val(parseInt(cr) || 0);
});
// 删除现有类目
$('[nctype="btn_del_store_bind_class"]').on('click', function() {
if(confirm('确认删除?删除后店铺对应分类商品将全部下架')) {
var bid = $(this).attr('data-bid');
$this = $(this);
$.post('<?php
echo urlAdmin('ownshop', 'bind_class_del');
?>
', {bid: bid}, function(data) {
if(data.result) {
$this.parents('tr').hide();
} else {
showError(data.message);
}
}, 'json');
}
});
// 修改分佣比例
$('span[nc_type="commis_rate"]').inline_edit({act: 'ownshop',op: 'bind_class_update'});
});
开发者ID:Maplecms,项目名称:shopnc-api,代码行数:30,代码来源:ownshop.bind_class.php
注:本文中的urlAdmin函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论