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

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%" 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"><%
  41. String op = StrUtil.getNullString(request.getParameter("op"));
  42. String content = "";
  43. QQWeatherUtil wu = new QQWeatherUtil();
  44. content = wu.getWeather();
  45. // content = wu.gather("http://weather.news.qq.com/inc/ss59.htm");
  46. if (op.equals("create")) {
  47. wu.createIncFile(content, "");
  48. out.print(StrUtil.Alert("操作完成!"));
  49. }
  50. %></td>
  51.   </tr>
  52. </table>
  53. </td> </tr>             
  54.       </table>                                        
  55.        </td>                                        
  56.      </tr>                                        
  57.  </table>                                        
  58.                                
  59.  <%=content%>
  60. </body>                                        
  61. </html>                            
  62.