<div class="kt-subheader   kt-grid__item" id="kt_subheader" style="height:50px;margin-top:40px;">
	<div class="kt-container  kt-container--fluid ">
		<div class="kt-subheader__main">
			<h3 class="kt-subheader__title">
				Check List Master
			</h3>
			<span class="kt-subheader__separator kt-subheader__separator--v"></span>
			<div class="kt-subheader__breadcrumbs">
				<span class="kt-subheader__breadcrumbs-home"><i class="flaticon2-shelter"></i></span>
				<span class="kt-subheader__breadcrumbs-separator"></span>
				<span class="kt-subheader__breadcrumbs-link">
					Service </span>
				<span class="kt-subheader__breadcrumbs-separator"></span>
				<span class="kt-subheader__breadcrumbs-link">
					Check List Master </span>
			</div>
		</div>
	</div>
</div>

<div class="kt-portlet kt-portlet--tabs" id="formCheckList">
	<div class="kt-portlet__head">
		<div class="kt-portlet__head-toolbar">
			<ul class="nav nav-tabs nav-tabs-space-xl nav-tabs-line nav-tabs-bold nav-tabs-line-3x nav-tabs-line-brand" role="tablist">
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#checklist-general" role="tab">
						<i class="la la-briefcase"></i> General
					</a>
				</li>
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#checklist-detail" role="tab">
						<i class="flaticon-edit-1"></i> Detail
					</a>
				</li>
			</ul>
		</div>
		<div class="kt-portlet__head-toolbar" style="margin-top: 10px;">
			<div class="kt-portlet__head-group">
				<button type="button" class="btn btn-sm btn-icon btn-default btn-pill  btn-icon-md" onclick="closeFormCheckList()"><i class="la la-close"></i></button>
			</div>
		</div>
	</div>

	<form class="kt-form kt-form--label-right" style="margin-bottom: 0px;">
		<div class="kt-portlet__body" style="padding-bottom: 0px;">
			<div class="tab-content">
				<div class="tab-pane active" id="checklist-general" role="tabpanel">
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">ID :</label>
						<div class="col-lg-1">
							<input type="text" id="txtChecklistId" maxlength="10" size="10" class="form-control" placeholder="Auto" disabled>
						</div>
						<label class="col-lg-1 col-form-label">Code:</label>
						<div class="col-lg-1">
							<input type="text" id="txtChecklistCode" maxlength="7" size="7" class="form-control">
							<span id="checklist_err_code" style="color:Red;display:none">*</span>
						</div>
					</div>
					<div class="kt-separator kt-separator--border-dashed kt-separator--portlet-fit"></div>
					<div class="form-group row">
						<label class="col-lg-1 col-form-label">Name:</label>
						<div class="col-lg-3">
							<input type="text" id="txtChecklistName" maxlength="250" size="250" class="form-control">
							<span id="checklist_err_desc" style="color:Red;display:none">*</span>
						</div>
						<label class="col-lg-1 col-form-label">Reference:</label>
						<div class="col-lg-3">
							<input type="text" id="txtChecklistRef" maxlength="250" size="250" class="form-control">
						</div>
					</div>	
				</div>
				<div class="tab-pane" id="checklist-detail" role="tabpanel">
					<div class="form-group m-form__group row" style="margin-left:10px;">
     					<div class="col-lg-2 col-xl-2">
							<button onclick="addChecklistDetail();" type="button" data-demo="default" class="btn btn-outline-info m-btn m-btn--icon m-btn--outline">
								<span>
									<i class="la la-plus"></i>
									<span>Add Checklist</span>
								</span>
							</button>
     					</div>
     				</div>	
     				<div class="m-section__content col-md-6" >
     					<table id="tblChecklistDetail" class="table table-bordered m-table m-table--border-brand m-table--head-bg-brand" >
						  	<thead>
						    	<tr>
						    		<th width="10%">
						    			Order
						    		</th>
						    		<th width="80%">
						    			Description
						    		</th>
						    		<th style="text-align:center;" width="10%"></th>
						    	</tr>
						  	</thead>

						  <tbody id="tblChecklistDetailBody" style="">
						  </tbody>
						</table>	
 					</div>
				</div>

			</div>
		</div>

		<div class="kt-portlet__foot">
			<div class="kt-form__actions ">
				<button type="button" id="btnChecklistAdd" class="btn btn-label-twitter"><i class="fa fa-edit"></i>Add</button>
				<button type="button" id="btnChecklistUpdate" class="btn btn-label-twitter"><i class="fa fa-edit"></i>Update</button>
				<button type="button" id="btnChecklistClear" class="btn btn-label-google"><i class="flaticon-delete"></i>Clear</button>
				<button type="button" id="btnChecklistPrint" class="btn btn-label-instagram"><i class="fa fa-print"></i>Print</button>
			</div>
		</div>
	</form>
</div>
<!-- end:: Content -->

