Exemple #1
0
<?php

namespace App\Modules\mod_rooms;

use App\Rooms;
?>
<div class="wrapper">
    <h1>Lorem ipsum dolor sit amet</h1>
    <p>Sed sit amet dapibus diam. Donec ultrices sit amet ipsum non imperdiet. Vestibulum in tortor sed odio molestie accumsan. Curabitur tempus nisi quis odio interdum, sed pulvinar nisi aliquam. Quisque accumsan lorem eu est lobortis sollicitudin.</p>
    <p>Donec ipsum eros, mattis id nibh eu, ultrices mollis ante. Mauris scelerisque sed ligula ac volutpat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Proin nec hendrerit dui, ut pretium tortor.</p>

	<div class="left">
		<p><strong>One</strong> bedroom rooms</p>
		<?php 
$rooms = Rooms::GetAll(1, 1, 1);
foreach ($rooms as $room) {
    echo "\n\t\t\t\t<div class='rooms_main'>\n\t\t\t\t<img src='./public/images/rooms/{$room->room_name}.jpg' alt='Our beds' width='380' height='160'>\n\t\t\t\t<p>One bedroom {$room->room_name}</p>\n\t\t\t\t<a href='index.php?pid=3&room={$room->room_id}'>Choose</a>\n\t\t\t\t</div>\n\t\t\t\t";
}
?>
	</div><!-- END of Left -->

	<div class="right">
		<p><strong>Two</strong> bedroom rooms</p>
		<?php 
$rooms = Rooms::GetAll(1, 1, 2);
foreach ($rooms as $room) {
    echo "\n\t\t\t\t<div class='rooms_main'>\n\t\t\t\t<img src='./public/images/rooms/{$room->room_name}.jpg' alt='Our beds' width='380' height='160'>\n\t\t\t\t<p>Two bedroom {$room->room_name}</p>\n\t\t\t\t<a href='index.php?pid=3&room={$room->room_id}'>Choose</a>\n\t\t\t\t</div>\n\t\t\t\t";
}
?>
	</div><!-- END of Right -->
</div><!-- END of Wrapper --><?php 
Exemple #2
0
				<label for="check_in">Check In: </label>
				<input id="datepicker"  name="check_in" class="required" title ="Date required"
				value="" type="text" readonly >
			</div> 

			<div class="form_element">
				<label for="check_out">Check Out: </label>
				<input id="datepicker2" name="check_out" class="required" title ="Date required"
				value="" type="text" readonly >
			</div> 

			<div class="form_element">
				<span>Select Room: </span>
				<select class='required' id='room_number' name='room_number' onchange = getComboA(this);> 
					<?php 
$selects = Rooms::GetAll(1, 1);
$selected_room = isset($_GET['room']) ? $_GET['room'] : '';
$room_names = array();
foreach ($selects as $sel) {
    echo "<option " . ($selected_room == $sel->room_id ? "selected" : "") . " value ='" . $sel->room_id . "'>" . htmlspecialchars($sel->room_name) . "</option>";
    $room_names[$sel->room_id] = $sel;
}
?>
	
				</select>
			</div> 

			<div class="form_element">
				<label for="notes">Notes: </label>
				<textarea id="notes" name="notes" class="element textarea medium"></textarea> 
			</div>