    <meta charset="iso-8859-1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php echo $lang['TITLE']; ?></title>

    
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    <link rel="stylesheet" href="assets/plugins/select2/select2.min.css">
    <link rel="stylesheet" href="assets/dist/css/AdminLTE.min.css">
    <link rel="stylesheet" href="assets/dist/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="assets/plugins/iCheck/flat/blue.css">
    <link rel="stylesheet" href="assets/plugins/morris/morris.css">
    <link rel="stylesheet" href="assets/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
    <link rel="stylesheet" href="assets/plugins/datepicker/datepicker3.css">
    <link rel="stylesheet" href="assets/plugins/daterangepicker/daterangepicker-bs3.css">
    <link rel="stylesheet" href="assets/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
    <link rel="stylesheet" href="assets/plugins/datatables/dataTables.bootstrap.css">
    
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <!-- jQuery 2.1.4 -->
    <script src="assets/plugins/jQuery/jQuery-2.1.4.min.js"></script>
    <!-- jQuery UI 1.11.4 -->
    <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
    <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
    <script>
      $.widget.bridge('uibutton', $.ui.button);
    </script>
    <!-- Bootstrap 3.3.5 -->
    <script src="assets/bootstrap/js/bootstrap.min.js"></script>
    <!-- daterangepicker -->
    <script src="assets/dist/js/moment.min.js"></script>
    <script src="assets/plugins/daterangepicker/daterangepicker.js"></script>
    <!-- datepicker -->
    <script src="assets/plugins/datepicker/bootstrap-datepicker.js"></script>
    <script src="assets/plugins/datepicker/locales/bootstrap-datepicker.pt-BR.js"></script>
    <!-- Bootstrap WYSIHTML5 -->
    <script src="assets/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
    <!-- Slimscroll -->
    <script src="assets/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <!-- DataTables -->
    <script src="assets/plugins/datatables/jquery.dataTables.min.js"></script>
    <script src="assets/plugins/datatables/dataTables.bootstrap.min.js"></script>
    
    <!-- FastClick -->
    <script src="assets/plugins/fastclick/fastclick.min.js"></script>
    <!-- AdminLTE App -->
    <script src="assets/dist/js/app.min.js"></script>

   
    
    <script src="assets/plugins/pass/strongpassword.js"></script>
    <script src="assets/plugins/select2/select2.full.min.js"></script>
    <script src="assets/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
     <!-- CK Editor -->
    <script src="https://cdn.ckeditor.com/4.4.3/standard/ckeditor.js"></script>
    
    <script type="text/javascript">
    $(document).ready(function() {
	$('#chat-box').slimScroll({
    height: '250px'
    });
    
    $('#tabela').DataTable( {
        "language": {
            "lengthMenu": "<?php echo $lang['TABLE_DISPLAY']; ?> _MENU_ <?php echo $lang['TABLE_RECORDS']; ?>",
            "zeroRecords": "<?php echo $lang['TABLE_ZERO']; ?>",
            "info": "<?php echo $lang['TABLE_INFO']; ?> _PAGE_ <?php echo $lang['TABLE_INFO_OF']; ?> _PAGES_",
            "search": "<?php echo $lang['TABLE_SEARCH']; ?>",
            "infoEmpty": "<?php echo $lang['TABLE_EMPTY']; ?>",
            "oPaginate": {
                        "sFirst":    "<?php echo $lang['TABLE_FIRST']; ?>",
                        "sPrevious": "<?php echo $lang['TABLE_PREV']; ?>",
                        "sNext":     "<?php echo $lang['TABLE_NEXT']; ?>",
                        "sLast":     "<?php echo $lang['TABLE_LAST']; ?>"
                    },
            "infoFiltered": "(<?php echo $lang['TABLE_FILTER']; ?> _MAX_ <?php echo $lang['TABLE_FILTER_ROWS']; ?>)"
        }
    } );
    $("#generatePassword").on('click', function(){
	$('#pass').strongPassword();
	});
    });
    $(document).ready(function () {
        $('#date_register').datepicker({
            format: "yyyy-mm-dd",
            language: "<?php if($lang['DATE_FORMAT'] == 'PT') { ?>pt-BR<?php } ?>"
        });
        $('#date_expire').datepicker({
            format: "yyyy-mm-dd",
            language: "<?php if($lang['DATE_FORMAT'] == 'PT') { ?>pt-BR<?php } ?>"
        });
      }); 
      
      function moeda(z){  
		v = z.value;
		v=v.replace(/\D/g,"")  //permite digitar apenas números
	v=v.replace(/[0-9]{12}/,"inválido")   //limita pra máximo 999.999.999,99
	v=v.replace(/(\d{1})(\d{8})$/,"$1$2")  //coloca ponto antes dos últimos 8 digitos
	v=v.replace(/(\d{1})(\d{5})$/,"$1$2")  //coloca ponto antes dos últimos 5 digitos
	v=v.replace(/(\d{1})(\d{1,2})$/,"$1.$2")	//coloca virgula antes dos últimos 2 digitos
		z.value = v;
	}

  $(document).ready(function() {
 	 	      $("#messages").load("ajax_chat_load.php");
   		      var refreshId = setInterval(function() {
      		      $("#messages").load("ajax_chat_load.php");
   		      }, 1000);
   		      $.ajaxSetup({ cache: false });
   		      
   		      $("#messages_qtd").load("ajax_chat_load.php?cc=y");
   		      var refreshId = setInterval(function() {
      		      $("#messages_qtd").load("ajax_chat_load.php?cc=y");
   		      }, 1000);
   		      $.ajaxSetup({ cache: false });
   		      
   		     
   		      });
   		     
  </script>
  <script src="assets/plugins/validate/jquery.validate.min.js"></script>
 
  <?php
  // LOGS SYSTEM
  fLogAcesso($_GET['mod']);
  ?>
