gd.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. $sqluser="select * from yjcode_user where uid='".$_SESSION[SHOPUSER]."'";mysql_query("SET NAMES 'GBK'");$resuser=mysql_query($sqluser);
  6. $rowuser=mysql_fetch_array($resuser);
  7. $userid=$rowuser[id];
  8. $bh=$_GET[bh];
  9. while0("*","yjcode_gd where bh='".$bh."' and zt=99 and userid=".$userid);if(!$row=mysql_fetch_array($res)){php_toheader("gdlist.php");}
  10. //函数开始
  11. if($_GET[control]=="update"){
  12. zwzr();
  13. $sj=date("Y-m-d H:i:s");
  14. $txt=sqlzhuru1($_POST[content]);
  15. updatetable("yjcode_gd","
  16. sj='".$sj."',
  17. zt=1,
  18. mot='".sqlzhuru($_POST[tmot])."',
  19. mail='".sqlzhuru($_POST[tmail])."',
  20. orderbh='".sqlzhuru($_POST[torderbh])."',
  21. txt='".$txt."',
  22. gdzt=1
  23. where bh='".$bh."' and userid=".$userid);
  24. php_toheader("gdlist.php");
  25. }
  26. //函数结果
  27. ?>
  28. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  29. <html xmlns="http://www.w3.org/1999/xhtml">
  30. <head>
  31. <meta http-equiv="x-ua-compatible" content="ie=7" />
  32. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  33. <title>用户管理面板 - <?=webname?></title>
  34. <? include("cssjs.html");?>
  35. <script type="text/javascript" src="../config/ueditor/ueditor.config.js"></script>
  36. <script type="text/javascript" src="../config/ueditor/ueditor.all.min.js"> </script>
  37. <script type="text/javascript" src="../config/ueditor/lang/zh-cn/zh-cn.js"></script>
  38. <script type="text/javascript">
  39. function tj(){
  40. layer.msg('正在提交', {icon: 16 ,time: 0,shade :0.25});
  41. tjwait();
  42. f1.action="gd.php?bh=<?=$bh?>&control=update";
  43. }
  44. </script>
  45. </head>
  46. <body>
  47. <? include("../tem/top.html");?>
  48. <? include("top.php");?>
  49. <div class="yjcode">
  50. <? include("left.php");?>
  51. <!--RB-->
  52. <div class="userright">
  53. <? include("rcap12.php");?>
  54. <script language="javascript">
  55. document.getElementById("rcap1").className="l1 l2";
  56. </script>
  57. <!--白B-->
  58. <div class="rkuang">
  59. <!--B-->
  60. <form name="f1" method="post" onsubmit="return tj()" enctype="multipart/form-data">
  61. <ul class="uk">
  62. <li class="l7"><span class="red">*</span> 问题描述:</li>
  63. <li class="l8"><script id="editor" name="content" type="text/plain" style="width:770px;height:400px;"></script></li>
  64. <li class="l1">订单编号:</li>
  65. <li class="l2"><input type="text" size="20" class="inp" name="torderbh" /><span class="fd">[<a href="order.php" target="_blank">查看我的订单</a>]</span></li>
  66. <li class="l1">手机号码:</li>
  67. <li class="l2"><input type="text" size="20" value="<?=$rowuser[mot]?>" class="inp" name="tmot" /></li>
  68. <li class="l1">邮箱号码:</li>
  69. <li class="l2"><input type="text" size="20" value="<?=$rowuser[email]?>" class="inp" name="tmail" /></li>
  70. <li class="l3"><? tjbtnr("提交问题","gdlist.php")?></li>
  71. </ul>
  72. </form>
  73. <!--E-->
  74. </div>
  75. <!--白E-->
  76. </div>
  77. <!--RE-->
  78. </div>
  79. <script language="javascript">
  80. //实例化编辑器
  81. var ue= UE.getEditor('editor'
  82. , {
  83. toolbars:[
  84. ['fullscreen', 'source', '|', 'undo', 'redo', '|',
  85. 'removeformat', 'formatmatch' ,'|', 'forecolor',
  86. 'fontsize', '|',
  87. 'link', 'unlink',
  88. 'insertimage', 'emotion', 'attachment']
  89. ]
  90. });
  91. </script>
  92. <div class="clear clear15"></div>
  93. <? include("../tem/bottom.html");?>
  94. </body>
  95. </html>