<!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 content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>{%$lngpack.sitename%}</title>
<meta name="keywords" content="{%$lngpack.keyword%}" />
<meta name="description" content="{%$lngpack.description%}" />
<script type="text/javascript" src="{%$rootdir%}js/jquery.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/basicrun.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/jquery.Slide.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/menuthree.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/treeviewcookie.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_dialog.js"></script>
<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_formvalidation.js"></script>

<link href="{%$rootpath%}css/espcms_three.css" rel="stylesheet" type="text/css" />
<link href="{%$rootpath%}css/espcms_public.css" rel="stylesheet" type="text/css" />
<link href="{%$rootpath%}css/espcms_v5div.css" rel="stylesheet" type="text/css" />
<link href="{%$rootpath%}css/espcms_page.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	$(window).load(function() {
		$("#clickmenubotton li span").hover(function() {
			$(this).addClass("menuhover");
			$(this).parent().find("ul.subnav").slideDown('fast').show();
			$(this).parent().hover(function() {
			}, function() {
				$(this).parent().find("ul.subnav").fadeOut('fast');
				$(this).parent().find("span").removeClass("menuhover");
			});
		});
		$("#three").treeview({collapsed: true, control: "#sidetreecontrol", prerendered: false, persist: "location"});
		$("#{%$type_read.formcode%}").espcms_formvalidation();
		$('.dialog_link').espcms_dig();
	});
</script>
</head>

<body>
{%link file="public/head.html"%}
{%if $type_read.pic!=''%}
<div class="espcms_page_bannpic"><img src="{%$rootdir%}{%$type_read.pic%}" alt="{%$type_read.formgroupname%}"/></div>
{%/if%}

