<!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" />
<script type="text/javascript" src="view/admin/js/basic.js"></script>
{literal}
<style type="text/css">
.add_update table select{
	width:240px;
}
</style>
{/literal}
{literal}
<script type="text/javascript">
function addsellerlist() {
	var fm = document.contentjs;
	
	if (fm.name.value == '') {
		alert('名称不能为空！');
		fm.name.focus();
		return false;
	}	
	return true;
}
</script>
{/literal}
</head>
<body>

<h2>添加商家</h2>
<form method="post" name="contentjs" action="?a=sellerlist&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">
					<input type="text" name="name"  id="name" class="text" />
				</td>
			</tr>
			<tr>
				<td class="text_right">本　地Logo： </td>
				<td class="text_left">	
					<input type="hidden" name="sourcepath" class="text"/><input type="text" class="input-text" name="site_logo" class="text" readonly="readonly" value="" size=40 /> 
					<input type="button" value="上传缩略图" onclick="centerWindow('?a=upload&m=upfile&width=600&height=300','upfile','400','160')" />										
					</br><img name="pic" src="" style="dispaly:none;"/>
				</td>
			</tr>
			<tr>
				<td class="text_right">网　络Logo：</td>
				<td class="text_left"><input class="text" type="text" name="net_logo" class="text"/></td>
			</tr>			
			<tr>
				<td class="text_right">关联类别：</td>
				<td class="text_left">			
					<div  style="width:650px;">
						{html_checkboxes options=$sitetype name=sitetype}
					</div>
					
				</td>
			</tr>
			<tr>
				<td class="text_right">分类推荐： </td>
				<td class="text_left">
					<select name="category_id" id="category_id">					
							{html_options options=$category}
					</select>
					<input type="hidden" name="category_name" />
					<span>　　　说明：用于商家详情下面显示的推荐b2c数据</span>
				</td>
			</tr>
			<tr>
				<td class="text_right">网站跳转URL</td>
				<td class="text_left">
					<input type="text" name="click_url"  id="click_url" class="text" style="width:600px;" />
				</td>
			</tr>			
			<tr>
				<td class="text_right">是否推荐到首页</td>
				<td class="text_left">
					<select name="recommend" 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="state" style="width:100px;">
						<option value="1">显示</option>
						<option value="0">隐藏</option>
					</select>
				</td>
			</tr>
			<tr>
				<td class="text_right">商家描述：</td>
				<td class="text_left">
					<textarea name="description" style="width:600px; height:140px;"></textarea>
				</td>
			</tr>	
						
			<tr>
				<td class="text_right">排　　序：</td>
				<td class="text_left">
					<input type="text" name="sort"  id="sort" value="10" style="width:40px;"/>
				</td>
			</tr>
			<tr>
				<td class="text_right">全站产品:</td>
				<td class="text_left">
					&nbsp;<input type="checkbox" name="freeshipment" value="1" />
					免费送货&nbsp;
					<input type="checkbox" name="installment" value="1" />
					分期付款&nbsp;
					<input type="checkbox" name="has_invoice" value="1" />
					&nbsp;有发票  	
				</td>
			</tr>			
			<tr>
				<td></td>
				<td><input type="submit" name="send" onclick="return addsellerlist();" value="新增商家" class="submit" /></td>
			</tr>
		</table>
	</div>
</form>
</body>
</html>