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


PHP urlAdmin函数代码示例

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


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


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