<!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 rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<link rel="stylesheet" type="text/css" href="view/admin/style/nav.css" />
<script type="text/javascript" src="view/admin/js/basic.js"></script>
<script type="text/javascript" src="view/admin/js/nav.js"></script>
</head>
<body>

<h2>系统 -- 添加导航</h2>
<form method="post" name="add" action="?a=nav&m=add">
	<input type="hidden" name="flag" id="flag" />
	{if $OneNav}
		<input type="hidden" name="sid" value="{$OneNav[0]->id}" />
	{else}
		<input type="hidden" name="sid" value="0" />
	{/if}	
	<div class="add_update">		
		<table cellspacing="0">
			{if $OneNav}
			<tr>
				<td class="text_right">主类名称：</td>
				<td class="text_left">
					{$OneNav[0]->name}
				</td>
			</tr>
			{/if}
			<tr>
				<td class="text_right">B2C分类：</td>
				<td class="text_left">
					<select name="category" id="category" onchange="change_category({$rewrite});">
							<option value="0">--请选择分类--</option>
							{html_options options=$category}
					</select>
					<span>说明：分类名称用于调取api数据</span>					
				</td>
			</tr>
			<tr>
				<td class="text_right">淘宝分类：</td>
				<td class="text_left">				
					<select name="tao_category" id="tao_category">
							<option value="0">--请选择淘宝分类--</option>
							{html_options options=$tao_category}
					</select>
					 (提示：用于调取淘宝数据，请手动修改,以空格分隔,可以不修改)
				</td>
			</tr>
			<tr>
				<td class="text_right">导航名称：</td>
				<td class="text_left">
					<input type="text" name="name"  id="navname" onblur="checkName();" class="text" /> ( * 2-4位之间 )
				</td>
			</tr>
			<tr>
				<td class="text_right">导航URL：</td>
				<td class="text_left">
					<input type="text" name="url"  id="navurl" class="text" style="width:400px;" />
				</td>
			</tr>
			<tr>
				<td class="text_right">tab标签：</td>
				<td class="text_left">
					<input type="text" name="tab"  id="tab" class="text" style="width:200px;" />					
				</td>
			</tr>
			<tr>
				<td class="text_right">显示状态：</td>
				<td class="text_left">
					<select name="state" style="width:100px;">
						<option value="0">显示</option>
						<option value="1">隐藏</option>
					</select>
				</td>
			</tr>
			<tr>
				<td class="text_right">导航方式：</td>
				<td class="text_left">
					<select name="target" style="width:100px;">
						<option value="_self">本页面</option>
						<option value="_black">弹出式</option>
					</select>
					点击导航后网页的打开方式 
				</td>
			</tr>
			<tr>
				<td class="text_right">排　　序：</td>
				<td class="text_left">
					<input type="text" name="sort"  id="sort" class="text"  value="10"/>
				</td>
			</tr>
			<tr>
				<td class="text_right">简　　介：</td>
				<td class="text_left">
					<textarea name="info"></textarea> <span class="middle">( * 200位以内 )</span>
				</td>
			</tr>	
			


			<tr>
				<td></td>
				<td><input type="submit" name="send" onclick="return addNav();" value="新增导航" class="submit" /></td>
			</tr>
		</table>
	</div>
</form>


</body>
</html>