
<form action="<?php echo base_url(); ?>apply/save" method="POST" role="form">
<input type="hidden" name="ID" value="<?php echo ($result && $result->ID) ? $result->ID : 0; ?>" />
<input type="hidden" name="category" value="MGMT" />
<input type="hidden" name="from" value="#tab_3_1" />
<div class="modal-header">
	<a href="javascript:void(0);" class="close" data-dismiss="modal">&times;</a>
	<h3 class="modal-title">Tambah / Ubahsuai Ahli Lembaga Pengarah</h3>
</div>

<div class="modal-body">
	<div class="row">
		<div class="col-md-12">
			<!-- NAME -->
			<div class="form-group">
				<label for="address" class="col-sm-4 control-label">Nama</label>
				<div class="col-sm-8">
					<?php $name = ($result && $result->name) ? $result->name : NULL; ?>
					<textarea type="text" class="form-control" row="30" id="name" name="name"><?php echo $name ?></textarea>
				</div>
				<div>&nbsp;</div>
			</div>	
			
			<!-- IC -->
			<div class="form-group">
				<label for="postCode" class="col-sm-4 control-label">Kad Pengenalan</label>
				<div class="col-sm-8">
					<?php $ic = ($result && $result->ic) ? $result->ic : NULL; ?>
					<input type="text" class="form-control" id="ic" name="ic" placeholder="kad pengenalan" value="<?php echo $ic; ?>">
				</div>
				<div>&nbsp;</div>
			</div>
			
			<!-- JAWATAN -->
			<div class="form-group">
				<label for="bumi" class="col-sm-4 control-label">Jawatan</label>
				<div class="col-sm-8">
					<?php $position = ($result && $result->position) ? $result->position : NULL; ?>
					<select id="position" name="position" class="form-control">
					<option disabled selected>---</option>
					<?php
					if($positions) {
						foreach($positions as $key=>$value) {
							?>
							<option value="<?php echo $value->posID; ?>" <?php echo ($value->posID == $position) ? " selected=\"selected\" " : ""; ?> ><?php echo $value->posMal; ?></option>
							<?php
						}
					}
					?>
					</select>
				</div>
				<div>&nbsp;</div>
			</div>
			
			<!-- BUMIPUTERA -->
			<div class="form-group">
				<label for="bumi" class="col-sm-4 control-label">Status</label>
				<div class="col-sm-8">
					<?php $bumi = ($result && $result->bumi) ? $result->bumi : NULL; ?>
					<select id="bumi" name="bumi" class="form-control">
					<option disabled selected>---</option>
					<option value="1" <?php echo (1 == $bumi) ? " selected=\"selected\" " : ""; ?> >Bumiputera</option>
					<option value="0" <?php echo (0 == $bumi) ? " selected=\"selected\" " : ""; ?> >Bukan Bumiputera</option>		
					</select>
				</div>
				<div>&nbsp;</div>
			</div>
														
			
		</div>
	</div>
</div>

<div class="modal-footer">
	<div class="box-sm pull-right">
		<button type="button" class="btn btn-danger btn-sm" data-dismiss="modal"><i class="fa fa-times"></i> Tutup</button>
		<button type="submit" class="btn bg-olive 	btn-sm"><i class="fa fa-check"></i> Simpan</button>
	</div>
</div>
</form>
