manager.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:3k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ include file="../../../inc/inc.jsp" %>
  3. <%@ page import="java.util.*"%>
  4. <%@ page import="cn.js.fan.db.Conn"%>
  5. <%@ page import="cn.js.fan.util.*"%>
  6. <%@ page import="com.redmoon.forum.miniplugin.*"%>
  7. <%@ page import="com.redmoon.forum.miniplugin.weather.*"%>
  8. <%@ page import="com.redmoon.forum.*"%>
  9. <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
  10. <html><head>
  11. <meta http-equiv="pragma" content="no-cache">
  12. <LINK href="../../../admin/default.css" type=text/css rel=stylesheet>
  13. <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <title>插件管理</title>
  16. <script language="JavaScript">
  17. <!--
  18. //-->
  19. </script>
  20. <body bgcolor="#FFFFFF" topmargin='0' leftmargin='0'>
  21. <jsp:useBean id="privilege" scope="page" class="cn.js.fan.module.pvg.Privilege"/>
  22. <%
  23. if (!privilege.isUserPrivValid(request, "forum.plugin"))
  24. {
  25. out.print(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  26. return;
  27. }
  28. %>
  29. <table width='100%' cellpadding='0' cellspacing='0' >
  30.   <tr>
  31.     <td class="head">管理插件-<%=WeatherSkin.LoadString(request, "name")%></td>
  32.   </tr>
  33. </table>
  34. <br>
  35. <table width="98%" height="227" border='0' align="center" cellpadding='0' cellspacing='0' class="frame_gray">
  36.   <tr> 
  37.     <td height=20 align="left" class="thead">管理 - <%=WeatherSkin.LoadString(request, "name")%>&nbsp;&nbsp;<a href="?op=create">生成</a></td>
  38.   </tr>
  39.   <tr> 
  40.     <td valign="top"><br>
  41.       <br>
  42. <%
  43. String op = StrUtil.getNullString(request.getParameter("op"));
  44. String content = "";
  45. WeatherUtil wu = new WeatherUtil();
  46. content = wu.getWeather();
  47. String fullcontent = wu.getWeatherFull();
  48. if (op.equals("create")) {
  49. wu.createIncFile(content, fullcontent);
  50. out.print(StrUtil.Alert("操作完成!"));
  51. }
  52. %>
  53.       <table width="95%" border="0" align="center" cellpadding="3" cellspacing="0" style="BORDER-RIGHT: #a6a398 1px solid; BORDER-TOP: #a6a398 1px solid; BORDER-LEFT: #a6a398 1px solid; BORDER-BOTTOM: #a6a398 1px solid">
  54.         <tr>
  55.           <td colspan="3" align="center">当天天气预报 &nbsp;</td>
  56.         </tr>
  57.         <tr>
  58.           <td colspan="3" align="center"><%=content%> </td>
  59.         </tr>
  60.       </table>
  61.     <br>
  62.     <br>
  63.     <table width="95%" border="0" align="center" cellpadding="3" cellspacing="0" style="BORDER-RIGHT: #a6a398 1px solid; BORDER-TOP: #a6a398 1px solid; BORDER-LEFT: #a6a398 1px solid; BORDER-BOTTOM: #a6a398 1px solid">
  64.       <tr>
  65.         <td colspan="3" align="center">详细天气预报 &nbsp;</td>
  66.       </tr>
  67.       <tr>
  68.         <td colspan="3" align="center">
  69. <%=fullcontent%> </td>
  70.       </tr>
  71.     </table>
  72.     <br></td>
  73.   </tr>
  74. </table>
  75. </td> </tr>             
  76.       </table>                                        
  77.        </td>                                        
  78.      </tr>                                        
  79.  </table>                                        
  80.                                
  81. </body>                                        
  82. </html>                            
  83.