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

$search_url = $file_name."?page=view_reminder_for_consultant"; 
$show_all = "page=view_reminder_for_consultant"; 
?>
<button data-toggle="collapse" data-target="#booke_reminder_area" type="button" name="" class="btn btn-primary" style="margin:0 0 5px 10px;" >Add Reminder</button>
<div class="panel box box-primary <?=$collapse_booke_reminder_area;?>" id="booke_reminder_area">
	<div class="box-header with-border">
		<form action="<?php echo $submit_url;?>" method="post" name="search_form" id="search_form">
			<div class="col-sm-6">
				<label for="Description" class="control-label">Description</label>
				<textarea class="form-control" rows="4" id="note_text" name="note_text" required><?php echo stripslashes($note_text);?></textarea>
				
				<label for="Job" class="control-label">Job</label>
				<? $gsi->getEnqQuoteJobList("job_id",$job_id,"100%",false,"form-control select2"); ?>
			</div>
			<!--<div class="col-sm-3">
				<label for="Consultant" class="control-label">Consultant</label>
				<? 
					//Admin::getAdminList("admin_id",$admin_id,"100%",true,"form-control"); 
				?>
			</div>-->
			<div class="col-sm-3">
				<label for="Date" class="control-label">Date</label>
				<input type="text" class="form-control datepicker" id="note_date" name="note_date" value="<?php (isset($note_date) && $note_date !="") ? utility::getFormatedDate($note_date) : utility::getFormatedDate(date($config->dateFormat));?>" required>
			</div>
			<div class="col-sm-3">
				<label for="Time" class="control-label">Time</label>
				<div class="bootstrap-timepicker">
					<input type="text" class="form-control timepicker" id="reminder_time" name="reminder_time" value="<?php echo $reminder_time;?>">
				</div>
			</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="note_type" name="note_type" value="<?php echo $note_type;?>">
				<!--<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>
			</div>
		</form>
	</div>
</div>


<div class="box-header" >
	<form action="<?php echo $search_url;?>" method="post" name="search_form" id="search_form">
		<div class="col-sm-3">
			<label for="Job" class="control-label">Job</label>
			<? $gsi->getEnqQuoteJobList("job_id_search",$job_id_search,"100%",false,"form-control select2"); ?>
		</div>
		<div class="col-sm-2">
			<label for="From" class="control-label">From</label>
			<input type="text" class="form-control datepicker" id="from_note_date" name="from_note_date" value="<?php (isset($from_note_date) && $from_note_date !="") ? utility::getFormatedDate($from_note_date) : "";?>">
		</div>
		<div class="col-sm-2">
			<label for="To" class="control-label">To</label>
			<input type="text" class="form-control datepicker" id="to_note_date" name="to_note_date" value="<?php (isset($to_note_date) && $to_note_date !="") ? utility::getFormatedDate($to_note_date) : "";?>">
		</div>
		<div class="col-sm-2">
			<div style="clear:both;margin-top:23px;"></div>			
			<button type="submit" name="search" class="btn btn-primary">Search</button>
			<button type="button" name="search" class="btn btn-primary" onclick="javascript:window.location='?<?php echo $show_all ?>'">Show All</button>
		</div>
	</form>
</div>