index.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <?php
  2. $puid = $_GET['puid'];
  3. include_once("../untils/conn.php");
  4. $sql = "SELECT * FROM shopsy WHERE puid = '$puid'";
  5. $result = mysqli_query($con, $sql);
  6. if ($result->num_rows > 0) {
  7. // 输出数据
  8. while($row = $result->fetch_assoc()) {
  9. // 获取每个字段的值
  10. $banner = $row["banner"];
  11. $link = $row["link"];
  12. $banner_one = $row["banner_one"];
  13. $link_one = $row["link_one"];
  14. $banner_two = $row["banner_two"];
  15. $link_two = $row["link_two"];
  16. $shop_name = $row["shop_name"];
  17. }
  18. } else {
  19. // echo "未找到匹配的记录";
  20. }
  21. ?>
  22. <!DOCTYPE html>
  23. <html lang="en">
  24. <head>
  25. <title><?php echo $shop_name ?></title>
  26. <!-- meta信息,可维护 -->
  27. <meta name="apple-mobile-web-app-capable" content="yes" />
  28. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  29. <meta content="telephone=no" name="format-detection" />
  30. <!-- ====必须设置 Start==== -->
  31. <!-- 页面编码 -->
  32. <meta charset="UTF-8" />
  33. <!--
  34. http-equiv常见还有其它如下等(合理使用可增加 SEO 收录)。
  35. Content-Language : 设置网页语言
  36. Refresh : 指定时间刷新页面
  37. set-cookie : 设定页面 cookie 过期时间
  38. last-modified : 页面最后生成时间
  39. expires : 设置 cache 过期时间
  40. cache-control : 设置文档的缓存机制
  41. ...
  42. -->
  43. <!-- 缓存与过期时间设置 -->
  44. <meta http-equiv="Pragma" content="no-cache">
  45. <meta http-equiv="Cache-Control" content="no-cache">
  46. <meta http-equiv="x-dns-prefetch-control" content="on">
  47. <meta http-equiv="Expires" content="0">
  48. <!-- dns预加载(SEO优化) -->
  49. <link rel="dns-prefetch" href="//css.cdn.com" />
  50. <link rel="dns-prefetch" href="//js.cdn.com" />
  51. <!-- 宽度默认100%全屏宽度,禁止手指缩放,初始缩放值1.0 -->
  52. <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  53. <!-- ====必须设置 End==== -->
  54. <!-- ====根据使用配置Start==== -->
  55. <meta content="yes" name="apple-mobile-web-app-capable">
  56. <meta content="black" name="apple-mobile-web-app-status-bar-style">
  57. <!-- 不自动识别手机号,邮箱地址 -->
  58. <meta name="format-detection" content="telephone=no,email=no">
  59. <!-- 页面关键字优化 -->
  60. <meta name="keywords" content="H5页面通用配置">
  61. <!-- 页面标签icon配置 -->
  62. <link rel="icon" href="../favicon.ico" type="image/x-icon">
  63. <!-- 一些国内webkit内核浏览器默认使用极速模式 -->
  64. <meta name="renderer" content="webkit">
  65. <!-- 避免IE使用兼容模式 -->
  66. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  67. <!-- 针对手持设备优化,主要是针对一些老的不识别viewport的浏览器,比如黑莓 -->
  68. <meta name="HandheldFriendly" content="true">
  69. <!-- 微软的老式浏览器 -->
  70. <meta name="MobileOptimized" content="320">
  71. <!-- uc强制竖屏 -->
  72. <meta name="screen-orientation" content="portrait">
  73. <!-- QQ强制竖屏 -->
  74. <meta name="x5-orientation" content="portrait">
  75. <!-- UC强制全屏 -->
  76. <meta name="full-screen" content="yes">
  77. <!-- QQ强制全屏 -->
  78. <meta name="x5-fullscreen" content="true">
  79. <!-- UC应用模式 -->
  80. <meta name="browsermode" content="application">
  81. <!-- QQ应用模式 -->
  82. <meta name="x5-page-mode" content="app">
  83. <!-- windows phone 点击无高光 -->
  84. <meta name="msapplication-tap-highlight" content="no">
  85. <!-- apple-touch-icon:在webapp下,指定放置主屏幕上 icon 文件路径 -->
  86. <link rel="apple-touch-icon" href="touch-icon-iphone.png">
  87. <link rel="apple-touch-icon" sizes="76x76" href="touch-icon-ipad.png">
  88. <link rel="apple-touch-icon" sizes="120x120" href="touch-icon-iphone-retina.png">
  89. <link rel="apple-touch-icon" sizes="152x152" href="touch-icon-ipad-retina.png">
  90. <!-- apple-touch-startup-image:在 webapp 下,设置启动时候的界面 -->
  91. <link rel="apple-touch-startup-image" href="/startup.png" />
  92. <!-- ====根据使用配置End==== -->
  93. <!-- ====几乎用不到 Start ==== -->
  94. <!--禁用IE8兼容模式(IE8兼容模式使用的是IE7的渲染方式)-->
  95. <meta http-equiv="X-UA-Compatible" content="IE=8" />
  96. <!--//设置内核为IE8,这里改变时,下面会自动改变-->
  97. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
  98. <!--//设置渲染文档模式为IE8-->
  99. <!--使用IE8兼容模式-->
  100. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  101. <!--//设置内核为IE7,这里改变时,下面会自动改变-->
  102. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
  103. <!--//设置渲染文档模式为IE7-->
  104. <!-- 从左向右依次查询使用内核,左侧优先级高 -->
  105. <meta http-equiv="X-UA-Compatible" content="IE=11;IE=10;IE=9; IE=8;" />
  106. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11;IE=EmulateIE10;IE=EmulateIE9;IE=EmulateIE8" />
  107. <!--chrome -->
  108. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  109. <style type="text/css">
  110. /*初始化设置*/
  111. * {
  112. padding: 0;
  113. margin: 0;
  114. box-sizing: border-box;
  115. list-style: none;
  116. text-decoration: none;
  117. /*告诉浏览器最终展示的布局容器设置的边框和内边距的值是包含在width内的-即width和height等于真实大小*/
  118. }
  119. html,
  120. body {
  121. width: 100%;
  122. height: 100%;
  123. }
  124. .footer {
  125. /*随着滑动固定底部*/
  126. position: fixed;
  127. bottom: 0;
  128. left: 0;
  129. width: 100%;
  130. /*设置底部菜单固定高度*/
  131. height: 60px;
  132. background-color: white;
  133. /*border-top: 1px solid #C2C2C2;*/
  134. }
  135. .content {
  136. background-color: white;
  137. padding: 0;
  138. margin: 0;
  139. }
  140. .sidebar {
  141. /*height: 60px;*/
  142. /*line-height: 60px;*/
  143. border-top: 2px solid #C2C2C2;
  144. }
  145. .footer ul {
  146. /*只给父容器添加了display: flex;属性,就可以让容器内部打破原有文档流模式,展现为弹性布局*/
  147. display: -webkit-flex;
  148. display: flex;
  149. text-align: center;
  150. width: 100%;
  151. }
  152. .footer ul li {
  153. width: 100%;
  154. /*浏览器的百分之百*/
  155. }
  156. /*a标签也设置填充宽高*/
  157. .footer ul li a {
  158. display: block;
  159. width: 100%;
  160. height: 100%;
  161. padding-top: 5px;
  162. }
  163. .footer ul li i,
  164. span {
  165. display: block;
  166. line-height: 30px;
  167. height: 30px;
  168. }
  169. </style>
  170. </head>
  171. <body>
  172. <div class="content">
  173. <?php
  174. include_once("../untils/conn.php");
  175. mysqli_query($con, "set names utf8");
  176. if ($con) {
  177. //选择数据库
  178. if ($db) {
  179. //获取数据总行数
  180. $sql = "select * from `sort` order by `sortid` desc limit 1";
  181. $data = mysqli_query($con, $sql);
  182. $rows = mysqli_fetch_row($data);
  183. $index = $rows[1]
  184. ?>
  185. <iframe id="mainFrame" src="ka.php?yys=<?php echo $index ?>&puid=<?php echo $puid ?>" style="border-width: 0px;width: 100vw;height: 92vh;overflow:visible;">
  186. </iframe>
  187. <?php
  188. }
  189. }
  190. ?>
  191. </div>
  192. <div class="sidebar"></div>
  193. <div class="footer">
  194. <ul>
  195. <li>
  196. <a onclick="index()">
  197. <p>
  198. <img style="width: 24px;" src="../img/sy.png">
  199. </p>
  200. <span style="color: black;font-size:10px;">首页</span>
  201. </a>
  202. </li>
  203. <li><a onclick="zxkf()">
  204. <p>
  205. <img style="width: 24px;" src="../img/lx.png">
  206. </p>
  207. <span style="color: black;font-size:10px;">在线客服</span>
  208. </a>
  209. </li>
  210. </ul>
  211. </div>
  212. </body>
  213. <script src="https://cdn.bootcss.com/sweetalert/2.1.0/sweetalert.min.js">
  214. </script>
  215. <!-- Pixel Code for https://stat.junes.cn/ -->
  216. <script defer src="https://stat.junes.cn/pixel/qhLlozQc0DWJ4LNy"></script>
  217. <!-- END Pixel Code -->
  218. <script>
  219. function index() {
  220. parent.location.reload();
  221. }
  222. function zxkf() {
  223. document.getElementById("mainFrame").src = "kf.php?puid=<?php echo $puid ?>";
  224. }
  225. </script>
  226. </html>