<!--#include file="Top.asp" -->
<!--#include file="../Inc/UpLoad_Class.asp" -->
<%
GetErrInfo="上传相关图片,然后获得图片路径，再将HTML文件中的路径替换掉!"
Dim TemplateText,TemplateText2
IF CblogObj.formrequest("up")="ok" Then
	IF Trim(CblogObj.formrequest("TemplateName"))="" OR Trim(CblogObj.formrequest("t1"))="" OR Trim(CblogObj.formrequest("t2"))="" Then
		GetErrInfo=" <div class=""err""> 【操作失败提示:主模板,副模板和模板名不能为空!】</div>"
		TemplateText=CblogObj.formrequest("t1")
		TemplateText2=CblogObj.formrequest("t2")
	Else
		CBlogObj.CreateFolder(CblogObj.GetUpLoadDir(Session("UserID"))&"/Template/" & "html"&Trim(CblogObj.formrequest("TemplateName")))
		CblogObj.WriteStream CblogObj.GetUpLoadDir(Session("UserID")) & "/Template/" & "html"&Trim(CblogObj.formrequest("TemplateName")) & "/default.html",CblogObj.formrequest("t1")
		CblogObj.WriteStream CblogObj.GetUpLoadDir(Session("UserID"))&"/Template/" & "html"&Trim(CblogObj.formrequest("TemplateName")) & "/show.html",CblogObj.formrequest("t2")
		GetErrInfo=" <div class=""doen"">【操作成功提示:保存HTML模板成功!您可以到'我的HTML列表'查看,并应用 】</div>"
	End IF
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"> 
      上传我的Html模板 (<a href="htmlrar.rar">点这里下载示例文件</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><div align="center"> 
              <form action="?Action=ok" method="post" name="input">
                <table width="100%" border="0" cellpadding="5" cellspacing="0" class="box2">
                  <tr> 
                    <td colspan="2" class="boxx"><font color="#cc0000"><strong><%=GetErrInfo%></strong></font></td>
                  </tr>
                  <tr> 
                    <td> <div align="right">图片路径：</div></td>
                    <td> <input name="photo" type="text" id="photo3" size="80"></td>
                  </tr>
                  <tr> 
                    <td> <div align="right"> 上传图片：</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 colspan="2" class="boxx"> <div align="left"> <font color="#cc0000">你可以在本地用Dreamweaver等软件编辑好HTML模板,然后将代码复制到下面,然后点保存!保存后您可以在&quot;</font>我的HTML列表<font color="#cc0000">&quot;中找到,然后选中后点应用!</font><br>
                      </div></td>
                  </tr>
                  <tr> 
                    <td width="16%"> <div align="right">主模板：<br>
                      </div></td>
                    <td width="84%"><textarea name="t1" cols="80" rows="20" id="t1"><%=TemplateText%></textarea> 
                    </td>
                  </tr>
                  <tr> 
                    <td> <div align="right">副模板：<br>
                      </div></td>
                    <td><textarea name="t2" cols="80" rows="20" id="t2"><%=TemplateText2%></textarea> 
                    </td>
                  </tr>
                  <tr> 
                    <td><div align="right">模板名称：</div></td>
                    <td><input name="TemplateName" type="text" id="TemplateName">
                      英文,如:Template001
                      <input name="up" type="hidden" id="up" value="ok"></td>
                  </tr>
                  <tr> 
                    <td colspan="2"><div align="center"> 
                        <input type="submit" name="Submit" value="确定保存(保存后可以在我的HTML列表中找到)">
                      </div></td>
                  </tr>
                  <tr> 
                    <td colspan="2" class="boxx"> <div align="left"><strong><font color="#cc0000">自定义HTML的标签说明</font></strong></div></td>
                  </tr>
                  <tr> 
                    <td colspan="2"><table border="0" align="center" cellpadding="5" cellspacing="1" class="table">
                        <tr class="box2"> 
                          <td colspan="2" bgcolor="#FFFFFF"><div align="center"><strong>通用部份</strong></div></td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"> <div align="center">#blogtitle#</div></td>
                          <td width="578" bgcolor="#FFFFFF">博客标题</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#blogname#</div></td>
                          <td bgcolor="#FFFFFF">博客名称</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#Calendar#</div></td>
                          <td bgcolor="#FFFFFF">日历</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#ByClass#</div></td>
                          <td bgcolor="#FFFFFF">日志分类及导航</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#ByMonth#</div></td>
                          <td bgcolor="#FFFFFF">归档</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#Announcement#</div></td>
                          <td bgcolor="#FFFFFF">公告</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#Aubot# </div></td>
                          <td bgcolor="#FFFFFF">自我介绍，包括头像</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#buluo#</div></td>
                          <td bgcolor="#FFFFFF">部落</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#NewReply#</div></td>
                          <td bgcolor="#FFFFFF"><p>最新回复<br>
                            </p></td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#Link#</div></td>
                          <td bgcolor="#FFFFFF">联接</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#Statistics#</div></td>
                          <td bgcolor="#FFFFFF">统计</td>
                        </tr>
                        <tr> 
                          <td colspan="2" bgcolor="#FFFFFF"><div align="center"><strong>首页及日志列表页</strong></div></td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center"><strong>#do#</strong></div></td>
                          <td bgcolor="#FFFFFF"><strong>日志循环开始，必须放在#title#的前面,要和#foot#对应</strong></td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#title#</div></td>
                          <td bgcolor="#FFFFFF">日志标题</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#wh#</div></td>
                          <td bgcolor="#FFFFFF">天气，作者，时间，出处</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#zy#</div></td>
                          <td bgcolor="#FFFFFF">日志摘要</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#foot#</div></td>
                          <td bgcolor="#FFFFFF">日志阅读数，所属分类，部落等</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center"><strong>#loop#</strong></div></td>
                          <td bgcolor="#FFFFFF"><strong>日志循环结束,必须放在最后#foot#的后面,要和#DO#对应</strong></td>
                        </tr>
                        <tr> 
                          <td colspan="2" bgcolor="#FFFFFF"><div align="center"><strong>日志显示页</strong></div></td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#ArticlesTitle#</div></td>
                          <td bgcolor="#FFFFFF">日志标题</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#wh#</div></td>
                          <td bgcolor="#FFFFFF">天气，作者，时间，出处</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#UserBlogInfo#</div></td>
                          <td bgcolor="#FFFFFF">日志内容</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#Foot#</div></td>
                          <td bgcolor="#FFFFFF">日志阅读数，所属分类，部落等</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#tag#</div></td>
                          <td bgcolor="#FFFFFF">标签</td>
                        </tr>
                        <tr> 
                          <td bgcolor="#FFFFFF"><div align="center">#comments#</div></td>
                          <td bgcolor="#FFFFFF">回复列表及回复表单</td>
                        </tr>
                        <tr> 
                          <td colspan="2" bgcolor="#FFFFFF"> <div align="center"></div></td>
                        </tr>
                      </table></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" -->
