<%@ Page CodeBehind="marklist.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.marklist" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<% @ Import Namespace="Webdisk" %>
    <script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="js/Common.js" type="text/javascript"></script>
	<script src="../js/calendar.js" type="text/javascript"></script>
		<link href="<%=xml.GetStyle()%>" type=text/css rel=stylesheet>
			<script language="javascript">
function over(obj){
obj.className=(obj.className == "GridMove" ? "GridItem" : "GridMove")
}
function getUrlParam(paramName){	
	var s=location.search;
	if(s!=null){
	var sarr=s.substr(1).split("&");
	var tarr;
	for(i=0;i<sarr.length;i++){
	tarr=sarr[i].split("=");
	if(tarr.length==2&&tarr[0].toLowerCase()==paramName){
	return tarr[1];
	}
	}
	return "";
	}
}
function gosearch()
{
	var str="";
	if ((getUrlParam('type')!=null) && (getUrlParam('type')!="")) str="&type="+getUrlParam('type');
	if ((getUrlParam('asc')!=null) && (getUrlParam('asc')!="")) str=str+"&asc="+getUrlParam('asc');
	if ((getUrlParam('page')!=null) && (getUrlParam('page')!="")) str=str+"&page="+getUrlParam('page');
	if (document.all.key.value!="") str=str+"&key="+document.all.key.value;
	if (document.all.txttime1.value!="") str=str+"&txttime1="+document.all.txttime1.value;
	if (document.all.txttime2.value!="") str=str+"&txttime2="+document.all.txttime2.value;
	if (document.all.txtsize1.value!="") str=str+"&txtsize1="+document.all.txtsize1.value;
	if (document.all.txtsize2.value!="") str=str+"&txtsize2="+document.all.txtsize2.value;
	if (document.all.txttype.value!="") str=str+"&txttype="+document.all.txttype.value;
	if (document.all.txtnote.value!="") str=str+"&txtnote="+document.all.txtnote.value;
	if (document.all.issh.value!="2") str=str+"&issh="+document.all.issh.value;
	str="?"+str.substring(1,str.length);
	window.location='marklist.aspx'+str;
}
			</script>
	</HEAD>
	<body topMargin="0">
		<form id="Form1" method="post" runat="server">
			<br>
			<TABLE cellSpacing="0" cellPadding="0" width="98%" align="center">
				<TR>
					<TD width="5" background="pics/wenbenkuan_02.gif"><IMG height="5" src="pics/wenbenkuan_01.gif" width="5"></TD>
					<TD width="874" background="pics/wenbenkuan_02.gif"><IMG height="5" src="pics/wenbenkuan_02.gif" width="5"></TD>
					<TD><IMG height="5" src="pics/wenbenkuan_03.gif" width="5"></TD>
				</TR>
				<TR>
					<TD background="pics/wenbenkuan_04.gif">&nbsp;</TD>
					<TD background="pics/wenbenkuan_05.gif" bgColor="#ffffff"><TABLE width="100%">
							<TR>
								<TD class="tabletop"><IMG height="18" src="pics/distill.gif" width="18" align="absMiddle">&nbsp;&nbsp;共享审核状态&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href="javascript:history.go(-1);"><IMG src="pics/link_back.gif" align="absMiddle" border="0"></A></TD>
							<TR class="tablebg">
								<TD>
									<div align="center"><asp:datagrid id="DataGrid" runat="server" CssClass="GridBody" AutoGenerateColumns="False" Width="100%"
											PageSize="20" AllowSorting="True">
											<AlternatingItemStyle CssClass="GridLine"></AlternatingItemStyle>
											<ItemStyle CssClass="GridItem"></ItemStyle>
											<HeaderStyle CssClass="GridHead"></HeaderStyle>
											<Columns>
												<asp:TemplateColumn HeaderText="目录">
													<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
													<HeaderTemplate>
														<%=postion%>
													</HeaderTemplate>
													<ItemTemplate>
														<%# DataBinder.Eval(Container, "DataItem.Postion") %>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="文件">
													<HeaderStyle HorizontalAlign="Center" Width="30%"></HeaderStyle>
													<HeaderTemplate>
														<%=filename%>
													</HeaderTemplate>
													<ItemTemplate>
														<%# DataBinder.Eval(Container, "DataItem.FileName") %>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="审核状态">
													<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
													<HeaderTemplate>
														<%=mark%>
													</HeaderTemplate>
													<ItemTemplate>
														<%# showsh(DataBinder.Eval(Container, "DataItem.mark").ToString()) %>
													</ItemTemplate>
												</asp:TemplateColumn>
											</Columns>
											<PagerStyle PageButtonCount="20" Mode="NumericPages"></PagerStyle>
										</asp:datagrid><webdiyer:aspnetpager id="Pager" runat="server" PageSize="20" Height="20px" LastPageText="<font face=webdings>:</font>"
											NextPageText="<font face=webdings>4</font>" PrevPageText="<font face=webdings>3</font>" FirstPageText="<font face=webdings>9</font>"
											UrlPaging="True" AlwaysShow="True" ShowCustomInfoSection="Left" NumericButtonCount="15" ShowBoxThreshold="21" HorizontalAlign="Right"></webdiyer:aspnetpager><br><div align="center">
											<p>
												<input class="btn" id="but" type="button" value="↓高级查找↓" name="but" onClick="javascript:document.getElementById('search').style.display=(document.getElementById('search').style.display=='none' ? '' : 'none');document.getElementById('but').value=(document.getElementById('but').value=='↓高级查找↓' ? '↑高级查找↑' : '↓高级查找↓');">
												<table width="50%" border="0" id="search" style="DISPLAY:none">
													<tr>
														<td><div align="right">文件名：</div>														</td>
														<td><input name="key" class="kuan" id="key" value='<%if (Request["key"]!=null) Response.Write(Request["key"].ToString());%>'>
															（可模糊输入，不填为不限，多个关键字用半角空格分隔）</td>
													</tr>
													<tr>
														<td><div align="right">更新时间：</div>														</td>
														<td><input name="txttime1" id="txttime1" value='<%if (Request["txttime1"]!=null) Response.Write(Request["txttime1"].ToString());%>' class="tableTdtext" onfocus="new Calendar().show(this)">
															－ <input name="txttime2" id="txttime2" value='<%if (Request["txttime2"]!=null) Response.Write(Request["txttime2"].ToString());%>' class="tableTdtext" onfocus="new Calendar().show(this)">（不填为不限）</td>
													</tr>
													<tr>
														<td><div align="right">文件大小：
															</div>														</td>
														<td><input name="txtsize1" class="kuan" id="txtsize1" value='<%if (Request["txtsize1"]!=null) Response.Write(Request["txtsize1"].ToString());%>'>
															KB－ <input name="txtsize2" class="kuan" id="txtsize2" value='<%if (Request["txtsize2"]!=null) Response.Write(Request["txtsize2"].ToString());%>'>
															KB（不填为不限）</td>
													</tr>
													<tr>
														<td><div align="right">文件类型：
															</div>														</td>
														<td><input name="txttype" class="kuan" id="txttype" value='<%if (Request["txttype"]!=null) Response.Write(Request["txttype"].ToString());%>'>（输入扩展名，用半角,分隔，不填为不限）</td>
													</tr>
													<tr>
														<td><div align="right">文件注释：</div>														</td>
														<td><input name="txtnote" class="kuan" id="txtnote" value='<%if (Request["txtnote"]!=null) Response.Write(Request["txtnote"].ToString());%>'>（不填为不限）</td>
													</tr>
													<tr>
													  <td><div align="right">审核状态：</div></td>
													  <td><select name="issh" id="issh">
													    <option value="2" selected>全部</option>
                                                        <option value="">未审核</option>
													    <option value="1">已审核</option>
													    <option value="0">已拒绝</option>
													    </select>
													  </td>
												  </tr>
													<tr>
														<td>&nbsp;</td>
														<td><input class="btn" id="submit2" type="button" value=" 查 找 " name="submit22" onClick="gosearch();"></td>
													</tr>
												</table>
										  </p>
										</div>
									</div>
								</TD>
							</TR>
						</TABLE>
					</TD>
					<TD width="5" background="pics/wenbenkuan_06.gif"><IMG height="5" src="pics/wenbenkuan_06.gif" width="5"></TD>
				</TR>
				<TR>
					<TD background="pics/wenbenkuan_08.gif"><IMG height="5" src="pics/wenbenkuan_07.gif" width="5"></TD>
					<TD background="pics/wenbenkuan_08.gif"><IMG height="5" src="pics/wenbenkuan_08.gif" width="5"></TD>
					<TD><IMG height="5" src="pics/wenbenkuan_09.gif" width="5"></TD>
				</TR>
			</TABLE>
			<DIV><FONT face="宋体"></FONT></DIV>
		</form>
	</body>
</HTML>
		<script>
if ((getUrlParam('key')!="") || (getUrlParam('txttime1')!="") || (getUrlParam('txttime2')!="") || (getUrlParam('txtsize1')!="") || (getUrlParam('txtsize2')!="") || (getUrlParam('txttype')!="") || (getUrlParam('txtnote')!="") || (getUrlParam('issh')!="")) document.getElementById("but").click();
if (getUrlParam('isqs')!="") document.all.isqs.value=getUrlParam('isqs');
		</script>