<div class="kt-portlet kt-portlet--mobile">
	<div class="kt-portlet__head kt-portlet__head--lg">
		<div class="kt-portlet__head-label">
			<span class="kt-portlet__head-icon">
				<i class="kt-font-brand flaticon2-line-chart"></i>
			</span>
			<h3 class="kt-portlet__head-title">
				Form Check List Master
			</h3>
			<div class="kt-portlet__head-toolbar" style="margin-left: 25px;">
				<div class="kt-portlet__head-wrapper">
					<div class="kt-portlet__head-actions">
						<button type="button" onclick="showFormCheckList();" class="btn btn-brand btn-elevate btn-icon-sm">
							<i class="la la-plus"></i>
							New Entry
						</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="kt-portlet__body">
		<!--begin: Datatable -->
		<div class="sbg-checklist-table"></div>
		<!--end: Datatable -->
	</div>
</div>

<script type="text/javascript">
var checklist_url = "<?php echo Util::convertLink("Checklist") ; ?>" ;
<?php include (PATH_CODE . "js/activity/checklist.js") ; ?>
</script> 

<!-- ==================================================================================== -->

<!-- <div id="sbg-checklist-entry" style="width:610px;margin: 5px 5px 5px 5px;">
	<div id="checklist-tabs">
		<ul style="font-size: 0.8em;">
			<li><a href="#checklist-general">General</a></li>
			<li><a href="#checklist-Detail">Detail</a></li>
			<span class="sbg-tab-title">Checklist</span>
		</ul>
		<div id="checklist-general" style="height:200px;">
			<table>
				<tr>
					<td style="text-align:right;width:100px;"><span>ID : </span></td>
					<td style="width:480px"><input type="text" maxlength="10" size="10" id="txtChecklistId" value="Auto" disabled="disabled" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Code : </span></td>
					<td><input type="text" maxlength="50" size="40" id="txtChecklistCode" /><span id="checklist_err_code" style="color:red;display:none;padding-left:5px">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Name : </span></td>
					<td><input type="text" maxlength="250" size="40" id="txtChecklistName" /><span id="checklist_err_desc" style="color:red;display:none;padding-left:5px">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Reference : </span></td>
					<td><input type="text" maxlength="250" size="40" id="txtChecklistRef" /></td>
				</tr>
			</table>
		</div>
		<div id="checklist-Detail" style="height:200px;">
		<table>
				<tr>
					<td style="width:600px"></td>
                    <td style="width:40px;text-align:center" rowspan="2"><a href="javascript:" onclick="addChecklistDetail()"><img src="image/add.png" title="Add Limit" style="width:24px;height:24px"></img></a></td>
				</tr>
			</table>
			<div class="ui-widget-content ui-corner-all" style="overflow: auto;height:150px;">
                <table style="width:100%">
                    <tr class="ui-widget-header">
                        <th style="width: 200px">Checlist Detail</th>
                    </tr>
				</table>
				<table id="tblChecklistDetail" class="sbg-table-list" style="width:480px">
					<thead>
						<tr class="ui-widget-header">
							<th style="width: 50px">Order</th>
							<th style="width: 430px">Description</th>
						</tr>
					</thead>
					<tbody id="tblChecklistDetailBody">
					</tbody>
				</table>
			</div>
		</div>
	</div>
	<div class="ui-widget-content ui-corner-all" style="height:40px;margin-top:2px;">
		<div class="sbg-entry-error" style="width:300px;">
			<span id="checklist_err_mesg" class="sbg-error"></span>
		</div>
		<div class="sbg-entry-command">
			<input id="btnChecklistAdd" type="button" value="Add"></input>
			<input id="btnChecklistClear" type="button" value="Clear"></input>
			<input id="btnChecklistUpdate" type="button" value="Update"></input>
			<input id="btnChecklistPrint" type="button" value="Print"></input>
		</div>
	</div>
</div>

<div>
	<div class="sbg-table">
		<div class="ui-widget-header">
			<table id="sbg-checklist-header" class="header" cellspacing="0" cellpadding="5">
                <tr class="ui-widget-header">
                <td style="width: 50px;">ID</td>
                <td style="width: 120px;">Code</td>
                <td style="width: 400px;">Name</td>
                <td style="width: 200px;">Reference</td>
				<td style="width: 25px;"></td>
				<td style="width: 25px;"></td>
                </tr>
			</table>
		</div>
        <div id="sbg-checklist-data" style="overflow: auto;">
            <table id="sbg-checklist-table" cellspacing="0" cellpadding="5" class="data">
			<tr><td style="width:50px;height:1px"></td><td style="width:120px"></td><td style="width:400px"></td><td style="width:200px"></td><td style="width:25px"></td><td style="width:25px"></td></tr>
			<?php //echo $this->getList() ; ?>
            </table>
        </div>
	</div>
</div> 
<script type="text/javascript">
var checklist_url = "<?php //echo Util::convertLink("Checklist") ; ?>" ;
<?php //include (PATH_CODE . "js/activity/checklist.js") ; ?>
</script>  -->

<!-- ================================================================================== -->