
    <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
           Content Management System
            <small>CMS</small>
          </h1>
          
        </section>

       
       <section class="content">
          <div class="row">
            <div class="col-xs-12">
				
				
              <div class="box">
				  
                <div class="box-header"><a class="btn btn-success" href="?mod=NewCMS">New Page</a>
                
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table id="tabela" class="table table-striped table-hover">
                    <thead>
                      <tr>
                        <th>Name Page</th>
                        <th>Title</th>
                        <th><?php echo $lang['ACTIONS']; ?></th>
                      </tr>
                    </thead>
                    <tbody>
					<?php
 		  			$query = mysql_query("SELECT * FROM cms order by page ASC");
 		  			while($result = mysql_fetch_array($query)){ 
					?>
					
		            <tr>
					
		            <td><?php echo $result['page']; ?></td>
					<td><?php echo $result['title']; ?></td>
					
					
		            <td width="120">
					<div class="btn-group">
                      <button type="button" class="btn btn-info btn-sm"><?php echo $lang['ACTIONS']; ?></button>
                      <button type="button" class="btn btn-info btn-sm dropdown-toggle" data-toggle="dropdown">
                        <span class="caret"></span>
                        <span class="sr-only">Toggle Dropdown</span>
                      </button>
                      <ul class="dropdown-menu" role="menu">
                        <li><a href="?mod=NewCMS&id=<?php echo base64_encode($result['id']); ?>"><?php echo $lang['BTN_UPDATE']; ?></a></li>
                        <li class="divider"></li>
                        <li><a href="javascript:void(0);" onclick="javascript: if (confirm('<?php echo $lang['ALERT_BTN_DELETE']; ?>')) { window.location.href='?mod=NewCMS&id=<?php echo base64_encode($result['id']); ?>&action=delete' } else { void('') };"><?php echo $lang['BTN_DELETE']; ?></a></li>
                      </ul>
                    </div>
                    
                    </td>
                    
		            </tr>
					<?php } ?>
					
                    </tbody>
                    <tfoot>
                      <tr>
                        <th>Name Page</th>
                        <th>Title</th>
                        <th><?php echo $lang['ACTIONS']; ?></th>
                      </tr>
                    </tfoot>
                  </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
       
           </div><!-- /.col -->
          </div><!-- /.row -->
        </section><!-- /.content -->
       
       
        
        
      </div><!-- /.content-wrapper -->
   
   
   
   
