<%@ Page Inherits="Caicai.Framework.UI.Common.Upload" %>
<!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">
<style type="text/css">
body,td, input {font:12px tahoma; margin:5px; padding:0;}
table {border:1px solid #ddd; width:100%; margin-bottom:8px;}
thead {background:#09c; color:#fff; }
thead td {font-weight:bold;}
tbody {background:#f1f1f1;}
td {padding:5px;}
td span {font:11px tahoma;}
img {border:0;}
</style>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript">
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('c.f.i=d(o){2 6=j.h.g();2 5;3(6&&6.9("?")){2 b=6.a("?");2 4=b[1];3(4&&4.9("&")){2 e=4.a("&");c.p(e,d(l,7){3(7&&7.9("=")){2 8=7.a("=");3(o){3(m(o)=="n"&&o==8[0]){5=8[1]==r?\'\':8[1]}}q{5=4}}})}}k 5}',28,28,'||var|if|parms|tmp|url|val|parmarr|indexOf|split|arr|jQuery|function|parmList|fn|toString|location|urlget|window|return|key|typeof|string||each|else|null'.split('|'),0,{}))

$(function()
{
	$(".close").click(function()
	{
		//window.opener.document.getElementById(\"" + $().urlget("id") + "\").value='" + $(this).text() + "';
		window.opener.document.getElementById($().urlget("id")).value= "<%=Caicai.Framework.Utils.CAppSettings.ConfigGet("FileUpload.Path")%>" + $().urlget("uploadname") +  $(this).text();
		window.close();
		return false;
	})
})
</script>
<head runat="server">
    <title><%= Caicai.Framework.Common.Language.Get("Upload") %></title>
</head>
<body>
<form id="form1" runat="server">
<table border="1" align="center" cellPadding="0" cellSpacing="0" borderColor="white" class="table">
<thead>
<tr>
	<td align="center"><%= Caicai.Framework.Common.Language.Get("Upload") %></td>
</tr>
<thead>
<tbody>
<tr>
	<td align="center">
		<asp:FileUpload ID="FU_Upload" runat="server" />
		<asp:Button id="BT_Upload" runat="server" onclick="BT_Upload_Click"></asp:button></td>
</tr>
</tbody>
</table>
<asp:Panel ID="PanelFile" runat="server">
<table border="1" align="center" cellPadding="0" cellSpacing="0" borderColor="white" class="table">
<thead>
<tr>
	<td>文件名</td>
	<td style="width:105px">创建时间</td>
</tr>
<thead>
<tbody>
<asp:Repeater ID="RepeaterFile" runat="server">
<ItemTemplate>
<tr>
	<td><a href="<%=Caicai.Framework.Utils.CAppSettings.SitePath%><%=Caicai.Framework.Utils.CAppSettings.ConfigGet("FileUpload.Path")%><%=Caicai.Framework.Utils.CFetch.Get("UploadName")%><%# Eval("Name") %>" target="_blank">●</a><a href="#" class="close"><%# Eval("Name") %></a></td>
	<td><span><%# Eval("LastWriteTime")%></span></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</tbody>
</table>
</asp:Panel>
</form>
</body>
</html>
