<!--#include file="../../Inc/Cls_Main.Asp"-->
<!--#include file="../inc/Cls_Admin.Asp"-->
<!--#include file="../inc/Cls_MapPath.Asp"-->
<!--#include file="../inc/Cls_InType.Asp"-->
<!--#include file="../Admin_Check.Asp"-->
<%
Dim CmsAdmin, ToUrl
ToUrl = CmsFun.LoadToUrl()
'=============================================================================
Set CmsAdmin = New Cls_Admin
CmsAdmin.SetAdminTitle = CmsSiteName
CmsAdmin.SetBodyCssName = "mainbody"
CmsAdmin.SetAdminPath = CmsAdminMapPath
CmsAdmin.LoadHead()
'=============================================================================
Dim Action
'=============================================================================
Action = Easp.Get("action")
Select Case Action
    Case "pageload"
        Call PageLoad()
    Case "px"
        Call Px()
    Case "delall"
        Call DelAll()
    Case Else
        Call PageLoad()
End Select
CmsAdmin.LoadFooter()
Set CmsAdmin = Nothing

Sub PageLoad()
%>
<script>
function CreateLable() {
    var TempLable = '';
    TempLable += '{zjjcms:link';
    if ($('#ClassId').val() != 0) {
        TempLable += ' ClassId="' + $('#ClassId').val() + '"';
    }
    if ($('#num').val() != 0) {
        TempLable += ' num="' + $('#num').val() + '"';
    }
    TempLable += '}\n';
    if ($('#HtmlCode').val() != '') {
        TempLable += $('#HtmlCode').val() + '\n';
    } else {
        TempLable += '这里填写您循环代码\n';
    }
    TempLable += '{/zjjcms:link}';
    $('#Content').val(TempLable);
}
</script>
<div class="navigation"><a href="Admin.Tag.Asp" class="back">标签向导</a> 控制面板 &gt; 标签向导 &gt; 友情链接标签生成</div>
<div id="contentTab">
  <div class="content-tab">
    <ul class="tab_nav">
      <li><a onclick="tabs(this);" class="selected" href="javascript:void(0);">标签生成</a></li>
    </ul>
  </div>
  <div class="tab_con" style="display: block;">
    <table class="form_table">
      <col width="230px">
        </col>
      
      <tbody>
        <tr>
          <th> 调用类型： </th>
          <td><%=GetLinkType(0,"")%></td>
        </tr>
        <tr>
          <th> 调用条数： </th>
          <td><input type="text" class="txtInput w100" name="num" id="num" maxlength="5" value="10" onfocus="ChkNumEric(this)" autocomplete="off" />
            <label> 为空或0则显示10条</label></td>
        </tr>
        <tr>
          <th> 循环体内可调用字段： </th>
          <td><textarea name="FieldList" id="FieldList" class="w550"><%=SelectTableField(TablePrefix & "Link")%></textarea></td>
        </tr>
        <tr>
          <th> 字段可支持属性： </th>
          <td>datetime,len,return</td>
        </tr>
        <tr>
          <th> 循环体内Html标签： </th>
          <td><textarea name="HtmlCode" id="HtmlCode" class="w550">这里填写您循环代码</textarea></td>
        </tr>
        <tr>
          <th> 生成标签结果： </th>
          <td><textarea name="Content" id="Content" class="w550"></textarea></td>
        </tr>
        <tr>
          <th> </th>
          <td><input type="button" value="生成标签" class="btnSubmit" onclick="CreateLable();" />
            &nbsp;
            <input name="重置" type="reset" class="btnSubmit" value="重 置" /></td>
        </tr>
      </tbody>
    </table>
  </div>
</div>
<%
End Sub
%>
