<?php
session_start();
// ============ this file shows data in form for user to update
include("../../asset/theme/css/myfunc.php");
include("../../php_crud/my_class.php");
$obj=new my_class();
$branch_id=$_SESSION['LOGIN_BRANCH'];
$selected_id_to_edit=addslashes(trim($_GET['_id']));
//echo $selected_id_to_edit;
//echo "hello";
//exit;

$table_name="_pb_group_info";
$where_cond="_id=".$selected_id_to_edit;
$selected_row_to_edit = $obj->Details_By_Cond($table_name,$where_cond);
extract($selected_row_to_edit);
?>
<div class="row-fluid" style="background-color:#f5f5f5;-webkit-box-shadow: 0 8px 6px -6px black; -moz-box-shadow: 0 8px 6px -6px black; box-shadow: 0 8px 6px -6px black; ">
	<form class="form-vertical" id="asd">
	<input type="hidden" id="selected_id_to_edit" name="selectedidtoedit" value="<?php echo $selected_id_to_edit;?>"/>
		<div class="row-fluid">
			<div class="span3">
				<div class="control-group">
					<label class="control-label" for="form-field-1">&nbsp;&nbsp;Group Name<font color="#FF0000">*</font></label>
					<input style="width:200px; height:20px;" type="text" name="phn_grp_name" form="usrform" id="edit_phn_grp_name" 
					value="<?php echo $selected_row_to_edit['_name'];?>">
				</div>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span3">
				<div class="control-group">
					<label class="control-label" for="form-field-1">&nbsp;&nbsp;Status <font color="#FF0000">*</font></label>
					<select id="edit_grp_status">
					  <option value="">--SELECT--</option>
					  <option value="A" <?php if($selected_row_to_edit['_status']=='A'){echo "selected";}?>>Active</option>
					  <option value="I" <?php if($selected_row_to_edit['_status']=='I'){echo "selected";}?>>Inactive</option>
					</select>
				</div>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span3">
				<div class="control-group">
					<label class="control-label" for="form-field-1">&nbsp;&nbsp;Comments<font color="#FF0000">*</font></label>
					<input style="width:200px; height:20px;" type="text" value="<?php echo $selected_row_to_edit['_comments'];?>" name="grp_comments" form="usrform" id="edit_grp_comments">
				</div>
			</div>
			
		</div>
	</form>
</div>	