<div class="espcms_page espcms_page_left_linkbg">
	<div class="espcms_page_left">
		{%get name=typelist class=utid:3%}
		<h2>{%$uptypeview.typename%}</h2>
		<ul id="three" class="treeview">
			{%forlist from=$array key=i%}
			<li{%if count( $array[i].childArray ) <= 0%} class="onefast"{%/if%}>
				<a href="{%$array[i].link%}" {%if $array[i].selected==1 %}class="hover"{%/if%} title="{%$array[i].typename%}">{%$array[i].typename%}</a>
				{%if count( $array[i].childArray ) > 0 %}
				<ul>
					{%forlist from=$array[i].childArray key=ii%}
					<li class="treeone">
						<a href="{%$array[i].childArray[ii].link%}" {%if $array[i].childArray[ii].selected==1 %}class="hover"{%/if%}  title="{%$array[i].childArray[ii].typename%}">{%$array[i].childArray[ii].typename%}</a>
						{%if count( $array[i].childArray[ii].childArray ) > 0 %}
							<ul>
								{%forlist from=$array[i].childArray[ii].childArray key=iii%}
								<li class="treetow">
									<a href="{%$array[i].childArray[ii].childArray[iii].link%}" {%if $array[i].childArray[ii].childArray[iii].selected==1 %}class="hover"{%/if%} title="{%$array[i].childArray[ii].childArray[iii].typename%}">{%$array[i].childArray[ii].childArray[iii].typename%}</a>
									{%if count( $array[i].childArray[ii].childArray[iii].childArray ) > 0 %}
										<ul>
											{%forlist from=$array[i].childArray[ii].childArray[iii].childArray key=iiii%}
											<li class="treefour">
												<a href="{%$array[i].childArray[ii].childArray[iii].childArray[iiii].link%}" {%if $array[i].childArray[ii].childArray[iii].childArray[iiii].selected==1 %}class="hover"{%/if%} title="{%$array[i].childArray[ii].childArray[iii].childArray[iiii].typename%}">{%$array[i].childArray[ii].childArray[iii].childArray[iiii].typename%}</a>
												{%if count( $array[i].childArray[ii].childArray[iii].childArray[iiii].childArray ) > 0 %}
													<ul>
														{%forlist from=$array[i].childArray[ii].childArray[iii].childArray[iiii].childArray key=iiiii%}
														<li class="treefive"><a href="{%$array[i].childArray[ii].childArray[iii].childArray[iiii].childArray[iiiii].link%}" {%if $array[i].childArray[ii].childArray[iii].childArray[iiii].childArray[iiiii].selected==1 %}class="hover"{%/if%} title="{%$array[i].childArray[ii].childArray[iii].childArray[iiii].childArray[iiiii].typename%}">{%$array[i].childArray[ii].childArray[iii].childArray[iiii].childArray[iiiii].typename%}</a></li>
														{%/forlist%}
													</ul>
												{%/if%}
											</li>
											{%/forlist%}
										</ul>
									{%/if%}
								</li>
								{%/forlist%}
							</ul>
						{%/if%}
					</li>
					{%/forlist%}
				</ul>
				{%/if%}
			</li>
			{%/forlist%}
		</ul>
		{%/get%}
	</div>
	<div class="espcms_page_right">
		<div class="espcms_page_typename">{%$type_read.formgroupname%}</div>
		<div class="espcms_page_location">您现在的位置：<a href="{%$homelink%}">首页</a> » <b>{%$type_read.formgroupname%}</b></div>
		<div class="espcms_page_right_line"></div>

		<div class="espcms_book">
			<form name="{%$type_read.formcode%}" id="{%$type_read.formcode%}" method="post" action="{%$formlink.save%}">
			<input type="hidden" name="tokenname" value="{%$tokenkey.token_name%}"/>
			<input type="hidden" name="tokenkey" value="{%$tokenkey.token_key%}"/>
			<input type="hidden" name="fgid" id="fgid" value="{%$type_read.fgid%}"/>
			<input type="hidden" name="formcode" id="formcode" value="{%$type_read.formcode%}"/>
				{%if count($att_array) > 0%}
					{%forlist from=$att_array key=i%}
						{%if $att_array[i].inputtype=='string' || $att_array[i].inputtype=='int' || $att_array[i].inputtype=='float' || $att_array[i].inputtype=='decimal'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="control_label16">{%$att_array[i].typename%}</label>
							<div class="control_required20">
								<input type="text" name="{%$att_array[i].attrname%}" class="infoInput" id="{%$att_array[i].attrname%}" placeholder="{%$att_array[i].typeremark%}" title="{%$att_array[i].typeremark%}" {%if $att_array[i].isvalidate==1%} data-validation="{%$att_array[i].validatetext%}"{%/if%} data-validation-msg="{%$att_array[i].validate_str%}" />
							</div>
						</div>
						{%/if%}
						{%if $att_array[i].inputtype=='text' || $att_array[i].inputtype=='htmltext'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="control_label16">{%$att_array[i].typename%}</label>
							<div class="control_required20">
								<textarea name="{%$att_array[i].attrname%}" class="infoInput" style="width:100%;height:{%$att_array[i].attrrow%}px" id="{%$att_array[i].attrname%}" placeholder="{%$att_array[i].typeremark%}" title="{%$att_array[i].typeremark%}" {%if $att_array[i].isvalidate==1%} data-validation="{%$att_array[i].validatetext%}"{%/if%} data-validation-msg="{%$att_array[i].validate_str%}"></textarea>
							</div>
						</div>
						{%/if%}
						{%if $att_array[i].inputtype=='addon' || $att_array[i].inputtype=='img'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="control_label16">{%$att_array[i].typename%}</label>
							<div class="control_required20">
								<div class="input-group">
									<input type="text" name="{%$att_array[i].attrname%}" class="infoInput" id="{%$att_array[i].attrname%}" placeholder="{%$att_array[i].typeremark%}" title="{%$att_array[i].typeremark%}" data-display-type="top" {%if $att_array[i].isvalidate==1%} data-validation="{%$att_array[i].validatetext%}"{%/if%} data-validation-msg="{%$att_array[i].validate_str%}" />
									<span class="input-group-btn">
										<a data-w="500px" data-h="300px" data-url="{%$att_array[i].uploadlink%}" data-title="上传文件" class="btn btn-green dialog_link">上传文件</a>
									</span>
								</div>
							</div>
						</div>
						{%/if%}
						{%if $att_array[i].inputtype=='datetime' || $att_array[i].inputtype=='date'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="control_label16">{%$att_array[i].typename%}</label>
							<div class="control_required20">
								<input type="text" name="{%$att_array[i].attrname%}" class="infoInput {%$att_array[i].inputtype%}" id="{%$att_array[i].attrname%}" placeholder="{%$att_array[i].typeremark%}" title="{%$att_array[i].typeremark%}" {%if $att_array[i].isvalidate==1%} data-validation="{%$att_array[i].validatetext%}"{%/if%} data-validation-msg="{%$att_array[i].validate_str%}"/>
							</div>
						</div>
						{%/if%}
						{%if $att_array[i].inputtype=='select'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="control_label16">{%$att_array[i].typename%}</label>
							<div class="control_required20">
								<select class="selectpicker infoInput" name="{%$att_array[i].attrname%}" id="{%$att_array[i].attrname%}" data-size="8" {%if $att_array[i].isvalidate==1%}data-validation="{%$att_array[i].validatetext%}"{%/if%} data-validation-msg="{%$att_array[i].validate_str%}" title="{%pack:public_pack-espcms_select_title%}{%$att_array[i].typename%}">
									{%forlist from=$att_array[i].attrvalue key=ii%}
									<option value="{%$att_array[i].attrvalue[ii].name%}" {%$att_array[i].attrvalue[ii].selected%}>{%$att_array[i].attrvalue[ii].name%}</option>
									{%/forlist%}
								</select>
							</div>
						</div>
						{%/if%}
						{%if $att_array[i].inputtype=='radio'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="control_label16">{%$att_array[i].typename%}</label>
							<div class="control_required20 pt6">
								{%forlist from=$att_array[i].attrvalue key=ii%}
								<input type="radio" name="{%$att_array[i].attrname%}" value="{%$att_array[i].attrvalue[ii].name%}" {%if $att_array[i].attrvalue[ii].selected=='selected'%}checked{%/if%}/><span class="pr10">{%$att_array[i].attrvalue[ii].name%}</span>
								{%/forlist%}
							</div>
						</div>
						{%/if%}
						{%if $att_array[i].inputtype=='checkbox'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="control_label16">{%$att_array[i].typename%}</label>
							<div class="control_required20 pt6">
								{%forlist from=$att_array[i].attrvalue key=ii%}
								<input type="checkbox" name="{%$att_array[i].attrname%}[]" value="{%$att_array[i].attrvalue[ii].name%}" {%if $att_array[i].attrvalue[ii].selected=='selected'%}checked{%/if%}/><span class="pr10">{%$att_array[i].attrvalue[ii].name%}</span>
								{%/forlist%}
							</div>
						</div>
						{%/if%}
					{%/forlist%}
				{%/if%}
				{%if $type_read.isseccode%}
				<div class="espcms_form_group">
					<label for="title" class="control_label16">验证码</label>
					<div class="control_required20">
						<input type="text" id="seccode" name="seccode" class="infoInput" maxlength="4" size="5" style="text-transform: uppercase;"/>
						<img title="点击更换验证码" id="memberseccodesrc" onclick="sessionimg('memberseccodesrc','{%$rootdir%}')" src="{%$seccodelink%}" style="cursor: pointer;height:28px;margin-left:5px;" align="absmiddle"/>
					</div>
				</div>
				{%/if%}
				<div class="espcms_form_group">
					<label class="control_label16"> </label>
					<div class="control_required20"><input type="submit" id="{%$type_read.formcode%}botton" class="button blue2" value="确认提交"> </div>
				</div>
			</form>
		</div>
	</div>
</div>

{%link file="public/footer.html"%}
</body>
</html>
