<!--{if(Get("style")==string.Empty)}-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=Property.bbsName%>
		</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link href="<%=CurrentSkinPath%>style.css" rel="stylesheet" type="text/css" />
		<script src="templates/<%=CurrentTemplateName%>/scripts/common.js"></script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form method="post" ID="Form1">
			<input type="hidden" id="newstyle" name="newstyle" value="newstyle" />
			<table class="user_nav_topic" style="font-size:12px;padding-right:5px;padding-top: 5px; text-align: left; "
				width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr id="user_nav" align="center">
					<td colspan="2" width="25%" align="center">附件名</td>
					<td width="45%" align="center">所在主题</td>
					<td width="10%">大小</td>
					<td width="5%" align="center">下载</td>
					<td width="15%" align="center">上传时间</td>
				</tr>
				<!-- <%
		//System.Data.DataTable dt = list.Tables.Count>0?list.Tables[0]:new System.Data.DataTable();
		//int	c = dt.Rows.Count, _i01=0;
		int c = Attachs.Length, _i01=0;
		string[] attachTypeIcons = new string[] {"topic_hasimg", "topic_hasrar", "topic_haszip", "topic_hasdoc", "topic_hasswf"};
			for(;_i01<Attachs.Length;_i01++)   //(;_i01<dt.Rows.Count;_i01++) 
			{
				string s = (Convert.ToDouble(Attachs[_i01].F_FileSize) / (double)1024).ToString("f1") + " kb";
				string attachname = "", topictitle ="";
				tpl_StringBuilder.Append("<tr align=\"center\">");
				tpl_StringBuilder.Append("<td width=\"5%\" class=\"tdcolor\">");
				if (user.Power == 1 || user.Power == 2)
				{
					tpl_StringBuilder.Append("<input type='checkbox' id='attachid' name='attachid' class='checkbox' value='" + Attachs[_i01].f_id + "' />");
				}
				else 
				{
					tpl_StringBuilder.Append("-");
				}
				attachname = Left(Attachs[_i01].F_Viewname, 24);
				if (Attachs[_i01].isdelete.ToString().ToUpper() == "NULL") // == null)   // is DBNull)
				{
					attachname = "<a target=\"_blank\" href=\"attach.aspx?attachid=" + Attachs[_i01].f_id+"\">" + attachname + "</a>";
					topictitle = "<div class=\"t3\">-- 该附件未随帖子一起发表 --</div>";
				}
				else 
				{
					if ((bool)Attachs[_i01].isdelete)
					{
						topictitle = "<div class=\"t3\">-- 该主题已被删除 --</div>";
					}
					else 
					{
						attachname = "<a target=\"_blank\" href=\"attach.aspx?attachid=" + Attachs[_i01].f_id+"\">" + attachname + "</a>";
	
						topictitle = Left(Attachs[_i01].title, 46);
						topictitle = "<a target=\"_blank\" href=\"topic.aspx?topicid=" + Attachs[_i01].topicid+"\">"+ topictitle +"</a>";
					}
				}
				tpl_StringBuilder.Append("</td>"); 
				tpl_StringBuilder.Append("<td width=\"20%\" align=\"left\">");				
				tpl_StringBuilder.Append("<img src=\"templates/" + Fetch.CurrentTemplateName +"/images/posts/" + attachTypeIcons[(int)Attachs[_i01].F_FileType-1] + ".gif\"");
				tpl_StringBuilder.Append("> <a href=\"");
				tpl_StringBuilder.Append("attach.aspx?attachid=" + Attachs[_i01].f_id );
				tpl_StringBuilder.Append("\" target=\"_blank\">");
				tpl_StringBuilder.Append(attachname);
				tpl_StringBuilder.Append("</a><td align=\"left\" class=\"tdcolor\"><a href=");
				//tpl_StringBuilder.Append("attach_list.aspx?uploader=");
				
				tpl_StringBuilder.Append("attach_list.aspx?uploader="+Attachs[_i01].F_Username.ToString());
				
				//tpl_StringBuilder.Append(Attachs[_i01].F_Username.ToString());
				tpl_StringBuilder.Append(">");
				tpl_StringBuilder.Append(topictitle);
				tpl_StringBuilder.Append("</a></td>");
			
				tpl_StringBuilder.Append("<td align=\"left\">");
				tpl_StringBuilder.Append(s);
				tpl_StringBuilder.Append("</td>");
				tpl_StringBuilder.Append("<td>");
				tpl_StringBuilder.Append(Attachs[_i01].F_DownNum.ToString());
				tpl_StringBuilder.Append("</td>");
				tpl_StringBuilder.Append("<td class=\"tdcolor row_no small\">");
				tpl_StringBuilder.Append(((DateTime)Attachs[_i01].F_Addtime).ToString("g"));
				tpl_StringBuilder.Append("</td></tr>");
			}

			if(_i01 == 0)
			{
				tpl_StringBuilder.Append("<tr id=\"norecord\"><td colspan=\"7\" height=\"40\" class=\"row_no\" align=\"center\">没有搜索到符合条件的记录</td></tr>");
			}
		%> -->
				<tr id="operaterow" runat="server">
					<td align="center"><input name="checkall" id="checkall" type="checkbox" class="checkbox" onclick="chkAll()" /></td>
					<td colspan="6" class="row_no">
						删除所有选中的记录 &nbsp; <input type="submit" class="button_off" onFocus="IEvent('focus',this)"	onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"
							onclick="return confirm('将要删除选中的记录和对应附件文件，确定吗？')" value="删 除" ID="Submit1" NAME="Submit1" />
						&nbsp;
						<Dvbbs:Span id="result" class="t2" runat="server" />
					</td>
				</tr>
				<tr id="pagerrow">
					<td colspan="7" class="row_no"><!--#include file="_temppager.htm"--></td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
