<form action = "commenter.php" method = "post">
                            <label for="contenu">Commnenter l'entreptise :</label>
                            <textarea name="contenu" class="form-control" {$droit} rows="3" placeholder=""></textarea>
                            <input type="hidden" name="id" value="{$_REQUEST['id']}" />
                            <div  style="text-align:right;margin-top:8px"> 
                                <button class="btn btn-default" {$droit} >Annuler</button>                            
                                <button class="btn btn-primary" {$droit} type="submit">Publier</button>
                            </div>
                        </form>
                    </div>
                </div>

                <div class="row"> 
                    {$commentaires}
                </div>

        </div>

HTML
);
}
$p->appendToFooter(<<<Footer
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="style/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
Footer
);
echo $p->toHTML();
                            </div>
                          </div>

                        </div> <!-- end tab Content -->


                    </div>
                </div>
            </div> <!-- end row -->
        </div>
HTML
);
    $p->appendToFooter(<<<Footer
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="style/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>

    <script>
    \$(document).ready(function(){
        \$(".nav-tabs a").click(function(){
            \$(this).tab('show');
        });
        {$toggleScript}
    });
    </script>
Footer
);
    echo $p->toHTML();
}
示例#3
0
    \t{$formConnexion}

    \t<div id="alert" class="alert alert-danger collapse" role="alert">
    \t\t<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
    \t\t<strong>Hmm... Le login et le mot de passe ne correspond à aucun compte connue.</strong>
    \t\t<button type="button" class="btn btn-danger">J'ai oublié mon mot de passe</button>
    \t</div>

    </div> <!-- /container -->
HTML
);
$p->appendToFooter(<<<Footer
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="style/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="style/bootstrap-3.3.5-dist/js/ie10-viewport-bug-workaround.js"></script>
Footer
);
if (isset($_GET['err']) && $_GET['err'] == "log") {
    $p->appendToFooter(<<<Footer
    <script>
      \$(document).ready(function(){
          \$('#alert').show();
          /*
          \$(".nav-tabs a").click(function(){
              \$(this).tab('show');
          });
          */
      });
\t{
\t\tvar content_file = document.getElementById(id_content_file);

\t\tvar tab = content_file ? content_file.getElementsByTagName('input') : new Array();

\t\tif(tab.length > 0) 
\t\t{
\t\t\tvar input = tab[0].cloneNode(true);
\t\t\tinput.value = '';
\t\t\tcontent_file.appendChild(input);
\t\t}\t
\t}
JS
);
    $p->appendToFooter(<<<Footer
\t\t<!-- Bootstrap core JavaScript
\t\t ================================================== -->
\t\t<!-- Placed at the end of the document so the pages load faster -->
\t\t<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
\t\t<script src="style/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>

\t\t<script>
\t\t\$(document).ready(function(){
\t\t\t//affiche le message d'alerte
\t\t\t{$toggleScript}
\t\t});
\t\t</script>
Footer
);
    echo $p->toHTML();
}
示例#5
0
        </div><!--/.nav-collapse -->
      </div>
    </nav>


    <div class="container">

      <!-- Main component for a primary marketing message or call to action -->
      <div class="jumbotron">
        <h1>Navbar example</h1>
        <p>This example is a quick exercise to illustrate how the default, static and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
        <p>To see the difference between static and fixed top navbars, just scroll.</p>
        <p>
          <a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs &raquo;</a>
        </p>
      </div>

    </div> <!-- /container -->
HTML
);
$p->appendToFooter(<<<Footer
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="style/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="style/bootstrap-3.3.5-dist/js/ie10-viewport-bug-workaround.js"></script>
Footer
);
echo $p->toHTML();
示例#6
0
          <li><a href="#">5</a></li> 

          <li>
            <a href="#" aria-label="Next"><span aria-hidden="true">»</span></a>
          </li> 

        </ul> 
      </nav>

    </div> <!-- /container -->
HTML
);
$p->appendToFooter(<<<Footer
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="style/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
Footer
);
$p->appendToFooter(<<<JS
<script>
      // Fonction appelée au chargement complet de la page
    window.onload = function () {
              var valeurs = [];
              new Request(
                {
                    url        : "searchEngine.php",
                    method     : 'get',
                    handleAs   : 'text',
                    parameters : { poste: '%' , ville: '%', domaines: valeurs},
                    onSuccess  : function(res) {