<%@ Page CodeBehind="sharesee.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.sharesee" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<% @ Import Namespace="Webdisk" %>
		<link href="<%=xml.GetStyle()%>" type=text/css rel=stylesheet>
<script type="text/javascript" src="js/calendar.js"></script>
			<script language="javascript">
   var CalendarWebControl = new atCalendarControl();
			</script>
			<script language="javascript">
function checkAll()
{
   var a = document.getElementsByTagName("input");
   var check = document.getElementById("chkSelect");
   for (var i=0; i<a.length; i++)
   {
      if (a[i].type == "checkbox" && a[i].name=="checkbox") a[i].click();
   }
}
function AddRemoveValues(oChk) { 
if(oChk.checked)
Form1.HdnSelectedValues.value += "`" + oChk.value; 
else
Form1.HdnSelectedValues.value = Form1.HdnSelectedValues.value.replace("`" + oChk.value,""); 
}
function over(obj){
obj.className=(obj.className == "GridMove" ? "GridItem" : "GridMove")
}
			</script>
</SCRIPT>
  </HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体"></FONT><FONT face=宋体></FONT><FONT 
face=宋体></FONT>
			<br>
			<div align="center">
				<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 class="tablebg" background="pics/wenbenkuan_05.gif">
							<TABLE width="100%">
								<TR>
									<TD class="tabletop" width="100%"><img src="pics/filesys.gif" width="16" height="16" align="absMiddle"> 我的共享&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1);"><img src="pics/link_back.gif" border="0" align="absMiddle"></a>
</TD>
								</TR>
								<TR class="tablebg">
									<TD>
										<div align="center"><asp:datagrid id="DataGrid" runat="server" CssClass="GridBody" AllowSorting="True" PageSize="20"
												Width="100%" AutoGenerateColumns="False">
												<AlternatingItemStyle CssClass="GridLine"></AlternatingItemStyle>
												<ItemStyle CssClass="GridItem"></ItemStyle>
												<HeaderStyle CssClass="GridHead"></HeaderStyle>
												<Columns>
													<asp:TemplateColumn HeaderText="选择">
														<HeaderStyle HorizontalAlign="Center" Width="3%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<HeaderTemplate>
															<INPUT type="checkbox" id="CheckBox2" onClick="checkAll()">
														</HeaderTemplate>
														<ItemTemplate>
															<INPUT id=chkSelect onclick=AddRemoveValues(this) type=checkbox value='<%# DataBinder.Eval(Container, "DataItem.Postion").ToString()+DataBinder.Eval(Container, "DataItem.DirName").ToString()+DataBinder.Eval(Container, "DataItem.FileName").ToString() %>' name=checkbox>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:BoundColumn Visible="False" DataField="Postion"></asp:BoundColumn>
													<asp:BoundColumn Visible="False" DataField="dirname"></asp:BoundColumn>
													<asp:BoundColumn Visible="False" DataField="filename" HeaderText="filename"></asp:BoundColumn>
													<asp:TemplateColumn SortExpression="postion" HeaderText="共享目录和文件">
														<ItemTemplate>
															<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Postion").ToString()+DataBinder.Eval(Container, "DataItem.DirName").ToString()+DataBinder.Eval(Container, "DataItem.FileName").ToString() %>'>
															</asp:Label>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn SortExpression="share" HeaderText="共享类型">
														<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Label runat="server" Text='<%# showtype(DataBinder.Eval(Container, "DataItem.Share").ToString()) %>'>
															</asp:Label>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn SortExpression="OpenPass" HeaderText="密码">
														<HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Label runat="server" Text='<%# showpass(DataBinder.Eval(Container, "DataItem.OpenPass").ToString()) %>'>
															</asp:Label>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn SortExpression="addfile" HeaderText="可添加">
														<HeaderStyle HorizontalAlign="Center" Width="7%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Label runat="server" Text='<%# show(DataBinder.Eval(Container, "DataItem.AddFile").ToString()) %>'>
															</asp:Label>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn SortExpression="editfile" HeaderText="可修改">
														<HeaderStyle HorizontalAlign="Center" Width="7%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Label runat="server" Text='<%# show(DataBinder.Eval(Container, "DataItem.EditFile").ToString()) %>'>
															</asp:Label>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn SortExpression="delfile" HeaderText="可删除">
														<HeaderStyle HorizontalAlign="Center" Width="7%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Label runat="server" Text='<%# show(DataBinder.Eval(Container, "DataItem.DelFile").ToString()) %>'>
															</asp:Label>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn SortExpression="UserTop" HeaderText="外部固顶">
														<HeaderStyle HorizontalAlign="Center" Width="7%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Label runat="server" Text='<%# show(DataBinder.Eval(Container, "DataItem.UserTop").ToString()) %>'>
															</asp:Label>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn SortExpression="UserGood" HeaderText="外部精华">
														<HeaderStyle HorizontalAlign="Center" Width="7%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Label runat="server" Text='<%# show(DataBinder.Eval(Container, "DataItem.UserGood").ToString()) %>'>
															</asp:Label>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:ButtonColumn Text="编辑" HeaderText="编辑" CommandName="Edit">
														<HeaderStyle HorizontalAlign="Center" Width="7%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:ButtonColumn>
													<asp:ButtonColumn Text="取消" HeaderText="取消" CommandName="Delete">
														<HeaderStyle HorizontalAlign="Center" Width="7%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:ButtonColumn>
												</Columns>
												<PagerStyle Visible="False" PageButtonCount="20" Mode="NumericPages"></PagerStyle>
											</asp:datagrid><webdiyer:aspnetpager id="Pager" runat="server" PageSize="20" ShowBoxThreshold="21" NumericButtonCount="15"
												ShowCustomInfoSection="Left" AlwaysShow="True" HorizontalAlign="Right" FirstPageText="<font face=webdings>9</font>" PrevPageText="<font face=webdings>3</font>" NextPageText="<font face=webdings>4</font>" LastPageText="<font face=webdings>:</font>" Height="20px" onpagechanged="Pager_PageChanged"></webdiyer:aspnetpager><br>
											<SPAN class="px14"><INPUT class="btn" id="Submit1" type="button" value="编辑选中" name="Submit1" runat="server" onserverclick="Submit1_ServerClick"> 
            &nbsp;&nbsp; <INPUT class="btn" id="Button3" type="button" value="取消选中" name="Button3" runat="server" onserverclick="Button3_ServerClick">&nbsp;&nbsp; 
