main.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="robots" content="nofollow">
  6. <meta name="robots" content="noarchive">
  7. <title></title>
  8. <link rel="shortcut icon" href="http://7oxep6.com2.z0.glb.qiniucdn.com/favicon32.png" />
  9. <link id="easyuiTheme" rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/js/easyui/jquery-easyui-1.3.6/themes/default/easyui.css">
  10. <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/js/easyui/jquery-easyui-1.3.6/themes/icon.css?v=20160222">
  11. <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/common/style.css?v=201406221314">
  12. <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/easyui/jquery-easyui-1.3.6/jquery.min.js"></script>
  13. <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/easyui/jquery-easyui-1.3.6/jquery.easyui.min.js?v=201602031010"></script>
  14. <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/easyui/jquery-easyui-1.3.6/easyloader.js"></script>
  15. <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/easyui/jquery-easyui-1.3.6/locale/easyui-lang-zh_CN.js"></script>
  16. <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/easyui/extension/jquery-easyui-edatagrid/jquery.edatagrid.js?v=201402131314"></script>
  17. <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/easyui/extension/extend.js?v=201405191314"></script>
  18. <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/common.js?v=201602031011"></script>
  19. <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/promise.min.js?v=201401021314"></script>
  20. <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/tinycon.min.js?v=201401021314"></script>
  21. <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=B349f0b32ef6e78b2e678f45cb9fddaf"></script>
  22. <script type="text/javascript">
  23. function change_theme(themeName){
  24. set_theme(themeName);
  25. $.cookie('easyui_theme', themeName, {
  26. expires: 7,
  27. path: '/'
  28. });
  29. }
  30. function isNumber( s )
  31. {
  32. var regu = "^[0-9]+$";
  33. var re = new RegExp(regu);
  34. if (s.search(re) != - 1) {
  35. return true;
  36. }
  37. else {
  38. return false;
  39. }
  40. }
  41. function set_theme(themeName){
  42. var jq_easyuiTheme = $('#easyuiTheme');
  43. var url = jq_easyuiTheme.attr('href');
  44. var href = url.substring(0, url.indexOf('themes')) + 'themes/' + themeName + '/easyui.css';
  45. jq_easyuiTheme.attr('href', href);
  46. var jq_iframe = $('iframe');
  47. if (jq_iframe.length > 0) {
  48. for (var i = 0; i < jq_iframe.length; i++) {
  49. var ifr = jq_iframe[i];
  50. $(ifr).contents().find('#easyuiTheme').attr('href', href);
  51. }
  52. }
  53. }
  54. function show_news(news){
  55. Tinycon.setOptions({
  56. width: 7,
  57. height: 9,
  58. font: '8px arial',
  59. colour: '#ffffff',
  60. background: '#357FC6',
  61. fallback: true
  62. });
  63. Tinycon.setBubble(news);
  64. }
  65. //获得页面请求的url参数
  66. function get_para(){
  67. if(window.location.href.indexOf('&') != -1){
  68. return '&'+window.location.href.slice(window.location.href.indexOf('&') + 1);
  69. }else{
  70. return '';
  71. }
  72. }
  73. //关闭最左侧的边栏
  74. function hide_nav(){
  75. //console.log($(window.parent.document).find('body').find('.layout-panel-west'));
  76. //$(window.parent.document).find('body').layout('collapse','west');
  77. var parent = $(window.parent.document);
  78. if(!parent.find('.panel-tool-expand').length){
  79. parent.find('.layout-button-left').click();
  80. }
  81. }
  82. function unixtime(d){
  83. var time = new Date(d);
  84. return(time.getTime());
  85. }
  86. //对齐标签
  87. $(function(){
  88. if ($.cookie('easyui_theme')){
  89. set_theme($.cookie('easyui_theme'));
  90. }
  91. setTimeout(function(){
  92. $('.combo-f,.validatebox-text').prev('span').addClass('easyui-align-center');
  93. $('.validatebox-text').addClass('easyui-align-center');
  94. }, 200);
  95. var page_param = get_param_obj();
  96. if (!!page_param['r']){
  97. storage_prefix = page_param['r'] + '_';
  98. }
  99. });
  100. var site_root = '<?php echo('http://'.$_SERVER['HTTP_HOST']); ?>';
  101. var user_id = '<?php echo Yii::app()->user->getId(); ?>';
  102. </script>
  103. <style>
  104. /* datagrid toolbat */
  105. .datagrid-toolbar {padding: 3px;}
  106. /* linkbutton对齐 */
  107. a.l-btn {vertical-align: middle;}
  108. /* label对齐 */
  109. .easyui-align-center {vertical-align: middle;}
  110. /* accordion */
  111. .accordion-body {padding: 5px;}
  112. /* searchbox */
  113. .searchbox {vertical-align: middle;}
  114. .right {float: right;}
  115. ul {margin: 0;padding: 0;}
  116. ul li {list-style: none;}
  117. </style>
  118. </head>
  119. <body>
  120. <div id="map_container"></div>
  121. <?php echo $content; ?>
  122. <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/position_selector.js?v=201505243209"></script>
  123. </body>
  124. </html>