示例#1
0
             }
             //$paginacion="";
             $obCat->Modifica_Concepto($nombre_zona, $select_zona, $idCat);
         }
     }
     header('Location:./index.php?' . $paginacion . 'catalogo=' . $_POST['ir']);
 } else {
     if (isset($_POST['name_hotel']) && $_POST['name_hotel'] != "" && isset($_POST['costo']) && $_POST['costo'] != "" && (isset($_POST['select_cd']) && $_POST['select_cd'] != "" || isset($_POST['name_cd']) && $_POST['name_cd'] != "")) {
         $idCat = $_POST['idCat'];
         $vb = trim($_POST["registrar"]);
         $nombre_hotel = $_POST['name_hotel'];
         $select_cd = $_POST['select_cd'];
         $costo = $_POST['costo'];
         $cd = $_POST['name_cd'];
         $paginacion = "";
         $obCat = new CatalogsHotel();
         if (isset($_POST['view_hoteles'])) {
             $paginacion = "view_hoteles=" . utf8_encode($_POST['view_hoteles']) . "&";
         }
         if ($vb == "Agregar") {
             if ($select_cd != "") {
                 $obCat->Add($nombre_hotel, $select_cd, $costo);
             } else {
                 $obCat->Add($nombre_hotel, utf8_encode($cd), $costo);
             }
         } else {
             if ($vb == "Actualizar" && $idCat != "") {
                 if ($_POST["lTot"] != "" && $_POST["lAc"] != "") {
                     $paginacion .= "ltotal=" . $_POST["lTot"] . "&lactual=" . $_POST["lAc"] . "&";
                 }
                 if ($select_cd != "") {
示例#2
0
    ?>
</option>
					<?php 
    $i++;
}
?>
				</select>
	</div>
<?php 
$paginacion = "";
if (isset($_GET["ltotal"]) && isset($_GET["lactual"]) && $_GET["ltotal"] != "" && $_GET["lactual"] != "") {
    $paginacion = "ltotal=" . $_GET["ltotal"] . "&lactual=" . $_GET["lactual"] . "&";
}
if (isset($_GET["Eid"])) {
    $cat_id = $_GET["Eid"];
    $cat = new CatalogsHotel();
    $cat->Load_Catalogs($cat_id);
}
?>

	<div id="cds" style="width:70%;">
		<?php 
$i = 0;
$defaultCd = "";
foreach ($aux as $cd) {
    if ($i == 0) {
        $defaultCd = $cd["id"];
    }
}
$idCd = $defaultCd;
if (isset($_GET['view_hoteles']) && $_GET['view_hoteles'] != "") {