<?php
	session_start();
	// ============
	include("../../asset/theme/css/myfunc.php");
	include("../../php_crud/my_class.php");
	$obj=new my_class();
	// ============
	extract($_REQUEST);
	//echo "selected id: $sel_division";
	$sel_division_info = $obj->Details_By_Cond("AQUATIC.TBLGWH_DIVISIONINFO@AQUATIC227","ID='$sel_division'");
?>
<input type="hidden" name="sel_division" id="sel_division" value="<?php echo $sel_division; ?>">

<div class="row-fluid">
	<div class="row-fluid">
		<div class="span12">	
			<div class="control-group">
				<label class="control-label" for="form-field-1"><b>Division Name <font color="#FF0000">*</font></b></label>
				<div class="controls">
					<input style="width: 98%;" type="text" name="e_division_name" id="e_division_name" class="form-control" placeholder="Division Name" value="<?php echo $sel_division_info['DIVISIONNAME']; ?>">
				</div> 
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span12">	
			<div class="control-group">
				<label class="control-label" for="form-field-1"><b>Responsible Person</b></label>
				<div class="controls">
					<input style="width: 98%;" type="text" name="e_responsible_person" id="e_responsible_person" class="form-control" placeholder="Responsible Person" value="<?php echo $sel_division_info['RESPONSIBLEPERSON']; ?>">
				</div> 
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span12">	
			<div class="control-group">
				<label class="control-label" for="form-field-1"><b>Designation</b></label>
				<div class="controls">
					<input style="width: 98%;" type="text" name="e_designation" id="e_designation" class="form-control" placeholder="Designation" value="<?php echo $sel_division_info['DESIGNATION']; ?>">
				</div> 
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span12">	
			<div class="control-group">
				<label class="control-label" for="form-field-1"><b>Contact No</b></label>
				<div class="controls">
					<input style="width: 98%;" type="text" name="e_contact_no" id="e_contact_no" class="form-control" placeholder="Contact No" value="<?php echo $sel_division_info['CONTACTNO']; ?>">
				</div> 
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span12">	
			<div class="control-group">
				<label class="control-label" for="form-field-1"><b>Contact Address</b></label>
				<div class="controls">
					<textarea style="width: 98%;" name="e_contact_address" id="e_contact_address" class="form-control" rows="2" placeholder="Contact Address"><?php echo $sel_division_info['CONTACTADDRESS']; ?></textarea>
				</div> 
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span12">	
			<div class="control-group">
				<label class="control-label" for="form-field-1"><b>Status</b></label>
				<div class="controls">
					<select name="e_status" id="e_status" class="form-control" style="width: 98%;">
						<option value="A" <?php if($sel_division_info['FLAG']=='A'){echo "selected";}?>>Active</option>
						<option value="I" <?php if($sel_division_info['FLAG']=='I'){echo "selected";}?>>Inactive</option>
					</select>
				</div> 
			</div>
		</div>
	</div>
</div>