📄 index_005fadmin_jsp.java
字号:
out.write("<span style=\"font-weight: 400\">");
out.write("<font color=\"#3399FF\">公布人");
out.write("</font>");
out.write("</span>");
out.write("</th>\r\n ");
out.write("<th width=\"170\" height=\"15\" align=\"center\"> ");
out.write("<span style=\"font-weight: 400\">");
out.write("<font color=\"#3399FF\">公布时间");
out.write("</font>");
out.write("</span>");
out.write("</th>\r\n ");
out.write("<th width=\"50\" height=\"15\" align=\"center\"> ");
out.write("<span style=\"font-weight: 400\">");
out.write("<font color=\"#3399FF\">修改");
out.write("</font>");
out.write("</span>");
out.write("</th>\r\n ");
out.write("<th width=\"50\" height=\"15\" align=\"center\"> ");
out.write("<span style=\"font-weight: 400\">");
out.write("<font color=\"#3399FF\">删除");
out.write("</font>");
out.write("</span>");
out.write("</th>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr class=\"ziti\" bgcolor=\"#f7f9fd\">\r\n ");
out.write("<td width=\"30\" align=\"center\" class=\"ziti\">");
out.write("<img src=\"images/new.gif\" width=\"28\" height=\"11\" align=\"middle\"> ");
out.write("</td>\r\n ");
out.write("<td align=\"left\" width=\"270\">");
out.write("<a href=\"imis_main/information.jsp?id=");
out.print(id);
out.write("\" target=\"_blank\"> ");
out.print(subject);
out.write("</a>");
out.write("</td>\r\n ");
out.write("<td width=\"100\" height=\"15\" align=\"center\">");
out.print(person);
out.write("</td>\r\n ");
out.write("<td width=\"200\" height=\"15\" align=\"center\">");
out.print(adddate);
out.write("</td>\r\n ");
out.write("<td width=\"50\" align=\"center\">");
out.write("<a href=\"imis_main/modify.jsp?id=");
out.print(id);
out.write("&show=");
out.print(show);
out.write("\" target=\"_blank\">");
out.write("<img src=\"images/editicon.gif\" width=\"16\" height=\"8\" border=\"0\">");
out.write("</a>");
out.write("</td>\r\n ");
out.write("<td width=\"50\" align=\"center\">");
out.write("<a href=\"imis_main/delete.jsp?id=");
out.print(id);
out.write("&show=");
out.print(show);
out.write("\" target=\"_top\">");
out.write("<img src=\"images/clearicon.gif\" width=\"13\" height=\"13\" border=\"0\">");
out.write("</a>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
}
while(itr.hasNext()&&i<8){i=i+1;
Hashtable ht = (Hashtable) itr.next();
newsid =ht.get("newsid").toString(); id=newsid;
subject =ht.get("subject").toString();
adddate =ht.get("adddate").toString();
person =ht.get("person").toString();
content =ht.get("content").toString();
if (i%2!=0){
out.write("\r\n ");
out.write("<tr class=\"ziti\" bgcolor=\"#f7f9fd\">\r\n ");
}
else {
out.write("\r\n ");
out.write("<tr class=\"ziti\" bgcolor=\"#FFFFFF\">\r\n ");
}
out.write("\r\n ");
if (i<4){
out.write("\r\n ");
out.write("<td width=\"30\" align=\"center\" >");
out.write("<img src=\"images/new.gif\" width=\"28\" height=\"11\" align=\"middle\"> ");
out.write("</td>\r\n ");
}
else{
out.write("\r\n ");
out.write("<td width=\"30\" align=\"center\" > ");
out.write("</td>\r\n ");
}
out.write("\r\n ");
out.write("<td align=\"left\" width=\"270\">");
out.write("<a href=\"imis_main/information.jsp?id=");
out.print(id);
out.write("\" target=\"_blank\"> ");
out.print(subject);
out.write("</a>");
out.write("</td>\r\n ");
out.write("<td width=\"100\" height=\"15\" align=\"center\">");
out.print(person);
out.write("</td>\r\n ");
out.write("<td width=\"200\" height=\"15\" align=\"center\">");
out.print(adddate);
out.write("</td>\r\n ");
out.write("<td width=\"50\" align=\"center\">");
out.write("<a href=\"imis_main/modify.jsp?id=");
out.print(id);
out.write("&show=");
out.print(show);
out.write("\" target=\"_blank\">");
out.write("<img src=\"images/editicon.gif\" width=\"16\" height=\"8\" border=\"0\">");
out.write("</a>");
out.write("</td>\r\n ");
out.write("<td width=\"50\" align=\"center\">");
out.write("<a href=\"imis_main/delete.jsp?id=");
out.print(id);
out.write("&show=");
out.print(show);
out.write("\" target=\"_parent\">");
out.write("<img src=\"images/clearicon.gif\" width=\"13\" height=\"13\" border=\"0\">");
out.write("</a>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
}
for (;i<=6;i++){
out.write("\r\n ");
out.write("<tr>\r\n ");
out.write("<td> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
}
if (i>=8){
out.write("\r\n ");
out.write("<tr >\r\n ");
out.write("<td colspan=\"5\"> ");
out.write("</td>\r\n ");
out.write("<td align=\"right\">");
out.write("<a href=\"imis_main/more.jsp\" target=\"_blank\">");
out.write("<img src=\"images/more.gif\" width=\"39\" height=\"14\" border=\"0\">");
out.write("</a>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
}
out.write("\r\n ");
out.write("</table>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<!--添加公告部分-->\r\n ");
out.write("<tr>\r\n ");
out.write("<td valign=\"bottom\" align=\"center\">\r\n\t\t\t\t");
out.write("<table width=\"640\" height=\"240\" border=\"0\" >\r\n\t\t\t\t ");
out.write("<form name=\"form1\" method=\"post\" action=\"imis_main/addnews.jsp\">\r\n \r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"20\" colspan=\"2\" valign=\"top\" align=\"left\">");
out.write("<img src=\"images/fabu.jpg\" width=\"567\" height=\"17\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td width=\"80\" height=\"20\" align=\"right\" valign=\"top\" >");
out.write("<span class=\"ziti\">发 布 人:");
out.write("</span>");
out.write("</td>\r\n ");
out.write("<td width=\"585\" valign=\"top\" >");
out.write("<span class=\"ziti\">\r\n \r\n ");
out.write("<input name=\"person\" type=\"text\" style=\"border:1px solid #127ace; FONT-SIZE: 9pt; COLOR: #078bdf; FONT-FAMILY: Verdana; float:left\" size=\"91\" maxlength=\"100\">\r\n ");
out.write("<input type=\"hidden\" name=\"show\" value=");
out.print(show);
out.write("> ");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td width=\"80\" height=\"20\" align=\"right\" valign=\"top\">");
out.write("<span class=\"ziti\">公告主题:");
out.write("</span>");
out.write("</td>\r\n ");
out.write("<td height=\"20\" valign=\"top\">");
out.write("<span class=\"ziti\">\r\n ");
out.write("<input name=\"subject\" type=\"text\" id=\"subject\" size=\"91\" maxlength=\"200\" style=\"border:1px solid #127ace; FONT-SIZE: 9pt; COLOR: #078bdf; FONT-FAMILY: Verdana; float:left\">\r\n ");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td width=\"80\" align=\"right\" valign=\"top\">");
out.write("<span class=\"ziti\">公告内容:");
out.write("</span>");
out.write("</td>\r\n ");
out.write("<td valign=\"top\" class=\"ziti\" >\r\n\t\t\t\t\t\t");
out.write("<textarea name=\"content\" cols=\"90\" rows=\"8\" maxlength=\"4000\" style=\"border:1px solid #127ace; FONT-SIZE: 9pt; COLOR: #078bdf; FONT-FAMILY: Verdana; float:left\">");
out.write("</textarea>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr align=\"right\" class=\"ziti\">\r\n ");
out.write("<td colspan=\"2\">\r\n ");
out.write("<input type=\"button\" name=\"Submit\" value=\"发 布\" onClick=\"checkValue()\" style=\"font-size: 12px; color: #078bdf; background: #ffffe0; line-height: 100%; font-family: 宋体; border: 1px solid #31639c; padding-top: 2px; padding-bottom: 0px;\">\r\n ");
out.write("<input type=\"reset\" name=\"Submit2\" value=\"重 置\" style=\"font-size: 12px; color: #078bdf; background: #ffffe0; line-height: 100%; font-family: 宋体; border: 1px solid #31639c; padding-top: 2px; padding-bottom: 0px;\">\r\n ");
out.write("<a href=\"imis_main/upload.htm\" target=\"_blank\"> 添加附件 ");
out.write("</a>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</form> ");
out.write("</table>\r\n \r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>");
out.write("</td>\r\n ");
out.write("<td valign=\"top\">");
out.write("<table width=\"217\" border=\"1\" align=\"right\" bordercolor=\"#99D8D8\" >\r\n ");
out.write("<tr>\r\n ");
out.write("<td >");
out.write("<!--附件-->\r\n ");
out.write("<table width=\"170\" height=\"280\" >\r\n ");
out.write("<tr class=\"ziti\">\r\n ");
out.write("<td height=\"20\" colspan=\"3\" valign=\"top\">");
out.write("<img src=\"images/xiazai.jpg\" width=\"170\" height=\"17\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n\r\n");
String road;
String filename=null;
String path=request.getRealPath("/")+"imis_main\\uploadfile";
//out.print(upload.getSavePath());
File fp1=new File(path);
if(!fp1.exists()) out.print("the file doesnot exist!");
if(!fp1.isDirectory()) out.print("the file isnot a directory!");
String[] templist=fp1.list();
int total=templist.length;
out.write("\r\n\r\n");
if(total>0){
out.write("\r\n");
out.write("<tr align=\"left\" valign=\"top\" class=\"ziti\">\r\n ");
out.write("<td height=\"15\" colspan=\"3\" valign=\"middle\">共有");
out.print(total);
out.write("个附件");
out.write("</td>\r\n ");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -