shdzlist.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="x-ua-compatible" content="ie=7" />
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  11. <title>用户管理面板 - <?=webname?></title>
  12. <? include("cssjs.html");?>
  13. <link href="css/inf.css" rel="stylesheet" type="text/css" />
  14. <script language="javascript">
  15. function addshdz(){
  16. layer.open({
  17. type: 2,
  18. area: ['700px', '420px'],
  19. title:["编辑收货地址","text-align:left"],
  20. skin: 'layui-layer-rim', //加上边框
  21. content:['shdzlx.php', 'no']
  22. });
  23. }
  24. function ediadd(b){
  25. layer.open({
  26. type: 2,
  27. area: ['700px', '420px'],
  28. title:["编辑收货地址","text-align:left"],
  29. skin: 'layui-layer-rim', //加上边框
  30. content:['shdz.php?bh='+b, 'no']
  31. });
  32. }
  33. </script>
  34. </head>
  35. <body>
  36. <? include("../tem/top.html");?>
  37. <? include("top.php");?>
  38. <div class="yjcode">
  39. <? include("left.php");?>
  40. <!--RB-->
  41. <div class="userright">
  42. <? include("rcap1.php");?>
  43. <script language="javascript">
  44. document.getElementById("rcap8").className="l1 l2";
  45. </script>
  46. <!--白B-->
  47. <div class="rkuang">
  48. <div class="ksedi">
  49. <div class="d1">
  50. <a href="javascript:NcheckDEL(10,'yjcode_shdz')" class="a2">删除</a>
  51. <a href="javascript:void(0);" onclick="addshdz()" class="a1">新增地址</a>
  52. </div>
  53. </div>
  54. <ul class="shdzlistcap">
  55. <li class="l0"><input name="C2" type="checkbox" onclick="xuan()" /></li>
  56. <li class="l1">详细地址</li>
  57. <li class="l2">收货人</li>
  58. <li class="l3">联系电话</li>
  59. <li class="l4">编辑时间</li>
  60. </ul>
  61. <?
  62. $ses=" where zt=0 and userid=".$luserid;
  63. $page=$_GET["page"];if($page==""){$page=1;}else{$page=intval($_GET["page"]);}
  64. pagef($ses,30,"yjcode_shdz","order by sj desc");while($row=mysql_fetch_array($res)){
  65. $addr=returnarea($row[add1])." ".returnarea($row[add2])." ".returnarea($row[add3])." ".$row[addr];
  66. ?>
  67. <ul class="shdzlist">
  68. <li class="l0"><input name="C1" type="checkbox" value="<?=$row[id]?>" /></li>
  69. <li class="l1"><? if(1==$row[ifmr]){?><span class="red">[默认地址]</span> <? }?><a href="javascript:void(0);" onclick="ediadd('<?=$row[bh]?>')"><?=$addr?></a></li>
  70. <li class="l2"><?=$row[lxr]?></li>
  71. <li class="l3"><?=$row[mot]?></li>
  72. <li class="l4"><?=$row[sj]?></li>
  73. </ul>
  74. <? }?>
  75. <div class="npa">
  76. <?
  77. $nowurl="shdzlist.php";
  78. $nowwd="";
  79. require("page.php");
  80. ?>
  81. </div>
  82. <div class="clear clear15"></div>
  83. </div>
  84. <!--白E-->
  85. </div>
  86. <!--RE-->
  87. </div>
  88. <div class="clear clear15"></div>
  89. <? include("../tem/bottom.html");?>
  90. </body>
  91. </html>