<INPUT class="btn" id="top" type="button" value="设置固顶" name="Button3" runat="server" onserverclick="top_ServerClick">&nbsp;&nbsp; 
<INPUT class="btn" id="untop" type="button" value="取消固顶" name="Button3" runat="server" onserverclick="untop_ServerClick">&nbsp;&nbsp; 
<INPUT class="btn" id="good" type="button" value="设置精华" name="Button3" runat="server" onserverclick="good_ServerClick">&nbsp;&nbsp; 
<INPUT class="btn" id="ungood" type="button" value="取消精华" name="Button3" runat="server" onserverclick="ungood_ServerClick"> 
            <INPUT id="HdnSelectedValues" type="hidden" name="HdnSelectedValues" runat="server"> &nbsp; </SPAN>
											<P></P>
										</div><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="100%" border="0" id="search" align="center" style="DISPLAY:none" >
													<tr>
														<td width="32%"><div align="right"><%=lstr%>名：</div>														</td>
												  <td width="68%"><input name="key" class="kuan" id="key" runat="server">
															（可模糊输入，不填为不限，多个关键字用半角空格分隔）</td>
												  </tr>
													<tr>
														<td><div align="right">更新时间：</div>														</td>
														<td><input name="txttime1" class="kuan" id="txttime1" onfocus=CalendarWebControl.show(this,this.value); runat="server">
															－ <input name="txttime2" class="kuan" id="txttime2" onfocus=CalendarWebControl.show(this,this.value); runat="server">（不填为不限）</td>													</tr>
													<tr id="show1" runat="server">
														<td><div align="right">文件大小：
															</div>														</td>
														<td><input name="txtsize1" class="kuan" id="txtsize1" runat="server">
															KB－ <input name="txtsize2" class="kuan" id="txtsize2" runat="server">
															KB（不填为不限）</td>
													</tr>
													<tr id="show2" runat="server">
														<td><div align="right">文件类型：
															</div>														</td>
														<td><input name="txttype" class="kuan" id="txttype" runat="server">（输入扩展名，用半角,分隔，不填为不限）</td>
													</tr>
													<tr>
														<td><div align="right"><%=lstr%>注释：</div>														</td>
														<td><input name="txtnote" class="kuan" id="txtnote" runat="server">（不填为不限）</td>
													</tr>
													<tr id="show3" runat="server">
													  <td><div align="right">上传用户：</div></td>
													  <td><input name="txtuploaduser" class="kuan" id="txtuploaduser" runat="server">（不填为不限）
													  </td>
												  </tr>
													<tr>
														<td>&nbsp;</td>
														<td><input class="btn" id="submit2" type="button" value=" 查 找 " name="submit22" runat="server" onserverclick="submit2_ServerClick"></td>
													</tr>
												</table>
										  </p>
										</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>
		</form>
	</body>
</HTML>
