<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="{-:*__THEME__-}/admin/css/c.css" />
<link rel="stylesheet" type="text/css" href="{-:*__THEME__-}/admin/css/mf.css" />
</head>
<body>
<form id="formEdit" action="" method="post">
<dl class="atab">
	<dt><strong>{-:@GENERAL-}</strong><strong>{-:@ADVANCED-}</strong><strong>{-:@CONTENT-}</strong></dt>
	<dd>
		<div class="tabCntnt">
			<table class="formTable">
				<tr>
					<td class="inputTitle">{-:@NAME-}</td>
					<td class="inputTitle">{-:@MODEL-}</td>
				</tr>
				<tr>
					<td class="inputArea">
						<input class="required i" type="text" value="{-:$_ACI['ac_name']-}" name="ac_name" maxlength="64" size="30"> <span class="fc_r">*</span>
					</td>
					<td class="inputArea">
						{-:$_ACI['am_name']-} | {-:$_ACI['am_alias']-} <span class="fc_r">*</span> <span class="fc_gry">{-:@ARCHIVE_MODEL_TIP-}</span>
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@PARENT_CHANNEL-}</td>
					<td class="inputTitle">{-:@DISPLAY_ORDER-}</td>
				</tr>
				<tr>
					<td class="inputArea">
						<select name="ac_parent_id">
							<option value="0"{-if:0==$_ACI['ac_parent_id']-} selected="selected"{-:/if-}>{-:@TOP_CHANNEL-}</option>
							{-:$_ACLStr-}
						</select>
					</td>
					<td class="inputTip">
						<input class="required i" type="text" value="{-:$_ACI['ac_display_order']-}" name="ac_display_order" maxlength="10" size="6"> <span class="fc_r">*</span> {-:@AC_DISPLAY_ORDER_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@CHANNEL_TYPE-}</td>
					<td></td>
				</tr>
				<tr>
					<td class="inputArea">
						<label><input type="radio" value="1" name="ac_type"{-if:1==$_ACI['ac_type']-} checked="checked"{-:/if-}> {-:@CHANNEL_COVER-}</label>
						<label><input type="radio" value="2" name="ac_type"{-if:2==$_ACI['ac_type']-} checked="checked"{-:/if-}> {-:@CHANNEL_LIST-}</label>
					</td>
					<td class="inputTip">
						<span class="fc_r">*</span> {-:@AC_TYPE_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@AC_TPL_INDEX-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<input class="required i" type="text" value="{-:$_ACI['ac_tpl_index']-}" name="ac_tpl_index" maxlength="255" size="30">
					</td>
					<td class="inputTip">
						<span class="fc_r">*</span> {-:@AC_TPL_INDEX_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@AC_TPL_LIST-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<input class="required i" type="text" value="{-:$_ACI['ac_tpl_list']-}" name="ac_tpl_list" maxlength="255" size="30">
					</td>
					<td class="inputTip">
						<span class="fc_r">*</span> {-:@AC_TPL_LIST_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@AC_TPL_ARCHIVE-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<input class="required i" type="text" value="{-:$_ACI['ac_tpl_archive']-}" name="ac_tpl_archive" maxlength="255" size="30">
					</td>
					<td class="inputTip">
						<span class="fc_r">*</span> {-:@AC_TPL_ARCHIVE_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@PAGE_SIZE-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<input class="required i" type="text" value="{-:$_ACI['ac_page_size']-}" name="ac_page_size" maxlength="10" size="6">
					</td>
					<td class="inputTip">
						<span class="fc_r">*</span> {-:@AC_PAGE_SIZE_TIP-}
					</td>
				</tr>
				{-if:0==$_ACI['ac_parent_id']-}<tr>
					<td class="inputTitle">{-:@UPDATE_SUB-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<input type="checkbox" value="1" name="update_sub"> {-:@UPDATE-}
					</td>
					<td class="inputTip">
						{-:@UPDATE_SUB_TIP-}
					</td>
				</tr>{-:/if-}
			</table>
		</div>
		<div class="tabCntnt">
			<table class="formTable">
				<tr>
					<td class="inputTitle">{-:@AC_VIEW_ML_RANK-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<select name="ac_view_ml_rank">
							<option value="-1"{-if:-1==$_ACI['ac_view_ml_rank']-} selected="selected"{-:/if-}>{-:@CLOSE_ALL-}</option>
							<option value="0"{-if:0==$_ACI['ac_view_ml_rank']-} selected="selected"{-:/if-}>{-:@OPEN_ALL-}</option>
						{-foreach:$_MLL,$l-}
							<option value="{-:$l['ml_rank']-}"{-if:$l['ml_rank']==$_ACI['ac_view_ml_rank']-} selected="selected"{-:/if-}>{-:$l['ml_name']-}</option>
						{-:/foreach-}
						</select>
					</td>
					<td class="inputTip">
						<span class="fc_r">*</span> {-:@AC_VIEW_ML_RANK_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@AC_ADD_ML_RANK-}</td>
					<td class="inputTitle">{-:@PASS-}{-:@SWITCH-}</td>
				</tr>
				<tr>
					<td class="inputArea">
						<label>
							<select name="ac_add_ml_rank">
								<option value="-1"{-if:-1==$_ACI['ac_add_ml_rank']-} selected="selected"{-:/if-}>{-:@CLOSE_ALL-}</option>
								<option value="0"{-if:0==$_ACI['ac_add_ml_rank']-} selected="selected"{-:/if-}>{-:@OPEN_ALL-}</option>
							{-foreach:$_MLL,$l-}
								<option value="{-:$l['ml_rank']-}"{-if:$l['ml_rank']==$_ACI['ac_add_ml_rank']-} selected="selected"{-:/if-}>{-:$l['ml_name']-}</option>
							{-:/foreach-}
							</select>
							<span class="fc_r">*</span> <span class="fc_gry">{-:@AC_ADD_ML_RANK_TIP-}</span>
						</label>
					</td>
					<td class="inputArea">
						<label><input type="radio" value="0" name="ac_pass_switch"{-if:0==$_ACI['ac_pass_switch']-} checked="checked"{-:/if-}> {-:@OFF-}</label>
						<label><input type="radio" value="1" name="ac_pass_switch"{-if:1==$_ACI['ac_pass_switch']-} checked="checked"{-:/if-}> {-:@ON-}</label>
						<span class="fc_r">*</span> <span class="fc_gry">{-:@AC_PASS_SWITCH_TIP-}</span>
					</td>
				</tr>
				<tr>
					<td class="inputTitle">HTML{-:@SWITCH-}</td>
					<td class="inputTitle">{-:@REVIEW-}{-:@SWITCH-}</td>
				</tr>
				<tr>
					<td class="inputArea">
						<label><input type="radio" value="0" name="ac_is_html"{-if:0==$_ACI['ac_is_html']-} checked="checked"{-:/if-}> {-:@NOT_HTML-}</label>
						<label><input type="radio" value="1" name="ac_is_html"{-if:1==$_ACI['ac_is_html']-} checked="checked"{-:/if-}> {-:@IS_HTML-}</label>
					</td>
					<td class="inputArea">
						<label><input type="radio" value="0" name="ac_review_switch"{-if:0==$_ACI['ac_review_switch']-} checked="checked"{-:/if-}> {-:@OFF-}</label>
						<label><input type="radio" value="1" name="ac_review_switch"{-if:1==$_ACI['ac_review_switch']-} checked="checked"{-:/if-}> {-:@ON-}</label>
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@AC_HTML_DIR-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td colspan="2" class="inputArea">
						<input class="i" type="text" value="{-:$_ACI['ac_html_dir']-}" name="ac_html_dir" maxlength="255" size="40">
						<span class="fc_gry">{-:@AC_HTML_DIR_TIP-}</span>
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@AC_HTML_INDEX-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<input class="i" type="text" value="{-:$_ACI['ac_html_index']-}" name="ac_html_index" maxlength="255" size="30">
					</td>
					<td class="inputTip">
						{-:@AC_HTML_INDEX_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@AC_HTML_NAMING_LIST-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<input class="i" type="text" value="{-:$_ACI['ac_html_naming_list']-}" name="ac_html_naming_list" maxlength="255" size="30">
					</td>
					<td class="inputTip">
						{-:@AC_HTML_NAMING_LIST_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@AC_HTML_NAMING_ARCHIVE-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<input class="i" type="text" value="{-:$_ACI['ac_html_naming_archive']-}" name="ac_html_naming_archive" maxlength="255" size="30">
					</td>
					<td class="inputTip">
						{-:@AC_HTML_NAMING_ARCHIVE_TIP-}
					</td>
				</tr>
			</table>
		</div>
		<div class="tabCntnt">
			<table class="formTable">
				<tr>
					<td class="inputTitle">{-:@CONTENT-} <span class="fc_gry">{-:@AC_CONTENT_TIP-}</span></td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea" colspan="2">
						<textarea class="editor" name="ac_content" style="width:98%;height:180px;">{-:$_ACI['ac_content']|htmlspecialchars~@me-}</textarea>
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@KEYWORDS-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<textarea class="i" name="ac_keywords" style="width:360px;height:40px;">{-:$_ACI['ac_keywords']-}</textarea>
					</td>
					<td class="inputTip">
						{-:@AC_KEYWORDS_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@DESCRIPTION-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<textarea class="i" name="ac_description" style="width:360px;height:60px;">{-:$_ACI['ac_description']-}</textarea>
					</td>
					<td class="inputTip">
						{-:@AC_DESCRIPTION_TIP-}
					</td>
				</tr>
			</table>
		</div>
	</dd>
</dl><!--/.atab-->
<div id="operation">
	<input type="hidden" value="{-:$_ACI['archive_channel_id']-}" name="archive_channel_id">
	<input type="hidden" value="{-:$_ACI['archive_model_id']-}" name="archive_model_id">
	<span class="btn_b submit" action="{-url:archive_channel/edit_channel_do-}" to="#formEdit">{-:@SUBMIT-}</span>
	<a class="btn_l" href="{-url:archive_channel/list_channel-}">{-:@BACK-}</a>
</div>
</form>
<script type="text/javascript" src="{-:*__PUBLIC__-}/js/jquery.js"></script>
<script type="text/javascript" src="{-:*__PUBLIC__-}/js/editor/ckeditor.js"></script>
<script type="text/javascript" src="{-:*__PUBLIC__-}/js/editor/adapters/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	var editor_option = {
		filebrowserImageUploadUrl : '{-url:upload/upload_file?type_set=image&upload_type=channel&return_type=editor-}',
		filebrowserUploadUrl : '{-url:upload/upload_file?type_set=all&upload_type=channel&return_type=editor-}'
	};
	$('.editor').ckeditor(editor_option);
});
</script>
<script type="text/javascript" src="{-:*__THEME__-}/admin/js/c.js"></script>
</body>
</html>