mobanwap.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. AdminSes_audit();
  5. if($_GET[control]=="update"){
  6. $mb=str_replace(".","",sqlzhuru($_GET[mb]));
  7. $mb=str_replace("/","",$mb);
  8. if(!preg_match("/^[_a-zA-Z0-9]*$/",$mb)){php_toheader("mobanwap.php");}
  9. updatetable("yjcode_control","wapmb='".$mb."'");
  10. php_toheader("tohtml.php?admin=0&action=gx");
  11. }
  12. ?>
  13. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  14. <html xmlns="http://www.w3.org/1999/xhtml">
  15. <head>
  16. <meta http-equiv="x-ua-compatible" content="ie=7" />
  17. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  18. <title><?=webname?>管理系统</title>
  19. <link href="css/basic.css" rel="stylesheet" type="text/css" />
  20. <style type="text/css">
  21. .right .mblist{float:left;width:100%;margin:10px 0 0 0;}
  22. .right .mblist .d1{float:left;width:120px;padding:10px;height:160px;margin:10px 5px 0 0;text-align:center;line-height:18px;}
  23. .right .mblist .d1 .s1{float:left;position:absolute;background-color:#ff0000;color:#fff;padding:5px 0 0 0;text-align:center;width:120px;height:17px;line-height:normal;}
  24. .right .mblist .d1 img{margin:0 0 5px 0;}
  25. .right .mblist .d11{background-color:#e1e1e1;}
  26. </style>
  27. <script type="text/javascript" src="js/jquery.min.js"></script>
  28. <script language="javascript" src="js/basic.js"></script>
  29. <script language="javascript" src="js/layer.js"></script>
  30. <script language="javascript">
  31. function mbcha(x){
  32. if(confirm("是否启用"+x+"模板")){location.href="mobanwap.php?control=update&mb="+x;}else{return false;}
  33. }
  34. </script>
  35. </head>
  36. <body>
  37. <? include("top.php");?>
  38. <script language="javascript">
  39. document.getElementById("menu1").className="a1";
  40. </script>
  41. <div class="yjcode">
  42. <? $leftid=1;include("menu_quan.php");?>
  43. <div class="right">
  44. <? include("rightcap5.php");?>
  45. <script language="javascript">document.getElementById("rtit2").className="a1";</script>
  46. <!--Begin-->
  47. <div class="rights">
  48. 温馨提示:<br>
  49. 1、您的网站目前共配置了<strong class="red" id="mbnum">...</strong>套手机端模板,更多模板请访问<a href="http://yj.928vip.cn" target="_blank" class="blue">友价官网</a>获取<br>
  50. 2、点击模板图片可以查看全图,但为了节省您的带宽,效果图采用高压缩模式,但启用后您的网站是高清效果<br>
  51. </div>
  52. <div class="mblist">
  53. <? $i=0;foreach(getDir("../m/tem/moban/") as $color){if(is_file("../m/tem/moban/".$color."/homeimg/moban_small.jpg")){?>
  54. <div class="d1" onmouseover="this.className='d1 d11';" onmouseout="this.className='d1';"><? if($rowcontrol[wapmb]==$color){?><span class="s1">当前模板</span><? }?><a href="../m/tem/moban/<?=$color?>/homeimg/moban_big.jpg" target="_blank"><img border="0" src="../m/tem/moban/<?=$color?>/homeimg/moban_small.jpg" width="120" height="120" /></a><br><?=$color?><br><a href="javascript:void(0);" onclick="mbcha('<?=$color?>')">点击启用</a></div>
  55. <? $i++;}}?>
  56. </div>
  57. <script language="javascript">
  58. document.getElementById("mbnum").innerHTML=<?=$i?>;
  59. </script>
  60. <!--End-->
  61. </div>
  62. </div>
  63. <?php include("bottom.php");?>
  64. </body>
  65. </html>