o2o.php 4.6 KB

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