userHead.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:7k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8"
  2.  errorPage="err.jsp" %>
  3. <%@ include file="./GVinc/gvImport.jsp" %>
  4. <%
  5. String userName="", userPic=""; 
  6. int userID=0, userPicIs=0;
  7. if(gvUserName==null || gvUserName.equals("")){
  8. out.print(prtCenter("您尚未登陆,无权进行此项操作!","userLogin.jsp",1));
  9. out.close();
  10. if(true)return;
  11. }
  12. %>
  13. <html xmlns="http://www.w3.org/1999/xhtml">
  14. <head>
  15. <title><%=clubTitle%>__修改社区形象</title>
  16. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  17. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  18. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  19. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  20. <link href="./GVinc/main.css" rel="stylesheet" type="text/css" />
  21. </head>
  22. <body>
  23. <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 20%; TEXT-ALIGN: center">
  24. <TABLE cellPadding=6 border=0>
  25. <TBODY><TR><TD align=middle>
  26. <IMG  src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
  27. <BR>
  28. <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  29. <script type="text/javascript" src="GVscript/GVtopCode.js"></script>
  30. <script type="text/javascript" src="GVscriptInc/topBar.js"></script>
  31. <SCRIPT language="javascript">
  32. gv_showWait('waitDiv', 1); 
  33. prtie2('<%=clubName%>__个人工具箱__修改社区形象');
  34. </SCRIPT>
  35. <%
  36. if(request.getMethod().equals("POST")){
  37. cu.userHeadUpdate(gvUserID,request.getParameter("userPic"));
  38. //out.print(cu.getMessage());
  39. out.print(prtCenter("社区形象更新成功。","userHead.jsp",1));
  40. out.print(Gfoot());
  41. out.close();
  42. if(true)return;
  43. }
  44. cui = cu.userInfo(gvUserID);
  45. if(cui!=null){
  46. userPic = cui.getUserPic();
  47. userPicIs = cui.getUserPicIs();
  48. }
  49. %>
  50. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  51. <tr class="tab1"><td>
  52. <%=com.gamvan.club.ClubHtmlConst.gamvan_menu("<a href="userAgree.jsp">自定义个人头像</a>")%>
  53. </td></tr></table>
  54. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">
  55.   <form action="" method="post"  name="Gforms" onSubmit="return CheckForm();"><tr>
  56.     <td width="120" class="tab1"><strong>预览</strong></td>
  57.     <td class="bg2">
  58. <img src="<%=userPic%>" border="0" align="absmiddle" id="myHead">
  59. </td>
  60.   </tr>
  61.   <tr>
  62.     <td class="tab1"><strong>修改图片地址</strong></td>
  63.     <td class="bg2">
  64. <script language="javascript">
  65. function changePic(txt){
  66. document.images['myHead'].src=txt;
  67. document.Gforms.userPic.value=txt;
  68. }
  69. </script>
  70. <input name="userPic" type="text" id="userPic" value="<%=userPic%>" size="50" />
  71. <select name="myHead2" onChange="changePic(myHead2.options[selectedIndex].value);">
  72. <option value="gvHeads/0.gif" selected="selected">系统形象</option>
  73. <option value="gvHeads/1.gif">==女生==</option>
  74. <option value="gvHeads/1.gif">gvHead1</option>
  75. <option value="gvHeads/2.gif">gvHead2</option>
  76. <option value="gvHeads/3.gif">gvHead3</option>
  77. <option value="gvHeads/4.gif">gvHead4</option>
  78. <option value="gvHeads/5.gif">gvHead5</option>
  79. <option value="gvHeads/6.gif">gvHead6</option>
  80. <option value="gvHeads/7.gif">gvHead7</option>
  81. <option value="gvHeads/8.gif">gvHead8</option>
  82. <option value="gvHeads/9.gif">gvHead9</option>
  83. <option value=""></option>
  84. <option value="gvHeads/21.gif">==男生==</option>
  85. <option value="gvHeads/21.gif">gvHead21</option>
  86. <option value="gvHeads/22.gif">gvHead22</option>
  87. <option value="gvHeads/23.gif">gvHead23</option>
  88. <option value="gvHeads/24.gif">gvHead24</option>
  89. <option value="gvHeads/25.gif">gvHead25</option>
  90. <option value="gvHeads/26.gif">gvHead26</option>
  91. <option value="gvHeads/27.gif">gvHead27</option>
  92. <option value="gvHeads/28.gif">gvHead28</option>
  93. <option value="gvHeads/29.gif">gvHead29</option>
  94. <option value=""></option>
  95. <option value="gvHeads/41.gif">==个性==</option>
  96. <option value="gvHeads/41.gif">gvHead41</option>
  97. <option value="gvHeads/42.gif">gvHead42</option>
  98. <option value="gvHeads/43.gif">gvHead43</option>
  99. <option value="gvHeads/44.gif">gvHead44</option>
  100. <option value=""></option>
  101. <option value="gvHeads/60.gif">==表情==</option>
  102. <option value="gvHeads/60.gif">gvHead60</option>
  103. <option value="gvHeads/61.gif">gvHead61</option>
  104. <option value="gvHeads/62.gif">gvHead62</option>
  105. <option value="gvHeads/63.gif">gvHead63</option>
  106. <option value="gvHeads/64.gif">gvHead64</option>
  107. <option value="gvHeads/65.gif">gvHead65</option>
  108. <option value="gvHeads/66.gif">gvHead66</option>
  109. <option value="gvHeads/67.gif">gvHead67</option>
  110. <option value="gvHeads/68.gif">gvHead68</option>
  111. <option value="gvHeads/69.gif">gvHead69</option>
  112. <option value="gvHeads/70.gif">gvHead70</option>
  113. <option value="gvHeads/71.gif">gvHead71</option>
  114. <option value="gvHeads/81.gif">==卡通==</option>
  115. <option value="gvHeads/81.gif">gvHead81</option>
  116. <option value="gvHeads/82.gif">gvHead82</option>
  117. <option value="gvHeads/83.gif">gvHead83</option>
  118. <option value="gvHeads/84.gif">gvHead84</option>
  119. <option value="gvHeads/85.gif">gvHead85</option>
  120. <option value="gvHeads/86.gif">gvHead86</option>
  121. <option value="gvHeads/87.gif">gvHead87</option>
  122. <option value="gvHeads/88.gif">gvHead88</option>
  123. <option value="gvHeads/89.gif">gvHead88</option>
  124. <option value="gvHeads/90.gif">gvHead90</option>
  125. <option value="gvHeads/91.gif">gvHead91</option>
  126. <option value="gvHeads/92.gif">gvHead92</option>
  127. <option value="gvHeads/93.gif">gvHead93</option>
  128. <option value="gvHeads/94.gif">gvHead94</option>
  129. <option value="gvHeads/95.gif">gvHead95</option>
  130. <option value="gvHeads/96.gif">gvHead96</option>
  131. <option value="gvHeads/97.gif">gvHead97</option>
  132. <option value="gvHeads/98.gif">gvHead98</option>
  133. <option value="gvHeads/99.gif">gvHead99</option>
  134. <option value="gvHeads/100.gif">gvHead100</option>
  135. <option value="gvHeads/101.gif">gvHead101</option>
  136. <option value="gvHeads/102.gif">gvHead102</option>
  137. <option value="gvHeads/103.gif">gvHead103</option>
  138. <option value="gvHeads/104.gif">gvHead104</option>
  139. </select></td>
  140. </tr>
  141. <tr><td class="tab1"><strong>上传头像</strong></td>
  142. <td class="bg2"> 
  143. <%
  144. //out.print(userPicIs);
  145. if((clubUserPic==1 && userPicIs!=2) || userPicIs==1){
  146. out.print("<iframe name="ad" frameborder=0 width="100%" height="30" scrolling=no src="./upLoad/upLoad1.jsp?userID="+ gvUserID +""></iframe>");
  147. }else{
  148. out.print("<span style="color:#cccccc">此功能被关闭。</span>");
  149. }
  150. %>
  151. </td></tr><tr><td class="tab1">&nbsp;</td>
  152. <td height="30" class="bg2">
  153. <!--
  154. <INPUT id="infoShow" name="infoShow" type=checkbox value="1" onclick="showInfo()">
  155. <span id=divTxt>高级设置选项</span>
  156. -->
  157. <input  type="submit" name="action" value="  提交  "  class="btn"></td>  
  158. </tr>
  159. </form>
  160. </table>
  161. <%=Gfoot()%>
  162. </body>
  163. </html>
  164. <!-- Powered by www.GamVan.com -->