<?php require_once('topo.php');?>
<?php require_once('lateral.php');?>
      <!-- Right side column. Contains the navbar and content of the page -->
      <div class="content-wrapper" style="<?php if($_GET['Box'] != ""){ echo "margin-left: 0px;"; }?>">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Duvidas Frequentes
            <small>listagem de duvidas</small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="index.php?Box=<?php echo $_GET['Box'];?>"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="listar_duvidas.php?Box=<?php echo $_GET['Box'];?>">Duvidas</a></li>
            <li class="active">Listagem</li>
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">
          <div class="row">
            <div class="col-xs-12"><!-- /.box -->

              <div class="box">
                <div class="box-header">
                  <h3 class="box-title">Listagem de Duvidas Frequentes</h3>
                  <button type="button" class="btn btn-primary" style=" float:right;" onclick="location.href='manutencao_duvidas.php?Box=<?php echo $_GET['Box'];?>';">Nova Duvida</button>
                <!-- /.box-header -->
                <div class="box-body">
                  <table id="example1" class="table table-bordered table-striped">
                    <thead>
                      <tr>
                        <th style="cursor:pointer">Cód.</th>
                        <th style="cursor:pointer">Titulo</th>
                        <th style="cursor:pointer">Texto</th>
                      </tr>
                    </thead>
                    <tbody>
					<?php                                         
                    $seleciona = Seleciona("pacotes_duvidas", "", "ORDER BY idduvida DESC");                    

                    while($linha=mysql_fetch_array($seleciona)){										
                    
                    ?>
                      <tr style="cursor:pointer" onclick="location.href='manutencao_duvidas.php?idduvida=<?php echo $linha['idduvida'];?>&Box=<?php echo $_GET['Box'];?>';">
                        <td ><strong><?php echo $linha['idduvida'];?></strong></td>
                        <td ><strong><?php echo $linha['titulo'];?></strong></td>
                        <td ><?php echo $linha['sobre'];?></td>
                      </tr>
                      <?php 
					  				  
					  }?>
                    </tbody>
                  </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
            </div><!-- /.col -->
          </div><!-- /.row -->
        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
<?php require_once('rodape.php');?>