<!--{template admin/header}--> <script language="javascript" src="./templates/default/js/jquery.js"></script> <script language="javascript">
function getxy(i){
$('#update').html('商家地点已经更新');
$('#map').val(i);
}
</script> <form action="{$action}" method="post" enctype="multipart/form-data"> <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder"> <tr class="header"> <td colspan="2">修改商家</td> </tr> <tr> <td width="23%" bgcolor="#F8F8F8">对应用户(登陆商家管理)：</td> <td width="77%" align="right" bgcolor="#FFFFFF"> <select name="userid" id="userid">
{loop $user $i $value}
<option value="{$value['uid']}" {if $seller['userid']==$value['uid']}selected{/if}>{$value['username']}</option>
{/loop}
</select> </td> </tr> <tr><td>所在城市：</td><td><select name="area" id="area">
{loop $city $i $value}	  
<option value="{$value['cityid']}" {if $value['cityid']==$seller['area']}selected{/if}>{$value['cityname']}</option>
{/loop}
</select></td></tr> <tr> <td width="23%" bgcolor="#F8F8F8">商家名称:</td> <td width="77%" align="right" bgcolor="#FFFFFF"> <input name="sellername" type="text" value="{$seller['sellername']}" id="sellername" size="40"></td> </tr> <tr> <td width="23%" bgcolor="#F8F8F8">商家地址:</td> <td width="77%" align="right" bgcolor="#FFFFFF"> <input name="selleraddress" type="text" value="{$seller['selleraddress']}" id="selleraddress" size="90"></td> </tr> <tr> <td bgcolor="#F8F8F8">商家电话:</td> <td align="right" bgcolor="#FFFFFF"><input name="sellerphone" value="{$seller['sellerphone']}" type="text" id="sellerphone" size="50" /></td> </tr> <tr> <td bgcolor="#F8F8F8">商家网站:</td> <td align="right" bgcolor="#FFFFFF"><input name="sellerurl" value="{$seller['sellerurl']}" type="text" id="sellerurl" size="50" /></td> </tr> <tr> <td bgcolor="#F8F8F8">商家地理位置:</td> <td align="right" bgcolor="#FFFFFF"><a href="#" onclick="son=window.open('?mod=tttuangou&code=addmap&id={$seller['sellermap']}','son','width=610,height=510,top=150,left=280, toolbar=no, menubar=no, scrollbars=auto, resizable=no, location=no, status=no');"><span id='update'>更新(将标记放到具体的位置关闭弹出窗口即可)</span></a></td> </tr> </table> <br> <center><input type="hidden" id="id" name="id" value="{$seller['id']}" /><input type="hidden" id="map" name="map" /><input type="submit" class="button" name="addsubmit" value="提 交"></center> </form>
{template admin/footer}