<!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" />
{literal}
<script type="text/javascript">
function addKeywords() {
	var fm = document.add;
	
	if (fm.name.value == '') {
		alert('名称不能为空！');
		fm.name.focus();
		return false;
	}
	if (fm.keywords.value == '') {
		alert('关键字不能为空！');
		fm.keywords.focus();
		return false;
	}
	return true;
}
</script>
{/literal}
</head>
<body>

<h2>系统 -- 添加关键字</h2>
<form method="post" name="add" action="?a=keywords&m=add">
	<input type="hidden" name="flag" id="flag" />		
	<div class="add_update">		
		<table cellspacing="0">			
			<tr>
				<td class="text_right">所属分类：</td>
				<td class="text_left">
					<select name="category" id="category" onchange="change_category();">
							<option value="0">--请选择分类--</option>
							{html_options options=$category}
					</select>
					<span>说明：分类名称用于调取api数据</span>					
				</td>
			</tr>
			<tr>
				<td class="text_right">名　　称： </td>
				<td class="text_left">
					<input type="text" name="name"  id="name" class="text" /> (提示：用于搜索框下面显示关键字)
				</td>
			</tr>
			<tr>
				<td class="text_right">关 键 字：</td>
				<td class="text_left">
					<input type="text" name="keywords"  id="keywords" onblur="checkName();" class="text" /> ( 提示:此关键字为调取数据的关键字，多个以空格分开 )
				</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">
					<select name="color">
						<option value="">默认颜色</option>
						<option style="color:red;" value="red">红色</option>
						<option style="color:blue;" value="blue">蓝色</option>
						<option style="color:orange;" value="orange">橙色</option>
					</select>
				</td>
			</tr>
			<tr>
				<td></td>
				<td><input type="submit" name="send" onclick="return addKeywords();" value="新增关键字" class="submit" /></td>
			</tr>
		</table>
	</div>
</form>
</body>
</html>