{*<!--
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
*
********************************************************************************/
-->*}
{strip}

  <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>


  <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" />

  <div class="container-fluid main_notification_settings" id="notification_settings_block">
      <div class="widget_header row-fluid">
        <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>
        <h3>{vtranslate('CRMTiger Mobile Apps - Login History', 'CTMobileSettings')}</h3>

        <div class="clearfix"></div>
      </div>
  </div>
   
   <div class="span12">
        <div id="listview-actions" class="listview-actions-container">
            <div class = "row">
                  <form class="form-horizontal recordEditView" id="downloadForm" name="edit" method="post" action="index.php">
                <input type="hidden" name="module" value="CTMobileSettings" />
                <input type="hidden" name="action" value="getLoginHistory" />
                <input type="hidden" name="mode" value="ExportData" />
                <div class='span4 usersListDiv'>
                    <select class="chzn-select chzn-done" id="usersFilter" name="usersFilter">
                        <option value="">{vtranslate('LBL_ALL', $QUALIFIED_MODULE)}</option>
                        {foreach item=USERNAME key=USER from=$USERSLIST}
                            <option value="{$USER}" name="{$USERNAME}" {if $USERNAME eq $SELECTED_USER} selected {/if}>{$USERNAME}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="span4">
                  <input type="text" class="inputElement" id="daterange" name="daterange" value="" style="display: inline!important;margin-left:1%;"/>
                </div>
                <div class="span4">
                    <button type="button" id="downloadLoginHistory" class="btn pull-right" title="{vtranslate('Download Login History',$MODULE)}"
                     style="background: transparent !important;border: 1px solid transparent;"><img src="layouts/vlayout/modules/CTMobileSettings/icon/export-csv.png"></button>
                </div>
                </div>
            </div>
            <div class="list-content row">
                <div class="span12">
                 <div id="table-content" class="table-container" style="padding-top:0px !important;">
                    <table id="listview-table"  class="table listview-table">
                       <thead>
                          <tr class="listViewContentHeader">
                            <th>{vtranslate('LBL_USER_NAME',$MODULE)}</th>
                            <th>{vtranslate('LBL_USER_IP_ADDRESS',$MODULE)}</th>
                            <th>{vtranslate('LBL_LOGIN_TIME',$MODULE)}</th>
                            <th>{vtranslate('LBL_LOGGED_OUT_TIME',$MODULE)}</th>
                            <th>{vtranslate('LBL_STATUS',$MODULE)}</th>
                          </tr>
                       </thead>
                       <tbody class="overflow-y">
                       </tbody>
                    </table>
                 </div>
                 <div id="scroller_wrapper" class="bottom-fixed-scroll">
                    <div id="scroller" class="scroller-div"></div>
                </div>
                </div>
              </div>
        </div>
    </div>
{/strip}
