<!--#include file="Top.asp" -->
<!--#include file="../Inc/UpLoad_Class.asp" -->
<%
GetErrInfo=" 【您可以编辑CSS样式表,本站所有的模版都是只要改动CSS就可以达到效果,如果不明白请看帮助】"
if request("Action")="ok" then
	Server.ScriptTimeOut=5000
	DIM request2,path,files,intCount,F_FileType,formName
	set request2=new UpLoadClass
	request2.FileType="css/txt"
	request2.MaxSize=UserUpFileSize*1024
	path=CblogObj.GetUpLoadDir(Session("UserID"))&"/Template/cbs/"
	request2.SavePath=path
	request2.open()
	intCount=0
	files=request2.form("strFile1")
	F_FileType=LCase(mid(files,instr(files,".")+1))
	files=path&files
	formName=request2.FileItem(1)
	select case request2.form(formName&"_Err")
		case -1:
		case 0:
		case 1:
			Response.Write("<a href='javascript:history.go(-1);'>Error:可能您上传的文件格式不正确或文件大小超出限制!</a>")
			response.end
		case 2:
			Response.Write("<a href='javascript:history.go(-1);'>Error:可能您上传的文件格式不正确或文件大小超出限制!</a>")
			response.end
		case 3:
			Response.Write("<a href='javascript:history.go(-1);'>Error:可能您上传的文件格式不正确或文件大小超出限制!</a>")
			response.end
	end select
	CblogObj.WriteStream CblogObj.GetDir(Session("UserID")) & "/css.txt",files
	GetErrInfo=" <div class=""doen"">【操作成功提示:上传CSS成功!请进入您的博客查看效果！ 】</div>"
End IF








%>

<table width="99%" border="0" align="center" cellpadding="5" cellspacing="0">
  <tr> 
    <td height="30" bgcolor="#FFFFFF"><table width="650" border="0" align="right" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="120" class="box3"> <div align="center"><a href="Template_Help.Asp">模板帮助</a></div></td>
          <td>-</td>
          <td width="120" class="box3"> <div align="center"><a href="Template_List.Asp">选择CSS样式</a></div></td>
          <td>-</td>
          <td width="120" class="box3"> <div align="center"><a href="Template_Decides.Asp">上传我的CSS</a></div></td>
          <td>-</td>
          <td width="120" class="box3"> <div align="center"><a href="Template_CssList.Asp">我的CSS列表</a></div></td>
          <td>-</td>
          <td width="120" class="box3"> <div align="center"><a href="Template_Highlevel.Asp">自定义HTML</a></div></td>
          <td>-</td>
          <td width="160" class="box3"> <div align="center"><a href="Template_HtmlList.Asp">我的HTML列表</a></div></td>
          <td>-</td>
          <td width="160" class="box3"> <div align="center"><a href="Template_Format.Asp">恢复默认样式</a></div></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="30" bgcolor="#FFFFFF" class="h1"><img src="img/GuestBook.gif" width="23" height="21"> 
      上传我的CSS (<a href="help.htm#css" target="_blank">查看自定义CSS帮助</a> <a href="div.rar">下载本站的博客DIV结构包</a>) 
      <hr size="0"></td>
  </tr>
  <tr> 
    <td valign="top" bgcolor="#FFFFFF" class="h1"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td class="box"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="2%" valign="middle"><img src="img/3.gif" width="16" height="16"></td>
                <td width="98%" valign="middle"><%=GetErrInfo%></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td><div align="center"> 
              <form action="?Action=ok" method="post" enctype="multipart/form-data" name="input">
                <br>
                <table width="100%" border="0" cellpadding="5" cellspacing="0" class="box2">
                  <tr> 
                    <td colspan="2" class="boxx"> <div align="left"> <strong><font color="#cc0000">提醒:如果有图片，请你先上传图片，然后获得图片路径，再将CSS文件中的路径替换掉，再上传！</font></strong><br>
                      </div></td>
                  </tr>
                  <tr> 
                    <td colspan="2"><div align="center"> </div></td>
                  </tr>
                  <tr> 
                    <td width="16%"><div align="right">图片路径：</div></td>
                    <td width="84%"><input name="photo" type="text" id="photo2" size="80"></td>
                  </tr>
                  <tr> 
                    <td><div align="right"> 
                        <input name="template" type="hidden" id="link2" value="ok">
                        上传图片：</div></td>
                    <td><iframe border="0" frameBorder="0" frameSpacing="0" height="23" marginHeight="0" marginWidth="0" noResize scrolling="no" width="100%" vspale="0" src="Template_UpFile.asp"></iframe></td>
                  </tr>
                  <tr> 
                    <td> <div align="right">上传CSS文件：<br>
                      </div></td>
                    <td><input name="strFile1" type="FILE" size="30">
                      <input name="Submit" type="submit" value="上传我的CSS文件"></td>
                  </tr>
                </table>
              </form>
            </div></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr bgcolor="#0066CC" height="2"> 
    <td height="2"></td>
  </tr>
</table>
<!--#include file="Foot.asp" -->
