{load(fhead)}
<body class="mainbg">
	<div id="mainhearder"><span>您的位置：<a href="{$vd['root']}index.php?m=mod_b2b&c=Dealer&a=home">经销商管理系统</a> >> 下属客户管理 >> 下属客户价格管理 >> 模板价格管理</span></div>
	
	<div id="type">
		<ul>
			<li><span class=type>添加价格模板</span></li>
			<li><a href="index.php?m=mod_b2b&c=Price&a=RankTpl"><span class=type>价格模板列表</span></a></li>
			<li><a href="index.php?m=mod_b2b&c=price&a=Agent"><span class=type>价格模板套用</span></a></li>
		</ul>
	</div>
	
	<div id="hearder"><span>编辑价格模板</span></div>
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
		<form name="bulletin" method="post" action="index.php?m=mod_b2b&c=Price&a=TplSave">
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table1">
		<tr>
		<td width="22%"class="tableleft1">价格模板名称：</td>
		<td width="78%" class="tableright1"><input type="text" class="input" name="name" maxlength="25" size="30" value="{$vd['rs']['name']}" dataType="LimitB" min="1" max="25" msg="模板名称必须填写"></td>
		</tr>
		<tr>
		<td class="tableleft1">模板客户级别：</td>
		<td class="tableright1">
		  <select name="rankid" id="rankid">
      {#option($vd['rank'], $vd['rs']['rankid'], 'name', 'id')}
      </select>
		</td>
		</tr>
		<tr>
		<td class="tableleft1">复制原模板价格：</td>
		<td class="tableright1">
		  <select name="parentid" id="parentid">
      <option value="0">不复制原模板价格</option>
      {#option($vd['items'], $vd['rs']['id'], 'name', 'id')}
      </select>
		</td>
		</tr>
		<tr>
		<td height="30" align="center" class="tableleft1">&nbsp;</td>
		<td height="30" class="tableright1">
		<input type="hidden" value="{$vd['rs']['parentid']}" name="oldparentid" id="oldparentid"/>
    <input type="hidden" value="{$vd['rs']['id']}" name="id" id="id"/>
		<input type="submit" value="确认添加" class="button" name="submit">
		<input type="reset" value="重新填写" class="button" name="reset"></td>
		</tr>
		</table>
		</form>
	</td>
	</tr>
	</table>
	
</body>
</html>