<!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=<tpl>$nc_charset</tpl>" />
<title><tpl>$admin_header_module_manage</tpl> - <tpl>$admin_module_send_region</tpl><!-- 模块管理 - 配送区域 --></title>
<link type="text/css" rel="stylesheet" href="<tpl>$Site_Url</tpl>/admin/templates/css/toolbox.css" />
<link type="text/css" rel="stylesheet" href="<tpl>$Site_Url</tpl>/admin/templates/css/main.css" />
<script type="text/javascript" src="<tpl>$Site_Url</tpl>/js/jquery/jquery.js"></script>
<script type="text/javascript" src="<tpl>$Site_Url</tpl>/admin/templates/global.js"></script>
</head>
<body>
<div id="content">
    <h2><tpl>$admin_header_module_manage</tpl> >> <tpl>$admin_module_send_region</tpl><!-- 模块管理 >> 配送区域 -->
    	<span class="alignRight"><a href="admin_module_send.php?action=add_send_area" target="_self">{<tpl>$admin_module_send_region_add</tpl>}</a></span> <!-- 添加配送区域 -->   
	</h2>
    <div class="entry-body" id="p-list-div">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" id="pListTab" class="stripeMe">
          <tr>
          	<td colspan="4" class="searchbar" >
            <div class="textRight">
             <img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_edit.gif" />:<tpl>$admin_module_send_region_edit</tpl><!-- 编辑配送区域 -->
             <img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_view.gif" />:<tpl>$admin_module_send_region_view</tpl><!-- 查看该区域所有配送 -->
             <img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_cancel.gif"/>:<tpl>$admin_module_send_region_del</tpl><!-- 删除该区域 -->            </div>
            </td>
          </tr>
          <tr>
            <th><tpl>$admin_module_send_region_name</tpl><!-- 区域名称 --></th>
            <th><tpl>$admin_module_send_region_desc</tpl><!-- 配送区域简介 --></th>
            <th><tpl>$admin_module_send_region_state</tpl><!-- 配送区域状态 --></th>
            <th><tpl>$admin_module_send_list_oper</tpl><!-- 操作 --></th>
          </tr>
		  <tpl>section name=list loop=$send_area_array</tpl>
          <tr>
            <td><tpl>$send_area_array[list].send_area_name</tpl></td>
            <td class="textLeft" width="40%"><tpl>$send_area_array[list].send_area_info</tpl></td>
            <td>
			<span id="state_<tpl> $send_area_array[list].send_area_id</tpl>"><a onclick="nc_state_update('<tpl> $send_area_array[list].send_area_id</tpl>','send_area_state','<tpl> $send_area_array[list].send_area_state </tpl>','state_<tpl> $send_area_array[list].send_area_id</tpl>');"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_<tpl>$send_area_array[list].send_area_state</tpl>.gif" alt="<tpl>$admin_module_send_region_edit_state</tpl>" /></a></span></td>
            <td>
             <a href="admin_module_send.php?action=add_send_area&send_area_id=<tpl>$send_area_array[list].send_area_id</tpl>"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_edit.gif" title="<tpl>$admin_module_send_region_edit</tpl>" /></a><!-- 编辑配送区域 -->
             <a href="admin_module_send.php?action=send_type_list&send_area_id=<tpl>$send_area_array[list].send_area_id</tpl>"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_view.gif" title="<tpl>$admin_module_send_region_view</tpl>" /></a><!-- 查看该区域所有配送 -->
             <a href="admin_module_send.php?action=del_send_area&send_area_id=<tpl>$send_area_array[list].send_area_id</tpl>" onclick="return confirm('<tpl>$admin_module_send_buy_del_conf</tpl>');"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_cancel.gif" title="<tpl>$admin_module_send_region_del</tpl>" /></a><!-- 删除该区域 -->
			</td>
          </tr>
		  <tpl>/section</tpl>
          <tr>
          	<td colspan="4" class="searchbar">
            <div class="textRight">
             <img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_edit.gif" />:<tpl>$admin_module_send_region_edit</tpl><!-- 编辑配送区域 -->
             <img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_view.gif" />:<tpl>$admin_module_send_region_view</tpl><!-- 查看该区域所有配送 -->
             <img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_cancel.gif"/>:<tpl>$admin_module_send_region_del</tpl><!-- 删除该区域 -->            </div>
            </td>
          </tr>
        </table>
    	<div class="clear"></div>
    </div><!--  end of p-list-div  -->
<tpl>include_php file ='admin_footer.php'</tpl><!-- 底部版权信息 -->
</div><!--  end of content  -->
<script language="javascript">
<!--
/* ajax修改状态 */
function nc_state_update(send_area_id,ajax_type,old_state,id) {
	$.get('admin_module_send.php',{'action':'send_area_ajax','ajax_type':ajax_type,'old_state':old_state,'send_area_id':send_area_id,'css_id':id},function(data){
		$("#"+id).html(data);
	});
}
//-->
</script>
</body>
</html>
