| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643 |
- <?php if (!defined('THINK_PATH')) exit();?><!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>后台 | 管理中心 - ADMIN EX</title>
- <!-- Loading Bootstrap -->
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/vendor/bootstrap/css/bootstrap.min.css">
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/base.css" media="all">
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/common.css" media="all">
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/module.css">
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/style.css" media="all">
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/default_color.css" media="all">
- <script type="text/javascript" src="/Public/Admin/js/jquery.min.js"></script>
- <script type="text/javascript" src="/Public/layer/layer.js"></script>
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/flat-ui.css">
- <script src="/Public/Admin/js/flat-ui.min.js"></script>
- <script src="/Public/Admin/js/application.js"></script>
- </head>
- <body>
- <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
- <div class="navbar-header">
- <a class="navbar-brand" style="width:200px;text-align:center;background-color:#3c434d;" href="<?php echo U('Index/index');?>">
- <img src="/Public/Admin/ecshe_img/logo_text.png" />
- </a>
- </div>
- <div class="navbar-collapse collapse">
- <ul class="nav navbar-nav">
- <!-- 主导航 -->
- <?php if(is_array($__MENU__["main"])): $i = 0; $__LIST__ = $__MENU__["main"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?><li <?php if(($menu["class"]) == "current"): ?>class="active"<?php endif; ?> >
- <a href="<?php echo (U($menu["url"])); ?>">
- <?php echo ($menu["title"]); ?>
- </a>
- </li><?php endforeach; endif; else: echo "" ;endif; ?>
- </ul>
- <ul class="nav navbar-nav navbar-rights" style="margin-right:10px;">
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">
- <?php echo session('admin_username');?><b class="caret"></b>
- </a>
- <ul class="dropdown-menu">
- <li>
- <a href="<?php echo U('User/setpwd');?>">
- <span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> 修改密码
- </a>
- </li>
- <li class="center">
- <a href="javascript:void(0);" onclick="lockscreen()">
- <span class="glyphicon glyphicon-lock" aria-hidden="true"></span> 锁屏休息
- </a>
- </li>
- <li class="dividers"></li>
- <li>
- <a href="<?php echo U('Login/loginout');?>">
- <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> 退出后台
- </a>
- </li>
- </ul>
- </li>
- <li>
- <a href="<?php echo U('Tools/delcache');?>" class="dropdown-toggle" title="清除缓存">
- <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
- </a>
- </li>
- <li>
- <a class="dropdown-toggle" title="打开前台" href="/" target="_blank">
- <span class="glyphicon glyphicon-share" aria-hidden="true"></span>
- </a>
- </li>
- </ul>
- </div>
- </div>
- <!-- 边栏 -->
- <div class="sidebar">
- <!-- 子导航 -->
-
- <div id="subnav" class="subnav" style="max-height: 94%;overflow-x: hidden;overflow-y: auto;">
- <?php if(!empty($_extra_menu)): ?> <?php echo extra_menu($_extra_menu,$__MENU__); endif; ?>
- <?php if(is_array($__MENU__["child"])): $i = 0; $__LIST__ = $__MENU__["child"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub_menu): $mod = ($i % 2 );++$i;?><!-- 子导航 -->
- <?php if(!empty($sub_menu)): if(!empty($key)): ?><h3><i class="icon icon-unfold"></i><?php echo ($key); ?></h3><?php endif; ?>
- <ul class="side-sub-menu">
- <?php if(is_array($sub_menu)): $i = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?><li>
- <a class="item" href="<?php echo (U($menu["url"])); ?>">
- <?php if(empty($menu["ico_name"])): ?><span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>
- <?php else: ?>
- <span class="glyphicon glyphicon-<?php echo ($menu["ico_name"]); ?>" aria-hidden="true"></span><?php endif; ?>
- <?php echo ($menu["title"]); ?>
- </a>
- </li><?php endforeach; endif; else: echo "" ;endif; ?>
- </ul>
- _
- <div>
- <audio id="remind">
- <source src="/Public/Admin/images/5f71a0c7a5c27778.mp3" type="audio/mpeg">
- </audio>
- </div><?php endif; ?>
- <!-- /子导航 --><?php endforeach; endif; else: echo "" ;endif; ?>
- </div>
-
- <!-- /子导航 -->
- </div>
- <!-- /边栏 -->
- <script type="text/javascript">
- $(function(){
- setInterval("tzfc()",5000);
- });
-
- function tzfc(){
-
- var st = 1;
- $.post("<?php echo U('Admin/Trade/getmyzrtz');?>",
- {'st':st},
- function(data){
- if(data.code == 1){
- var audio = document.getElementById('remind')
- audio.play()
- }
- });
- $.post("<?php echo U('Admin/Trade/gethyorder');?>",
- {'st':st},
- function(data){
- if(data.code == 1){
- layer.confirm('有新的合约订单', {
- btn: ['知道了'] //按钮
- }, function(){
-
- $.post("<?php echo U('Admin/Trade/settzstatus');?>",
- function(data){
- if(data.code == 1){
- window.location.reload();
- }
- });
- });
- }
- });
-
-
-
- }
- </script>
- <?php if(($versionUp) == "1"): ?><script type="text/javascript" charset="utf-8">
- /**顶部警告栏*/
- var top_alert = $('#top-alerta');
- top_alert.find('.close').on('click', function () {
- top_alert.removeClass('block').slideUp(200);
- // content.animate({paddingTop:'-=55'},200);
- });
- </script><?php endif; ?>
- <div id="main-content">
- <div id="top-alert" class="fixed alert alert-error" style="display: none;">
- <button class="close fixed" style="margin-top: 4px;">×</button>
- <div class="alert-content">警告内容</div>
- </div>
- <div id="main" class="main">
- <div class="main-title-h">
- <span class="h1-title"><a href="<?php echo U('Trade/market');?>">市场列表</a> >></span>
- <span class="h1-title"><?php if(empty($data)): ?>新增市场<?php else: ?>编辑市场<?php endif; ?></span>
- </div>
- <div class="tab-wrap">
- <div class="tab-content">
- <form id="form" action="<?php echo U('Trade/marketEdit');?>" method="post" class="form-horizontal" enctype="multipart/form-data">
- <div id="tab" class="tab-pane in tab">
- <div class="form-item cf">
- <table>
- <?php if(empty($data['id'])): ?><tr class="controls">
- <td class="item-label">买方币种 :</td>
- <td><select name="buyname" class="form-control input-10x">
- <?php if(is_array($C['coin'])): $i = 0; $__LIST__ = $C['coin'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><option value="<?php echo ($v['name']); ?>"><?php echo ($v['title']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
- </select>
- </td>
- <td class="item-note"></td>
- </tr>
- <tr class="controls">
- <td class="item-label">卖方币种 :</td>
- <td><select name="sellname" class="form-control input-10x">
- <?php if(is_array($C['coin'])): $i = 0; $__LIST__ = $C['coin'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><option value="<?php echo ($v['name']); ?>"><?php echo ($v['title']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
- </select>
- </td>
- <td class="item-note"></td>
- </tr>
- <?php else: ?>
- <tr class="controls">
- <td class="item-label">市场名称 :</td>
- <td><?php echo ($data["name"]); ?></td>
- <td class="item-note"></td>
- </tr><?php endif; ?>
- <tr class="controls">
- <td class="item-label">所属交易区</td>
- <td>
- <select name="jiaoyiqu">
- <?php if(is_array($getCoreConfig)): $i = 0; $__LIST__ = $getCoreConfig;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><option value="<?php echo ($key); ?>"
- <?php if(($data["jiaoyiqu"]) == $key): ?>selected<?php endif; ?>
- ><?php echo ($v); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
- </select>
- </td>
- <td class="item-note"></td>
- </tr>
- <!-- <tr class="controls">-->
- <!-- <td class="item-label">小数位数:</td>-->
- <!-- <td>-->
- <!-- <input type="text" class="form-control input-10x" name="round" value="<?php echo ($data["round"]); ?>">-->
- <!-- </td>-->
- <!-- <td class="item-note">填1--6整数,比如填3就表示3位小数</td>-->
- <!-- </tr>-->
- <!-- <tr class="controls">-->
- <!-- <td class="item-label">买入手续费:</td>-->
- <!-- <td>-->
- <!-- <input type="text" class="form-control input-10x" name="fee_buy" value="<?php echo ($data["fee_buy"]); ?>">-->
- <!-- </td>-->
- <!-- <td class="item-note">%有挂单的时候不能再修改</td>-->
- <!-- </tr>-->
- <!-- <tr class="controls">-->
- <!-- <td class="item-label">卖出手续费:</td>-->
- <!-- <td>-->
- <!-- <input type="text" class="form-control input-10x" name="fee_sell" value="<?php echo ($data["fee_sell"]); ?>">-->
- <!-- </td>-->
- <!-- <td class="item-note">%有挂单的时候不能再修改</td>-->
- <!-- </tr>-->
- <tr class="controls">
- <td class="item-label">买入最小交易价:</td>
- <td>
- <?php if(empty($data['buy_min'])): ?><input type="text" class="form-control input-10x" name="buy_min" value="0.0001">
- <?php else: ?>
- <input type="text" class="form-control input-10x" name="buy_min" value="<?php echo ($data["buy_min"]); ?>"><?php endif; ?>
- </td>
- <td class="item-note">买入最小交易价 默认0.000001</td>
- </tr>
- <tr class="controls">
- <td class="item-label">买入最大交易价:</td>
- <td>
- <?php if(empty($data['buy_max'])): ?><input type="text" class="form-control input-10x" name="buy_max" value="10000000">
- <?php else: ?>
- <input type="text" class="form-control input-10x" name="buy_max" value="<?php echo ($data["buy_max"]); ?>"><?php endif; ?>
- </td>
- <td class="item-note">买入最大交易价 默认10000000</td>
- </tr>
- <tr class="controls">
- <td class="item-label">卖出最小交易价:</td>
- <td>
- <?php if(empty($data['sell_min'])): ?><input type="text" class="form-control input-10x" name="sell_min" value="0.0001">
- <?php else: ?>
- <input type="text" class="form-control input-10x" name="sell_min" value="<?php echo ($data["sell_min"]); ?>"><?php endif; ?>
- </td>
- <td class="item-note">卖出最小交易价 默认0.000001</td>
- </tr>
- <tr class="controls">
- <td class="item-label">卖出最大交易价:</td>
- <td>
- <?php if(empty($data['sell_max'])): ?><input type="text" class="form-control input-10x" name="sell_max" value="10000000">
- <?php else: ?>
- <input type="text" class="form-control input-10x" name="sell_max" value="<?php echo ($data["sell_max"]); ?>"><?php endif; ?>
- </td>
- <td class="item-note">卖出最大交易价 默认10000000</td>
- </tr>
- <tr class="controls">
- <td class="item-label">单笔最小交易额:</td>
- <td>
- <?php if(empty($data['trade_min'])): ?><input type="text" class="form-control input-10x" name="trade_min" value="0.0001">
- <?php else: ?>
- <input type="text" class="form-control input-10x" name="trade_min" value="<?php echo ($data["trade_min"]); ?>"><?php endif; ?>
- </td>
- <td class="item-note">单笔最小交易额 默认10000000</td>
- </tr>
- <tr class="controls">
- <td class="item-label">单笔最大交易额:</td>
- <td>
- <?php if(empty($data['trade_max'])): ?><input type="text" class="form-control input-10x" name="trade_max" value="10000000">
- <?php else: ?>
- <input type="text" class="form-control input-10x" name="trade_max" value="<?php echo ($data["trade_max"]); ?>"><?php endif; ?>
- </td>
- <td class="item-note">单笔最大交易额 默认10000000</td>
- </tr>
- <tr class="controls">
- <td class="item-label">单笔买入最小交易数量:</td>
- <td>
- <?php if(empty($data['trade_buy_num_min'])): ?><input type="text" class="form-control input-10x" name="trade_buy_num_min" value="0.0001">
- <?php else: ?>
- <input type="text" class="form-control input-10x" name="trade_buy_num_min" value="<?php echo ($data["trade_buy_num_min"]); ?>"><?php endif; ?>
- </td>
- <td class="item-note">单笔买入最小交易量 默认0.0001</td>
- </tr>
- <tr class="controls">
- <td class="item-label">单笔买入最大交易数量:</td>
- <td>
- <?php if(empty($data['trade_buy_num_max'])): ?><input type="text" class="form-control input-10x" name="trade_buy_num_max" value="10000000">
- <?php else: ?>
- <input type="text" class="form-control input-10x" name="trade_buy_num_max" value="<?php echo ($data["trade_buy_num_max"]); ?>"><?php endif; ?>
- </td>
- <td class="item-note">单笔买入最大交易量 默认1000</td>
- </tr>
- <tr class="controls">
- <td class="item-label">单笔卖出最小交易数量:</td>
- <td>
- <?php if(empty($data['trade_sell_num_min'])): ?><input type="text" class="form-control input-10x" name="trade_sell_num_min" value="0.0001">
- <?php else: ?>
- <input type="text" class="form-control input-10x" name="trade_sell_num_min" value="<?php echo ($data["trade_sell_num_min"]); ?>"><?php endif; ?>
- </td>
- <td class="item-note">单笔卖出最小交易量 默认0.0001</td>
- </tr>
- <tr class="controls">
- <td class="item-label">单笔卖出最大交易数量:</td>
- <td>
- <?php if(empty($data['trade_sell_num_max'])): ?><input type="text" class="form-control input-10x" name="trade_sell_num_max" value="10000000">
- <?php else: ?>
- <input type="text" class="form-control input-10x" name="trade_sell_num_max" value="<?php echo ($data["trade_sell_num_max"]); ?>"><?php endif; ?>
- </td>
- <td class="item-note">单笔卖出最大交易量 默认1000</td>
- </tr>
- <!-- <tr class="controls" >-->
- <!-- <td class="item-label">一代赠送比例:</td>-->
- <!-- <td>-->
- <!-- <input type="text" class="form-control input-10x" name="invit_1" value="<?php echo ($data["invit_1"]); ?>">-->
- <!-- </td>-->
- <!-- <td class="item-note">%根据单笔交易手续费计算</td>-->
- <!-- </tr>-->
- <!-- <tr class="controls" >-->
- <!-- <td class="item-label">二代赠送比例:</td>-->
- <!-- <td>-->
- <!-- <input type="text" class="form-control input-10x" name="invit_2" value="<?php echo ($data["invit_2"]); ?>">-->
- <!-- </td>-->
- <!-- <td class="item-note">%根据单笔交易手续费计算</td>-->
- <!-- </tr>-->
- <!-- <tr class="controls" >-->
- <!-- <td class="item-label">三代赠送比例:</td>-->
- <!-- <td>-->
- <!-- <input type="text" class="form-control input-10x" name="invit_3" value="<?php echo ($data["invit_3"]); ?>">-->
- <!-- </td>-->
- <!-- <td class="item-note">%根据单笔交易手续费计算</td>-->
- <!-- </tr>-->
- <!-- <tr class="controls" >-->
- <!-- <td class="item-label">买家上家赠送 :</td>-->
- <!-- <td><select name="invit_buy" class="form-control input-10x">-->
- <!-- <option value="1"-->
- <!-- <?php if(($data["invit_buy"]) == "1"): ?>selected<?php endif; ?>-->
- <!-- >开启赠送</option>-->
- <!-- <option value="0"-->
- <!-- <?php if(($data["invit_buy"]) == "0"): ?>selected<?php endif; ?>-->
- <!-- >禁止赠送</option>-->
- <!-- </select></td>-->
- <!-- <td class="item-note"></td>-->
- <!-- </tr>-->
- <!-- <tr class="controls" >-->
- <!-- <td class="item-label">卖家上家赠送 :</td>-->
- <!-- <td><select name="invit_sell" class="form-control input-10x">-->
- <!-- <option value="1"-->
- <!-- <?php if(($data["invit_sell"]) == "1"): ?>selected<?php endif; ?>-->
- <!-- >开启赠送</option>-->
- <!-- <option value="0"-->
- <!-- <?php if(($data["invit_sell"]) == "0"): ?>selected<?php endif; ?>-->
- <!-- >禁止赠送</option>-->
- <!-- </select></td>-->
- <!-- <td class="item-note"></td>-->
- <!-- </tr>-->
- <tr class="controls">
- <td class="item-label">涨幅限制:</td>
- <td>
- <input type="text" class="form-control input-10x" name="zhang" value="<?php echo ($data["zhang"]); ?>">
- </td>
- <td class="item-note">%根据昨日最后一笔交易计算</td>
- </tr>
- <tr class="controls">
- <td class="item-label">跌幅限制:</td>
- <td>
- <input type="text" class="form-control input-10x" name="die" value="<?php echo ($data["die"]); ?>">
- </td>
- <td class="item-note">%根据昨日最后一笔交易计算</td>
- </tr>
- <!-- <tr class="controls">-->
- <!-- <td class="item-label">开盘交易时间 :</td>-->
- <!-- <td>-->
- <!-- <select name="start_time" class="form-control input-10x" style="width:48%;float:left;">-->
- <!-- <?php if(is_array($time_arr)): $k = 0; $__LIST__ = $time_arr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?>-->
- <!-- <option value="<?php echo ($k-1); ?>"-->
- <!-- <?php if(($data["start_time"]) == $k-1): ?>selected<?php endif; ?>-->
- <!-- ><?php echo ($vo); ?>时</option>-->
- <!--<?php endforeach; endif; else: echo "" ;endif; ?>-->
- <!-- </select>-->
- <!-- <select name="start_minute" class="form-control input-10x" style="width:48%;float:right;">-->
- <!-- <?php if(is_array($time_minute)): $k = 0; $__LIST__ = $time_minute;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?>-->
- <!-- <option value="<?php echo ($k-1); ?>"-->
- <!-- <?php if(($data["start_minute"]) == $k-1): ?>selected<?php endif; ?>-->
- <!-- ><?php echo ($vo); ?>分</option>-->
- <!--<?php endforeach; endif; else: echo "" ;endif; ?>-->
- <!-- </select>-->
- <!-- </td>-->
- <!-- <td class="item-note"></td>-->
- <!-- </tr>-->
- <!-- <tr class="controls">-->
- <!-- <td class="item-label">闭盘交易时间 :</td>-->
- <!-- <td>-->
- <!-- <select name="stop_time" class="form-control input-10x" style="width:48%;float:left;">-->
- <!-- <?php if(is_array($time_arr)): $k = 0; $__LIST__ = $time_arr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?>-->
- <!-- <option value="<?php echo ($k-1); ?>"-->
- <!-- <?php if(($data["stop_time"]) == $k-1): ?>selected<?php endif; ?>-->
- <!-- ><?php echo ($vo); ?>时</option>-->
- <!--<?php endforeach; endif; else: echo "" ;endif; ?>-->
- <!-- </select>-->
- <!-- <select name="stop_minute" class="form-control input-10x" style="width:48%;float:right;">-->
- <!-- <?php if(is_array($time_minute)): $k = 0; $__LIST__ = $time_minute;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?>-->
- <!-- <option value="<?php echo ($k-1); ?>"-->
- <!-- <?php if(($data["stop_minute"]) == $k-1): ?>selected<?php endif; ?>-->
- <!-- ><?php echo ($vo); ?>分</option>-->
- <!--<?php endforeach; endif; else: echo "" ;endif; ?>-->
- <!-- </select>-->
- <!-- </td>-->
- <!-- <td class="item-note"></td>-->
- <!-- </tr>-->
- <!-- <tr class="controls">-->
- <!-- <td class="item-label">周六 :</td>-->
- <!-- <td><select name="agree6" class="form-control input-10x">-->
- <!-- <option value="1"-->
- <!-- <?php if(($data["agree6"]) == "1"): ?>selected<?php endif; ?>-->
- <!-- >可交易</option>-->
- <!-- <option value="0"-->
- <!-- <?php if(($data["agree6"]) == "0"): ?>selected<?php endif; ?>-->
- <!-- >不可交易</option>-->
- <!-- </select></td>-->
- <!-- <td class="item-note"></td>-->
- <!-- </tr>-->
- <!-- <tr class="controls">-->
- <!-- <td class="item-label">周日 :</td>-->
- <!-- <td><select name="agree7" class="form-control input-10x">-->
- <!-- <option value="1"-->
- <!-- <?php if(($data["agree7"]) == "1"): ?>selected<?php endif; ?>-->
- <!-- >可交易</option>-->
- <!-- <option value="0"-->
- <!-- <?php if(($data["agree7"]) == "0"): ?>selected<?php endif; ?>-->
- <!-- >不可交易</option>-->
- <!-- </select></td>-->
- <!-- <td class="item-note"></td>-->
- <!-- </tr>-->
- <tr class="controls">
- <td class="item-label">开启交易 :</td>
- <td><select name="trade" class="form-control input-10x">
- <option value="1"
- <?php if(($data["trade"]) == "1"): ?>selected<?php endif; ?>
- >开启交易</option>
- <option value="0"
- <?php if(($data["trade"]) == "0"): ?>selected<?php endif; ?>
- >禁止交易</option>
- </select></td>
- <td class="item-note"></td>
- </tr>
- <tr class="controls">
- <td class="item-label">状态 :</td>
- <td><select name="status" class="form-control input-10x">
- <option value="1"
- <?php if(($data["status"]) == "1"): ?>selected<?php endif; ?>
- >可用</option>
- <option value="0"
- <?php if(($data["status"]) == "0"): ?>selected<?php endif; ?>
- >禁用</option>
- </select></td>
- <td class="item-note"></td>
- </tr>
- <tr class="controls">
- <td class="item-label">开启刷单 :</td>
- <td><select name="shuadan" class="form-control input-10x">
- <option value="1"
- <?php if(($data["shuadan"]) == "1"): ?>selected<?php endif; ?>
- >开启</option>
- <option value="0"
- <?php if(($data["shuadan"]) == "0"): ?>selected<?php endif; ?>
- >关闭</option>
- </select></td>
- <td class="item-note"></td>
- </tr>
- <!-- <tr class="controls">-->
- <!-- <td class="item-label">调用外部价格 :</td>-->
- <!-- <td><select name="sdtype" class="form-control input-10x">-->
- <!-- <option value="1"-->
- <!-- <?php if(($data["sdtype"]) == "1"): ?>selected<?php endif; ?>-->
- <!-- >开启</option>-->
- <!-- <option value="0"-->
- <!-- <?php if(($data["sdtype"]) == "0"): ?>selected<?php endif; ?>-->
- <!-- >关闭</option>-->
- <!-- </select></td>-->
- <!-- <td class="item-note">使用前需修改文件代码,调用比特儿海外交易所gate.io的价格</td>-->
- <!-- </tr>-->
- <tr class="controls">
- <td class="item-label">发行价:</td>
- <td>
- <input type="text" class="form-control input-10x" name="faxingjia" value="<?php echo ($data["faxingjia"]); ?>">
- </td>
- <td class="item-note">发行价</td>
- </tr>
- <tr class="controls">
- <td class="item-label">刷单上限价格:</td>
- <td>
- <input type="text" class="form-control input-10x" name="sdhigh" value="<?php echo ($data["sdhigh"]); ?>">
- </td>
- <td class="item-note">当前价:<?php echo ($data["new_price"]); ?></td>
- </tr>
- <tr class="controls">
- <td class="item-label">刷单下限价格:</td>
- <td>
- <input type="text" class="form-control input-10x" name="sdlow" value="<?php echo ($data["sdlow"]); ?>">
- </td>
- <td class="item-note">当前价:<?php echo ($data["new_price"]); ?></td>
- </tr>
- <tr class="controls">
- <td class="item-label">刷单最高数量:</td>
- <td>
- <input type="text" class="form-control input-10x" name="sdhigh_num" value="<?php echo ($data["sdhigh_num"]); ?>">
- </td>
- <td class="item-note">刷单最高数量</td>
- </tr>
- <tr class="controls">
- <td class="item-label">刷单最低数量:</td>
- <td>
- <input type="text" class="form-control input-10x" name="sdlow_num" value="<?php echo ($data["sdlow_num"]); ?>">
- </td>
- <td class="item-note">刷单最低数量</td>
- </tr>
- <tr class="controls">
- <td class="item-label"></td>
- <td>
- <div class="form-item cf">
- <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">提交
- </button>
- <a class="btn btn-return" href="<?php echo ($_SERVER['HTTP_REFERER']); ?>">返 回</a>
- <?php if(!empty($data["id"])): ?><input type="hidden" name="id" value="<?php echo ($data["id"]); ?>"/><?php endif; ?>
- </div>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </form>
- <script type="text/javascript">
- //提交表单
- $('#submit').click(function () {
- $('#form').submit();
- });
- </script>
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript" src="/Public/Admin/js/common.js"></script>
- <script type="text/javascript">
- +function(){
- //$("select").select2({dropdownCssClass: 'dropdown-inverse'});//下拉条样式
- layer.config({
- extend: 'extend/layer.ext.js'
- });
- var $window = $(window), $subnav = $("#subnav"), url;
- $window.resize(function(){
- //$("#main").css("min-height", $window.height() - 90);
- }).resize();
- /* 左边菜单高亮 */
- url = window.location.pathname + window.location.search;
- url = url.replace(/(\/(p)\/\d+)|(&p=\d+)|(\/(id)\/\d+)|(&id=\d+)|(\/(group)\/\d+)|(&group=\d+)/, "");
- $subnav.find("a[href='" + url + "']").parent().addClass("current");
- /* 左边菜单显示收起 */
- $("#subnav").on("click", "h3", function(){
- var $this = $(this);
- $this.find(".icon").toggleClass("icon-fold");
- $this.next().slideToggle("fast").siblings(".side-sub-menu:visible").
- prev("h3").find("i").addClass("icon-fold").end().end().hide();
- });
- $("#subnav h3 a").click(function(e){e.stopPropagation()});
- /* 头部管理员菜单 */
- $(".user-bar").mouseenter(function(){
- var userMenu = $(this).children(".user-menu ");
- userMenu.removeClass("hidden");
- clearTimeout(userMenu.data("timeout"));
- }).mouseleave(function(){
- var userMenu = $(this).children(".user-menu");
- userMenu.data("timeout") && clearTimeout(userMenu.data("timeout"));
- userMenu.data("timeout", setTimeout(function(){userMenu.addClass("hidden")}, 100));
- });
- /* 表单获取焦点变色 */
- $("form").on("focus", "input", function(){
- $(this).addClass('focus');
- }).on("blur","input",function(){
- $(this).removeClass('focus');
- });
- $("form").on("focus", "textarea", function(){
- $(this).closest('label').addClass('focus');
- }).on("blur","textarea",function(){
- $(this).closest('label').removeClass('focus');
- });
- // 导航栏超出窗口高度后的模拟滚动条
- var sHeight = $(".sidebar").height();
- var subHeight = $(".subnav").height();
- var diff = subHeight - sHeight; //250
- var sub = $(".subnav");
- }();
- //导航高亮
- function highlight_subnav(url){
- $('.side-sub-menu').find('a[href="'+url+'"]').closest('li').addClass('current');
- }
- function lockscreen(){
- layer.prompt({
- title: '输入一个锁屏密码',
- formType: 1,
- btn: ['锁屏','取消'] //按钮
- }, function(pass){
- if(!pass){
- layer.msg('需要输入一个密码!');
- }else{
- $.post("<?php echo U('Login/lockScreen');?>",{pass:pass},function(data){
- layer.msg(data.info);
- layer.close();
- if(data.status){
- window.location.href = "<?php echo U('Login/lockScreen');?>";
- }
- },'json');
- }
- });
- }
- </script>
- <div style="display:none;">
- </div>
- </body>
- </html>
- <script type="text/javascript" charset="utf-8">
- //导航高亮
- highlight_subnav("<?php echo U('Trade/market');?>");
- </script>
|