<title>Input Tujuan</title>
<div id="pagetitle">INPUT TUJUAN</div>
<div id="bataspadding">
    <form action="?m=tujuan_simpan" method="post" enctype="multipart/form-data">
        <div id="wrapgsetting" class="clearfix">
            <div id="gsetting" class="clearfix">
                <div id="gsettinglabel">Status</div>
                <div id="gsettingedit">
                    <select name="tujuan_status">
                        <?php $stdb=mysqli_query($koneksi, "SELECT * FROM cmas_status ORDER BY status_id ASC"); while($stdt=mysqli_fetch_array($stdb)) { ?>
							<option value="<?php echo $stdt['status_nama']; ?>"><?php echo $stdt['status_nama']; ?></option>
						<?php } ?>
                    </select>
                </div>
            </div>
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">Bus Type</div>
				<div id="gsettingedit">
					<select name="bustype_id">
						<?php
							$btdb = mysqli_query($koneksi, "SELECT * FROM cmas_bustype WHERE bustype_status='Aktif' AND bustype_id='$_GET[id]' ORDER BY bustype_id ASC");
							while($btdt = mysqli_fetch_array($btdb)) {
						?>
							<option value="<?php echo $btdt['bustype_id']; ?>"><?php echo $btdt['bustype_nama']; ?></option>
						<?php } ?>
					</select>
				</div>
			</div>
            <div id="gsetting" class="clearfix">
                <div id="gsettinglabel">Jumlah Hari</div>
                <div id="gsettingedit">
                    <select name="tujuan_hari" required>
                        <option value="1">1 Hari</option>
                        <option value="2">2 Hari</option>
                        <option value="3">3 Hari</option>
                        <option value="4">4 Hari</option>
                        <option value="5">5 Hari</option>
                        <option value="6">6 Hari</option>
						<option value="7">7 Hari</option>
                        <option value="8">8 Hari</option>
						<option value="9">9 Hari</option>
                        <option value="10">10 Hari</option>
                    </select>
                </div>
            </div>
            <div id="gsetting" class="clearfix">
                <div id="gsettinglabel">Nama Tujuan</div>
                <div id="gsettingedit">
                    <input name="tujuan_nama" type="text" required />
                </div>
            </div>
            <div id="gsetting" class="clearfix">
                <div id="gsettinglabel">Biaya Perjalanan</div>
                <div id="gsettingedit">
                    <input name="tujuan_harga" type="text" required />
                </div>
            </div>
        </div>
        <div id="tombolsubmit">
            <a href="?m=tujuan_indexkat&id=<?php echo $_GET['id']; ?>"><input name="Button" type="button" value="KEMBALI" class="myButton"/></a>
            <input name="Submit" type="submit" value="SIMPAN" class="submitbutton"/>
        </div>
    </form>
</div>