
    <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            <?php echo $lang['TITLE_LIST_SERVER']; ?>
            <small><?php echo $lang['LIST_SERVER']; ?></small>
          </h1>
          
        </section>

       
       <section class="content">
          <div class="row">
            <div class="col-xs-12">
				
				<!-- ALERTS -->
				<?php if($_GET['y'] == '1') { ?>
				<div class="callout callout-success">
                    <h4><?php echo $lang['ALERT_SERVER_NEW']; ?></h4>
                    <p><?php echo $lang['ALERT_SERVER_NEW_TXT']; ?></p>
                  </div>
				<?php } ?>
				<?php if($_GET['y'] == '2') { ?>
				<div class="callout callout-success">
                    <h4><?php echo $lang['ALERT_SERVER_UPDATE']; ?></h4>
                    <p><?php echo $lang['ALERT_SERVER_UPDATE_TXT']; ?></p>
                  </div>
				<?php } ?>
				<?php if($_GET['y'] == '3') { ?>
				<div class="callout callout-success">
                    <h4><?php echo $lang['ALERT_SERVER_DELETE']; ?></h4>
                    <p><?php echo $lang['ALERT_SERVER_DELETE_TXT']; ?></p>
                  </div>
				<?php } ?>
				
              <div class="box">
                <div class="box-header">
                  <div class="box-header"><a class="btn btn-success" href="?mod=NewServer"><?php echo $lang['NEW_SERVER']; ?></a>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table id="tabela" class="table table-striped table-hover">
                    <thead>
                      <tr>
						<th>Status</th>
						<th></th>
                        <th><?php echo $lang['SRV_SERVER']; ?></th>
                        <th><?php echo $lang['SRV_HOST']; ?></th>
                        <th><?php echo $lang['SRV_MODE']; ?></th>
                        <th><?php echo $lang['SRV_PRICE']; ?></th>
                        <th><?php echo $lang['SRV_IP']; ?></th>
                        <th><?php echo $lang['ACTIONS']; ?></th>
                      </tr>
                    </thead>
                    <tbody>
					<?php
 		  			$query = mysql_query("SELECT * FROM servers order by id DESC");
 		  			while($result = mysql_fetch_array($query)){ 
					?>
		            <tr>
					<td><?php echo srvon($result['ip']); ?></td>
					<td><a href="?mod=ListAcc&id=<?php echo base64_encode($result['id']); ?>"><img src="assets/dist/img/cpanel.png"></a></td>
		            <td><?php echo $result['server']; ?></td>
		            <td><?php echo $result['hostname']; ?></td>
		            <td>cPanel/WHM</td>
		            <td>$ <?php echo number_format($result['price'],2,'.',''); ?></td>
		            <td><?php echo $result['ip']; ?></td>
		            <td>
					<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=ListAcc&id=<?php echo base64_encode($result['id']); ?>"><?php echo $lang['BTN_ACCT']; ?></a></li>
                        <li><a href="?mod=NewServer&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=NewServer&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>Status</th>
						<th></th>
                        <th><?php echo $lang['SRV_SERVER']; ?></th>
                        <th><?php echo $lang['SRV_HOST']; ?></th>
                        <th><?php echo $lang['SRV_MODE']; ?></th>
                        <th><?php echo $lang['SRV_PRICE']; ?></th>
                        <th><?php echo $lang['SRV_IP']; ?></th>
                        <th><?php echo $lang['ACTIONS']; ?></th>
                      </tr>
                    </tfoot>
                  </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
       
           </div><!-- /.col -->
          </div><!-- /.row -->
        </section><!-- /.content -->
       
       
        
        
      </div><!-- /.content-wrapper -->
   
   
   
   
