<div id="bgbuspage">
	<div id="bobuspage">
		<div id="bgbreadcumb">
			<div id="bobreadcumb">
				<div class="bobreadcumbtit">
					<a href="./">Beranda</a> &nbsp;&#10095;&nbsp; Sewa Bus
				</div>
			</div>
		</div>
		
		<div id="bobuspagetop" class="clearfix">
			<?php 
				include '../libs/functiondb.php';
				$badb = mysqli_query($koneksi, "SELECT * FROM cmas_banner WHERE banner_id='94'");
				$badt = mysqli_fetch_array($badb);
			?>
			<div class="bobuspagetoptit">
				<h1><?php echo $badt['banner_judul']; ?></h1>
			</div>
			<div class="bobuspagetopdes">
				<h2><?php echo $badt['banner_deskripsi']; ?></h2>
			</div> 
		</div>
		
		<div id="bobuspagebot" class="clearfix">
			<?php
				include "../libs/functiondb.php";
				$amdb = mysqli_query($koneksi, "SELECT * FROM cmas_bus WHERE bus_status='Aktif' ORDER BY bus_id ASC");
				while($amdt = mysqli_fetch_array($amdb)) {
				
				if ($amdt['bus_imageid'] == 0) {
					$bus_image = "<img src='assets/images/noimage.jpg' alt='$amdt[bus_nama] - $amdt[bus_model]' title='$amdt[bus_nama] - $amdt[bus_model]'>";
				} else {
					$bus_image = "<img src='assets/images/bus/$amdt[bus_image]' alt='$amdt[bus_nama] - $amdt[bus_model]' title='$amdt[bus_nama] - $amdt[bus_model]'>";
				}
			?>
				<div id="buspagebox">
					<div id="buspageboxtop">
						<div class="buspageimg">
							<a href="1<?php echo $amdt['bus_id']; ?>-<?php echo $amdt['bus_seo']; ?>">
								<?php echo $bus_image; ?>
							</a>
						</div>
					</div>
					<div id="buspageboxbot">
						<div class="buspagemod">
							<?php echo $amdt['bus_model']; ?>
						</div>
						<div class="buspagetit">
							<a href="1<?php echo $amdt['bus_id']; ?>-<?php echo $amdt['bus_seo']; ?>">
								<?php echo $amdt['bus_nama']; ?>
							</a>
						</div>
						<div class="buspagefas">
							<?php echo $amdt['bus_fasilitas']; ?>
						</div>
					</div>
				</div>
			<?php } ?>
		</div>
	</div>
</div>