<? global $vis_language; ?>
<section id="breadcrumb" class="row m-b m-l-none m-r-none">
  <div class="col-sm-6">
    <h3 class="m-b-xs text-black"><? echo $operation['view_title'];?></h3>
    <ul class="breadcrumb bg-empty no-border m-b-xxs no-padder">
      <li><a class="link" href="#/home/quick_view/<? echo $vis_language['TXTHOME']; ?>"><? echo $vis_language['TXTHOME']; ?></a></li>
      <li><a class="link" href="#/setting/setting_menu/<? echo $vis_language['TXTSETTINGS'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTSETTINGS'];?>',{'vis_module':'setting','vis_operation':'setting_menu'});"><? echo $vis_language['TXTSETTINGS']; ?></a></li>
      <li class="active"><?echo $operation['view_title'];?></li>
    </ul>
  </div>
</section>
<section class="padder">
  <section class="panel panel-default">
    <header class="panel-heading text-right bg-light clearfix">
      <ul class="nav nav-tabs pull-left">
        <li class="active"><a data-toggle="tab"  href="#ip" ><? echo $vis_language['TXTIPSECURITY']; ?></a></li>
        <li><a data-toggle="tab" href="#security_password" onclick="$('#security_password').visExecution('load_operations', {'vis_module':'setting', 'vis_operation':'security_password_form'});"><? echo $vis_language['TXTPASSWORDSECURITY']; ?></a></li>
        <li><a data-toggle="tab" href="#two_factor_auth" onclick="$('#two_factor_auth').visExecution('load_operations', {'vis_module':'setting', 'vis_operation':'two_factor_auth_form'});"><? echo $vis_language['TXTTWOFACTORAUTHENTICATION']; ?></a></li>
      </ul>
      <span class="hidden-sm dropdown"> <i class="fa"></i> </span> </header>
    <div class="panel-body">
      <div class="tab-content">
        <div id="ip" class="tab-pane active">
          <? include_once(VIS_PATH_TEMPLATE.'security_ip.php'); ?>
          	<div class="row wrapper clr">
			    <div class="col-sm-12 text-right pull-right text-center-xs tkt_right_menu" id="paging">
				<ul class="pagination-sm pagination" id="pagination_demos"></ul>
				<script><?php if($security_ip_details!=-1){?>
				   $('#pagination_demos').twbsPagination({
						 totalPages:<?=$total_pages?>,
						 visiblePages:5,
						 onPageClick: function (event, page) {
							$('#securitytable').visExecution('load_operations',{'vis_module':'setting', 'vis_operation':'display_security_page', 'vis_page':page ,'vis_form':'vis_language_variable_form','vis_change':1,});
						 }
					 });
					<?php }?>
				</script>

			  </div>
			</div>
            <div class="table-responsive scroll-x" id="vis_staff_list">
        <? include_once(VIS_PATH_TEMPLATE.'security_ip_list.php'); ?>
      </div>
        </div>
        <div id="security_password" class="tab-pane"></div>
        <div id="two_factor_auth" class="tab-pane"></div>
      </div>
    </div>
  </section>
</section>
