<%@ Page Language="VB" AutoEventWireup="false" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_OpenMyPic" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我的图片</title>
<link href="../Include/style.css" rel="stylesheet" type="text/css" />
<script type="Text/JavaScript" language="javascript">
//颜色
function TableMouseOver(Obj,strtitle){
	Obj.style.backgroundColor='#f7f7f7';
	Obj.title=strtitle;
}
function TableMouseOut(Obj){
	Obj.style.backgroundColor='#FFFFFF';
}
//选择图片函数
function setOpener(index,index_small,I_pic) {
var tmp1=1
var tmp2=2
		window.opener.Images(index,index_small,tmp1,tmp2,I_pic)
		window.close();
}
</script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style4 {LINE-HEIGHT: 150%; font-weight: bold; }
.style6 {color: #198CC3}
.style7 {color: #669933}
.style8 {color: #0066FF}
.style9 {color: #333333}
.style10 {color: #990033}
.style13 {color: #330099}
-->
</style></head>
<body>
<table style="width:750"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td style="height:31; width:262"><input type="button" name="Submit" value="查看所有图片" onclick="javascrpt:window.location='OpenMyPic.aspx'" disabled="disabled" /> 
    <!--<input type="button" name="Submit2" value="上传新图片" onclick="javascrpt:window.location='OpenMyPic_Upload.aspx'" />--> </td>
    <td style="width:320">您共上传了 <font color="#FF0000"><U><B><%=Rs.RecordCount%></b></u></font> 张图片</td>
    <td style="width:85" align="center"><table style="width:73"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td style="width:23%" align="center"><img src="../<%=AppConst.Userpath%>/images/closesmall.gif" width="12" height="12" /></td>
        <td style="width:77%" align="center"><a href="javascript:window.close();">关闭窗口</a></td>
      </tr>
    </table></td>
    <td style="width:83" align="right"><table style="width:73"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td style="width:23%" align="center"><img src="../<%=AppConst.Userpath%>/images/refresh.gif" width="12" height="12" /></td>
        <td style="width:77%" align="center"><a href="javascript:location.reload();">刷新页面</a></td>
      </tr>
    </table></td>
  </tr>
</table>
<table style="width:752"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td style="background-color:#FFFFFF; height:69" align="center" valign="top">
	<table style="background-color:#FDB17F; width:100%"  border="0" align="center" cellpadding="3" cellspacing="1">
      <tr style="background-color:#FCEDE3">
        <td style="height:24; width:46" align="center">ID号</td>
        <td style="width:62" align="center">选择</td>
        <td align="center">预览</td>
        <td style="width:82" align="center">占用空间</td>
        <td style="width:134" align="center">备注</td>
        <td style="width:143" align="center">上传时间</td>
        <td style="width:56" align="center">删除</td>
      </tr>
<%
	dim Total = 1
    Dim PicUnit,strSelect
	Do while not rs.eof and Total<=rs.pagesize
        '///求出图片状态
		Select Case Rs("P_LikeTo").Value
			Case 0:
				PicUnit="未使用"
			Case 1:
				PicUnit="<font color='#999999'>已链接到供求商机</font>"
			Case 2:
				PicUnit="<font color='#999999'>已链接到产品展厅</font>"
		End Select
%>    <tr style="background-color:#FFFFFF" onmouseover="TableMouseOver(this,'')" onmouseout="TableMouseOut(this)">
        <td style="height:27; width:46" align="center"><%=Total + (pageNum - 1) * rs.pagesize%></td>
        <td style="width:62" align="center"><a href="javascript:setOpener('<%=rs("P_FileName").Value%>','<%=rs("P_FileName_small").Value%>','<%=strnum%>')" class="style8">选择</a></td>
        <td><table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td style="width:82%"><%=Rs("P_FileName").Value%> </td>
            <td style="width:18%" align="center"><table style="background-color:#CCCCCC; height:10; width:10"  border="0" cellpadding="0" cellspacing="1">
                <tr>
                  <td style="background-color:#FFFFFF"><img src="../upload/info/<%=Rs("P_FileName_small").Value%>" width="20" height="20" onmouseover="Javascript:this.width=120;this.height=100" onmouseout="this.width=20;this.height=20" style="cursor:hand" /></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
        <td style="width:82" align="center" class="00002"><%=FormatNumber(IsNull(Rs("P_FileSize").Value, 0)/1024,2)%> KB</td>
        <td align="center" ><%=PicUnit%></td>
        <td align="center" ><%=Rs("P_FileTime").Value%></td>
        <td align="center"><%If Not IsTrue(rs("P_LikeTo")) Then%><a href="?id=<%=rs("id").Value%>action=del"><span class="style8">删 除</span></a><%Else%><font color="#AAAAAA">正在使用</font><%End If%></td>
      </tr>
      <%  rs.MoveNext() : Total = Total + 1 : Loop%>
    </table>
    <%=errmsg%>
      <table style="width:100%"  border="0" cellspacing="0" cellpadding="3">
        <tr>
          <td><%=Pagination(rs.pagecount, pageNum, rs.recordcount, rs.pagesize, "&strnum=" & strnum)%></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
