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

📄 lb_adminupload.aspx

📁 OA自动化办公系统,就是OA自动化办公系统
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="lb_adminupload.aspx.cs" Inherits="lb_adminupload" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title></title>
<script type="text/javascript">
function dis(){
document.form11.submit.value=' 查询..'
document.form11.submit.disabled=true;
}
  function check()
  {
   var str="";
   var j=0;
   var el=document.form1.getElementsByTagName("input")
   for(i=0;i<el.length;i++){
    if(el[i].type=="checkbox"){
     if((el[i].checked)&&(el[i].name.indexOf("id")!='-1')){
      j++;
     }
    }
   }
   if(j > 10000 || j<1)
   {
    alert("请选择要删除的文件。");
    return false;
   }
   
     if(!confirm('您确定要删除所选文件吗?'))
 {
return false
} 
else 
document.form1.submit
}
  </script>
  <link href="../css/textarea.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
<!--
body {
	margin-top: 2px;
}
.style1 {font-weight: bold}
.style2 {font-weight: bold}
.style3 {color: #999999}
.style12 {color: #FF0000}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="99%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="740"><form action="showdepartment.aspx" method="post" name="form11" id="form11">
              <div align="right">
                <input name="q" type="text" id="q"/>
                <input name="submit" type="submit" id="submit" style="FONT-SIZE: 12px; HEIGHT: 27px"  value= " 查 询 " />
&nbsp;&nbsp; </div>
          </form></td>
          <td width="97" valign="top"><img src="../images/gx/up.gif" width="18" height="21"><a href="lb_upload.aspx"> 上传共享</a></td>
          <td width="142" valign="top"><img src="../images/gx/code.gif" width="21" height="21"><a href="lb_selectFile.aspx">共享列表</a></td>
        </tr>
    </table></td>
  </tr>
</table>
<div align="center">
<div class="RoundedCorner"> 
  <div align="center"><b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> <span class="style1">我 的 共 享</span></div>
</div>
  
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td bgcolor="#FFFFFF"><div align="center">
          <form name="form1" method="post" action="delfile.aspx">
            <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#5AAE18">
              <tr bgcolor="#FFFFFF">
                <td height="21" colspan="11"><table width="100%" border="0" cellpadding="3" cellspacing="0">
                  <tr>
                    <td>
                      <%
                      System.Collections.Generic.IList<COM.OA.Entity.filetype> flist = COM.OA.BLL.filetypeBLL.Select();
                      
                      foreach(COM.OA.Entity.filetype ftype in flist)
                      {
                       
                  %>
                  <a href="showdepartment.aspx?ft=<%=ftype.ftype_id %>"><%=ftype.ftype_filetype%></a>&nbsp;
                  <%
                      }    
                   %>
                      
&nbsp; <span class="style3">-></span><a href="lb_selectFile.aspx">共享列表</a> <span class="style3"></span> </td>
                  </tr>
                </table></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td height="21" colspan="2"><div align="left"><strong>
                    <input name="submit" type="submit" id="submit1" value="删除" />
        文件名</strong></div></td>
                <td width="9%"><div align="center"><strong>阅 读</strong></div></td>
                <td width="5%"><div align="center"><strong>明 细</strong></div></td>
                <td width="5%"><div align="center"><strong>下 载</strong></div></td>
                <td width="5%"><div align="center"><strong>收 藏</strong></div></td>
                <td width="5%"><div align="center"><strong>转 发</strong></div></td>
                <td width="5%"><div align="center"><strong>状态</strong></div></td>
                <td width="5%"><div align="center"><strong>开 关</strong></div></td>
                <td width="5%"><div align="center"><strong><span class="style6">类别</span></strong></div></td>
              </tr>
              <%
                  COM.OA.Entity.users u = (COM.OA.Entity.users)Session["loginuser"];
                  if (u == null)
                  {
                      this.Response.Write(string.Format(GetRedirect.REDIRECT,"../login.aspx"));
                      this.Response.End();
                  }
                      string where = "f_sendu_id=" + u.u_id;

                      System.Collections.Generic.IList<COM.OA.Entity.files> adminfile = COM.OA.BLL.filesBLL.Select(where, true, false);

                      foreach (COM.OA.Entity.files f in adminfile)
                      {
                          System.IO.FileInfo info = new System.IO.FileInfo(Server.MapPath("../gxxz/upload/" + f.f_filename));

                          //取文件后辍 
                          int start = f.f_filename.LastIndexOf(".") + 1;
                          string hz = f.f_filename.Substring(start);

                          string imgPath = "../gxxz/img/icon/" + hz + ".gif";

                          string close = "关闭";
                          string closeImg = "../images/gx/cs-1.gif";
                          if (f.f_state == 0)
                          {
                              close = "开通";
                              closeImg = "../images/gx/cs-3.gif";
                          }
                          else
                          {
                              close = "关闭";
                              closeImg = "../images/gx/cs-1.gif";
                          }
                  
              %>
              <tr bgcolor="#FFFFFF" onMouseOver = "this.style.backgroundColor = '#EEEEEE'" onMouseOut = "this.style.backgroundColor = ''">
                <td width="3%"><div align="center">
                    <input name="id3" type="checkbox" id="id3" value="<%=f.f_id %>">
                </div></td>
                <td><div align="left" class="style6"> &nbsp;<img src='<%=imgPath %>'><a href="openfile.aspx?fid=<%=f.f_id %>" target="_blank" title="">
                    <%=f.f_filename%>
                    </a> <span class="style9 style3"><%=f.f_releasetime%></span> <span class="style9 style3"><%=info.Length / 10 * 0.01%>KB</span><span class="style9">
                    
                </span></div></td>
                <td width="9%"><div align="center"><%=f.f_readdegree%></div></td>
               
                <td width="5%"><div align="center">
                    
                    <a href="openfile.aspx?id=<%=f.f_id %>" target="_blank" title=""">查看</a>
                    </td>
                <td><div align="center" class="style9"><span class="style6"><a href="downfile.aspx?id=<%=f.f_id %>">下载</a></span></div></td>
                <td><div align="center"><a href="shoucang.aspx?id=<%=f.f_id %>&n=<%=f.f_filename %>">收藏</a></div></td>
                <td><div align="center"><a href="zhuanfa.aspx?id=<%=f.f_id %>">转发</a></div></td>
                <td><div align="center" class="style9">
                    
                    <img src="<%=closeImg %>" width="25" height="16"> 
                    
                </div></td>
                <td><div align="center" class="style6">
                    
                    <a href="close.aspx?id=<%=f.f_id %>"><%=close%></a>
                    
                </div></td>
                <td><div align="center" class="style6"><a href="leibie.aspx?id=<%=f.f_id %>" > 类别</a></div></td>
              </tr>
              <%
                  }
              
              %>
              
            </table>
            
          </form>
      </div></td>
    </tr>
  </table>

  <p><span class="style6">(总共 <%=adminfile.Count %>个文件)</span></p>
  <p>
    </p>
    <img src="../img/up.gif" width="17" height="12"> <a href="javascript:history.go(-1)">返 回</a>
  <table border="0" width="50%" align="center">
    <tr>
      <td width="23%" align="center">
      </td>
      <td width="31%" align="center">
      </td>
      <td width="23%" align="center">
      </td>
      <td width="23%" align="center">
      </td>
    </tr>
  </table>
  <p>&nbsp;</p>
 
</div>
</body>
</html>

⌨️ 快捷键说明

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