|
@@ -0,0 +1,107 @@
|
|
|
+<?php defined('InShopNC') or exit('Access Invalid!'); ?>
|
|
|
+
|
|
|
+<div class="page">
|
|
|
+ <div class="fixed-bar">
|
|
|
+ <div class="item-title">
|
|
|
+ <h3>通道管理</h3>
|
|
|
+ <ul class="tab-base">
|
|
|
+ <li><a href="JavaScript:void(0);" class="current"><span><?php echo $lang['nc_manage'] ?></span></a></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="fixed-empty"></div>
|
|
|
+ <form method="get" name="formSearch" id="formSearch">
|
|
|
+ <input type="hidden" value="merchant" name="act">
|
|
|
+ <input type="hidden" value="provider" name="op">
|
|
|
+ <table class="tb-type1 noborder search">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <th><label for="name">通道名称</label></th>
|
|
|
+ <td><input type="text" value="<?php echo $output['name']; ?>" name="name"
|
|
|
+ id="name" class="txt"></td>
|
|
|
+ <td><a href="javascript:void(0);" id="ncsubmit" class="btn-search "
|
|
|
+ title="<?php echo $lang['nc_query']; ?>"> </a>
|
|
|
+ <?php if ($output['name'] != '') { ?>
|
|
|
+ <a href="index.php?act=merchant&op=provider" class="btns "
|
|
|
+ title="<?php echo $lang['nc_cancel_search']; ?>"><span><?php echo $lang['nc_cancel_search']; ?></span></a>
|
|
|
+ <?php } ?></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </form>
|
|
|
+ <!-- <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>-->
|
|
|
+ <!-- <td><ul>-->
|
|
|
+ <!-- <li>--><?php //echo $lang['store_help1'];?><!--</li>-->
|
|
|
+ <!-- </ul></td>-->
|
|
|
+ <!-- </tr>-->
|
|
|
+ <!-- </tbody>-->
|
|
|
+ <!-- </table>-->
|
|
|
+ <form method="post" id="merchant_name_form">
|
|
|
+ <input type="hidden" name="form_submit" value="ok"/>
|
|
|
+ <table class="table tb-type2">
|
|
|
+ <thead>
|
|
|
+ <tr class="thead">
|
|
|
+ <th>通道id</th>
|
|
|
+ <th>通道名称</th>
|
|
|
+ <th>通道类型</th>
|
|
|
+ <th class="align-center">排序</th>
|
|
|
+ <th class="align-center">通道状态</th>
|
|
|
+ <th class="align-center">每单间隔秒数</th>
|
|
|
+ <th class="align-center">需要子进程数量</th>
|
|
|
+ <th class="align-center"><?php echo $lang['operation']; ?></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <?php if (!empty($output['provider_list']) && is_array($output['provider_list'])) { ?>
|
|
|
+ <?php foreach ($output['provider_list'] as $k => $v) { ?>
|
|
|
+ <tr>
|
|
|
+ <td><?php echo $v['id']; ?></td>
|
|
|
+ <td><?php echo $v['name']; ?></td>
|
|
|
+ <td><?php echo $output['type_text'][$v['type']-1]; ?></td>
|
|
|
+ <td class="align-center"><?php echo $v['sort']; ?></td>
|
|
|
+ <td class="align-center"><?php echo $output['opened_text'][$v['opened']-1]; ?></td>
|
|
|
+ <td class="align-center"><?php echo $v['interval_time']?></td>
|
|
|
+ <td class="align-center"><?php echo $v['process_num']?></td>
|
|
|
+ <td class="align-center w200">
|
|
|
+ <?php if($v['opened'] == 1){?>
|
|
|
+ <a href="index.php?act=merchant&op=changeProviderState&state=2&id=<?php echo $v['id'] ?>">关闭通道</a>
|
|
|
+ <?php }?>
|
|
|
+ <?php if($v['opened'] == 2){?>
|
|
|
+ <a href="index.php?act=merchant&op=changeProviderState&state=1&id=<?php echo $v['id'] ?>">启用通道</a>
|
|
|
+ <?php }?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php } ?>
|
|
|
+ <?php } else { ?>
|
|
|
+ <tr class="no_data">
|
|
|
+ <td colspan="15"><?php echo $lang['nc_no_record']; ?></td>
|
|
|
+ </tr>
|
|
|
+ <?php } ?>
|
|
|
+ </tbody>
|
|
|
+ <tfoot>
|
|
|
+ <tr class="tfoot">
|
|
|
+ <td></td>
|
|
|
+ <td colspan="16">
|
|
|
+ <div class="pagination"><?php echo $output['page']; ?></div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tfoot>
|
|
|
+ </table>
|
|
|
+ </form>
|
|
|
+</div>
|
|
|
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery.edit.js" charset="utf-8"></script>
|
|
|
+<script>
|
|
|
+ $(function () {
|
|
|
+ $('#ncsubmit').click(function () {
|
|
|
+ $('input[name="op"]').val('provider');
|
|
|
+ $('#formSearch').submit();
|
|
|
+ });
|
|
|
+ });
|
|
|
+</script>
|