| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 |
- <?php
- /* @var $this \yii\web\View */
- /* @var $content string */
- use yii\helpers\Html;
- use yii\helpers\Url;
- use yii\web\YiiAsset;
- YiiAsset::register($this);
- ?>
- <?php $this->beginPage() ?>
- <!DOCTYPE html>
- <html lang="<?= Yii::$app->language ?>">
- <head>
- <meta charset="<?= Yii::$app->charset ?>">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <?= Html::csrfMetaTags() ?>
- <title><?= Html::encode($this->title) ?></title>
- <?php $this->head() ?>
- <link href="<?= STATIC_URL ?>/ui/css/bootstrap.min.css" rel="stylesheet">
- <link href="<?= STATIC_URL ?>/ui/font-awesome/css/font-awesome.css" rel="stylesheet">
- <link href="<?= STATIC_URL ?>/ui/css/animate.css" rel="stylesheet">
- <link href="<?= STATIC_URL ?>/ui/css/style.css" rel="stylesheet">
- <link href="<?= STATIC_URL ?>/ui/css/plugins/iCheck/custom.css" rel="stylesheet">
- <link href="<?= STATIC_URL ?>/ui/css/plugins/toastr/toastr.min.css" rel="stylesheet">
- <link href="<?= STATIC_URL ?>/ui/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
- <link href="<?= STATIC_URL ?>/ui/css/plugins/select2/select2.min.css" rel="stylesheet">
- <style>
- #datatables tr.selected {
- background: #1ab394;
- color: #FFF;
- }
- .ibox-title {
- border-width: 1px 0 0;
- }
- @media (min-width: 1366px) {
- .container {
- width: 1170px;
- }
- }
- @media (min-width: 1440px) {
- .container {
- width: 1200px;
- }
- }
- @media (min-width: 1600px) {
- .container {
- width: 1300px;
- }
- }
- @media (min-width: 1920px) {
- .container {
- width: 1300px;
- }
- }
- .breadcrumb {
- background: none;
- padding-bottom: 10px;
- }
- </style>
- <!--[if lt IE 9]>
- <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
- <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
- <![endif]-->
- <?= isset($this->blocks['header_script']) ? trim($this->blocks['header_script']) : '' ?>
- </head>
- <body class="top-navigation">
- <?php $this->beginBody() ?>
- <div id="wrapper">
- <div id="page-wrapper" class="gray-bg">
- <div class="row border-bottom white-bg">
- <nav class="navbar navbar-static-top" role="navigation">
- <div class="container">
- <div class="navbar-header">
- <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
- <i class="fa fa-reorder"></i>
- </button>
- <a href="<?= Url::to(['/ib/dashboard']) ?>" class="navbar-brand"><b>X</b>Broker</a>
- </div>
- <div class="navbar-collapse collapse" id="navbar">
- <ul class="nav navbar-nav">
- <li id="navdashboard">
- <a href="<?= Url::to(['/ib/dashboard']) ?>">首页</a>
- </li>
- <li id="navnotice">
- <a href="<?= Url::to(['/ib/notice']) ?>">公告
- <span class="label label-danger" id="findNotReadCount"></span>
- </a>
- </li>
- <li id="navdw">
- <a href="<?= Url::to(['/ib/bankwithdraw']) ?>">出金</a>
- </li>
- <!--<li id="navtransfer">
- <a href="<?= Url::to(['/ib/transfer']) ?>">同名转账</a>
- </li>-->
- <li id="navr">
- <a href="<?= Url::to(['/ib/r']) ?>">推广</a>
- </li>
- <li id="navhelp">
- <a href="<?= Url::to(['/ib/help']) ?>">常见问题</a>
- </li>
- <!--<li id="navhelp">
- <a href="javascript:">在线客服</a>
- </li>-->
- </ul>
- <ul class="nav navbar-nav navbar-right">
- <li id="navsetting" class="dropdown">
- <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown">
- <?= Yii::$app->getUser()->getIdentity(false)->username ?> <span class="caret"></span>
- </a>
- <ul role="menu" class="dropdown-menu">
- <li><a href="<?= Url::to(['/ib/info']) ?>">基本资料</a></li>
- <li><a href="<?= Url::to(['/ib/password']) ?>">修改密码</a></li>
- <li><a href="<?= Url::to(['/account/logout']) ?>">退出</a></li>
- </ul>
- </li>
- </ul>
- </div>
- </div>
- </nav>
- </div>
- <div class="wrapper wrapper-content">
- <div class="container">
- <?= $content ?>
- </div>
- </div>
- <br>
- <div class="footer">
- <div class="container">
- <div class="pull-right">V2.0</div>
- <div><strong>Copyright</strong> © <?= date('Y') ?></div>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title" id="myModalLabel"><a href="javascript:;" class="modal-title-a" target="_blank"></a></h4>
- </div>
- <div class="modal-body"></div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
- </div>
- </div>
- </div>
- </div>
- <?php $this->endBody() ?>
- <!-- Mainly scripts -->
- <script src="<?= STATIC_URL ?>/ui/js/bootstrap.min.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/metisMenu/jquery.metisMenu.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/inspinia.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/pace/pace.min.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/toastr/toastr.min.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/datapicker/bootstrap-datepicker.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/validate/jquery.validate.min.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/validate/additional-methods.min.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/validate/messages.cn.js"></script>
- <!-- iCheck -->
- <script src="<?= STATIC_URL ?>/ui/js/plugins/iCheck/icheck.min.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/select2/select2.full.min.js"></script>
- <script>
- $(document).ready(function () {
- $('.i-checks').iCheck({
- checkboxClass: 'icheckbox_square-green',
- radioClass: 'iradio_square-green'
- });
- $('.data').datepicker({
- startView: 1,
- todayBtn: "linked",
- keyboardNavigation: true,
- forceParse: false,
- autoclose: true,
- format: "yyyy-mm-dd"
- });
- $(".select2").select2();
- $("#kefu").click(function () {
- window.open('http://crm2.qq.com/page/portalpage/wpa.php?uin=800800642&aty=1&a=0&curl=&ty=1', '_blank', 'width=760,height=430,top=0px,left=0px');
- });
- findNotReadCount();
- showLastUnreadNotice();
- });
-
- function findNotReadCount() {
- $.ajax({
- type: "GET",
- url: "<?= Url::to(['notice/find-not-read-count']) ?>",
- data: $('#form').serialize(),
- dataType: "text",
- beforeSend: function () {
- },
- success: function (data) {
- if (data != "0") {
- $("#findNotReadCount").html(data + "未读");
- }
- },
- complete: function (XMLHttpRequest, textStatus) {
- },
- error: function () {
- }
- });
- }
- function showLastUnreadNotice() {
- if (location.pathname === '/ib/notice' || location.pathname.indexOf('/ib/notice/') === 0) {
- return;
- }
- $.get('<?= Url::to(['notice/last-unread-notice']) ?>', {}, function (response) {
- if (response.code == 1 && response.data.notice) {
- $('#myModal .modal-title-a').html(response.data.notice.title);
- $('#myModal .modal-title-a').attr('href', '/ib/notice/nview?id=' + response.data.notice.id);
- $('#myModal .modal-body').html(response.data.notice.content);
- $('#myModal').modal();
- $('#myModal .modal-title-a').on('click', function () {
- $('#myModal').modal('hide');
- });
- }
- }, 'json');
- }
- </script>
- <script>
- var url = location.href;
- if (url.indexOf("/dashboard") != -1) {
- $("#navdashboard").addClass("active");
- } else if (url.indexOf("/dw") != -1) {
- $("#navdw").addClass("active");
- } else if (url.indexOf("/lever") != -1) {
- $("#navlever").addClass("active");
- } else if (url.indexOf("/transfer") != -1) {
- $("#navtransfer").addClass("active");
- } else if (url.indexOf("/bankdeposit") != -1) {
- $("#navbankdeposit").addClass("active");
- } else if (url.indexOf("/notice") != -1) {
- $("#navnotice").addClass("active");
- } else if (url.indexOf("/nview") != -1) {
- $("#navnotice").addClass("active");
- } else if (url.indexOf("/r") != -1) {
- $("#navr").addClass("active");
- } else if (url.indexOf("/help") != -1) {
- $("#navhelp").addClass("active");
- }
- </script>
- <script>
- // 对Date的扩展,将 Date 转化为指定格式的String
- // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
- // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
- // 例子:
- // (new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
- // (new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
- Date.prototype.Format = function (fmt) { //author: meizz
- var o = {
- "M+": this.getMonth() + 1, //月份
- "d+": this.getDate(), //日
- "h+": this.getHours(), //小时
- "m+": this.getMinutes(), //分
- "s+": this.getSeconds(), //秒
- "q+": Math.floor((this.getMonth() + 3) / 3), //季度
- "S": this.getMilliseconds() //毫秒
- };
- if (/(y+)/.test(fmt))
- fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
- for (var k in o)
- if (new RegExp("(" + k + ")").test(fmt))
- fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
- return fmt;
- };
- function timeStamp2String(time) {
- time += new Date().getTimezoneOffset() * 60 * 1000;
- var datetime = new Date();
- datetime.setTime(parseInt(time));
- var year = datetime.getFullYear();
- var month = datetime.getMonth() + 1 < 10 ? "0" + (datetime.getMonth() + 1) : datetime.getMonth() + 1;
- var date = datetime.getDate() < 10 ? "0" + datetime.getDate() : datetime.getDate();
- var hour = datetime.getHours() < 10 ? "0" + datetime.getHours() : datetime.getHours();
- var minute = datetime.getMinutes() < 10 ? "0" + datetime.getMinutes() : datetime.getMinutes();
- var second = datetime.getSeconds() < 10 ? "0" + datetime.getSeconds() : datetime.getSeconds();
- return year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second;
- }
- function timeStamp2StringForEcharts(time) {
- time += new Date().getTimezoneOffset() * 60 * 1000;
- var datetime = new Date();
- datetime.setTime(parseInt(time));
- var year = datetime.getFullYear();
- var month = datetime.getMonth() + 1 < 10 ? "0" + (datetime.getMonth() + 1) : datetime.getMonth() + 1;
- var date = datetime.getDate() < 10 ? "0" + datetime.getDate() : datetime.getDate();
- var hour = datetime.getHours() < 10 ? "0" + datetime.getHours() : datetime.getHours();
- var minute = datetime.getMinutes() < 10 ? "0" + datetime.getMinutes() : datetime.getMinutes();
- var second = datetime.getSeconds() < 10 ? "0" + datetime.getSeconds() : datetime.getSeconds();
- //return year + "/" + month + "/" + date + " " + hour + ":" + minute + ":" + second;
- return month + "/" + date + " " + hour + ":" + minute;
- }
- function timeStamp2StringMin(time) {
- time += new Date().getTimezoneOffset() * 60 * 1000;
- var datetime = new Date();
- datetime.setTime(parseInt(time));
- var year = datetime.getFullYear();
- var month = datetime.getMonth() + 1 < 10 ? "0" + (datetime.getMonth() + 1) : datetime.getMonth() + 1;
- var date = datetime.getDate() < 10 ? "0" + datetime.getDate() : datetime.getDate();
- var hour = datetime.getHours() < 10 ? "0" + datetime.getHours() : datetime.getHours();
- var minute = datetime.getMinutes() < 10 ? "0" + datetime.getMinutes() : datetime.getMinutes();
- var second = datetime.getSeconds() < 10 ? "0" + datetime.getSeconds() : datetime.getSeconds();
- //return hour + ":" + minute + ":" + second;
- return hour + ":" + minute;
- }
- </script>
- <?= isset($this->blocks['left_menu_script']) ? trim($this->blocks['left_menu_script']) : '' ?>
- <?= isset($this->blocks['footer_script']) ? trim($this->blocks['footer_script']) : '' ?>
- </body>
- </html>
- <?php $this->endPage() ?>
|