Ejemplo n.º 1
0
function updateHotelFetursType()
{
    $admin = new HotelRoomType();
    $get_edited = array();
    foreach ($_REQUEST as $k => $v) {
        $get_edited[str_replace("edit_", "", $k)] = $v;
    }
    $admin->setValues($get_edited);
    if ($admin->updateHotelRoomType()) {
        Common::jsonSuccess("Hotel Room Type Update Successfully!");
    } else {
        Common::jsonError("Error");
    }
}
Ejemplo n.º 2
0
function updateHotelsStep_6()
{
    $hotelroomtype = new HotelRoomType();
    $_REQUEST['room_type_img'] = Sessions::getRoomImage();
    $hotelroomtype->setValues($_REQUEST);
    //INFO: Log
    //$temp_room_type1 = new HotelRoomType();
    //$temp_room_type2 = $_REQUEST;
    //$temp_room_type1->setRoomTypeId($temp_room_type2['room_type_id']);
    //$temp_room_type1=(array)$temp_room_type1->getHotelRoomTypeFromId();
    //INFO: Log//
    if ($hotelroomtype->updateHotelRoomType()) {
        //INFO: Log
        //$TransactionLog=new TransactionLog($temp_room_type2['room_type_hotel_id'],Libs::getKey('hotel_sections','Room Types - Edit'),'Update',Sessions::getMemberId(),'hotel_room_types',$temp_room_type1[0],$temp_room_type2);
        //$TransactionLog->log();
        //INFO: Log//
        $complete = new ProfileCompletion();
        $complete->setHotelStepId($_REQUEST['hotel_step_id']);
        $complete->setHotelStep1(1);
        $complete->updateProfileCompletionStep('7');
        echo $_REQUEST['hotel_step_id'];
        Common::jsonSuccess("");
    } else {
        Common::jsonError("Error");
    }
    //INFO: Log
    //$temp_room_type1=null;
    //$temp_room_type2=null;
    //INFO: Log
}
Ejemplo n.º 3
0
function updateHotelsStep_6()
{
    $hotelroomtype = new HotelRoomType();
    $hotelroomtype->setValues($_REQUEST);
    if ($hotelroomtype->updateHotelRoomType()) {
        $complete = new ProfileCompletion();
        $complete->setHotelStepId($_REQUEST['hotel_step_id']);
        $complete->setHotelStep1(1);
        $complete->updateProfileCompletionStep('7');
        echo $_REQUEST['hotel_step_id'];
        Common::jsonSuccess("");
    } else {
        Common::jsonError("Error");
    }
}