<?php
	include_once( ROOT . 'lib/fckeditor.php' );
?><meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<HTML>
<HEAD>
<TITLE> module modify </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<link href="res/css/douya.css" rel="stylesheet" type="text/css">
<script src="res/js/prototype.js"></script>
<script src="res/js/core.js"></script>
</HEAD>
<BODY style="padding:5px" class="my"><br/><p class="m">管理页面 &gt; <a href="?a=admin_share_list" class="m">共享模块管理</a> &gt; 模版设定  </p>
<form action="?a=admin_module_template_update" method="POST" name="admin_module_template_modify_form">
<div style="padding: 10px"><h3>模版设定</h3>
<br/>&gt; 可以使用的字段标记<br/><br/><div class="info_box">
<span id="tag_id" onclick="copyText('tag_id')" style="cursor:pointer">{{内容唯一编号}}</span>
<span id="tag_uid" onclick="copyText('tag_uid')" style="cursor:pointer">{{添加人唯一编号}}</span>
<span id="tag_nickname" onclick="copyText('tag_nickname')" style="cursor:pointer">{{添加人昵称}}</span>
<span id="tag_tags" onclick="copyText('tag_tags')" style="cursor:pointer">{{内容关键字}}</span>
<?php foreach( $tags as $tag ): ?>
<span id="tag_<?php echo $tag['id'] ?>" onclick="copyText('tag_<?php echo $tag['id'] ?>')" style="cursor:pointer">{{<?php echo $tag['dy_cn_name'] ?>}}</span>
<?php endforeach;?>
</div>

<br/>&gt; 可以使用的页面<br/><br/><div class="info_box">

<span id="page_index" onclick="setC('?u=<?php echo $info['dy_module_en_name'] ?>_index')" style="cursor:pointer">{{栏目首页}}</span>
<span id="page_list" onclick="setC('?u=<?php echo $info['dy_module_en_name'] ?>_list')" style="cursor:pointer">{{栏目列表页}}</span>
<span id="page_tag" onclick="setC('?u=<?php echo $info['dy_module_en_name'] ?>_tag')" style="cursor:pointer">{{栏目标签页}}</span>
<span id="page_display" onclick="setC('?u=<?php echo $info['dy_module_en_name'] ?>_display')" style="cursor:pointer">{{栏目正文页}}</span>
<span id="page_add" onclick="setC('?u=<?php echo $info['dy_module_en_name'] ?>_add')" style="cursor:pointer">{{内容添加页}}</span>
<span id="page_my" onclick="setC('?u=my_<?php echo $info['dy_module_en_name'] ?>')" style="cursor:pointer">{{个人首页}}</span>
</div>

<br/>&gt; 标题字段<br/>
<table width="100%">
<tr>
	<td width="480px">
	<input name="dy_module_template_name" onmouseover="this.focus()" type="text" value="<?php echo tmp2rtmp2(get_template_from_templates( 'name' ,  $template ) , $fields); ?>" size="40"><br/><br/>
<span class="explain">用于描述一个内容的标题字段 </span><br/><br/>
	</td>
	<td align="left" class="top">
	</td>
</tr>
</table>



<br/>&gt; 引文内容模版<br/>
<table width="100%">
<tr>
	<td width="480px">
	<?php
		$oFCKeditor = new FCKeditor('dy_module_template_item') ;
				$oFCKeditor->BasePath	= 'lib/' ;
				$oFCKeditor->ToolbarSet = 'Basic';
				$oFCKeditor->Height = '200px';
				$oFCKeditor->Value = tmp2rtmp(get_template_from_templates( 'item' ,  $template ) , $fields);
				$oFCKeditor->Create() ;
		?>
	<br/>
<span class="explain">当网站其他部分提及到这个内容时，显示的样式 </span><br/><br/>
	</td>
	<td align="left" class="top">
		<span id="dy_module_template_item_span" class="info_box"><img src="res/img/admin/template_item.png"></span>	
	</td>
</tr>
</table>

<br/>&gt; 最新内容模版<br/>
<table width="100%">
<tr>
	<td width="480px">
	<?php
		$oFCKeditor = new FCKeditor('dy_module_template_list_last') ;
				$oFCKeditor->BasePath	= 'lib/' ;
				$oFCKeditor->ToolbarSet = 'Basic';
				$oFCKeditor->Height = '200px';
				$oFCKeditor->Value = tmp2rtmp(get_template_from_templates( 'list_last' ,  $template ) , $fields);
				$oFCKeditor->Create() ;
		?>
	<br/>
<span class="explain">在首页显示最新的内容列表 </span><br/><br/>
	</td>
	<td align="left" class="top">
		<span id="dy_module_template_list_last_span" class="info_box"><img src="res/img/admin/template_list_last.png"></span>	
	</td>
</tr>
</table>
<br/>
<br/>&gt; 提要内容模版<br/>
<table width="100%">
<tr>
	<td width="480px">
	<?php
		$oFCKeditor = new FCKeditor('dy_module_template_list') ;
				$oFCKeditor->BasePath	= 'lib/' ;
				$oFCKeditor->ToolbarSet = 'Basic';
				$oFCKeditor->Height = '200px';
				$oFCKeditor->Value = tmp2rtmp(get_template_from_templates( 'list' ,  $template ) , $fields);
				$oFCKeditor->Create() ;
		?><br/>
	
<span class="explain">在列表页显示的内容提要列表 </span><br/><br/>
	</td>
	<td align="left" class="top">
		<span id="dy_module_template_list_span" class="info_box"><img src="res/img/admin/template_list.png"></span>	
	</td>
</tr>
</table>

<br/>
<br/>&gt; 详细内容模版<br/>
<table width="100%">
<tr>
	<td width="480px">
	<?php
		$oFCKeditor = new FCKeditor('dy_module_template_content') ;
				$oFCKeditor->BasePath	= 'lib/' ;
				$oFCKeditor->ToolbarSet = 'Basic';
				$oFCKeditor->Height = '200px';
				$oFCKeditor->Value = tmp2rtmp(get_template_from_templates( 'content' ,  $template ) , $fields);
				$oFCKeditor->Create() ;
		?><br/>
<span class="explain">在内容页显示的详细内容 </span><br/><br/>
	</td>
	<td align="left" class="top">
		<span id="dy_module_template_content_span" class="info_box"><img src="res/img/admin/template_content.png"></span>	
	</td>
</tr>
</table>

<br/>



<INPUT TYPE="hidden" name="id" value="<?php echo $module_id ?>">
<br/><br/><input type="submit" value="保存我的设置" class="dbutton">

</div>
</form><?php echo $vf_js; ?>
<br/>
</BODY>
</HTML>