示例#1
0
function getRoomTypes()
{
    $rooms = new Rooms();
    $rooms->setVillaId($_REQUEST['hotell_id']);
    $roomList = $rooms->getAllRoomTypesEnable();
    if (empty($roomList)) {
        echo "Add Room Types";
    } else {
        for ($x = 0; $x < count($roomList); $x++) {
            $rooms->extractor($roomList, $x);
            ?>
                <input type="checkbox" <?php 
            if ($x == 0) {
                echo "id='room_type'";
            }
            ?>
 name="room_type" value="<?php 
            echo $rooms->id();
            ?>
" class="room_type send_group send_data"/>
                <?php 
            echo $rooms->name();
        }
    }
}