⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 searchmyfile.jsp

📁 LyBBS基于Struts1.3/Ajax的架构
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="common/include/taglibs.jsp" %>
<html:html>
<head>
<title><lybbs:web key="forumName"/></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="bookmark" href="favicon.ico" type="image/x-icon">
<%@ include file="common/include/header.jsp" %>
<script language="JavaScript">
  function CheckAll(form) {
     for(var i=0;i<form.elements.length;i++) {
       var e = form.elements[i];
       e.checked = true;
     }
  }
  function FanAll(form) {
    for(var i=0;i<form.elements.length;i++) {
      var e = form.elements[i];
      if (e.checked == true) {
        e.checked = false;
      }
      else {
        e.checked = true;
      }
    }
  }
</script>
</head>
<body topmargin=0 leftmargin=0>
<DIV ID="dek" CLASS="dek"></DIV>
<script language="JavaScript">
<!-- Begin
Xoffset=-10;
Yoffset=20;
var nav,old,iex=(document.all),yyy=-1000;
if(navigator.appName=="Netscape") {
  (document.layers)?nav=true:old=true;
}
if(!old){
  var skn=(nav)?document.dek:dek.style;
  if(nav)document.captureEvents(Event.MOUSEMOVE);
  document.onmousemove=get_mouse;
}

function get_mouse(e){
  var x=(nav)?e.pageX:event.x+document.body.scrollLeft;skn.left=x+Xoffset;
  var y=(nav)?e.pageY:event.y+document.body.scrollTop;skn.top=y+yyy;
}
function kill(){
  if(!old){yyy=-1000;skn.visibility="hidden";}
}

function popup(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}

function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    largh=foto1.width;
    altez=foto1.height;
    if(largh>100) {
      altez=parseInt(altez*100/largh);
      largh=100;
    }
    viewFoto(img);
  }
  else{
    largh=50;
    altez=50;
    viewFoto2();
  }
}
function viewFoto(img){
  var content="<table border=0 style='border:1px solid #000000;position:relative;left:-20;z-index:20;visibility:visible;top:"+(0-altez-50)+"' width="+largh+" height="+altez+" cellspacing=0 cellpadding=0><TR><TD align=center bgcolor=#ffffff><img src="+img+" width="+largh+" height="+altez+" border=0></TD></TR></TABLE>";
  if(old){alert(img);return;}
  else{yyy=Yoffset;
    if(nav){skn.document.write(content);skn.document.close();skn.visibility="visible"}
    if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
  }
}
function viewFoto2(){
  var content="";
  if(old){alert(img);return;}
  else{yyy=Yoffset;
    if(nav){skn.document.write(content);skn.document.close();skn.visibility="visible"}
    if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
  }
}
//End -->
</script>
<TABLE class=tableCommonStyle cellSpacing=1 cellPadding=3 border=0 align=center>
 <TR>
  <TD height=4 class=bgStyle></TD>
 </TR>
 <TR>
  <TD class=noBgStyle>
    <lybbs:typeAdTag/>
  </TD>
 </TR>
 <TR>
  <TD height=4 class=bgStyle></TD>
 </TR>
 <tr>
  <td class=menuStyle height=22>
    <table width=100% cellpadding=0 cellspacing=0 border=0>
    <tr>
    <td align=left>
    <lybbs:typeUserHeaderTag forumID="0"/>
    </td>
    <td align=right>
      <lybbs:web key="returnHomeLink"/>
    </td>
    </tr>
    </table>
  </td>
 </tr>
</table>
<br>
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center>
 <tr>
  <td class=navStyle vAlign=center height=25>
    <img src="lybbs/images/forum_nav.gif" width="9" height="9" align="absMiddle"> <a href="bbs_index.do"><lybbs:web key="forumName"/></a> <bean:message key="common.lybbs.arrow"/> <bean:message key="jsp.userheader.controlpanel.searchmyfile"/>
  </td>
 </tr>
</table>
<br>
<table class=tableCommonStyle cellpadding=6 cellspacing=1 border=0 align=center>
  <form action="bbs_userControlPanel.do" method="post">
  <input type=hidden name="checkAction" value="yes">
  <input type=hidden name="action" value="<bean:write name="action"/>">
  <input type=hidden name="sessionToken" value="<%=StringUtils.getSessionToken(request)%>">
  <lybbs:typeUserQuotaTag/>
  <tr>
    <td class=catStyle width=25% align=center>
      <b><bean:message key="jsp.post.upload.current"/></b>
    </td>
    <td class=catStyle align=center>
      <b><bean:message key="common.lybbs.title"/></b>
    </td>
    <td class=catStyle width=20% align=center>
      <b><bean:message key="common.lybbs.date"/></b>
    </td>
    <td class=catStyle width=5% align=center>
      <b><bean:message key="common.lybbs.select"/></b>
    </td>
  </tr>
  <logic:present name="uploadListBean" scope="request">
  <logic:iterate id="element" name="uploadListBean">
  <tr>
    <td class=forumColorTwo>
      <img src="lybbs/icons/<bean:write name="element" property="fileExt"/>.gif" border=0>&nbsp;
      <a onmouseout="kill()" onmouseover="popup('bbs_downloadAttachment.do?fileName=<bean:write name="element" property="filePath"/>')" href="bbs_downloadAttachment.do?fileName=<bean:write name="element" property="filePath"/>" target=_blank><bean:write name="element" property="fileRealName"/></a><br>
      <bean:write name="element" property="fileSize"/> bytes
    </td>
    <td class=forumColorTwo>
      <logic:notEqual name="element" property="postsID" value="0">
        <logic:equal name="element" property="parentID" value="0">
          <logic:notEqual name="element" property="forumID" value="0">
          <a href="bbs_topic.do?forumID=<bean:write name="element" property="forumID"/>&postID=<bean:write name="element" property="postsID"/>" target=_blank><bean:write name="element" property="title"/></a>
          </logic:notEqual>
        </logic:equal>
        <logic:notEqual name="element" property="parentID" value="0">
          <a href="bbs_topic.do?forumID=<bean:write name="element" property="forumID"/>&postID=<bean:write name="element" property="parentID"/>&replyID=<bean:write name="element" property="postsID"/>&skin=1" target=_blank>Re:&nbsp;<bean:write name="element" property="title"/></a>
        </logic:notEqual>
      </logic:notEqual>
      <logic:notEqual name="element" property="blogPostID" value="0">
        <a href="blog_read.do?postID=<bean:write name="element" property="blogPostID"/>" target=_blank><bean:write name="element" property="title"/></a>
      </logic:notEqual>
    </td>
    <td class=forumColorTwo>
      <bean:write name="element" property="uploadDate"/>
    </td>
    <td class=forumColorTwo>
      <input type=checkbox name="uploadInfoID" value="<bean:write name="element" property="uploadInfoID"/>">
    </td>
  </tr>
  </logic:iterate>
  </logic:present>
  <tr>
    <td class=forumColorOne colspan=2>
      <bean:write name="pageUtils" property="pageInfo" filter="false"/>
    </td>
    <td class=forumColorOne colspan=2>
      <input type="button" name="chkall" value="<bean:message key="common.lybbs.selectall"/>" onclick="CheckAll(this.form)">
      <input type="button" name="clear" value="<bean:message key="common.lybbs.fanall"/>" onclick="FanAll(this.form)">
      <input type="reset" name="reset" value="<bean:message key="common.lybbs.reset"/>">
      <input type=submit value="<bean:message key="common.lybbs.delete"/>">
    </td>
  </tr>
  </form>
</table>
<br>
<lybbs:web key="foot"/>
</body>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -