public static function MenuBusca($modo, $dados, $titulo, $titulo1, $titulo2, $nome, $texto, $link, $tabela, $id, $campo)
    {
        echo '
                <link rel="stylesheet" href="../layout/bootstrap/bootstrap.min.css">
                <link rel="stylesheet" href="../layout/bootstrap/bootstrap-theme.min.css">
                <script src="../layout/bootstrap/bootstrap.min.js"></script>
                <div class="navbar navbar-inverse" role="navigation">
					<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>
				        <span class="icon-bar">a</span>
                                        <span class="icon-bar">a</span><span class="icon-bar">a</span><span class="icon-bar">a</span>
				         </button>
				        <a class="navbar-brand" rel="home">Buscar Por:</a>
                                         </div>
                                        <form class="navbar-form" action="' . $link . '" method="post">';
        if (!empty($dados[$titulo][$nome])) {
            echo '<input type="text"   class="navbar-form" style="height:33px" name="' . $dados[$titulo][$nome] . '" placeholder="' . $dados[$titulo][$texto] . '" value="">';
        }
        if (!empty($dados[$titulo1][$nome])) {
            echo ' <input type="text"   class="navbar-form" style="height:33px" name="' . $dados[$titulo1][$nome] . '" placeholder="' . $dados[$titulo1][$texto] . '"value="">';
        }
        if (!empty($dados[$titulo2][$nome])) {
            echo '  <input type="number" class="navbar-form" style="height:33px" name="' . $dados[$titulo2][$nome] . '" min="14" placeholder="' . $dados[$titulo2][$texto] . '" value="" >';
        }
        if (!empty($tabela)) {
            echo LayoutPadrao::ListaCursoss($modo, 1, $tabela, $id, $campo);
        }
        //   if (!empty($tabela1)){ echo LayoutPadrao::ListaCursoss($modo,$tabela,$id,$campo);}
        //   if (!empty($tabela2)){ echo LayoutPadrao::ListaCursoss($modo,$tabela,$id,$campo);}
        //  if (!empty($tabela3)){ echo LayoutPadrao::ListaCursoss($modo,$tabela,$id,$campo);}
        echo '   <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-search"></span></button>';
        echo '<input type = "checkbox" name = "cbksql" value = "valor"><label class="sr-only"><a class=" btn navbar-brand" rel="home">Exibir SQL</a> </span> ';
        echo '         </form>	
                                                                    
						                </div>
				        		   </div>
                                                       ';
    }
    <head>
        <meta charset="utf-8">
        <link   href="../../layout/css/bootstrap.min.css" rel="stylesheet">
        <script src="../../layout/js/bootstrap.min.js"></script>
    </head>

    <body>
        <div class="container">
            <div class="row">
                <div class="row">
                    <h3>Deseja Deletar o Professor?</h3>
                </div>
                <form method="POST" action="deleteProfessor.php">
                    <input type="hidden" name="id" value="<?php 
echo $id;
?>
" />
                    <p class="bg-danger" style="padding: 10px;">Você deseja deletar o registro?</p>
                    <div class="form-actions">
                        <button type="submit" class="btn btn-danger">Sim</button>
                        <a class="btn btn btn-default" href="crudProfessor.php">Não</a>
                    </div>
                </form>

            </div> <!-- /row -->
        </div> <!-- /container -->
    </body>
      <?php 
LayoutPadrao::Rodape();
?>
</html>
示例#3
0
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<?php 
include_once '/views/LayoutPadrao.php';
LayoutPadrao::TopoPagina();
?>
<html>
    <head>
        <link href="includes/StyleS.css" rel="stylesheet" type="text/css"/>
        <script src="layout/bootstrap/ajax/ajax/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
        <link href="layout/bootstrap/bootstrap-theme.min.css" rel="stylesheet" type="text/css"/>
        <script src="layout/bootstrap/bootstrap.min.js" type="text/javascript"></script>
        <link href="layout/bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <meta charset="UTF-8"><meta name="viewport" content="width=device-width">
        <script type="text/javascript">
            $(function () {
                $(".dropdown-menu > li > a.trigger").on("click", function (e) {
                    var current = $(this).next();
                    var grandparent = $(this).parent().parent();
                    if ($(this).hasClass('left-caret') || $(this).hasClass('right-caret'))
                        $(this).toggleClass('right-caret left-caret');
                    grandparent.find('.left-caret').not(this).toggleClass('right-caret left-caret');
                    grandparent.find(".sub-menu:visible").not(current).hide();
                    current.toggle();
                    e.stopPropagation();
                });
                $(".dropdown-menu > li > a:not(.trigger)").on("click", function () {