<!--#include file="../prohead.asp"-->
  <!--#include file="../checkrole.asp"-->
 <%
 
     call checkuser("st")
	 
if issession=0 then
id=Replace_Text(request.Cookies("Yxmemberid"))
else
id=session("id")
end if

 
'取消公司图片的使用^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
isz=Replace_Text(request("isz"))
if isz="resetpic" then 
 set rspic=server.CreateObject("adodb.recordset")
sqlpic="select cimg, cimg_title from  Websen_corporation where id="&id
rspic.open sqlpic ,conn,1,3
 if not rspic.eof then
 imgurl=rspic("cimg")
 rspic("cimg")=""
 rspic("cimg_title")=""
 rspic.update
 rspic.close
 end if
 if imgurl<>"" then
  call FileDel(HOPE_InstallDir&"vipcom/"&imgurl) 
  end if
end if
if isz="resetlogo" then 
 set rspicc=server.CreateObject("adodb.recordset")
sqlpicc="select C_logo from  Websen_corporation  where id="&id
rspicc.open sqlpicc ,conn,1,3
 if not rspicc.eof then
 imgurlc=rspicc("C_logo")
 rspicc("C_logo")=""
 rspicc.update 
 rspicc.close
 end if
 if imgurlc<>"" then
  call FileDel(HOPE_InstallDir&"vipcom/"&imgurlc) 
 end if
end if
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


 sql="select C_logo,id,cimg,user,cimg_title from Websen_corporation where id="&id&""
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<br><SCRIPT language=javascript> 
<!-- Hide 
function killErrors() { 
return true; 
} 
window.onerror = killErrors; 
 // --> 
</SCRIPT> 
<TABLE width=778 border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
  <TR>
    <TD 
    style="BACKGROUND-POSITION: right 50%; BACKGROUND-IMAGE: url(i../mages/bg1.gif); BACKGROUND-REPEAT: repeat-y; BACKGROUND-COLOR: #ffffff"   vAlign=top align=middle>
      <TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
        <TBODY>
        <TR>
              <TD width="74%"><IMG height=32 src="../images/cimg_add.gif" width=576     border=0></TD>
              <TD width="26%" background="../images/info_bg.gif">&nbsp;</TD>
        </TR></TBODY></TABLE>
            <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="content_border">
              <tr>
                <td><table align="center" border=0 cellspacing=0 cellpadding=0 width="100%" style="border-collapse: collapse">
                    <tr>
                      <td height=160 align="center"><table width="100%"  border="0" cellspacing="2" cellpadding="3">
                         <form method="POST" name="form" action="cimg_save.asp?id=<%=rs("id")%>&action=cimg"  onSubmit="checkImage('cimg')">
						  <tr>
                            <td width="16%" bgcolor="EFF7FF" style="word-break:break-all"><b>公司图片与说明：</b><br>
							<font color="#0099CC">(提示：本图片用于生成的会员商铺首页的公司形象缩略图)</font>
							</td>
                           
						    <td width="84%" bgcolor="FFFFDE">
							
							<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3">
                                <tr>
                                  <td width="100%" height="100" >&nbsp;&nbsp;&nbsp;
                                    <%if rs("cimg")<>"" then %>
                                      <a href="<%=HOPE_InstallDir%>Vipcom/<%=rs("cimg")%>" target="_blank"><img src="<%=HOPE_InstallDir%>Vipcom/<%=rs("cimg")%>" onload="javascript:if(this.width>250){this.width=250;};if(this.height>250){this.height=250} " border="0"></a>
                                      <%else%>
                                      <img src="../images/no_cimg.jpg" width="221" height="164">
                                  <%end if%></td>
                                </tr>
                                <tr>
                                  <td><br>
                                    <span style="color: #4996BE">图片的说明：</span><br> 
                                  &nbsp;&nbsp;&nbsp;&nbsp;<input name="cimg_title" type="text" id="cimg_title" value="<%=rs("cimg_title")%>" size="40" maxlength="50"></td>
                                </tr>
                            </table>
							
							
					<br>
					<span style="color: #4996BE">上传图片：</span> <br>	
					&nbsp;&nbsp;&nbsp;	                                 <!----------------------------------------------------文件上传----------------------------------------------->
