pop.php 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <?php
  2. /* @var $this \yii\web\View */
  3. /* @var $content string */
  4. use yii\helpers\Html;
  5. use yii\helpers\Url;
  6. use yii\web\YiiAsset;
  7. YiiAsset::register($this);
  8. ?>
  9. <?php $this->beginPage() ?>
  10. <!DOCTYPE html>
  11. <html lang="<?= Yii::$app->language ?>">
  12. <head>
  13. <meta charset="<?= Yii::$app->charset ?>">
  14. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  15. <meta name="viewport" content="width=device-width, initial-scale=1">
  16. <?= Html::csrfMetaTags() ?>
  17. <title><?= Html::encode($this->title) ?></title>
  18. <?php $this->head() ?>
  19. <link href="<?= STATIC_URL ?>/ui/css/bootstrap.min.css" rel="stylesheet">
  20. <link href="<?= STATIC_URL ?>/ui/font-awesome/css/font-awesome.css" rel="stylesheet">
  21. <link href="<?= STATIC_URL ?>/ui/css/animate.css" rel="stylesheet">
  22. <link href="<?= STATIC_URL ?>/ui/css/style.css" rel="stylesheet">
  23. <link href="<?= STATIC_URL ?>/ui/css/plugins/iCheck/custom.css" rel="stylesheet">
  24. <link href="<?= STATIC_URL ?>/ui/css/plugins/toastr/toastr.min.css" rel="stylesheet">
  25. <link href="<?= STATIC_URL ?>/ui/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
  26. <link href="<?= STATIC_URL ?>/ui/css/plugins/select2/select2.min.css" rel="stylesheet">
  27. <style>
  28. #datatables tr.selected {
  29. background: #1ab394;
  30. color: #FFF;
  31. }
  32. .ibox-title {
  33. border-width: 1px 0 0;
  34. }
  35. @media (min-width: 1366px) {
  36. .container {
  37. width: 1170px;
  38. }
  39. }
  40. @media (min-width: 1440px) {
  41. .container {
  42. width: 1170px;
  43. }
  44. }
  45. @media (min-width: 1600px) {
  46. .container {
  47. width: 1170px;
  48. }
  49. }
  50. @media (min-width: 1920px) {
  51. .container {
  52. width: 1170px;
  53. }
  54. }
  55. </style>
  56. <!--[if lt IE 9]>
  57. <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  58. <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  59. <![endif]-->
  60. <?= isset($this->blocks['header_script']) ? trim($this->blocks['header_script']) : '' ?>
  61. </head>
  62. <body class="top-navigation">
  63. <?php $this->beginBody() ?>
  64. <div id="wrapper">
  65. <div id="page-wrapper" class="gray-bg">
  66. <div class="wrapper wrapper-content">
  67. <div class="container">
  68. <?= $content ?>
  69. </div>
  70. </div>
  71. <br>
  72. <div class="footer">
  73. <div class="container">
  74. <div class="pull-right">V2.0</div>
  75. <div><strong>Copyright</strong> &copy; <?= date('Y') ?></div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <?php $this->endBody() ?>
  81. <!-- Mainly scripts -->
  82. <script src="<?= STATIC_URL ?>/ui/js/bootstrap.min.js"></script>
  83. <script src="<?= STATIC_URL ?>/ui/js/plugins/metisMenu/jquery.metisMenu.js"></script>
  84. <script src="<?= STATIC_URL ?>/ui/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
  85. <script src="<?= STATIC_URL ?>/ui/js/inspinia.js"></script>
  86. <script src="<?= STATIC_URL ?>/ui/js/plugins/pace/pace.min.js"></script>
  87. <script src="<?= STATIC_URL ?>/ui/js/plugins/toastr/toastr.min.js"></script>
  88. <script src="<?= STATIC_URL ?>/ui/js/plugins/datapicker/bootstrap-datepicker.js"></script>
  89. <script src="<?= STATIC_URL ?>/ui/js/plugins/validate/jquery.validate.min.js"></script>
  90. <script src="<?= STATIC_URL ?>/ui/js/plugins/validate/additional-methods.min.js"></script>
  91. <script src="<?= STATIC_URL ?>/ui/js/plugins/validate/messages.cn.js"></script>
  92. <!-- iCheck -->
  93. <script src="<?= STATIC_URL ?>/ui/js/plugins/iCheck/icheck.min.js"></script>
  94. <script src="<?= STATIC_URL ?>/ui/js/plugins/select2/select2.full.min.js"></script>
  95. <script>
  96. $(document).ready(function () {
  97. $('.i-checks').iCheck({
  98. checkboxClass: 'icheckbox_square-green',
  99. radioClass: 'iradio_square-green'
  100. });
  101. $('.data').datepicker({
  102. startView: 1,
  103. todayBtn: "linked",
  104. keyboardNavigation: true,
  105. forceParse: false,
  106. autoclose: true,
  107. format: "yyyy-mm-dd"
  108. });
  109. $(".select2").select2();
  110. $("#kefu").click(function () {
  111. 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');
  112. });
  113. findNotReadCount();
  114. });
  115. function findNotReadCount() {
  116. $.ajax({
  117. type: "GET",
  118. url: "<?= Url::to(['/user/notice/find-not-read-count']) ?>",
  119. data: $('#form').serialize(),
  120. dataType: "text",
  121. beforeSend: function () {
  122. },
  123. success: function (data) {
  124. if (data != "0") {
  125. $("#findNotReadCount").html(data + "未读");
  126. }
  127. },
  128. complete: function (XMLHttpRequest, textStatus) {
  129. },
  130. error: function () {
  131. }
  132. });
  133. }
  134. </script>
  135. <script>
  136. var url = location.href;
  137. if (url.indexOf("/dashboard") != -1) {
  138. $("#navdashboard").addClass("active");
  139. } else if (url.indexOf("/dw") != -1) {
  140. $("#navdw").addClass("active");
  141. } else if (url.indexOf("/lever") != -1) {
  142. $("#navlever").addClass("active");
  143. } else if (url.indexOf("/transfer") != -1) {
  144. $("#navtransfer").addClass("active");
  145. } else if (url.indexOf("/bankdeposit") != -1) {
  146. $("#navbankdeposit").addClass("active");
  147. } else if (url.indexOf("/notice") != -1) {
  148. $("#navnotice").addClass("active");
  149. } else if (url.indexOf("/nview") != -1) {
  150. $("#navnotice").addClass("active");
  151. } else if (url.indexOf("/help") != -1) {
  152. $("#navhelp").addClass("active");
  153. }
  154. </script>
  155. <script>
  156. // 对Date的扩展,将 Date 转化为指定格式的String
  157. // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
  158. // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
  159. // 例子:
  160. // (new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
  161. // (new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
  162. Date.prototype.Format = function (fmt) { //author: meizz
  163. var o = {
  164. "M+": this.getMonth() + 1, //月份
  165. "d+": this.getDate(), //日
  166. "h+": this.getHours(), //小时
  167. "m+": this.getMinutes(), //分
  168. "s+": this.getSeconds(), //秒
  169. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  170. "S": this.getMilliseconds() //毫秒
  171. };
  172. if (/(y+)/.test(fmt))
  173. fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  174. for (var k in o)
  175. if (new RegExp("(" + k + ")").test(fmt))
  176. fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  177. return fmt;
  178. };
  179. function timeStamp2String(time) {
  180. time += new Date().getTimezoneOffset() * 60 * 1000;
  181. var datetime = new Date();
  182. datetime.setTime(parseInt(time));
  183. var year = datetime.getFullYear();
  184. var month = datetime.getMonth() + 1 < 10 ? "0" + (datetime.getMonth() + 1) : datetime.getMonth() + 1;
  185. var date = datetime.getDate() < 10 ? "0" + datetime.getDate() : datetime.getDate();
  186. var hour = datetime.getHours() < 10 ? "0" + datetime.getHours() : datetime.getHours();
  187. var minute = datetime.getMinutes() < 10 ? "0" + datetime.getMinutes() : datetime.getMinutes();
  188. var second = datetime.getSeconds() < 10 ? "0" + datetime.getSeconds() : datetime.getSeconds();
  189. return year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second;
  190. }
  191. function timeStamp2StringForEcharts(time) {
  192. time += new Date().getTimezoneOffset() * 60 * 1000;
  193. var datetime = new Date();
  194. datetime.setTime(parseInt(time));
  195. var year = datetime.getFullYear();
  196. var month = datetime.getMonth() + 1 < 10 ? "0" + (datetime.getMonth() + 1) : datetime.getMonth() + 1;
  197. var date = datetime.getDate() < 10 ? "0" + datetime.getDate() : datetime.getDate();
  198. var hour = datetime.getHours() < 10 ? "0" + datetime.getHours() : datetime.getHours();
  199. var minute = datetime.getMinutes() < 10 ? "0" + datetime.getMinutes() : datetime.getMinutes();
  200. var second = datetime.getSeconds() < 10 ? "0" + datetime.getSeconds() : datetime.getSeconds();
  201. //return year + "/" + month + "/" + date + " " + hour + ":" + minute + ":" + second;
  202. return month + "/" + date + " " + hour + ":" + minute;
  203. }
  204. function timeStamp2StringMin(time) {
  205. time += new Date().getTimezoneOffset() * 60 * 1000;
  206. var datetime = new Date();
  207. datetime.setTime(parseInt(time));
  208. var year = datetime.getFullYear();
  209. var month = datetime.getMonth() + 1 < 10 ? "0" + (datetime.getMonth() + 1) : datetime.getMonth() + 1;
  210. var date = datetime.getDate() < 10 ? "0" + datetime.getDate() : datetime.getDate();
  211. var hour = datetime.getHours() < 10 ? "0" + datetime.getHours() : datetime.getHours();
  212. var minute = datetime.getMinutes() < 10 ? "0" + datetime.getMinutes() : datetime.getMinutes();
  213. var second = datetime.getSeconds() < 10 ? "0" + datetime.getSeconds() : datetime.getSeconds();
  214. //return hour + ":" + minute + ":" + second;
  215. return hour + ":" + minute;
  216. }
  217. </script>
  218. <?= isset($this->blocks['left_menu_script']) ? trim($this->blocks['left_menu_script']) : '' ?>
  219. <?= isset($this->blocks['footer_script']) ? trim($this->blocks['footer_script']) : '' ?>
  220. </body>
  221. </html>
  222. <?php $this->endPage() ?>