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

?>
<div class="box-header" style="padding:10px 0;">
	<div class="row">
		<div class="col-12">
			<form action="<?php echo $submit_url;?>" method="post" name="search_form" id="search_form"  enctype="multipart/form-data">
			<div class="row">
				<div class="col-sm-3 col-12">
					<label for="Description" class="control-label">Description</label>
					<textarea class="form-control" rows="4" id="document_text" name="document_text" required><?php echo stripslashes($document_text);?></textarea>
				</div>
				<?/*
				<div class="col-sm-3 col-12">
					<!--<label for="Note" class="control-label">Document Date</label>
					<input type="text" class="form-control" id="document_date" name="document_date" value="<?php (isset($document_date) && $document_date !="") ? utility::getFormatedDate($document_date) : utility::getFormatedDate(date($config->dateFormat));?>" required>-->
					
					<label for="Type" class="control-label">Type</label>
					<? echo Keycode::getKeycodeListValue("document_type", $document_type, $width = 250, "Document Type", "id", "code", "document_type","","form-control select2"); ?>
				</div>
				*/?>
				<div class="col-sm-3 col-12">
					<label for="Document" class="control-label">Document</label>
					(doc type jpg/jpeg/png/pdf/doc/docx/xls/xlsx)
					<input type="file" name="document_name" id="document_name" />
					<input type="hidden" name="hidden_document_name" value="<? echo $document_name;?>">
				</div>
				<div class="col-sm-3 col-12">
					<label for="Client" class="control-label">Client</label>
					<? $gsi->getEnqQuoteJobList("job_id",$job_id,"100%",false,"form-control select2");?>
				</div>
				<div class="col-sm-2 col-12">
					<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>
				</div>
			</div>
			</form>
		</div>
	</div>
</div>