<!--#include file="conn.asp"-->
<%
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>电子商务自助建站--您理想的助手</title>
<link href="common/styleMain.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="common/JS_CheckForm.js"></script>
<script language="JavaScript">

//按比例缩小图片算法
function uploadimg(objImg){
	var imgww=objImg.width;
	var imghh=objImg.height;
	var p=480;
	if (imgww > imghh){
		imghh=parseInt(imghh*p / imgww);
		imgww=p;
	}
	
	if (imghh > imgww){
			imgww=parseInt(imgww*p/imghh);
			imghh=p;
	}
  objImg.width=imgww;
  objImg.height=imghh;
}

</script>
</head>
<body leftmargin="0" topmargin="0" onLoad="initform()">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="top">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="0" align="center">
		  <!--#include file="common/top.asp"-->
          </td>
        </tr>
        <tr> 
          <td height="100%" align="center" valign="top">
<TABLE class=table002 cellSpacing=0 cellPadding=0 border=0>
              <TBODY>
                <TR> 
                  <!--左边开始-->
                  <TD vAlign=top align=right width="20%">
					  <!--#include file="common/left.asp"-->
				  </TD>
                  <!--左边结束-->
                  <TD width="2%" background="images/rowline.gif">&nbsp;</TD>
                  <!--右边开始-->
                  <TD vAlign=top align=middle width="78%">
					<%
					strSQL="Select w_CompanyText,w_UserComText,w_Logo,w_LogoHref,w_LogoTitle,w_Company,w_Banner,id From website Where m_id=" & trim(Session("UserID"))
					rs.open strSQL,conn,1,1
					%>
					<script language="JavaScript">
						function initform(){
							CheckValue(document.form1.chkUserText,'<%=rs("w_UserComText")%>');
						}
					</script>				  
                      <TABLE width="100%" height="100%" border=0 cellPadding=0 cellSpacing=0>
                      <form action="Admin_websiteDo.asp" method="post" enctype="multipart/form-data" name="form1">
                        <TBODY>
                          <TR> 
                            <TD vAlign=top align=left bgColor=#ffffff> 
                              <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#A4B9D7">
                                <tr> 
                                  <td height="0" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td height="40"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td height="30" valign="bottom"> 
                                                <table border="0" cellspacing="0" cellpadding="0">
                                                  <tr> 
                                                    <td width="0"><IMG height=21 id=itab_0 src="images/tab_7.gif" 
            width=9></td>
                                                    <td width="100" align="center" valign="baseline" background="images/tab_b2.gif">常规属性</td>
                                                    <td width="0"><IMG height=21 id=itab_2 src="images/tab_5.gif" 
            width=9></td>
                                                    <td width="100" align="center" valign="baseline" background="images/tab_b1.gif"><a href="Admin_Website1.asp"><font color="#FFFFFF">高级属性</font></a></td>
                                                    <td width="0"><IMG height=21 id=itab_4 src="images/tab_2.gif" 
            width=9></td>
                                                    <td width="80" align="center" valign="baseline" background="images/tab_b1.gif"><a href="Admin_Website2.asp"><font color="#FFFFFF">其　它</font></a></td>
                                                    <td width="9%"><IMG height=21 id=itab_8 src="images/tab_3.gif" 
            width=9></td>
                                                  </tr>
                                                </table>
                                              </td>
                                            </tr>
                                          </table> 
                                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr> 
                                              <td height="397" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                  <tr> 
                                                    <td>&nbsp;</td>
                                                  </tr>
                                                  <tr> 
                                                    <td align="center"> <table width="85%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr> 
                                                          <td><fieldset>
                                                            <legend><strong>网站标志(Logo)</strong></legend>
                                                            <input name="action" type="hidden" id="action" value="save">
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                              <tr> 
                                                                <td width="33%" rowspan="3" align="center"><img src="home/<%=Session("UserName")%>/<%=trim(rs("w_Logo"))%>" hspace="20" vspace="15"></td>
                                                                <td width="67%" height="30"> 
                                                                  单击标志时打开链接： 
                                                                  <input name="txtLogoHref" type="text" id="txtLogoHref" value="<%=trim(rs("w_LogoHref"))%>"></td>
                                                              </tr>
                                                              <tr> 
                                                                <td height="30">鼠标放上时显示文字： 
                                                                  <input name="txtLogoTitle" type="text" id="txtLogoTitle" value="<%=trim(rs("w_LogoTitle"))%>"></td>
                                                              </tr>
                                                              <tr> 
                                                                <td height="30">上传我的标志： 
                                                                  <input name="fileLogo" type="file" id="fileLogo"></td>
                                                              </tr>
                                                            </table>
                                                            </fieldset>
                                                            &nbsp;</td>
                                                        </tr>
                                                      </table></td>
                                                  </tr>
                                                  <tr> 
                                                    <td>&nbsp;</td>
                                                  </tr>
                                                  <tr> 
                                                    <td align="center"><table width="85%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr> 
                                                          <td><fieldset>
                                                            <legend><strong>网站名称(Company)</strong></legend>
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                              <tr> 
                                                                <td width="13%" align="center"><img src="home/<%=Session("UserName")%>/<%=trim(rs("w_Company"))%>" hspace="20" vspace="15"></td>
                                                                <td width="87%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                    <tr> 
                                                                      <td height="40">网站名称： 
                                                                        <input name="txtCompany" type="text" id="txtCompany" value="<%=trim(rs("w_CompanyText"))%>" size="20"> 
                                                                      </td>
                                                                    </tr>
                                                                    <tr> 
                                                                      <td>上传网站名称图片：<br>
                                                                        &nbsp;<input name="fileCompany" type="file" id="fileCompany2" size="20"></td>
                                                                    </tr>
                                                                    <tr> 
                                                                      <td height="30"> 
                                                                        <input type="checkbox" name="chkUserText" value="1">
                                                                        只使用文字</td>
                                                                    </tr>
                                                                  </table></td>
                                                              </tr>
                                                            </table>
                                                            </fieldset>
                                                            </td>
                                                        </tr>
                                                      </table></td>
                                                  </tr>
                                                  <tr> 
                                                    <td>&nbsp;</td>
                                                  </tr>
                                                  <tr> 
                                                    <td align="center"> <table width="85%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr> 
                                                          <td><fieldset>
                                                            <legend><strong>网站广告宣传横幅(Banner)</strong></legend>
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                              <tr> 
                                                                <td align="center">
																<%
																if Lcase(Right(trim(rs("w_Banner")),4))=".swf" then
																%>
															  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="480">
																<param name="movie" value="home/<%=Session("UserName")%>/<%=trim(rs("w_Banner"))%>">
																<param name="quality" value="high">
																<embed src="home/<%=Session("UserName")%>/<%=trim(rs("w_Banner"))%>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480"></embed>
															  </object>
																<%else%>
																<img src="home/<%=Session("UserName")%>/<%=trim(rs("w_Banner"))%>" width="480" id="Banner">
																<%end if%>
																</td>
                                                              </tr>
                                                              <tr> 
                                                                <td height="40" align="center"> 
                                                                  上传广告宣传横幅： 
                                                                  <input name="fileBanner" type="file" id="fileLogo3">
                                                                  [标准尺寸<font color="#FF0000">468*60</font>] 
                                                                </td>
                                                              </tr>
                                                            </table>
                                                            </fieldset>
                                                            &nbsp;</td>
                                                        </tr>
                                                      </table></td>
                                                  </tr>
                                                  <tr> 
                                                    <td height="40" align="center"> 
                                                      <input type="submit" name="Submit" value=" 保存设置 ">
                                                      <input type=button value=" 应用 " name=Submit3 onClick="window.open('AppSetting.asp?c=1')" >
                                                      <input type="reset" name="Submit2" value=" 取消 ">
                                                      <input type="button" name="Submit22" value=" 上一步 " onClick="location='Admin_SetMenu.asp'">
                                                      <input type="button" name="Submit222" value=" 下一步 " onClick="location='Admin_website1.asp'"></td>
                                                  </tr>
                                                </table></td>
                                            </tr>
                                          </table></td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table> 
                            </TD>
                          </TR>
                        </TBODY>
                    </form>
                      </TABLE>
					</TD>
                </TR>
              </TBODY>
            </TABLE></td>
        </tr>
        <tr> 
          <td height="0" align="center"> 
            <!--#include file="common/bottom.asp"-->
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
