<?php $user_id=$this->session->userdata('user_id');
if(!$user_id){
  redirect('user/login_view', 'refresh');
}
?>
<!DOCTYPE html>
<html lang="en">

                       <?php
                     $this->load->view('head.php');
                     ?>

<body class="setting">

    <div id="wrapper">

      <div class="admin-title">
      <div class="row">
       <?php $this->load->view('header.php'); ?>
      </div>
    </div>  
     <div class="content-area">
      <div class="row">
    
          <div class="admin-menu">
            <?php $this->load->view('sidebar.php'); ?>
          </div>
   
  
            <div class="content-menu">
                   
                </div>
          <div class="main-content">
            
        

<?php 
$query=$this->db->query("select page_limit from page_limit");
$data='';
 foreach ($query->result() as $key => $limit)
$data=$limit->page_limit;
?>
 
      
  
          <form method="post" action="<?php echo site_url('user/page_set');?>">
          <input type="hidden" name="seting" value="">
         
     <div class="form-group type">
      <label for="usr">Page-Limited-Value:</label>
      <input type="text" class="form-control" name="seting" value="<?php echo $data; ?>">
     </div>
    
    <input type="submit"  class="btn btn-primary" value="Save Change">
    <input type="hidden" value="<?php echo $page; ?>" name="page">
  </form>
        </div>
       
      
      
   
    
    
    

                           
                            
                          
                           
                        </div>
                       
                    </div>
                   
                </div>
                
           

  <?php $this->load->view('footer.php'); ?>
    

  
  
</body>

</html>
