fd3b36cae047f045e8447e9bb9a2105e.php 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  1. <?php if (!defined('THINK_PATH')) exit();?><!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <title>后台 | 管理中心 - ADMIN EX</title>
  7. <!-- Loading Bootstrap -->
  8. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/vendor/bootstrap/css/bootstrap.min.css">
  9. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/base.css" media="all">
  10. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/common.css" media="all">
  11. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/module.css">
  12. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/style.css" media="all">
  13. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/default_color.css" media="all">
  14. <script type="text/javascript" src="/Public/Admin/js/jquery.min.js"></script>
  15. <script type="text/javascript" src="/Public/layer/layer.js"></script>
  16. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/flat-ui.css">
  17. <script src="/Public/Admin/js/flat-ui.min.js"></script>
  18. <script src="/Public/Admin/js/application.js"></script>
  19. </head>
  20. <body>
  21. <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  22. <div class="navbar-header">
  23. <a class="navbar-brand" style="width:200px;text-align:center;background-color:#3c434d;" href="<?php echo U('Index/index');?>">
  24. <img src="/Public/Admin/ecshe_img/logo_text.png" />
  25. </a>
  26. </div>
  27. <div class="navbar-collapse collapse">
  28. <ul class="nav navbar-nav">
  29. <!-- 主导航 -->
  30. <?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; ?> >
  31. <a href="<?php echo (U($menu["url"])); ?>">
  32. <?php echo ($menu["title"]); ?>
  33. </a>
  34. </li><?php endforeach; endif; else: echo "" ;endif; ?>
  35. </ul>
  36. <ul class="nav navbar-nav navbar-rights" style="margin-right:10px;">
  37. <li class="dropdown">
  38. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  39. <?php echo session('admin_username');?><b class="caret"></b>
  40. </a>
  41. <ul class="dropdown-menu">
  42. <li>
  43. <a href="<?php echo U('User/setpwd');?>">
  44. <span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> 修改密码
  45. </a>
  46. </li>
  47. <li class="center">
  48. <a href="javascript:void(0);" onclick="lockscreen()">
  49. <span class="glyphicon glyphicon-lock" aria-hidden="true"></span> 锁屏休息
  50. </a>
  51. </li>
  52. <li class="dividers"></li>
  53. <li>
  54. <a href="<?php echo U('Login/loginout');?>">
  55. <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> 退出后台
  56. </a>
  57. </li>
  58. </ul>
  59. </li>
  60. <li>
  61. <a href="<?php echo U('Tools/delcache');?>" class="dropdown-toggle" title="清除缓存">
  62. <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
  63. </a>
  64. </li>
  65. <li>
  66. <a class="dropdown-toggle" title="打开前台" href="/" target="_blank">
  67. <span class="glyphicon glyphicon-share" aria-hidden="true"></span>
  68. </a>
  69. </li>
  70. </ul>
  71. </div>
  72. </div>
  73. <!-- 边栏 -->
  74. <div class="sidebar">
  75. <!-- 子导航 -->
  76. <div id="subnav" class="subnav" style="max-height: 94%;overflow-x: hidden;overflow-y: auto;">
  77. <?php if(!empty($_extra_menu)): ?> <?php echo extra_menu($_extra_menu,$__MENU__); endif; ?>
  78. <?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;?><!-- 子导航 -->
  79. <?php if(!empty($sub_menu)): if(!empty($key)): ?><h3><i class="icon icon-unfold"></i><?php echo ($key); ?></h3><?php endif; ?>
  80. <ul class="side-sub-menu">
  81. <?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>
  82. <a class="item" href="<?php echo (U($menu["url"])); ?>">
  83. <?php if(empty($menu["ico_name"])): ?><span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>
  84. <?php else: ?>
  85. <span class="glyphicon glyphicon-<?php echo ($menu["ico_name"]); ?>" aria-hidden="true"></span><?php endif; ?>
  86. <?php echo ($menu["title"]); ?>
  87. </a>
  88. </li><?php endforeach; endif; else: echo "" ;endif; ?>
  89. </ul>
  90. _
  91. <div>
  92. <audio id="remind">
  93. <source src="/Public/Admin/images/5f71a0c7a5c27778.mp3" type="audio/mpeg">
  94. </audio>
  95. </div><?php endif; ?>
  96. <!-- /子导航 --><?php endforeach; endif; else: echo "" ;endif; ?>
  97. </div>
  98. <!-- /子导航 -->
  99. </div>
  100. <!-- /边栏 -->
  101. <script type="text/javascript">
  102. $(function(){
  103. setInterval("tzfc()",5000);
  104. });
  105. function tzfc(){
  106. var st = 1;
  107. $.post("<?php echo U('Admin/Trade/getmyzrtz');?>",
  108. {'st':st},
  109. function(data){
  110. if(data.code == 1){
  111. var audio = document.getElementById('remind')
  112. audio.play()
  113. }
  114. });
  115. $.post("<?php echo U('Admin/Trade/gethyorder');?>",
  116. {'st':st},
  117. function(data){
  118. if(data.code == 1){
  119. layer.confirm('有新的合约订单', {
  120. btn: ['知道了'] //按钮
  121. }, function(){
  122. $.post("<?php echo U('Admin/Trade/settzstatus');?>",
  123. function(data){
  124. if(data.code == 1){
  125. window.location.reload();
  126. }
  127. });
  128. });
  129. }
  130. });
  131. }
  132. </script>
  133. <?php if(($versionUp) == "1"): ?><script type="text/javascript" charset="utf-8">
  134. /**顶部警告栏*/
  135. var top_alert = $('#top-alerta');
  136. top_alert.find('.close').on('click', function () {
  137. top_alert.removeClass('block').slideUp(200);
  138. // content.animate({paddingTop:'-=55'},200);
  139. });
  140. </script><?php endif; ?>
  141. <div id="main-content">
  142. <div id="top-alert" class="fixed alert alert-error" style="display: none;">
  143. <button class="close fixed" style="margin-top: 4px;">&times;</button>
  144. <div class="alert-content">警告内容</div>
  145. </div>
  146. <div id="main" class="main">
  147. <div class="main-title-h">
  148. <span class="h1-title"><a href="<?php echo U('Trade/market');?>">市场列表</a> >></span>
  149. <span class="h1-title"><?php if(empty($data)): ?>新增市场<?php else: ?>编辑市场<?php endif; ?></span>
  150. </div>
  151. <div class="tab-wrap">
  152. <div class="tab-content">
  153. <form id="form" action="<?php echo U('Trade/marketEdit');?>" method="post" class="form-horizontal" enctype="multipart/form-data">
  154. <div id="tab" class="tab-pane in tab">
  155. <div class="form-item cf">
  156. <table>
  157. <?php if(empty($data['id'])): ?><tr class="controls">
  158. <td class="item-label">买方币种 :</td>
  159. <td><select name="buyname" class="form-control input-10x">
  160. <?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; ?>
  161. </select>
  162. </td>
  163. <td class="item-note"></td>
  164. </tr>
  165. <tr class="controls">
  166. <td class="item-label">卖方币种 :</td>
  167. <td><select name="sellname" class="form-control input-10x">
  168. <?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; ?>
  169. </select>
  170. </td>
  171. <td class="item-note"></td>
  172. </tr>
  173. <?php else: ?>
  174. <tr class="controls">
  175. <td class="item-label">市场名称 :</td>
  176. <td><?php echo ($data["name"]); ?></td>
  177. <td class="item-note"></td>
  178. </tr><?php endif; ?>
  179. <tr class="controls">
  180. <td class="item-label">所属交易区</td>
  181. <td>
  182. <select name="jiaoyiqu">
  183. <?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); ?>"
  184. <?php if(($data["jiaoyiqu"]) == $key): ?>selected<?php endif; ?>
  185. ><?php echo ($v); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
  186. </select>
  187. </td>
  188. <td class="item-note"></td>
  189. </tr>
  190. <!-- <tr class="controls">-->
  191. <!-- <td class="item-label">小数位数:</td>-->
  192. <!-- <td>-->
  193. <!-- <input type="text" class="form-control input-10x" name="round" value="<?php echo ($data["round"]); ?>">-->
  194. <!-- </td>-->
  195. <!-- <td class="item-note">填1&#45;&#45;6整数,比如填3就表示3位小数</td>-->
  196. <!-- </tr>-->
  197. <!-- <tr class="controls">-->
  198. <!-- <td class="item-label">买入手续费:</td>-->
  199. <!-- <td>-->
  200. <!-- <input type="text" class="form-control input-10x" name="fee_buy" value="<?php echo ($data["fee_buy"]); ?>">-->
  201. <!-- </td>-->
  202. <!-- <td class="item-note">%有挂单的时候不能再修改</td>-->
  203. <!-- </tr>-->
  204. <!-- <tr class="controls">-->
  205. <!-- <td class="item-label">卖出手续费:</td>-->
  206. <!-- <td>-->
  207. <!-- <input type="text" class="form-control input-10x" name="fee_sell" value="<?php echo ($data["fee_sell"]); ?>">-->
  208. <!-- </td>-->
  209. <!-- <td class="item-note">%有挂单的时候不能再修改</td>-->
  210. <!-- </tr>-->
  211. <tr class="controls">
  212. <td class="item-label">买入最小交易价:</td>
  213. <td>
  214. <?php if(empty($data['buy_min'])): ?><input type="text" class="form-control input-10x" name="buy_min" value="0.0001">
  215. <?php else: ?>
  216. <input type="text" class="form-control input-10x" name="buy_min" value="<?php echo ($data["buy_min"]); ?>"><?php endif; ?>
  217. </td>
  218. <td class="item-note">买入最小交易价 默认0.000001</td>
  219. </tr>
  220. <tr class="controls">
  221. <td class="item-label">买入最大交易价:</td>
  222. <td>
  223. <?php if(empty($data['buy_max'])): ?><input type="text" class="form-control input-10x" name="buy_max" value="10000000">
  224. <?php else: ?>
  225. <input type="text" class="form-control input-10x" name="buy_max" value="<?php echo ($data["buy_max"]); ?>"><?php endif; ?>
  226. </td>
  227. <td class="item-note">买入最大交易价 默认10000000</td>
  228. </tr>
  229. <tr class="controls">
  230. <td class="item-label">卖出最小交易价:</td>
  231. <td>
  232. <?php if(empty($data['sell_min'])): ?><input type="text" class="form-control input-10x" name="sell_min" value="0.0001">
  233. <?php else: ?>
  234. <input type="text" class="form-control input-10x" name="sell_min" value="<?php echo ($data["sell_min"]); ?>"><?php endif; ?>
  235. </td>
  236. <td class="item-note">卖出最小交易价 默认0.000001</td>
  237. </tr>
  238. <tr class="controls">
  239. <td class="item-label">卖出最大交易价:</td>
  240. <td>
  241. <?php if(empty($data['sell_max'])): ?><input type="text" class="form-control input-10x" name="sell_max" value="10000000">
  242. <?php else: ?>
  243. <input type="text" class="form-control input-10x" name="sell_max" value="<?php echo ($data["sell_max"]); ?>"><?php endif; ?>
  244. </td>
  245. <td class="item-note">卖出最大交易价 默认10000000</td>
  246. </tr>
  247. <tr class="controls">
  248. <td class="item-label">单笔最小交易额:</td>
  249. <td>
  250. <?php if(empty($data['trade_min'])): ?><input type="text" class="form-control input-10x" name="trade_min" value="0.0001">
  251. <?php else: ?>
  252. <input type="text" class="form-control input-10x" name="trade_min" value="<?php echo ($data["trade_min"]); ?>"><?php endif; ?>
  253. </td>
  254. <td class="item-note">单笔最小交易额 默认10000000</td>
  255. </tr>
  256. <tr class="controls">
  257. <td class="item-label">单笔最大交易额:</td>
  258. <td>
  259. <?php if(empty($data['trade_max'])): ?><input type="text" class="form-control input-10x" name="trade_max" value="10000000">
  260. <?php else: ?>
  261. <input type="text" class="form-control input-10x" name="trade_max" value="<?php echo ($data["trade_max"]); ?>"><?php endif; ?>
  262. </td>
  263. <td class="item-note">单笔最大交易额 默认10000000</td>
  264. </tr>
  265. <tr class="controls">
  266. <td class="item-label">单笔买入最小交易数量:</td>
  267. <td>
  268. <?php if(empty($data['trade_buy_num_min'])): ?><input type="text" class="form-control input-10x" name="trade_buy_num_min" value="0.0001">
  269. <?php else: ?>
  270. <input type="text" class="form-control input-10x" name="trade_buy_num_min" value="<?php echo ($data["trade_buy_num_min"]); ?>"><?php endif; ?>
  271. </td>
  272. <td class="item-note">单笔买入最小交易量 默认0.0001</td>
  273. </tr>
  274. <tr class="controls">
  275. <td class="item-label">单笔买入最大交易数量:</td>
  276. <td>
  277. <?php if(empty($data['trade_buy_num_max'])): ?><input type="text" class="form-control input-10x" name="trade_buy_num_max" value="10000000">
  278. <?php else: ?>
  279. <input type="text" class="form-control input-10x" name="trade_buy_num_max" value="<?php echo ($data["trade_buy_num_max"]); ?>"><?php endif; ?>
  280. </td>
  281. <td class="item-note">单笔买入最大交易量 默认1000</td>
  282. </tr>
  283. <tr class="controls">
  284. <td class="item-label">单笔卖出最小交易数量:</td>
  285. <td>
  286. <?php if(empty($data['trade_sell_num_min'])): ?><input type="text" class="form-control input-10x" name="trade_sell_num_min" value="0.0001">
  287. <?php else: ?>
  288. <input type="text" class="form-control input-10x" name="trade_sell_num_min" value="<?php echo ($data["trade_sell_num_min"]); ?>"><?php endif; ?>
  289. </td>
  290. <td class="item-note">单笔卖出最小交易量 默认0.0001</td>
  291. </tr>
  292. <tr class="controls">
  293. <td class="item-label">单笔卖出最大交易数量:</td>
  294. <td>
  295. <?php if(empty($data['trade_sell_num_max'])): ?><input type="text" class="form-control input-10x" name="trade_sell_num_max" value="10000000">
  296. <?php else: ?>
  297. <input type="text" class="form-control input-10x" name="trade_sell_num_max" value="<?php echo ($data["trade_sell_num_max"]); ?>"><?php endif; ?>
  298. </td>
  299. <td class="item-note">单笔卖出最大交易量 默认1000</td>
  300. </tr>
  301. <!-- <tr class="controls" >-->
  302. <!-- <td class="item-label">一代赠送比例:</td>-->
  303. <!-- <td>-->
  304. <!-- <input type="text" class="form-control input-10x" name="invit_1" value="<?php echo ($data["invit_1"]); ?>">-->
  305. <!-- </td>-->
  306. <!-- <td class="item-note">%根据单笔交易手续费计算</td>-->
  307. <!-- </tr>-->
  308. <!-- <tr class="controls" >-->
  309. <!-- <td class="item-label">二代赠送比例:</td>-->
  310. <!-- <td>-->
  311. <!-- <input type="text" class="form-control input-10x" name="invit_2" value="<?php echo ($data["invit_2"]); ?>">-->
  312. <!-- </td>-->
  313. <!-- <td class="item-note">%根据单笔交易手续费计算</td>-->
  314. <!-- </tr>-->
  315. <!-- <tr class="controls" >-->
  316. <!-- <td class="item-label">三代赠送比例:</td>-->
  317. <!-- <td>-->
  318. <!-- <input type="text" class="form-control input-10x" name="invit_3" value="<?php echo ($data["invit_3"]); ?>">-->
  319. <!-- </td>-->
  320. <!-- <td class="item-note">%根据单笔交易手续费计算</td>-->
  321. <!-- </tr>-->
  322. <!-- <tr class="controls" >-->
  323. <!-- <td class="item-label">买家上家赠送 :</td>-->
  324. <!-- <td><select name="invit_buy" class="form-control input-10x">-->
  325. <!-- <option value="1"-->
  326. <!-- <?php if(($data["invit_buy"]) == "1"): ?>selected<?php endif; ?>-->
  327. <!-- >开启赠送</option>-->
  328. <!-- <option value="0"-->
  329. <!-- <?php if(($data["invit_buy"]) == "0"): ?>selected<?php endif; ?>-->
  330. <!-- >禁止赠送</option>-->
  331. <!-- </select></td>-->
  332. <!-- <td class="item-note"></td>-->
  333. <!-- </tr>-->
  334. <!-- <tr class="controls" >-->
  335. <!-- <td class="item-label">卖家上家赠送 :</td>-->
  336. <!-- <td><select name="invit_sell" class="form-control input-10x">-->
  337. <!-- <option value="1"-->
  338. <!-- <?php if(($data["invit_sell"]) == "1"): ?>selected<?php endif; ?>-->
  339. <!-- >开启赠送</option>-->
  340. <!-- <option value="0"-->
  341. <!-- <?php if(($data["invit_sell"]) == "0"): ?>selected<?php endif; ?>-->
  342. <!-- >禁止赠送</option>-->
  343. <!-- </select></td>-->
  344. <!-- <td class="item-note"></td>-->
  345. <!-- </tr>-->
  346. <tr class="controls">
  347. <td class="item-label">涨幅限制:</td>
  348. <td>
  349. <input type="text" class="form-control input-10x" name="zhang" value="<?php echo ($data["zhang"]); ?>">
  350. </td>
  351. <td class="item-note">%根据昨日最后一笔交易计算</td>
  352. </tr>
  353. <tr class="controls">
  354. <td class="item-label">跌幅限制:</td>
  355. <td>
  356. <input type="text" class="form-control input-10x" name="die" value="<?php echo ($data["die"]); ?>">
  357. </td>
  358. <td class="item-note">%根据昨日最后一笔交易计算</td>
  359. </tr>
  360. <!-- <tr class="controls">-->
  361. <!-- <td class="item-label">开盘交易时间 :</td>-->
  362. <!-- <td>-->
  363. <!-- <select name="start_time" class="form-control input-10x" style="width:48%;float:left;">-->
  364. <!-- <?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;?>-->
  365. <!-- <option value="<?php echo ($k-1); ?>"-->
  366. <!-- <?php if(($data["start_time"]) == $k-1): ?>selected<?php endif; ?>-->
  367. <!-- ><?php echo ($vo); ?>时</option>-->
  368. <!--<?php endforeach; endif; else: echo "" ;endif; ?>-->
  369. <!-- </select>-->
  370. <!-- <select name="start_minute" class="form-control input-10x" style="width:48%;float:right;">-->
  371. <!-- <?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;?>-->
  372. <!-- <option value="<?php echo ($k-1); ?>"-->
  373. <!-- <?php if(($data["start_minute"]) == $k-1): ?>selected<?php endif; ?>-->
  374. <!-- ><?php echo ($vo); ?>分</option>-->
  375. <!--<?php endforeach; endif; else: echo "" ;endif; ?>-->
  376. <!-- </select>-->
  377. <!-- </td>-->
  378. <!-- <td class="item-note"></td>-->
  379. <!-- </tr>-->
  380. <!-- <tr class="controls">-->
  381. <!-- <td class="item-label">闭盘交易时间 :</td>-->
  382. <!-- <td>-->
  383. <!-- <select name="stop_time" class="form-control input-10x" style="width:48%;float:left;">-->
  384. <!-- <?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;?>-->
  385. <!-- <option value="<?php echo ($k-1); ?>"-->
  386. <!-- <?php if(($data["stop_time"]) == $k-1): ?>selected<?php endif; ?>-->
  387. <!-- ><?php echo ($vo); ?>时</option>-->
  388. <!--<?php endforeach; endif; else: echo "" ;endif; ?>-->
  389. <!-- </select>-->
  390. <!-- <select name="stop_minute" class="form-control input-10x" style="width:48%;float:right;">-->
  391. <!-- <?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;?>-->
  392. <!-- <option value="<?php echo ($k-1); ?>"-->
  393. <!-- <?php if(($data["stop_minute"]) == $k-1): ?>selected<?php endif; ?>-->
  394. <!-- ><?php echo ($vo); ?>分</option>-->
  395. <!--<?php endforeach; endif; else: echo "" ;endif; ?>-->
  396. <!-- </select>-->
  397. <!-- </td>-->
  398. <!-- <td class="item-note"></td>-->
  399. <!-- </tr>-->
  400. <!-- <tr class="controls">-->
  401. <!-- <td class="item-label">周六 :</td>-->
  402. <!-- <td><select name="agree6" class="form-control input-10x">-->
  403. <!-- <option value="1"-->
  404. <!-- <?php if(($data["agree6"]) == "1"): ?>selected<?php endif; ?>-->
  405. <!-- >可交易</option>-->
  406. <!-- <option value="0"-->
  407. <!-- <?php if(($data["agree6"]) == "0"): ?>selected<?php endif; ?>-->
  408. <!-- >不可交易</option>-->
  409. <!-- </select></td>-->
  410. <!-- <td class="item-note"></td>-->
  411. <!-- </tr>-->
  412. <!-- <tr class="controls">-->
  413. <!-- <td class="item-label">周日 :</td>-->
  414. <!-- <td><select name="agree7" class="form-control input-10x">-->
  415. <!-- <option value="1"-->
  416. <!-- <?php if(($data["agree7"]) == "1"): ?>selected<?php endif; ?>-->
  417. <!-- >可交易</option>-->
  418. <!-- <option value="0"-->
  419. <!-- <?php if(($data["agree7"]) == "0"): ?>selected<?php endif; ?>-->
  420. <!-- >不可交易</option>-->
  421. <!-- </select></td>-->
  422. <!-- <td class="item-note"></td>-->
  423. <!-- </tr>-->
  424. <tr class="controls">
  425. <td class="item-label">开启交易 :</td>
  426. <td><select name="trade" class="form-control input-10x">
  427. <option value="1"
  428. <?php if(($data["trade"]) == "1"): ?>selected<?php endif; ?>
  429. >开启交易</option>
  430. <option value="0"
  431. <?php if(($data["trade"]) == "0"): ?>selected<?php endif; ?>
  432. >禁止交易</option>
  433. </select></td>
  434. <td class="item-note"></td>
  435. </tr>
  436. <tr class="controls">
  437. <td class="item-label">状态 :</td>
  438. <td><select name="status" class="form-control input-10x">
  439. <option value="1"
  440. <?php if(($data["status"]) == "1"): ?>selected<?php endif; ?>
  441. >可用</option>
  442. <option value="0"
  443. <?php if(($data["status"]) == "0"): ?>selected<?php endif; ?>
  444. >禁用</option>
  445. </select></td>
  446. <td class="item-note"></td>
  447. </tr>
  448. <tr class="controls">
  449. <td class="item-label">开启刷单 :</td>
  450. <td><select name="shuadan" class="form-control input-10x">
  451. <option value="1"
  452. <?php if(($data["shuadan"]) == "1"): ?>selected<?php endif; ?>
  453. >开启</option>
  454. <option value="0"
  455. <?php if(($data["shuadan"]) == "0"): ?>selected<?php endif; ?>
  456. >关闭</option>
  457. </select></td>
  458. <td class="item-note"></td>
  459. </tr>
  460. <!-- <tr class="controls">-->
  461. <!-- <td class="item-label">调用外部价格 :</td>-->
  462. <!-- <td><select name="sdtype" class="form-control input-10x">-->
  463. <!-- <option value="1"-->
  464. <!-- <?php if(($data["sdtype"]) == "1"): ?>selected<?php endif; ?>-->
  465. <!-- >开启</option>-->
  466. <!-- <option value="0"-->
  467. <!-- <?php if(($data["sdtype"]) == "0"): ?>selected<?php endif; ?>-->
  468. <!-- >关闭</option>-->
  469. <!-- </select></td>-->
  470. <!-- <td class="item-note">使用前需修改文件代码,调用比特儿海外交易所gate.io的价格</td>-->
  471. <!-- </tr>-->
  472. <tr class="controls">
  473. <td class="item-label">发行价:</td>
  474. <td>
  475. <input type="text" class="form-control input-10x" name="faxingjia" value="<?php echo ($data["faxingjia"]); ?>">
  476. </td>
  477. <td class="item-note">发行价</td>
  478. </tr>
  479. <tr class="controls">
  480. <td class="item-label">刷单上限价格:</td>
  481. <td>
  482. <input type="text" class="form-control input-10x" name="sdhigh" value="<?php echo ($data["sdhigh"]); ?>">
  483. </td>
  484. <td class="item-note">当前价:<?php echo ($data["new_price"]); ?></td>
  485. </tr>
  486. <tr class="controls">
  487. <td class="item-label">刷单下限价格:</td>
  488. <td>
  489. <input type="text" class="form-control input-10x" name="sdlow" value="<?php echo ($data["sdlow"]); ?>">
  490. </td>
  491. <td class="item-note">当前价:<?php echo ($data["new_price"]); ?></td>
  492. </tr>
  493. <tr class="controls">
  494. <td class="item-label">刷单最高数量:</td>
  495. <td>
  496. <input type="text" class="form-control input-10x" name="sdhigh_num" value="<?php echo ($data["sdhigh_num"]); ?>">
  497. </td>
  498. <td class="item-note">刷单最高数量</td>
  499. </tr>
  500. <tr class="controls">
  501. <td class="item-label">刷单最低数量:</td>
  502. <td>
  503. <input type="text" class="form-control input-10x" name="sdlow_num" value="<?php echo ($data["sdlow_num"]); ?>">
  504. </td>
  505. <td class="item-note">刷单最低数量</td>
  506. </tr>
  507. <tr class="controls">
  508. <td class="item-label"></td>
  509. <td>
  510. <div class="form-item cf">
  511. <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">提交
  512. </button>
  513. <a class="btn btn-return" href="<?php echo ($_SERVER['HTTP_REFERER']); ?>">返 回</a>
  514. <?php if(!empty($data["id"])): ?><input type="hidden" name="id" value="<?php echo ($data["id"]); ?>"/><?php endif; ?>
  515. </div>
  516. </td>
  517. </tr>
  518. </table>
  519. </div>
  520. </div>
  521. </form>
  522. <script type="text/javascript">
  523. //提交表单
  524. $('#submit').click(function () {
  525. $('#form').submit();
  526. });
  527. </script>
  528. </div>
  529. </div>
  530. </div>
  531. </div>
  532. <script type="text/javascript" src="/Public/Admin/js/common.js"></script>
  533. <script type="text/javascript">
  534. +function(){
  535. //$("select").select2({dropdownCssClass: 'dropdown-inverse'});//下拉条样式
  536. layer.config({
  537. extend: 'extend/layer.ext.js'
  538. });
  539. var $window = $(window), $subnav = $("#subnav"), url;
  540. $window.resize(function(){
  541. //$("#main").css("min-height", $window.height() - 90);
  542. }).resize();
  543. /* 左边菜单高亮 */
  544. url = window.location.pathname + window.location.search;
  545. url = url.replace(/(\/(p)\/\d+)|(&p=\d+)|(\/(id)\/\d+)|(&id=\d+)|(\/(group)\/\d+)|(&group=\d+)/, "");
  546. $subnav.find("a[href='" + url + "']").parent().addClass("current");
  547. /* 左边菜单显示收起 */
  548. $("#subnav").on("click", "h3", function(){
  549. var $this = $(this);
  550. $this.find(".icon").toggleClass("icon-fold");
  551. $this.next().slideToggle("fast").siblings(".side-sub-menu:visible").
  552. prev("h3").find("i").addClass("icon-fold").end().end().hide();
  553. });
  554. $("#subnav h3 a").click(function(e){e.stopPropagation()});
  555. /* 头部管理员菜单 */
  556. $(".user-bar").mouseenter(function(){
  557. var userMenu = $(this).children(".user-menu ");
  558. userMenu.removeClass("hidden");
  559. clearTimeout(userMenu.data("timeout"));
  560. }).mouseleave(function(){
  561. var userMenu = $(this).children(".user-menu");
  562. userMenu.data("timeout") && clearTimeout(userMenu.data("timeout"));
  563. userMenu.data("timeout", setTimeout(function(){userMenu.addClass("hidden")}, 100));
  564. });
  565. /* 表单获取焦点变色 */
  566. $("form").on("focus", "input", function(){
  567. $(this).addClass('focus');
  568. }).on("blur","input",function(){
  569. $(this).removeClass('focus');
  570. });
  571. $("form").on("focus", "textarea", function(){
  572. $(this).closest('label').addClass('focus');
  573. }).on("blur","textarea",function(){
  574. $(this).closest('label').removeClass('focus');
  575. });
  576. // 导航栏超出窗口高度后的模拟滚动条
  577. var sHeight = $(".sidebar").height();
  578. var subHeight = $(".subnav").height();
  579. var diff = subHeight - sHeight; //250
  580. var sub = $(".subnav");
  581. }();
  582. //导航高亮
  583. function highlight_subnav(url){
  584. $('.side-sub-menu').find('a[href="'+url+'"]').closest('li').addClass('current');
  585. }
  586. function lockscreen(){
  587. layer.prompt({
  588. title: '输入一个锁屏密码',
  589. formType: 1,
  590. btn: ['锁屏','取消'] //按钮
  591. }, function(pass){
  592. if(!pass){
  593. layer.msg('需要输入一个密码!');
  594. }else{
  595. $.post("<?php echo U('Login/lockScreen');?>",{pass:pass},function(data){
  596. layer.msg(data.info);
  597. layer.close();
  598. if(data.status){
  599. window.location.href = "<?php echo U('Login/lockScreen');?>";
  600. }
  601. },'json');
  602. }
  603. });
  604. }
  605. </script>
  606. <div style="display:none;">
  607. </div>
  608. </body>
  609. </html>
  610. <script type="text/javascript" charset="utf-8">
  611. //导航高亮
  612. highlight_subnav("<?php echo U('Trade/market');?>");
  613. </script>