<div id="bgbushome">
	<div id="bobushome">
		<div id="bobushometop" 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="bobushometoptit">
				<?php echo $badt['banner_judul']; ?>
			</div>
			<div class="bobushometopdes">
				<?php echo $badt['banner_deskripsi']; ?>
			</div> 
		</div>
		
		<div id="bobushomebot" 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="bushomebox">
					<div id="bushomeboxtop">
						<div class="bushomeimg">
							<a href="1<?php echo $amdt['bus_id']; ?>-<?php echo $amdt['bus_seo']; ?>">
								<?php echo $bus_image; ?>
							</a>
						</div>
					</div>
					<div id="bushomeboxbot">
						<div class="bushomemod">
							<?php echo $amdt['bus_model']; ?>
						</div>
						<div class="bushometit">
							<a href="1<?php echo $amdt['bus_id']; ?>-<?php echo $amdt['bus_seo']; ?>">
								<?php echo $amdt['bus_nama']; ?>
							</a>
						</div>
						<div class="bushomefas">
							<?php echo $amdt['bus_fasilitas']; ?>
						</div>
					</div>
				</div>
			<?php } ?>
		</div>
	</div>
</div>