<%
if issession=0 then
username=Replace_Text(request.Cookies("Yxmember"))
else
username=session("user")
end if

%>					
  <iframe id="d_file" frameborder="0" src="../../inc/upload.asp?tMode=6&istwo=0&utype=guser&guser=<%=username%>" width="300" height="40" scrolling="no"></iframe>
  <!---------------------------------------------------------------------------> 
								<input  type="hidden" name="picture" value="" maxlength="50">
								<input type="hidden" name="oldpic" value="<%=rs("cimg")%>" maxlength="50">
								<br>&nbsp;&nbsp;	<input type="submit" value="我要更新公司图片及说明" name="B1" class="txt " isshowprocessbar="True" style="color: #F7F8FD ; font-weight:bold; background-color:#71A3CC"> &nbsp;&nbsp;
								<script language="javascript">
								function isokp()
								{
								  var i=confirm("你确定要取消吗？");
								  if(i)
								  {
								   return true;
								  }
								  else
								  {
								  return false;
								  }
								}
								</script>
							<a href="cimg_add.asp?isz=resetpic" onClick="return isokp();">取消使用公司图片(删除)</a></td>
                          </tr>
                      
                          <tr>
                            <td height="40" bgcolor="#DCEDFC" colspan="2"  align="center"></td>
                          </tr>
					    </form>
						
						
						
                          <form method="POST" name="form1" action="cimg_save.asp?id=<%=rs("id")%>&action=logo"   onSubmit="checkImage('cimg')"> 
						  <tr>
                            <td width="16%" bgcolor="EFF7FF"><b>公司LOGO：</b><br>
							<font color="#0099CC">(提示：本图片用于生成的会员商铺头部logo图片)</font>
							</td>
                            <td width="84%" bgcolor="FFFFDE"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3">
                                <tr>
                                  <td width="100%" height="100"><%if rs("C_logo")<>"" then %>
                                     &nbsp;&nbsp;&nbsp;  <a href="<%=HOPE_InstallDir%>Vipcom/<%=rs("C_logo")%>" target="_blank"><img src="<%=HOPE_InstallDir%>Vipcom/<%=rs("C_logo")%>"  onload="javascript:if(this.width>250){this.width=250;};if(this.height>250){this.height=250} "  border="0"></a>
                                      <%else%>
                                      <img src="../images/no_cimg.jpg" width="202" height="175">
                                    <%end if%></td>
                                </tr>
                 
                            </table>  <br> <span style="color: #4996BE">上传图片：</span><br>   &nbsp;&nbsp;&nbsp;                              <!----------------------------------------------------文件上传----------------------------------------------->
 <%
if issession=0 then
username=Replace_Text(request.Cookies("Yxmember"))
else
username=session("user")
end if

%>						
  <iframe id="d_file" frameborder="0" src="../../inc/upload.asp?tMode=7&istwo=0&utype=guser&guser=<%=username%>" width="300" height="40" scrolling="no"></iframe>
  <!---------------------------------------------------------------------------> 
								<input  type="hidden" name="picture1" value="" maxlength="100">	
								<input type="hidden" name="oldpic1" value="<%=rs("C_logo")%>" maxlength="50">
								<br>
								&nbsp;&nbsp;&nbsp;<input type="submit" value="我要更新公司LOGO" name="B1" class="txt " isshowprocessbar="True" style="color: #F7F8FD ; font-weight:bold; background-color:#71A3CC">&nbsp;&nbsp;&nbsp;&nbsp;	<a href="cimg_add.asp?isz=resetlogo" onClick="return isokp();">取消使用公司Logo图片(删除)</a></td>
                          </tr>
                          <tr>
                            
                            <td bgcolor="#DCEDFC" colspan="2"><br>
                                <br>							</td>
                          </tr>
                           
						  </form>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
            </table>
	  </TD></TR>
</TABLE>
<%
conn.close
set conn=nothing
%>