<!--{else}-->
<!--#include file="_header.html" -->
<br />
<div class="mainbox">
	<div class="menu">
		<font color="#333">论坛附件集列表</font>
	</div>
	<table class="mainbox tableborder" cellspacing="0" cellpadding="0">
		<tr>
			<td align="left"><%=attachstatistic%></td>
			<form method="get" ID="Form2">
			<td align="right" nowrap="nowrap">
					上传者: <input type="text" id="uploader" name="uploader" maxlength="12" style="width:80px;" title="需精确匹配" value="<%=Request["uploader"]%>" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this);" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
					&nbsp;
					<select id="BoardJumpList" name="BoardJumpList">
						<option selected="true" value="">|--所有版面</option>
						<!--#include file="_board_jump_list.html"-->
					</select>
					<select id="filter" name="filter" style="width:100px">
						<option value="all" <!-- <% if(filter=="all")tpl_StringBuilder.Append("selected");%> -->>所有类型</option>
						<option value="image" <!-- <% if(filter=="image")tpl_StringBuilder.Append("selected");%> -->>图片类</option>
						<option value="nonimage" <!-- <% if(filter=="nonimage")tpl_StringBuilder.Append("selected");%> -->>非图片类</option>
					</select> 
					<select name="column" id="column" style="width:100px">
						<option value="uploadtime" <!-- <% if(column=="uploadtime")tpl_StringBuilder.Append("selected");%> -->>按上传时间</option>
						<option value="downs" <!-- <% if(column=="downs")tpl_StringBuilder.Append("selected");%> -->>按被下载次数</option>
						<option value="attachsize" <!-- <% if(column=="attachsize")tpl_StringBuilder.Append("selected");%> -->>按附件大小</option>
					</select>
					<select id="sort" name="sort" style="width:60px">
						<option value="desc" <!-- <% if(sort=="desc")tpl_StringBuilder.Append("selected");%> -->>倒序</option>
						<option value="asc" <!-- <% if(sort=="asc")tpl_StringBuilder.Append("selected");%> -->>顺序</option>
					</select>
					<input type="hidden" name="style" value="new_style" id="style" /> <input type="submit" value="筛 选" ID="Submit2" NAME="Submit2" class="button_off" onFocus="IEvent('focus',this)"	onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
			</td>
			</form>
		</tr>
	</table>
	<form method="post" ID="Form3">
		<table class="mainbox tableborder" cellspacing="0" cellpadding="0">
			<tr id="user_nav" style="border-top:0px;background:#F3F6FA;">
				<td colspan="2" width="20%" align="center">附件名</td>
				<td>所在主题</td>
				<td width="8%">上传者</td>
				<td width="7%">附件大小</td>
				<td width="7%">下载次数</td>
				<td width="12%" class="row_no">上传时间</td>
			</tr>
			<!-- <%
		//System.Data.DataTable dt = list.Tables.Count>0?list.Tables[0]:new System.Data.DataTable();
		//int	c = dt.Rows.Count, _i01=0;
		int c = Attachs.Length, _i01=0;
		string[] attachTypeIcons = new string[] {"topic_hasimg", "topic_hasrar", "topic_haszip", "topic_hasdoc", "topic_hasswf"};
			for(;_i01<Attachs.Length;_i01++)   //(;_i01<dt.Rows.Count;_i01++) 
			{
				string s = (Convert.ToDouble(Attachs[_i01].F_FileSize) / (double)1024).ToString("f1") + " kb";
				string attachname = "", topictitle ="";
				tpl_StringBuilder.Append("<tr align=\"center\">");
				tpl_StringBuilder.Append("<td width=\"5%\"class=\"tdcolor\">");
				if (user.Power == 1 || user.Power == 2)
				{
					tpl_StringBuilder.Append("<input type='checkbox' id='attachid' name='attachid' class='checkbox' value='" + Attachs[_i01].f_id + "' />");
				}
				else 
				{
					tpl_StringBuilder.Append("-");
				}
				attachname = Left(Attachs[_i01].F_Viewname, 24);
				if (Attachs[_i01].isdelete.ToString().ToUpper() == "NULL") // == null)   // is DBNull)
				{
					attachname = "<a href=\""+ "attach.aspx?attachid=" + Attachs[_i01].f_id + "\">" + attachname + "</a>";
					topictitle = "<div class=\"t3\">-- 该附件未随帖子一起发表 --</div>";
				}
				else 
				{
					if ((bool)Attachs[_i01].isdelete)
					{
						topictitle = "<div class=\"t3\">-- 该主题已被删除 --</div>";
					}
					else 
					{
						attachname = "<a href=\"" + "attach.aspx?attachid=" + Attachs[_i01].f_id + "\">" + attachname + "</a>";
						topictitle = Left(Attachs[_i01].title, 46);
						topictitle = "<a href=\"" + Rewrite("topic.aspx?topicid=" + Attachs[_i01].topicid, "topic-" + Attachs[_i01].topicid + Extension, Attachs[_i01].boardid.ToString() + "/t" + Attachs[_i01].topicid.ToString()) +"\">"+ topictitle +"</a>";
					}
				}
				tpl_StringBuilder.Append("</td>");
				tpl_StringBuilder.Append("<td width=\"15%\" align=\"left\">");

				tpl_StringBuilder.Append("<img src=\"templates/" + Fetch.CurrentTemplateName +"/images/posts/" + attachTypeIcons[(int)Attachs[_i01].F_FileType-1] + ".gif\"");
				tpl_StringBuilder.Append("> <a href=\"");
				tpl_StringBuilder.Append("attach.aspx?attachid=" + Attachs[_i01].f_id);
				tpl_StringBuilder.Append("\" target=\"_blank\">");
				tpl_StringBuilder.Append(attachname);
				tpl_StringBuilder.Append("</a><td align=\"left\" class=\"tdcolor\"><a href=");
				//tpl_StringBuilder.Append("attach_list.aspx?uploader=");
				
				tpl_StringBuilder.Append("attach_list.aspx?uploader="+Attachs[_i01].F_Username.ToString());
				
				//tpl_StringBuilder.Append(Attachs[_i01].F_Username.ToString());
				tpl_StringBuilder.Append(">");
				tpl_StringBuilder.Append(topictitle);
				tpl_StringBuilder.Append("</a></td>");
				tpl_StringBuilder.Append("<td><div class=\"rowa\"><a href=\"");
				tpl_StringBuilder.Append(Rewrite("user_info.aspx?userid=" + Attachs[_i01].uploaderid.ToString(), "user_info-" + Attachs[_i01].uploaderid.ToString() + Extension, "user_info/m" + Attachs[_i01].uploaderid.ToString()));
				tpl_StringBuilder.Append("\">");
				tpl_StringBuilder.Append(Attachs[_i01].F_Username.ToString());
				tpl_StringBuilder.Append("</a></div></td>");
				tpl_StringBuilder.Append("<td class=\"tdcolor small\">");
				tpl_StringBuilder.Append(s);
				tpl_StringBuilder.Append("</td>");
				tpl_StringBuilder.Append("<td>");
				tpl_StringBuilder.Append(Attachs[_i01].F_DownNum.ToString());
				tpl_StringBuilder.Append("</td>");
				tpl_StringBuilder.Append("<td class=\"tdcolor row_no small\">");
				tpl_StringBuilder.Append(((DateTime)Attachs[_i01].F_Addtime).ToString("g"));
				tpl_StringBuilder.Append("</td></tr>");
	
			}

			if(_i01 == 0){
				tpl_StringBuilder.Append("<tr id=\"norecord\"><td colspan=\"7\" height=\"40\" class=\"row_no\" align=\"center\">没有搜索到符合条件的记录，点击这里<a href=\"javascript:history.back()\">返回前页</a>。</td></tr>");
			}
		%> -->
			<tr id="operaterow" runat="server">
				<td align="center"><input name="checkall" id="Checkbox1" type="checkbox" class="checkbox" onclick="chkAll()" /></td>
				<td colspan="6">
					删除所有选中的记录 &nbsp; <input type="submit" onclick="return confirm('将要删除选中的记录和对应附件文件，确定吗？')" value="删 除"
						ID="Submit3" NAME="Submit3" class="button_off" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" /> &nbsp;
					<Dvbbs:Span id="result" class="t2" runat="server" />
				</td>
			</tr>
			<tr id="pagerrow">
				<td colspan="7" class="row_no"><!--#include file="_temppager.htm"--></td>
			</tr>
		</table>
	</form>
	<script>
		var dvbid = document.getElementById("BoardJumpList");
		var dvl = dvbid.length;
		for(var i = 0; i < dvl;i++)
		{
			if(dvbid.options[i].value=='<%=BoardJumpList%>')
			{
				dvbid.options[i].selected=true;
				break;
			}
		}
	</script>
</div>
<!--#include file="_footer.html" -->
<!--{endif}-->