<?php
	$now = @$this->uri->segment(3);
?>
<div class="panel panel-default">
	<div class="panel-heading">
		<div class="row">
			<div class='col-sm-6'><?php echo $judul;?></div>
			<div class='col-sm-6' align='right'>

			</div>
		</div>
	</div>
	<?php
	if(isset($_GET['s'])){
		switch($_GET['s']){
			case "true" : $c="success"; break;
			case "false": $c="danger"; break;
		}
			echo"
			<br>
			<div class='container' style='width:100%;'><div class='row'><div class='col-md-12'>
			<div class='alert alert-$c' role='alert'>
				<span class='glyphicon glyphicon-exclamation-sign' aria-hidden='true'></span>
				<span class='sr-only'>Error:</span>
				$_GET[m]
			</div></div></div>
			</div>
			";
	}
	?>	
	<form action="<?=base_url()?>cms/logic/importProses" method="post" data-parsley-validate enctype="multipart/form-data">
		<div class="panel-body">  

			<div class="form-group">
				<div class="row">
					<div class="col-sm-12">
						<label class="control-label"><a href='<?=$url;?>importdownload'><i class='fa fa-download'></i> Download Format Template</a></label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div class="row">
					<div class="col-sm-2">
						<label class="control-label">File excel</a></label>
					</div>
					<div class="col-sm-2">
						<input type='file' name='excel' required class='form-control' accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel">
					</div>
				</div>
			</div>
		</div> 
		
		<div class="panel-footer">
			<button type="submit" onclick="return confirm('Apakah file yang akan di upload sudah sama dengan template ?');" class="btn btn-primary">Upload & Import</button> 
			<button type="reset" class="btn btn-inverse">Clear</button>
		</div>
	</form>
</div>