<head>
<style type="text/css">
button {
 	margin-left: 2px;
 	margin-right: 2px;
}

.modal-header {
	background-color: #3c8dbc;
	color: white;
}

</style>
</head>
<!-- Add Project Modal HTML -->
<div id="addProjectView" class="modal fade" style="overflow: auto;overflow-y: scroll;" tabindex="-1" data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog" style="width: 60%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Project</h4>
            </div>
            <div class="modal-body">
	            <div id="modalAddProjectHeaderViewContent">
	        	</div>
            </div>
            <div class="modal-footer">
            	<div id="modalAddProjectHeaderViewButtonContent">
			   </div>
            </div>
        </div>
    </div>
</div>

<!-- Project Report Utilization Modal HTML -->
<div id="projectReportUtilizationView" class="modal fade" style="overflow: auto;overflow-y: scroll;" tabindex="-1" data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog" style="width: 60%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 id="modalProjectReportUtilizationHeaderViewContent" class="modal-title">Project Utilization</h4>
            </div>
            <div class="modal-body" id="modalProjectReportUtilizationViewContent">
            </div>
            <div class="modal-footer" id="modalProjectReportUtilizationFooter">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

<!-- message Modal HTML -->
<div id="messageView" class="modal fade" style="overflow: auto;overflow-y: scroll;">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header" id="modalMessageHeaderContent">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="modalMessageViewTitle" >Message</h4>
            </div>
            
            <div class="modal-body">
	            <div id="modalMessageViewContent">
	        	</div>
            </div>
            
            <div class="modal-footer">
            	<div id="modalMessageButtonContent">
            		<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
			   </div>
            </div>
        </div>
    </div>
</div>

<!-- confirmation message Modal HTML -->
<div id="confirmationMessageView" class="modal fade" style="overflow: auto;overflow-y: scroll;">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header" id="modalConfirmationMessageHeaderContent">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="modalConfirmationMessageViewTitle" >Message</h4>
            </div>
            
            <div class="modal-body">
	            <div id="modalConfirmationMessageViewContent">
	        	</div>
            </div>
            <div class="modal-footer">
            	<div id="modalcCnfirmationMessageButtonContent">
            		<button type="button" class="btn btn-default" data-dismiss="modal">Yes</button>
			   </div>
            </div>
        </div>
    </div>
</div>


<div class="modal fade" id="activityLoadingModal" tabindex="-1" data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="modalLoadingTitle">Processing...</h4>
            </div>
            <div class="modal-body">
                <div class="progress progress-striped active">
                    <div class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width:100%">
                        <span class="sr-only">70% Complete</span>
                      </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- Submit pop up Modal HTML -->
<div id="deleteProjectConfirmationView" class="modal fade" style="overflow: auto;overflow-y: scroll;">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="modalDeleteProjectConfirmationTitle">Confirm project deletion</h4>
            </div>
            
            <div class="modal-body">
	            <div id="modalDeleteProjectConfirmationContent">
	            
	        	</div>
            </div>
            
            <div class="modal-footer">
            	<div id="modalDeleteProjectConfirmationButton">
			   </div>
            </div>
        </div>
    </div>
</div>

<input type="hidden" id="isManagerFilter" value="<?php echo isset($isManagerFilter) ? ($isManagerFilter ? 'true' : 'false' ) : 'false';?>" >

<div class="col-md-12" <?php echo isset($isManagerFilter) && $isManagerFilter ? "style='display:none'" : ''; ?>>
	<div class="filter-unit">
		<input  style="height: 30px;"  type="text" placeholder="Name" id="filterTitleProject">
	</div>
	<div class="filter-unit">
        <select style="height: 30px;" id="filterCustomerProject" >
            <?php echo $this->getCustomerOption(false); ?>
        </select>
	</div>
	
	<div class="filter-unit">
		<a href="#" onclick="return filterProject();" class="btn btn-primary btn-sm"><span class="fa fa-plus"></span> Filter</a>
	</div>
	<?php if(!isset($isManagerFilter) || $isManagerFilter == false) { ?>
	<div class="claim-btn">
		<table>
			<tr>
				<td style="text-align:right;display:none">
				</td>
				<td>
					<div>
						<a style="display:none" role="button" class="btn btn-primary btn-sm" data-toggle="modal" onclick="javascript:printProject()"><span class="glyphicon glyphicon-print"></span> Print</a>
                        <a onclick="return showAddProject();" role="button" class="btn btn-primary btn-sm" data-toggle="modal"><span class="glyphicon glyphicon-plus"></span> Add</a>
					</div>
				</td>
			</tr>
		</table>
	</div>
	<?php } ?>
</div>

<div class="col-md-12" id="errorShow"></div>

<div class="col-md-12" style="margin-top: 20px">
	<div class="box" id="testData">
		<table class="table" style="width: 100%; max-width: 100%; margin-bottom: 20px;" id="project-table">
            <thead>
                <tr>
                    <th>Job No.</th>
                    <th>Name</th>
                    <th>Customer</th>
                    <th>Status</th>
                    <th>Bill</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
               
            </tbody>
		</table>
	</div>
</div>
<script>
$(document).ready(function () {
    
    filterProject();
        
});
</script>
