<?php
$mode		= $this->uri->segment(3);

if ($mode == "edt" || $mode == "act_edt") {
	$act		= "act_edt";
	$idp		= $datpil->id;
	$jawaban	= $datpil->keterangan;
	$pertanyaan	= $datpil->kategori;
	
} else {
	$act		= "act_add";
	$idp		= "";
	$jawaban	= "";
	$pertanyaan	= "";
}
?>
<div class="navbar navbar-inverse">
	<div class="container" style="z-index: 0">
		<div class="navbar-header">
			<span class="navbar-brand" href="#">Panduan Pengunaan Siakad</span>
		</div>
	</div><!-- /.container -->
	
</div><!-- /.navbar -->
	
	<form action="<?php echo base_URL(); ?>bantuan/list_data/<?php echo $act; ?>" method="post" accept-charset="utf-8" enctype="multipart/form-data">
	
	<input type="hidden" name="idp" value="<?php echo $idp; ?>">
	<input type="hidden" name="act" value="<?php echo $act; ?>">
	
	<div class="row-fluid well" style="overflow: hidden">
	
		<div class="col-lg-12">
			<table width="100%" class="table-form">
			<tr><td width="20%">Pertanyaan</td><td><b><textarea name="pertanyaan" id="editor2" required style="width: 400px; height: 90px" class="form-control"><?php echo $pertanyaan; ?></textarea></b></td></tr>
			<tr><td width="20%">Jawaban</td><td><b><textarea name="jawaban" id="editor1" required style="width: 400px; height: 90px" class="form-control"><?php echo $jawaban; ?></textarea></b></td></tr>
			<tr><td width="20%"></td><td><br><button type="submit" class="btn btn-primary" tabindex="7" ><i class="icon icon-ok icon-white"></i> Simpan</button>
			<a href="<?php echo base_URL(); ?>bantuan/list_data" class="btn btn-success" tabindex="8" ><i class="icon icon-arrow-left icon-white"></i> Kembali</a>
			</td></tr>
			
			
			</table>
		</div>
	</div>
	</form>
