<!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>{-:@ADDON_FIELD-}</strong></dt>
	<dd>
		<div class="tabCntnt">
			<table class="formTable">
				<tr>
					<td class="inputTitle">{-:@ID-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						{-:$_MMI['member_model_id']-}<input type="hidden" value="{-:$_MMI['member_model_id']-}" name="member_model_id">
					</td>
					<td class="inputTip">
						{-:@MEMBER_MODEL_ID_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@NAME-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<input class="required i" type="text" value="{-:$_MMI['mm_name']-}" name="mm_name" maxlength="64" size="30">
					</td>
					<td class="inputTip">
						<span class="fc_r">*</span> {-:@MM_NAME_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@ALIAS-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						{-:$_MMI['mm_alias']-}
					</td>
					<td class="inputTip">
						<span class="fc_r">*</span> {-:@MM_ALIAS_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@ADDON_TABLE-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						{-:$_MMI['mm_addon_table']-}
					</td>
					<td class="inputTip">
						<span class="fc_r">*</span> {-:@MM_ADDON_TABLE_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@MODEL_TYPE-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
					{-if:0 == $_MMI['mm_type']-}{-:@SYSTEM-}{-elseif:1 == $_MMI['mm_type']-}{-:@CUSTOM-}{-:/if-}
					</td>
					<td class="inputTip">
					{-if:0 == $_MMI['mm_type']-}
						<span class="fc_r">{-:@MM_TYPE_SYSTEM_TIP-}</span>
					{-else:-}
						{-:@MM_TYPE_TIP-}
					{-:/if-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@STATUS-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<label><input type="radio" name="mm_status" {-if:1 == $_MMI['mm_status']-} checked="checked"{-:/if-} value="1"> {-:@ON-}</label>
						<label><input type="radio" name="mm_status" {-if:0 == $_MMI['mm_status']-} checked="checked"{-:/if-} value="0"> {-:@OFF-}</label>
					</td>
					<td class="inputTip">
						<span class="fc_r">*</span> {-:@MM_STATUS_TIP-}
					</td>
				</tr>
				<tr>
					<td class="inputTitle">{-:@DESCRIPTION-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<textarea class="i" style="width:360px;height:60px;" name="mm_description">{-:$_MMI['mm_description']-}</textarea>
					</td>
					<td class="inputTip">
						{-:@MM_DESCRIPTION_TIP-}
					</td>
				</tr>
			</table>
		</div>
		<div class="tabCntnt">
			<div id="operation">
				<a class="btn_l" href="{-url:member_model/add_model_field?member_model_id={$_MMI['member_model_id']}-}">{-:@ADD-}{-:@FIELD-}</a>
			</div>
			<table class="listTable">
				<tr>
					<th scope="col">{-:@FIELD_NAME-}</th>
					<th scope="col">{-:@NAME-}</th>
					<th scope="col">{-:@DATA_TYPE-}</th>
					<th scope="col">{-:@FORM_TYPE-}</th>
					<th scope="col">{-:@MANAGE-}</th>
				</tr>
				{-foreach:$_MMI['mm_field'],$k,$v-}
				<tr>
					<td>{-:$k-}</td>
					<td>{-:$v['f_item_name']-}</td>
					<td>{-:@FILED_{$v['f_type']}-}</td>
					<td>{-if:1 == $v['f_is_auto']-}{-:@AUTO_FIELD-}{-else:-}{-:@FIXED_FIELD-}{-:/if-}</td>
					<td><a href="{-url:member_model/edit_model_field?member_model_id={$_MMI['member_model_id']}&f_name={$k}-}">{-:@EDIT-}</a> | <a href="{-url:member_model/delete_model_field_do?member_model_id={$_MMI['member_model_id']}&f_name={$k}-}" onclick="javascript:return delete_confirm();" >{-:@DELETE-}</a></td>
				</tr>
				{-:/foreach-}
			</table>
			<table class="formTable">
				<tr>
					<td class="inputTitle">{-:@MM_FIELDSET-}</td>
					<td class=""></td>
				</tr>
				<tr>
					<td class="inputArea">
						<textarea class="i" name="mm_fieldset" style="width:480px;height:120px;">{-:$_MMI['mm_fieldset']-}</textarea>
					</td>
					<td class="inputTip">
						<span class="fc_r">*</span> {-:@MM_FIELDSET_TIP-}
					</td>
				</tr>
			</table>
		</div>
	</dd>
</dl><!--/.atab-->
<div id="operation">
	<span class="btn_b submit" action="{-url:member_model/edit_model_do-}" to="#formEdit">{-:@SUBMIT-}</span>
	<a class="btn_l" href="{-url:member_model/list_model-}">{-:@BACK-}</a>
</div>
</form>
<script type="text/javascript" src="{-:*__PUBLIC__-}/js/jquery.js"></script>
<script type="text/javascript" src="{-:*__THEME__-}/admin/js/c.js"></script>
</body>
</html>