<div id="bgbuslist">
	<div id="bobuslist">
		<div id="bobuslisttop" 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="bobuslisttoptit">
				<h2><?php echo $badt['banner_judul']; ?></h2>
			</div>
			<div class="bobuslisttopdes">
				<h3><?php echo $badt['banner_deskripsi']; ?></h3>
			</div> 
		</div>
		
		<div id="bobuslistbot" class="clearfix">
			<div id="bobuslistbox" 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="buslistbox">
						<div id="buslistboxtop">
							<div class="buslistimg">
								<a href="1<?php echo $amdt['bus_id']; ?>-<?php echo $amdt['bus_seo']; ?>">
									<?php echo $bus_image; ?>
								</a>
							</div>
						</div>
						<div id="buslistboxbot">
							<div class="buslistmod">
								<?php echo $amdt['bus_model']; ?>
							</div>
							<div class="buslisttit">
								<a href="1<?php echo $amdt['bus_id']; ?>-<?php echo $amdt['bus_seo']; ?>">
									<?php echo $amdt['bus_nama']; ?>
								</a>
							</div>
							<div class="buslistfas">
							<?php echo $amdt['bus_fasilitas']; ?>
						</div>
						</div>
					</div>
				<?php } ?>
			</div>
		</div>
	</div>
</div>