<div id="bgbottom">
	<div id="bobottom" class="clearfix">
		<div id="bottomleft">
			<?php
				include '../libs/functiondb.php';
				$bandb = mysqli_query($koneksi, "SELECT * FROM cmas_banner WHERE banner_id='79'");
				$bandt = mysqli_fetch_array($bandb);
			?>
			<div id="bottombox" class="clearfix">
				<div id="bottomboxfull">
					<div class="bottomtit">
						<?php echo $bandt['banner_judul']; ?>
					</div>
					<div class="bottomdes">
						<?php echo $bandt['banner_deskripsi']; ?>
					</div>
				</div>
			</div>
		</div>
		
		<div id="bottommenu">
			<?php
				include '../libs/functiondb.php';
				$bandb = mysqli_query($koneksi, "SELECT * FROM cmas_kontenkat WHERE kontenkat_id='1'");
				$bandt = mysqli_fetch_array($bandb);
			?>
			<div id="bottombox" class="clearfix">
				<div id="bottomboxfull">
					<div class="bottomtit">
						<?php echo $bandt['kontenkat_judul']; ?>
					</div>
					<div class="bottomdes">
						<ul>
							<?php 
								$bandb = mysqli_query($koneksi, "SELECT * FROM cmas_konten WHERE kontenkat_id='1' AND konten_status='Aktif' ORDER BY konten_order ASC");
								while($bandt = mysqli_fetch_array($bandb)) {
							?>
								<li><a href="content-<?php echo $bandt['konten_seo']; ?>"><?php echo $bandt['konten_judul']; ?></a></li>
							<?php } ?>
						</ul>
					</div>
				</div>
			</div>
		</div>
		
		<div id="bottommenu">
			<?php
				include '../libs/functiondb.php';
				$bandb = mysqli_query($koneksi, "SELECT * FROM cmas_kontenkat WHERE kontenkat_id='3'");
				$bandt = mysqli_fetch_array($bandb);
			?>
			<div id="bottombox" class="clearfix">
				<div id="bottomboxfull">
					<div class="bottomtit">
						<?php echo $bandt['kontenkat_judul']; ?>
					</div>
					<div class="bottomdes">
						<ul>
							<?php 
								$bandb = mysqli_query($koneksi, "SELECT * FROM cmas_konten WHERE kontenkat_id='3' AND konten_status='Aktif' ORDER BY konten_order ASC");
								while($bandt = mysqli_fetch_array($bandb)) {
							?>
								<li><a href="content-<?php echo $bandt['konten_seo']; ?>"><?php echo $bandt['konten_judul']; ?></a></li>
							<?php } ?>
						</ul>
					</div>
				</div>
			</div>
		</div>
		
		<div id="bottommenu">
			<?php
				include '../libs/functiondb.php';
				$bandb = mysqli_query($koneksi, "SELECT * FROM cmas_kontenkat WHERE kontenkat_id='4'");
				$bandt = mysqli_fetch_array($bandb);
			?>
			<div id="bottombox" class="clearfix">
				<div id="bottomboxfull">
					<div class="bottomtit">
						<?php echo $bandt['kontenkat_judul']; ?>
					</div>
					<div class="bottomdes">
						<ul>
							<?php 
								$bandb = mysqli_query($koneksi, "SELECT * FROM cmas_konten WHERE kontenkat_id='4' AND konten_status='Aktif' ORDER BY konten_order ASC");
								while($bandt = mysqli_fetch_array($bandb)) {
							?>
								<li><a href="content-<?php echo $bandt['konten_seo']; ?>"><?php echo $bandt['konten_judul']; ?></a></li>
							<?php } ?>
						</ul>
					</div>
				</div>
			</div>
		</div>
		
		<div id="bottommenu">
			<?php
				include '../libs/functiondb.php';
				$medb = mysqli_query($koneksi, "SELECT * FROM cmas_menucat WHERE menucat_id='2'");
				$medt = mysqli_fetch_array($medb);
			?>
			<div id="bottombox" class="clearfix">
				<div id="bottomboxfull">
					<div class="bottomtit">
						<?php echo $medt['menucat_nama']; ?>
					</div>
					<div class="bottomdes">
						<ul>
							<?php 
								$bandb = mysqli_query($koneksi, "SELECT * FROM cmas_menu WHERE menu_status='Aktif' AND menucat_id='2' ORDER BY menu_order ASC");
								while($bandt = mysqli_fetch_array($bandb)) {
							?>
								<li><a href="<?php echo $bandt['menu_seo']; ?>"><?php echo $bandt['menu_nama']; ?></a></li>
							<?php } ?>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>