<?php
require 'sessao.php'; 
require 'sql.php';
$id_plano = $premium;
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br">
  
<head>
    <meta charset="utf-8">
    <title>Painel - TS3 PRO.NET</title>
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">    
    
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
    
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600" rel="stylesheet">
    <link href="css/font-awesome.min.css" rel="stylesheet">        
    
    <link href="css/jquery-ui-1.10.0.custom.min.css" rel="stylesheet">
    
    <link href="css/base-admin-3.css" rel="stylesheet">
    <link href="css/base-admin-3-responsive.css" rel="stylesheet">
    
    <link href="css/dashboard.css" rel="stylesheet">   

    <link href="css/custom.css" rel="stylesheet">

    <link rel="shortcut icon" href="jpg/icon.gif" type="image/x-icon" />
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

  </head>

<body>

<nav class="navbar navbar-inverse" role="navigation">

	<div class="container">
  <!-- Brand and toggle get grouped for better mobile display -->
  <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
      <span class="sr-only">Toggle navigation</span>
      <i class="icon-cog"></i>
    </button>
    <a class="navbar-brand" href="index.php">IP Personalizado - TS3PRO.NET</a>
  </div>

  <!-- Collect the nav links, forms, and other content for toggling -->
  <div class="collapse navbar-collapse navbar-ex1-collapse">
     <!--menu superior-->
    <?php require 'menu2.php';?>

   
  </div><!-- /.navbar-collapse -->
</div> <!-- /.container -->
</nav>
    



    
<div class="subnavbar">

	<div class="subnavbar-inner">
	
		<div class="container">
			
			<a href="javascript:;" class="subnav-toggle" data-toggle="collapse" data-target=".subnav-collapse">
		      <span class="sr-only">Toggle navigation</span>
		      <i class="icon-reorder"></i>
		      
		    </a>

			<div class="collapse subnav-collapse">
			<?php
			require_once 'menu.php';
			require_once 'menu_admin.php';
			?>
			</div> <!-- /.subnav-collapse -->

		</div> <!-- /container -->
	
	</div> <!-- /subnavbar-inner -->

</div> <!-- /subnavbar -->

<!-- /Começa o area aonde vai colocar as tabelas -->	


<div class="main">

    <div class="container">


      <div class="row">
      	
      	<div class="col-md-12">
			<div class="widget stacked">
<div class="widget stacked widget-table action-table">
					
				<div class="widget-header">
					<i class="icon-white icon-align-justify"></i>
					<h3>Domínios Públicos</h3>
				</div> <!-- /widget-header -->
				
				<div class="widget-content">
					
					<table class="table table-striped table-bordered">
						<thead>
							<tr>
								<th>Domínios</th>
							</tr>
						</thead>
						<tbody>
							<?php
										// faz a conecxão com o banco de dados
										require_once 'sql.php';
										// seleciona o banco de dados
										$sql_select = "select * from domains where dono='0'";
										$resultado = mysql_query($sql_select);
										// mensagem de error com conecxão com o banco de dados
										if (!$resultado){
										echo'<td>Não foi possível listar seus domínios</td>';}
										// se o houver conecxão com o banco de dados ele ira seguir em diante
										else {
										while($registro = mysql_fetch_assoc($resultado))
										{
										// botões
									//lista os domínis e ips
									echo'<tr>
								<td>'.$registro['dominio'].'</td>
								</tr>';
										} 
										}?>
							</tbody>
						</table>
					
				</div> <!-- /widget-content -->
			
			</div> <!-- /widget -->
					
			</div> <!-- / widget stacked -->
			</div> <!-- /col-md-12 -->
			</div> <!-- / row -->
			</div> <!-- / container -->
			</div> <!-- / main -->


    
   <nav class="navbar navbar-default navbar-fixed-bottom" role="navigation"> 
<div class="footer">
		
	<div class="container">
		
		<div class="row">
			
			<div id="footer-copyright" class="col-md-6">
				 <div align="center"><b>@ 2015 ts3brasil.com | Todos os Direitos Reservados<sup>TM</sup></b></div> <a href="https://ts3pro.net" target="_blank">TS3 Pro.</a>
			</div> <!-- /span6 -->
			
			<div id="footer-terms" class="col-md-6">
				<a href="http://ts3pro.net/termos.php" target="_blank">Termos de serviço</a>
			</div> <!-- /.span6 -->
			
		</div> <!-- /row -->
		
	</div> <!-- /container -->
	
</div> <!-- /footer -->
</nav>



    

<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery-ui-1.10.0.custom.min.js"></script>
<script src="js/bootstrap.min.js"></script>

<script src="js/jquery.flot.js"></script>
<script src="js/jquery.flot.pie.js"></script>
<script src="js/jquery.flot.resize.js"></script>

<script src="js/application.js"></script>

<script src="js/area.js"></script>
<script src="js/donut.js"></script>

  </body>

</html>