<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="source/admin/template/style/admin.css" rel="stylesheet" type="text/css" />
<script src="include/js/jsmain.js" type="text/javascript"></script>
<script src="include/js/form.js" type="text/javascript"></script>
<script src="include/js/admin.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() { 
    $('form').ajaxForm({ 
        target: '#a_label', 
		beforeSubmit: function() { 
			$('#output').css('display','none');
			$('#loading').append("<img src='include/js/jwcomupload/loading.gif' />");
        },
        success: function() {
			$('#loading').empty();
			$('#output').css('display','block');
            $('#a_label').fadeIn('slow'); 
        } 
    });
	$(".switchs li").click(function () { $('#output').css('display','none'); });
	$(".tid option[class='hidden']").remove();
	channels();
	$("#channel_molds").change(function(){
		channels();
	});
});
function channels(){
	$.ajax({
		url: '?c=a_label&a=channels',type: 'post',
		//async:false,
		cache: false,
		data: "molds="+$("#channel_molds").attr("value"),
		success: function(html){
			$("#channels").empty();
			$("#channels").append(html);
		}
	});
}
</script>
</head>

<body>
<div class="maintop">当前位置：<?php echo $toptxt ?></div>

<div class="main">
<ul class="switchs"><li id="s1">常用调用</li><li id="s2" class="c">其他调用</li><li id="s3" class="c">系统标签调用</li><li id="s4" class="c">帮助中心</li></ul>
<div class="info">
    <div id="infos1">
    <?php if(moldsinfo('article','isshow')==1){?>
    <form action="?c=a_label&a=output&m=article" method="post">
    <dl style="border:0"><dt><?php echo $article['moldname']; ?>：</dt>
    <dd style="padding:0;"><select name="tid" class="tid"><option value="">栏目</option><option value="">全部</option>
    <?php foreach($article_type as $v){ ?>
        <option value="<?php echo $v['tid']; ?>"<?php if($v['molds']!='article')echo ' class="hidden"' ?>><?php if($v['n']>0){echo '|';}echo str_repeat('-',$v['n']).$v['name']; ?></option>
      <?php } ?></select>
    <?php if(funsinfo('special','isshow')==1){ $specials=syDB('special')->findAll(' isshow=1 ',' orders desc ','sid,name') ?>
        <select name="sid"><option value="">专题</option><option value="">全部</option>
        <?php foreach($specials as $v){ ?>
            <option value="<?php echo $v['sid']; ?>"><?php if($v['n']>0){echo '|';}echo str_repeat('-',$v['n']).$v['name']; ?></option>
        <?php } ?></select>
    <?php } ?>  
    <select name="trait"><option value="">包含推荐</option><option value="">不指定</option>
    <?php foreach($article_trait as $v){ ?>
        <option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
      <?php } ?></select>
    <select name="notrait"><option value="">不包含推荐</option><option value="">不指定</option>
    <?php foreach($article_trait as $v){ ?>
        <option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
      <?php } ?></select>
    <select name="image"><option value="">缩略图</option><option value="">全部</option><option value="1">有</option><option value="2">无</option></select><br />
    <select name="orderby"><option value="">排序</option><option value="">默认</option>
    <option value="id|desc">ID倒序(大靠前)</option><option value="id">ID正序(小靠前)</option>
    <option value="addtime|desc">时间倒序(新靠前)</option><option value="addtime">时间正序(新靠后)</option></select>
    指定关键词：<input name="keywords" type="text" style="width:60px;" />
    调用条数：<input name="limit" type="text" value="10" style="width:30px;" />
    调用标识：<input name="as" type="text" style="width:30px;" maxlength="5" /><br />
    分页标识：<input name="page" type="text" style="width:80px;" /> 英文字符，不分页请留空，分页后条数代表每页数量
    </dd><dd style="padding:30px 0 0 30px;"><input type="submit" value="生成" class="btnmini" /></dd>
    </dl>
    </form>
    <?php }?>
    
    <?php if(moldsinfo('product','isshow')==1){?>
    <form action="?c=a_label&a=output&m=product" method="post">
    <dl><dt><?php echo $product['moldname']; ?>：</dt>
    <dd style="padding:0;"><select name="tid" class="tid"><option value="">栏目</option><option value="">全部</option>
    <?php foreach($product_type as $v){ ?>
        <option value="<?php echo $v['tid']; ?>"<?php if($v['molds']!='product')echo ' class="hidden"' ?>><?php if($v['n']>0){echo '|';}echo str_repeat('-',$v['n']).$v['name']; ?></option>
      <?php } ?></select>
    <?php if(funsinfo('special','isshow')==1){ $specials=syDB('special')->findAll(' isshow=1 ',' orders desc ','sid,name') ?>
        <select name="sid"><option value="">专题</option><option value="">全部</option>
        <?php foreach($specials as $v){ ?>
            <option value="<?php echo $v['sid']; ?>"><?php if($v['n']>0){echo '|';}echo str_repeat('-',$v['n']).$v['name']; ?></option>
        <?php } ?></select>
    <?php } ?>  
    <select name="trait"><option value="">包含推荐</option><option value="">不指定</option>
    <?php foreach($product_trait as $v){ ?>
        <option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
      <?php } ?></select>
    <select name="notrait"><option value="">不包含推荐</option><option value="">不指定</option>
    <?php foreach($product_trait as $v){ ?>
        <option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
      <?php } ?></select>
    <select name="image"><option value="">缩略图</option><option value="">全部</option><option value="1">有</option><option value="2">无</option></select><br />
    <select name="orderby"><option value="">排序</option><option value="">默认</option>
    <option value="id|desc">ID倒序(大靠前)</option><option value="id">ID正序(小靠前)</option>
    <option value="addtime|desc">时间倒序(新靠前)</option><option value="addtime">时间正序(新靠后)</option></select>
    指定关键词：<input name="keywords" type="text" style="width:60px;" />
    调用条数：<input name="limit" type="text" value="10" style="width:30px;" />
    调用标识：<input name="as" type="text" style="width:30px;" maxlength="5" /><br />
    分页标识：<input name="page" type="text" style="width:80px;" /> 英文字符，不分页请留空，分页后条数代表每页数量
    </dd><dd style="padding:30px 0 0 30px;"><input type="submit" value="生成" class="btnmini" /></dd>
    </dl>
    </form>
    <?php }?>
    
    <?php if(moldsinfo('message','isshow')==1){?>
    <form action="?c=a_label&a=output&m=message" method="post">
    <dl><dt><?php echo $message['moldname']; ?>：</dt>
    <dd style="padding:0;"><select name="tid" class="tid"><option value="">栏目</option><option value="">全部</option>
    <?php foreach($message_type as $v){ ?>
        <option value="<?php echo $v['tid']; ?>"<?php if($v['molds']!='message')echo ' class="hidden"' ?>><?php if($v['n']>0){echo '|';}echo str_repeat('-',$v['n']).$v['name']; ?></option>
      <?php } ?></select>
    <select name="isshow"><option value="1">已审</option><option value="0">未审</option><option value="">全部</option></select>
    <select name="reply"><option value="">回复</option><option value="">全部</option><option value="1">已回复</option><option value="2">未回复</option></select>
    <select name="orderby"><option value="">排序</option><option value="">默认</option>
    <option value="id|desc">ID倒序(大靠前)</option><option value="id">ID正序(小靠前)</option>
    <option value="addtime|desc">时间倒序(新靠前)</option><option value="addtime">时间正序(新靠后)</option></select>
    调用条数：<input name="limit" type="text" value="10" style="width:30px;" />
    调用标识：<input name="as" type="text" style="width:30px;" maxlength="5" /><br />
    分页标识：<input name="page" type="text" style="width:80px;" /> 英文字符，不分页请留空，分页后条数代表每页数量
    </dd><dd style="padding:15px 0 0 30px;"><input type="submit" value="生成" class="btnmini" /></dd>
    </dl>
    </form>
    <?php }?>
    
    
    <?php if($channel){?>
    <form action="?c=a_label&a=output&m=channel" method="post">
    <dl><dt>自定义频道：</dt>
    <dd style="padding:0;"><select name="molds" id="channel_molds">
    <?php foreach($channel as $v){ ?>
        <option value="<?php echo $v['molds']; ?>"><?php echo $v['moldname']; ?></option>
      <?php } ?></select>
    <span id="channels"></span><br />
    <select name="orderby"><option value="">排序</option><option value="">默认</option>
    <option value="id|desc">ID倒序(大靠前)</option><option value="id">ID正序(小靠前)</option>
    <option value="addtime|desc">时间倒序(新靠前)</option><option value="addtime">时间正序(新靠后)</option></select>
    指定关键词：<input name="keywords" type="text" style="width:60px;" />
    调用条数：<input name="limit" type="text" value="10" style="width:30px;" />
    调用标识：<input name="as" type="text" style="width:30px;" maxlength="5" /><br />
    分页标识：<input name="page" type="text" style="width:80px;" /> 英文字符，不分页请留空，分页后条数代表每页数量
    </dd><dd style="padding:30px 0 0 30px;"><input type="submit" value="生成" class="btnmini" /></dd>
    </dl>
    </form>
    <?php }?>
    
    
    </div>
    <div id="infos2" class="none">
    
    <form action="?c=a_label&a=output&m=classtypes" method="post">
    <dl><dt>栏目列表：</dt>
    <dd style="padding:0;"><select name="pid"><option value="">上级栏目</option><option value="0">全部</option>
    <?php foreach($types as $v){ ?>
        <option value="<?php echo $v['tid']; ?>"><?php if($v['n']>0){echo '|';}echo str_repeat('-',$v['n']).$v['name']; ?></option>
      <?php } ?></select>
    <select name="mshow"><option value="1">是否调用隐藏</option><option value="1">否</option><option value="">是</option></select>
    <select name="body"><option value="">是否调用介绍</option><option value="">否</option><option value="1">是</option></select>
    <select name="not"><option value="">无下级则调用同级</option><option value="">否</option><option value="1">是</option></select>
    调用标识：<input name="as" type="text" style="width:30px;" maxlength="5" /><br />
    分页标识：<input name="page" type="text" style="width:80px;" /> 英文字符，不分页请留空，分页后条数代表每页数量
    </dd><dd style="padding:15px 0 0 30px;"><input type="submit" value="生成" class="btnmini" /></dd>
    </dl>
    </form>
    
    <form action="?c=a_label&a=output&m=classinfo" method="post">
    <dl><dt>栏目信息：</dt>
    <dd style="padding:0;"><select name="tid"><option value="">栏目</option>
    <?php foreach($types as $v){ ?>
        <option value="<?php echo $v['tid']; ?>"><?php if($v['n']>0){echo '|';}echo str_repeat('-',$v['n']).$v['name']; ?></option>
      <?php } ?></select>
    <select name="body"><option value="">是否调用介绍</option><option value="">否</option><option value="1">是</option></select>
    调用标识：<input name="as" type="text" style="width:30px;" maxlength="5" />
    </dd><dd style="padding:0 0 0 30px;"><input type="submit" value="生成" class="btnmini" /></dd>
    </dl>
    </form>
    
    <?php if(funsinfo('special','isshow')==1){ $specials=syDB('special')->findAll(' isshow=1 ',' orders desc ','sid,name') ?>
    <form action="?c=a_label&a=output&m=special" method="post">
    <dl><dt>专题列表：</dt>
    <dd style="padding:0;">
    <select name="body"><option value="">是否调用介绍</option><option value="">否</option><option value="1">是</option></select>
    调用标识：<input name="as" type="text" style="width:30px;" maxlength="5" />
    </dd><dd style="padding:0 0 0 30px;"><input type="submit" value="生成" class="btnmini" /></dd>
    </dl>
    </form>
    <form action="?c=a_label&a=output&m=specialinfo" method="post">
    <dl><dt>专题信息：</dt>
    <dd style="padding:0;"><select name="sid"><option value="">专题</option>
    <?php foreach($specials as $v){ ?>
        <option value="<?php echo $v['sid']; ?>"><?php if($v['n']>0){echo '|';}echo str_repeat('-',$v['n']).$v['name']; ?></option>
      <?php } ?></select>
    <select name="body"><option value="">是否调用介绍</option><option value="">否</option><option value="1">是</option></select>
    调用标识：<input name="as" type="text" style="width:30px;" maxlength="5" />
    </dd><dd style="padding:0 0 0 30px;"><input type="submit" value="生成" class="btnmini" /></dd>
    </dl>
    </form>
    <?php } ?>
    
    <?php if(moldsinfo('message','isshow')==1){?>
    <form action="?c=a_label&a=output&m=message_form" method="post">
    <dl><dt><?php echo $message['moldname']; ?>：</dt>
    <dd style="padding:0;"><select name="tid" class="tid"><option value="">栏目</option>
    <?php foreach($message_type as $v){ ?>
        <option value="<?php echo $v['tid']; ?>"<?php if($v['molds']!='message')echo ' class="hidden"' ?>><?php if($v['n']>0){echo '|';}echo str_repeat('-',$v['n']).$v['name']; ?></option>
      <?php } ?></select>
    <input type="submit" value="生成" class="btnmini" /></dd>
    </dl>
    </form>
    <?php }?>
    
    <?php if(funsinfo('ads','isshow')==1){ $adstype=syDB('adstype')->findAll(); ?>
    <form action="?c=a_label&a=output&m=ads" method="post">
    <dl><dt>广告位：</dt>
    <dd style="padding:0;"><select name="taid"><option value="">广告位</option><option value="">全部</option>
    <?php foreach($adstype as $v){ ?>
        <option value="<?php echo $v['taid']; ?>"><?php echo $v['name']; ?></option>
      <?php } ?></select></dd>
    <dd style="padding:0;"><select name="type"><option value="">广告类型</option><option value="">全部</option>
    	<option value="1">图片</option>
          <option value="2">FLASH</option>
          <option value="3">文字</option>
          <option value="4">视频</option>
          <option value="5">自定义代码</option></select></dd>
    <dd style="padding:0;">调用条数：(留空调用全部)<input name="limit" type="text" style="width:30px;" /></dd>
    <dd style="padding:0;">调用标识：<input name="as" type="text" style="width:30px;" maxlength="5" /></dd>
    <dd style="padding:0;"><input type="submit" value="生成" class="btnmini" /></dd>
    </dl>
    </form>
    <?php } ?>
    <?php if(funsinfo('links','isshow')==1){ $linkstype=syDB('linkstype')->findAll(); ?>
    <form action="?c=a_label&a=output&m=links" method="post">
    <dl><dt>友情链接：</dt>
    <dd style="padding:0;"><select name="taid"><option value="">链接分类</option><option value="">全部</option>
    <?php foreach($linkstype as $v){ ?>
        <option value="<?php echo $v['taid']; ?>"><?php echo $v['name']; ?></option>
      <?php } ?></select></dd>
    <dd style="padding:0;"><select name="type"><option value="">广告类型</option><option value="">全部</option>
          <option value="image">图片</option>
          <option value="text">文字</option></select></dd>
    <dd style="padding:0;">调用条数：(留空调用全部)<input name="limit" type="text" style="width:30px;" /></dd>
    <dd style="padding:0;">调用标识：<input name="as" type="text" style="width:30px;" maxlength="5" /></dd>
    <dd style="padding:0;"><input type="submit" value="生成" class="btnmini" /></dd>
    </dl>
    </form>
    <?php } ?>
    <?php if(funsinfo('comment','isshow')==1){?>
    <form action="?c=a_label&a=output&m=comment" method="post">
    <dl><dt>评论：</dt>
    <dd style="padding:0;"><select name="isshow"><option value="1">已审</option><option value="0">未审</option><option value="">全部</option></select></dd>
    <dd style="padding:0;">调用条数：<input name="limit" type="text" value="10" style="width:30px;" /></dd>
    <dd style="padding:0;">调用标识：<input name="as" type="text" style="width:30px;" maxlength="5" /></dd>
    <dd style="padding:0;"><input type="submit" value="生成" class="btnmini" /></dd>
    </dl>
    </form>
    <?php } ?>
    </div>
    <div id="infos3" class="none">
    <dl><dt>站点根路径：</dt><dd><input type="text" class="int" value="{$GLOBALS['WWW']}" readonly="readonly" /></dd></dl>
    <dl><dt>模板附件路径：</dt><dd><input type="text" class="int" value="{$GLOBALS['S']['jwcdnapi']}{$GLOBALS['skin']}" readonly="readonly" /></dd><dd class="t">此路径表示系统根目录下的skin文件夹，存放模板图片、样式表、JS文件，不包括模板html文件</dd></dl>
    <dl><dt>站点网址：</dt><dd><input type="text" class="int" value="{$GLOBALS['S']['http']}" readonly="readonly" /></dd></dl>
    <dl><dt>站点名称：</dt><dd><input type="text" class="int" value="{$GLOBALS['S']['title']}" readonly="readonly" /></dd></dl>
    <dl><dt>站点关键词：</dt><dd><input type="text" class="int" value="{$GLOBALS['S']['keywords']}" readonly="readonly" /></dd></dl>
    <dl><dt>站点简介：</dt><dd><input type="text" class="int" value="{$GLOBALS['S']['description']}" readonly="readonly" /></dd></dl>
    </div>
    <div id="infos4" class="none">
    <dl><dt>查看完整帮助：</dt><dd><a href="http://www.duoce.wang" target="_blank">点击查看</a></dd></dl>
    <dl><dt>视频帮助：</dt><dd><a href="http://www.duoce.wang" target="_blank">点击查看</a></dd></dl>
    </div>

</div>
<dl id="output" class="codehelp" style="display:none; margin-top:20px;"><dt>调用标签：</dt><dd style="line-height:22px;padding:0;" id="a_label"></dd></dl>

</div>
</body>
</html>
