<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('landmark.html', '3e30ce4ae2c2734da4c97a27d47d6d42', 1362484596); ?>
<?php if($action=='list') { ?>
<!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="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="none" />
<title>预订易KTV预订网站管理系统</title>
<link type="text/css" href="<?php echo MY_THEMEDIR; ?>images/layout.css" rel="stylesheet" />
<link type="text/css" href="<?php echo MY_THEMEDIR; ?>images/win.css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/common/viewMode.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/home/landmarkList.js"></script>
</head>

<body>
<div id="bodymain">
<!-- 头部开始 -->
<?php include $this->tpl->getfile('inc/header'); ?>
<!-- 主体开始 -->
<div id="user_content">
<table width="100%" border="0">
<tr>
<td width="156" valign="top">
<?php include $this->tpl->getfile('inc/lead_home'); ?>
</td>
<td valign="top">
<div id="main_user">
<div class="main_user_bg"><div class="main_user_bg1_right"></div></div>
<div class="user_con">
<div id="topFont">
<div class="left">标志物(地标)列表</div>
<div class="right">
<input type="hidden" id="O_Type" value="list" />
<input type="hidden" id="currentStatus" />
<select id="simpleSearch"> 
<option value="name">名称</option>
</select>
<input id="simpleSearchKey" type="text" style="width:80px;" />&nbsp;
<button id="O_SimpleSearchBtn" class="searchbutton" type="button">快捷搜索</button>
</div>
</div>
<div class="todayinfoListTop">
<div class="todayinfo1"><span id="O_Count"></span>　<span id="O_Flush">正在加载数据...</span></div>
</div>
<span id="mainlist">
<?php include $this->tpl->getfile('inc/list_landmark'); ?>
</span>
</div>
<div class="main_user_bg1"><div class="main_user_bg1_right1"></div></div></div>
</td>
</tr>
</table>
</div>
<div class="clearfloat"></div>
<?php include $this->tpl->getfile('inc/bottom'); ?>
</div>
<!-- 加一个半透明层 --> 
<div id="doing"></div>
<!-- 浏览信息 -->
<?php include $this->tpl->getfile('inc/win_view'); ?>
<!-- 修改信息 -->
<?php include $this->tpl->getfile('inc/win_update'); ?>
</body>
</html>
<?php } elseif ($action=='info') { ?>
<table cellSpacing="0" cellPadding="0" width="566px" border="0">
<tbody>
<tr>
<td align="right" style="width:15%;white-space:nowrap;">名称：</td>
<td style="width:85%"><strong><?php echo $name; ?></strong></td></tr>
<tr>
<td align="right">所属行政区：</td>
<td><?php echo $provinceName; ?> <?php echo $cityName; ?> <?php echo $areaName; ?></td></tr>
<tr>
<td align="right">备注：</td>
<td><?php echo $remark; ?></td></tr>
<tr>
<td align="right">排序：</td>
<td><?php echo $displayOrder; ?></td></tr>
<tr>
<td align="right">当前状态：</td>
<td><span class="f_14b_f00"><?php echo $status; ?></span></td></tr>
</tbody></table>
<?php } elseif ($action=='add') { ?>
<table cellSpacing="0" cellPadding="0" width="566px" border="0">
<tbody>
<tr>
<td align="right">名称：</td>
<td><input id="O_Name" type="text" class="common_txt" maxlength="50" /> <span class="red">*</span></td></tr>
<tr>
<td style="width:15%;white-space:nowrap;" align="right">所属行政区：</td>
<td style="width:85%;white-space:nowrap;">
<select id="O_Province">
<option value="">==省份==</option>
<?php if(is_array($province)) foreach($province as $v) { ?>
<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
</select> <select id="O_City"><option value="">==城市==</option></select> <select id="O_Area"><option value="">==行政区==</option></select> <span class="red">*</span></td></tr>
<tr>
<td align="right">类型：</td>
<td>
<select id="O_Category">
<?php if(is_array($categorys)) foreach($categorys as $v) { ?>
<option value="<?php echo $v; ?>"><?php echo $v; ?></option>
<?php } ?>
</select> <span class="red">*</span></td></tr>
<tr>
<td align="right">备注：</td>
<td><input id="O_Remark" type="text" class="common_txt" maxlength="50" /></td></tr>
<tr>
<td align="right">排序：</td>
<td><input id="O_DisplayOrder" type="text" class="common_txt" maxlength="50" /></td></tr>
<tr>
<td align="right">当前状态：</td>
<td><input type="radio" name="O_Status" value="待审核" id="O_Status_0" checked /><label for="O_Status_0" style="cursor:pointer;">待审核</label> <input type="radio" name="O_Status" value="已审核" id="O_Status_1" /><label for="O_Status_1" style="cursor:pointer;">已审核</label></td></tr>
</tbody></table>
<?php } elseif ($action=='update') { ?>
<table cellSpacing="0" cellPadding="0" width="566px" border="0">
<tbody>
<tr>
<td align="right">名称：</td>
<td><input id="O_Name" type="text" class="common_txt" maxlength="50" value="<?php echo $name; ?>" /> <span class="red">*</span></td></tr>
<tr>
<td style="width:15%;white-space:nowrap;" align="right">所属行政区：</td>
<td style="width:85%;white-space:nowrap;">
<select id="O_Province">
<option value="">==省份==</option>
<?php if(is_array($province)) foreach($province as $v) { ?>
<option value="<?php echo $v['id']; ?>"<?php if($v['id']==$provinceId) { ?> selected="selected"<?php } ?>><?php echo $v['name']; ?></option>
<?php } ?>
</select>
<select id="O_City">
<option value="">==城市==</option>
<?php if(is_array($city)) foreach($city as $v) { ?>
<option value="<?php echo $v['id']; ?>"<?php if($v['id']==$cityId) { ?> selected="selected"<?php } ?>><?php echo $v['name']; ?></option>
<?php } ?>
</select>
<select id="O_Area">
<option value="">==行政区==</option>
<?php if(is_array($area)) foreach($area as $v) { ?>
<option value="<?php echo $v['id']; ?>"<?php if($v['id']==$areaId) { ?> selected="selected"<?php } ?>><?php echo $v['name']; ?></option>
<?php } ?>
</select> <span class="red">*</span></td></tr>
<tr>
<td align="right">类型：</td>
<td>
<select id="O_Category">
<?php if(is_array($categorys)) foreach($categorys as $v) { ?>
<option value="<?php echo $v; ?>"<?php if($v==$category) { ?> selected="selected"<?php } ?>><?php echo $v; ?></option>
<?php } ?>
</select> <span class="red">*</span></td></tr>
<tr>
<td align="right">备注：</td>
<td><input id="O_Remark" type="text" class="common_txt" maxlength="50" value="<?php echo $remark; ?>" /></td></tr>
<tr>
<td align="right">排序：</td>
<td><input id="O_DisplayOrder" type="text" class="common_txt" maxlength="50" value="<?php echo $displayOrder; ?>" /></td></tr>
<tr>
<td align="right">当前状态：</td>
<td><span class="f_14b_f00"><?php echo $status; ?></span><input id="O_ID" type="hidden" value="<?php echo $id; ?>" /></td></tr>
</tbody></table>
<?php } ?>