Ejemplo n.º 1
0
//头部
include "martin.header.php";
//parameter 参数
$action = isset($_POST['action']) ? $_POST['action'] : @$_GET['action'];
$action = empty($action) ? 'list' : $action;
$action = trim(strtolower($action));
$id = !empty($_POST['id']) ? $_POST['id'] : @$_GET['id'];
$id = intval($id);
$start = isset($_GET['start']) ? intval($_GET['start']) : 0;
$hotel_city_id = isset($_GET['hotel_city_id']) ? intval($_GET['hotel_city_id']) : 0;
$searchData = array('hotel_city_id' => intval($_GET['hotel_city_id']), 'hotel_star' => intval($_GET['hotel_star']), 'hotel_name' => trim($_GET['hotel_name']));
//确认删除
$confirm = isset($_POST['confirm']) ? $_POST['confirm'] : 0;
//parameter 参数
//模块配置
$Ranks = GetRanks($xoopsModuleConfig);
//酒店
$hotel_handler =& xoops_getmodulehandler('hotel', MARTIN_DIRNAME, true);
//城市
$hotelcity_handler =& xoops_getmodulehandler('hotelcity', MARTIN_DIRNAME, true);
//是否存在
if ($id > 0 && !$hotel_handler->CheckExist($id)) {
    redirect_header(XOOPS_URL, 3, '非法访问');
}
$HotelCityObj = $hotelcity_handler->create();
//酒店
$HotelObj = $id > 0 ? $hotel_handler->get($id) : $hotel_handler->create();
$TmpFilePath = '../images/hotel/tmp/';
$FilePath = '../images/hotel/';
$FileType = array('.jpg', '.bmp', '.png', '.gif', '.jpeg');
martin_adminMenu(2, "订房后台 > 酒店管理");
Ejemplo n.º 2
0
    //$db->Query("INSERT INTO `rudi_roles_container` SET `role_id` = '$role_id', `member_id` = '$member_id'");
    PageRedirect(1, "?op=rudi&show=members&profile={$member_id}");
    return;
}
?>
		<a href="?op=rudi&show=members">Cancel</a><br />
		<form method="POST" action="">
		<table width="100%" style="text-align:center;">
		<tr><th colspan="2" style="background-color:#c4c4c4;">Personnel File of <?php 
echo $member['first_name'] . " " . $member['last_name'];
?>
</th></tr>
		<tr><td class="right" width="50%">Rank:</td><td class="left">
			<select name="rank">
<?php 
$ranks = GetRanks();
foreach ($ranks as $rank) {
    echo "<option value=\"{$rank['rank_id']}\">{$rank['longname']}</option>";
}
?>
			</select>
		</td></tr>
		<tr><td class="right">Country:</td><td class="left">
			<select name="country">
<?php 
$countries = GetCountry();
foreach ($countries as $country) {
    echo "<option value=\"{$country['country_id']}\">{$country['name']}</option>";
}
?>
			</select>