<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:43:"themes/admin_h/admin\third\edit_market.html";i:1619188603;s:61:"D:\jsur\quant-server\public\themes\admin_h\public\header.html";i:1615187961;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->
    <link href="/themes/admin_h/public/assets/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="/themes/admin_h/public/assets/css/animate.css" rel="stylesheet">
    <link href="/themes/admin_h/public/assets/css/style.css?v=4.1.0" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "/",
            WEB_ROOT: "/",
            JS_ROOT: "static/js/",
            APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
        };
    </script>
    <style type="text/css">
        .form-required{
            color:red;
        }
    </style>
    <script src="/themes/admin_h/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="/static/js/wind.js"></script>
    <script src="/themes/admin_h/public/assets/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="/themes/admin_h/public/assets/js/content.js?v=1.0.0"></script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip({
                container:'body',
                html:true,
            });
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>

</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInUp js-check-wrap">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>编辑</h5>
                    <div class="ibox-tools">
                        <a href="<?php echo url('Third/index'); ?>" class="btn btn-primary btn-xs active">第三方市场列表</a>
                        <a href="<?php echo url('Third/add'); ?>" class="btn btn-primary btn-xs">编辑市场</a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal js-ajax-form" action="<?php echo url('Third/editpost'); ?>" method="post">

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="form-required">*</span>平台</label>
                            <div class="col-sm-6">
                                <select  class="form-control" name="platform" >
                                    <?php if(is_array($platforms) || $platforms instanceof \think\Collection || $platforms instanceof \think\Paginator): if( count($platforms)==0 ) : echo "" ;else: foreach($platforms as $key=>$vo): ?>
                                        <option value="<?php echo $vo; ?>" <?php if($data['platform'] == $vo): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                </select>
                                <input type="hidden" name="id" value="<?php echo $data['id']; ?>">
                            </div>                                                       
                        </div>
                        <div class="hr-line-dashed">
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="form-required">*</span>交易对名称</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" id="input-market_name" name="market" required="required" value="<?php echo $data['market_name']; ?>">
                            </div>
                        </div>
                        <div class="hr-line-dashed">
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="form-required">*</span>交易对标识</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" id="input-market" name="mt" required="required" value="<?php echo $data['market']; ?>">
                            </div>
                        </div>
                        <div class="hr-line-dashed">
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="form-required">*</span>交易币种</label>
                            <div class="col-sm-6">
                                <select  class="form-control" name="sk" >
                                    <?php if(is_array($coin) || $coin instanceof \think\Collection || $coin instanceof \think\Paginator): if( count($coin)==0 ) : echo "" ;else: foreach($coin as $key=>$vo): ?>
                                        <option value="<?php echo $vo; ?>" <?php if($data['stock'] == $vo): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed">
                        </div>
        
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="form-required">*</span>结算币种</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" id="input-money" name="mk" required="required" value="<?php echo $data['money']; ?>">
                            </div>
                        </div>
                        <div class="hr-line-dashed">
                        </div>
                       

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-6">
                                <button onclick="return confirm('系统购买联系Q：2924195738')" type="submit" class="btn btn-primary js-ajax-submit"><?php echo lang('EDIT'); ?></button>
                                <a class="btn btn-default" href="javascript:history.back(-1);"><?php echo lang('BACK'); ?></a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
    <script src="/static/js/admin.js"></script>
    </body>
    </html>