
<script type="text/javascript" src="layouts/vlayout/modules/CTMobileSettings/resources/moment.min.js"></script>
<script type="text/javascript" src="layouts/vlayout/modules/CTMobileSettings/resources/daterangepicker.min.js"></script>
<link rel="stylesheet" type="text/css" href="layouts/vlayout/modules/CTMobileSettings/daterangepicker.css" />
<link rel="stylesheet" type="text/css" href="layouts/vlayout/modules/CTMobileSettings/dataTables.bootstrap.min.css" />
<script type="text/javascript" src="layouts/vlayout/modules/CTMobileSettings/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="layouts/vlayout/modules/CTMobileSettings/dataTables.bootstrap.min.js"></script>

<button type="button" class="btn btn-info pull-right" style="background:#287DF2 !important;" onclick='window.location.href="{CTMobileSettings_Module_Model::$CTMOBILE_DETAILVIEW_URL}"'>{vtranslate('Go To CRMTiger Settings',$MODULE)}</button>
<label style="font:24px solid black;margin-left:20px;margin-top:10px;">{vtranslate("CRMTiger Mobile Apps - Meeting Attendance Summary",$MODULE)}</label>
<hr>
<div class="">
  <div class="container-fluid">
    <div class="row-fluid">
    
	<div class="main_div">
		<div class="box2">
			<form class="form-horizontal recordEditView" id="downloadForm" name="edit" method="post" action="index.php" enctype="multipart/form-data">
				<div class="row">
				<input type="hidden" name="module" value="CTMobileSettings" />
                <input type="hidden" name="action" value="getAttendance" />
                <input type="hidden" name="mode" value="ExportData" />
			
					<div class="span3">
						<select data-fieldname="routeUser" name="user_id" id="user_id" data-fieldtype="picklist" class="chzn-select chzn-done" style="margin-left:1%;">
						<option value="">{vtranslate('All user',$MODULE)}</option>
						{foreach item=PICKLIST_VALUE key=PICKLIST_NAME from=$ROUTE_USER}
						<option value="{$PICKLIST_VALUE['id']}">{$PICKLIST_VALUE['name']}</option>
						{/foreach}
						</select>
					</div>

					<div class="span3">
						<input type="text" class="inputElement" id="daterange" name="daterange" value="" style="display: inline!important;margin-left:1%;"/>
					</div>

					<div class="span3">
						<select data-fieldname="attendance_type" name="attendance_type" id="attendance_type" data-fieldtype="picklist" class="chzn-select chzn-done" style="margin-left:1%;">
							<option value="">{vtranslate('All',$MODULE)}</option>
							<option value="Attendance">{vtranslate('Attendance',$MODULE)}</option>
							<option value="Meeting">{vtranslate('Meeting',$MODULE)}</option>
						</select>
					</div>

					<div class="span1">
						<button type="button" class="btn btn-success btn-sm" id="searchbtn">{vtranslate('Search',$MODULE)}</button>
					</div>

					<div class="span2">
						<input type="hidden" id="type" name="type" value="csv"/>
						<button type='button' id="exportascsv" class='btn' style="background: transparent !important;border: 1px solid transparent;" title="{vtranslate('EXPORT AS CSV', $MODULE)}"><img src="layouts/vlayout/modules/CTMobileSettings/icon/export-csv.png"/></button>
			           <!--  <button type='button' id="exportasexcel" class='btn btn-success saveButton' style="display: inline!important;margin-left:1%;" title="{vtranslate('EXPORT AS EXCEL', $MODULE)}"><img src="layouts/v7/modules/CTMobileSettings/icon/export-excel.png"/></button> -->
		            </div>
				</div>
			</form>
		  	<div class="row">
                <table id="example1" class='table table-bordered table-striped'>
                    <thead>
                        <tr><th style="width:25%;"> {vtranslate('User Name','CTMobileSettings')} </th><th style="width:25%;"> {vtranslate('Date','CTMobileSettings')} </th><th style="width:30%;"> {vtranslate('Total (Hours)','CTMobileSettings')} </th><th style="width:10%;"> {vtranslate('Total (Minutes)','CTMobileSettings')} </th></tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>  			
		</div>
	</div>
	</div>
	</div>
	</div>