<?php 
$submit_url = $file_name."?page=view_celebrant_phone_conversation&action=$action"; 
$status_submit_url = $file_name."?page=view_celebrant_phone_conversation&name=$name"; 
if(isset($_REQUEST["page"]) && $_REQUEST["page"] == "view_celebrant_phone_conversation"){ 
	$back_query_string = "page=view_celebrant";
}
?>
<div class="box-header" >
	<form action="<?php echo $submit_url;?>" method="post" name="search_form" id="search_form">
		<div class="col-sm-3">
			<label for="" class="control-label">Aware of new structure/role?</label>
			<textarea class="form-control" rows="2" id="aware_of_new_structure_or_role" name="aware_of_new_structure_or_role" required><?php echo stripslashes($aware_of_new_structure_or_role);?></textarea>
		</div>
		<div class="col-sm-3">
			<label class="control-label">Happy with celebrant group access - actual or virtual?</label>
			<textarea class="form-control" rows="2" id="happy_with_celebrant_group" name="happy_with_celebrant_group" required><?php echo stripslashes($happy_with_celebrant_group);?></textarea>
		</div>
		<div class="col-sm-3">
			<label class="control-label">Any ideas regarding CPD?</label>
			<textarea class="form-control" rows="2" id="any_ideas_regarding_CPD" name="any_ideas_regarding_CPD" required><?php echo stripslashes($any_ideas_regarding_CPD);?></textarea>
		</div>
		<div class="col-sm-3">
			<label class="control-label">Mentoring - happy with mentoring work or would consider mentor training?</label>
			<textarea class="form-control" rows="2" id="happy_with_mentoring_work" name="happy_with_mentoring_work" required><?php echo stripslashes($happy_with_mentoring_work);?></textarea>
		</div>
		<div class="col-sm-3">
			<label class="control-label">Interested in attending conference?</label>
			<textarea class="form-control" rows="2" id="interested_in_attending_conference" name="interested_in_attending_conference" required><?php echo stripslashes($interested_in_attending_conference);?></textarea>
		</div>
		<div class="col-sm-3">
			<label class="control-label">Local media work?</label>
			<textarea class="form-control" rows="2" id="local_media_work" name="local_media_work" required><?php echo stripslashes($local_media_work);?></textarea>
		</div>
		<div class="col-sm-3">
			<label class="control-label">Concerns with celebrant work?</label>
			<textarea class="form-control" rows="2" id="concerns_with_celebrant_work" name="concerns_with_celebrant_work" required><?php echo stripslashes($concerns_with_celebrant_work);?></textarea>
		</div>
		<div class="col-sm-3">
			<label class="control-label">Ideas regardingyour relationship with with Humanists UK?</label>
			<textarea class="form-control" rows="2" id="ideas_regarding_relationship_with_humanists" name="ideas_regarding_relationship_with_humanists" required><?php echo stripslashes($ideas_regarding_relationship_with_humanists);?></textarea>
		</div>
		<div class="col-sm-3">
			<label for="Consultant" class="control-label">Consultant</label>
				<div id="admin_id_div">
				<? 
					$admin_ids = "";
					$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){
						$c=0;
						while($row_for_admin = mysqli_fetch_assoc($rs_for_admin)){
							if($c==0){
								$default_admin = $row_for_admin["admin_id"];								
							}
							$c=$c+1;
							$admin_ids .= $row_for_admin["admin_id"].",";
						}
						$admin_ids = substr($admin_ids,0,-1);
					}
					if($c==1 && $_REQUEST['action'] != 'edit'){
						$admin_id = $default_admin;
					}
					Admin::getAdminList("admin_id",$admin_id,"100%",false,"form-control","required",$admin_ids); 
				?>
			   </div>	
		</div>
		<div class="col-sm-3">
			<label for="Note" class="control-label">Date</label>
			<input type="text" class="form-control" id="phone_conversation_date" name="phone_conversation_date" value="<?php (isset($phone_conversation_date) && $phone_conversation_date !="") ? utility::getFormatedDate($phone_conversation_date) : utility::getFormatedDate(date($config->dateFormat));?>" required>
		</div>
		<!--<div class="col-sm-3">
			<label for="Job" class="control-label">Job</label>
			<? //$gsi->getEnqQuoteJobList("job_id",$job_id,"100%",false); ?>
		</div>
		<div class="col-sm-3">
			<label for="Consultant" class="control-label">Consultant</label>
			<? //Admin::getAdminList("admin_id",$admin_id,"100%",false); ?>
		</div>-->
		<div class="col-sm-3">
			<div style="clear:both;margin-top:23px;"></div>
			<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="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" class="btn btn-primary"><?=$button_value?></button>
			<button type="button" id="back" name="back" value="back" class="btn btn-primary" onclick="window.location.href = 'index?<?=$back_query_string;?>'">Back</button>
		</div>
	</form>
</div>
<script type="text/javascript">		
$(document).ready(function() {
$('#phone_conversation_date').datepicker({
		changeMonth: true,
		changeYear: true,
		format: "dd-mm-yyyy",
		autoclose: true
	});
});
</script>