<%@ Page Language="VB" AutoEventWireup="false" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.user_User_products_photo" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/style.css" rel="stylesheet" type="text/css" />
<title>我上传的所有图片</title>
<script type="Text/JavaScript" language="javascript">
function TableMouseClick(Url){
	window.location=Url;
}
function TableMouseOverB(Obj,strtitle){
	Obj.style.backgroundColor='#f7f7f7';
	Obj.title=strtitle;
}
function TableMouseOutB(Obj){
	Obj.style.backgroundColor='';
}
//提示信息
function Working(URL,Msg){
	if(confirm(Msg)){
		window.location=URL;
	}
}
</script>
<script type="Text/JavaScript" language="javascript">
//反选ＩＤ复选框
function selectAllCheckBox(obj)
{
	if(obj.length)
	{
		for(var i=0;i<obj.length;i++)
		{
			obj[i].checked=!obj[i].checked
		}
	}else{
		
		obj.checked=!obj.checked
	}
}
//提交表单
function WorkSubmit(send){
	if(confirm("您确定要进行您现在的操作吗？")){
		ListNews.action="User_products_photo.aspx?send="+send+"";
		ListNews.submit();
		}
}
</script>
</head>
<body>
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table style="width:700" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td style="width:100" rowspan="2"><div align="center"><a href="user_company_modi.aspx"><img src="images/soft_all.gif" width="50" height="48" border="0" /></a></div>
              <div align="center"><strong>公司介绍</strong></div></td>
        <td style="width:100"><div align="center"><a href="user_info_list.aspx"><img src="images/j_resume_modify.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="user_info_add.aspx"><img src="images/j_position_supply.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="User_products_list.aspx"><img src="images/photo_all.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="User_products_add.aspx"><img src="images/photo_add.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="User_products_Class.aspx"><img src="images/photo_cam.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="User_products_AddClass.aspx"><img src="images/photo_up.gif" width="50" height="48" border="0" /></a></div></td>
      </tr>
      <tr>
        <td style="width:100"><div align="center"><strong>我的商机</strong></div></td>
        <td style="width:100"><div align="center"><strong></strong><strong>发布商机</strong></div></td>
        <td style="width:100"><div align="center"><strong>我的产品</strong></div></td>
        <td style="width:100"><div align="center"><strong>添加产品</strong></div></td>
        <td style="width:100"><div align="center"><strong>产品分类</strong></div></td>
        <td style="width:100"><div align="center"><strong>添加分类</strong></div></td>
      </tr>
    </table></td>
  </tr>
</table>
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table style="width:100%; height:24" cellspacing="0" cellpadding="0"  border="0">
  <tr>
    <td style="background-color:#FFF1EB; height:24; width:142" align="center" valign="bottom" class="TDBG1"><strong><span #invalid_attr_id="none"><strong>我 的 图 片</strong></span></strong></td>
    <td class="bottom"><div align="right"><span class="note"> 已储存图片( <strong><font color="#FF0000"><U><B><%=Rs.RecordCount%></b></u></font>个 </strong>) 注意：图片删除后不可恢复</span></div></td>
  </tr>
</table>
<table style="width:100%"  border="0" cellpadding="0" cellspacing="0" class="topnone">
  <tr>
    <td style="background-color:#FFFFFF"><table style="width:100%; height:50" bordercolor="#FFF1EB" cellspacing="0" cellpadding="4" align="center" border="6">
      <tr><form name="ListNews" method="post" onsubmit="return check();">
        <td style="height:50" valign="middle" bordercolor="#EDD6CA" class="0008">
          
            <table style="width:100%"  border="0" align="center" cellpadding="3" cellspacing="1">
              <tr style="background-color:#F6F6F6">
                <td style="height:24; width:41" align="center">ID号</td>
                <td align="center">预览</td>
                <td style="width:62" align="center">占用空间</td>
                <td style="width:120" align="center">备注</td>
                <td style="width:80" align="center">上传时间</td>
                <td style="width:60" align="center">删除</td>
              </tr>
              <%If Rs.EOF Then%><center><font color='#FF0000'>您的图库还没有图片！</font></center><%End If %>
<%
	dim Total = 0
    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">
                <td style="height:27; width:41" align="center"><%=(Total + 1) + (IsNull(Request("page"), 1) - 1) * Rs.PageSize%></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"><%if rs("P_Uptype").Value=0 then%>
                              <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" />
                              <%else%>
                              <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" />
                              <%end if%></td>
                          </tr>
                      </table></td>
                    </tr>
                </table></td>
                <td style="width:62" align="center" class="00002"><%=FormatNumber(Rs("P_FileSize").Value/1024,2)%> KB</td>
                <td style="width:120" align="center"><%=PicUnit%></td>
                <td style="width:80" align="center"><%=Year(Rs("P_FileTime").Value) & "-" & Month(Rs("P_FileTime").Value) & "-" & Day(Rs("P_FileTime").Value)%></td>
                <td style="width:60" align="center"><%If IsTrue(rs("P_LikeTo")) Then%><font color="#AAAAAA">正在使用</font><%Else%><input type="checkbox" name="id" value="<%=rs("id").Value%>" class="box1"><%End If%></td>
              </tr>
      <%  rs.MoveNext() : Total = Total + 1 : Loop%>
              <tr style="background-color:#FFFFFF">
                <td style="height:27" colspan="6" align="center"><input type="button" name="Submit222" value="反选" onclick="selectAllCheckBox(ListNews.id)" />
                    <input type="button" name="Submit23" value="撤底删除" onclick="WorkSubmit('TotallyDel')" /></td>
              </tr>
            </table>
          <table style="width:100%"  border="0" cellspacing="0" cellpadding="3">
            <tr>
              <td><%=Pagination(rs.pagecount,IsNull(Request("page"),1),rs.recordcount,rs.pagesize,"")%></td>
            </tr>
          </table></td>
      </form></tr>
    </table></td>
  </tr>
</table>
</body>
<%Page_Loaded()%>
</html>
