<!--{include file="admin/header.tpl"}-->

<form name="addItem" method="post" action="index.php?action=save" onsubmit="return validator(this)">
<input type="hidden" name="id" value="<!--{$dataInfo.id}-->" />
<table cellpadding="1" class="table_form">
	<caption>地图区域设置</caption>
	<tr>
		<td>
区域名称：<input name="cityarea_name" value="<!--{$dataInfo.cityarea_name}-->" />
lat坐标：<input name="lat" value="<!--{$dataInfo.lat}-->"  />
lnt坐标：<input name="lnt" value="<!--{$dataInfo.lnt}-->" />
排序:<input name="sort" value="<!--{$dataInfo.sort}-->" />

 <input type="submit" value="保存" />
		</td>
	</tr>
</table>
</form>

<form name="myform" method="post" action="index.php?action=delete">
<table cellpadding="2" cellspacing="1" class="table_list">
 <caption>地图区域列表</caption>
  <tr>
    <th width="30">选中</th>
    <th width="60">区域名称</th>
    <th width="200">lat坐标</th>
    <th>lnt坐标</th>
    <th width="60">排序</th>
    <th width="150">操作</th>
  </tr>
<!--{foreach item=item from=$list}-->
  <tr>
    <td class="align_c"><input type="checkbox" name="ids[]" value="<!--{$item.id}-->"></td>
    <td class="align_c"><!--{$item.cityarea_name}--></td>
    <td class="align_c"><!--{$item.lat}--></td>
    <td><!--{$item.lnt}--></td>
    <td><!--{$item.sort}--></td>
    <td class="align_c"><a href="?action=edit&id=<!--{$item.id}-->">编辑</a></td>
  </tr>
<!--{/foreach}-->
</table>
<div class="button_box">
	<span style="width:60px"><a href="#" onclick="javascript:$('input[type=checkbox]').attr('checked', true);return false;">全选</a>/<a href="#" onclick="javascript:$('input[type=checkbox]').attr('checked', false)">取消</a></span>
	<input type="button" name="delete" value=" 删除 " onclick="if(confirm('你确认删除选中的条目么？')){myform.submit();}">
</div>
</form>
<!--{$pagePanel}-->
<!--{include file="admin/footer.tpl"}-->
