<?php 
$submit_url = $file_name."?page=view_timesheet_option&action=$action"; 
$status_submit_url = $file_name."?page=view_timesheet_option&name=$name"; 

?>
<div class="box-header" >
	<form action="<?php echo $submit_url;?>" method="post" name="add_form" id="add_form">
		<div class="col-sm-3">
			<label for="Timesheet Text" class="control-label">Description</label>
			<textarea class="form-control" rows="4" id="timesheet_text" name="timesheet_text" ><?php echo stripslashes($timesheet_text);?></textarea>
		</div>		
		<div class="col-sm-3">
			<label for="Timesheet Option" class="control-label">Timesheet Option</label>
			<? echo Keycode::getKeycodeListValue("timesheet_option", $timesheet_option, $width = "100%", "Timesheet Option", "id", "code", "timesheet_option","","form-control",false,"required"); ?>
		</div>
		<div class="col-sm-3">
			<label for="Consultant" class="control-label">Consultant</label>
			<?
					
					/* $sql_for_admin = "SELECT * FROM job_admin_mapping WHERE job_id = $job_id";
					$rs_for_admin = mysqli_query($conn,$sql_for_admin);
					if(mysqli_num_rows($rs_for_admin) > 0){
						while($row_for_admin = mysqli_fetch_assoc($rs_for_admin)){
							$admin_ids .= $row_for_admin["admin_id"].",";
						}
						$admin_ids = substr($admin_ids,0,-1);
					}
					if($admin_ids != ""){
						Admin::getAdminList("admin_id",$admin_id,"100%",true,"form-control select_admin_id","required",$admin_ids); 
					}else if( $admin_ids == ""){
						echo "<span style='color:red;' id='span'>No consultant assign to this job. First assign consultant.</span>";
					}else{
						 
					} */
					Admin::getAdminList("admin_id",$admin_id,"100%",true,"form-control select_admin_id","required",$admin_ids);
				?>
		</div>
		<div style="clear:both;margin-top:23px;"></div>
		<div class="col-sm-3">
			<input type="hidden" id="id" name="id" value="<?php echo $id;?>">
			<input type="hidden" id="job_id" name="job_id" value="<?php echo $job_id;?>">
			<input type="hidden" id="project_id" name="project_id" value="<?php echo $project_id;?>">
			<input type="hidden" id="query_string" name="query_string" value="<?php echo $query_string;?>">
			<input type="hidden" id="source" name="source" value="<?php echo $source;?>">
			<button type="submit" name="add_master_data" id="submit_form" class="btn btn-success"><?=$button_value?></button>
		</div>
	</form>
</div>