echo '<div class="panel-heading"> <i class="fa fa-comments fa-fw"></i> Cometarios </div> <!-- /.panel-heading --> <div class="panel-body"> <ul class="chat" > ' . $comentarios . ' </ul> </div> <!-- /.panel-body --> <div class="panel-footer"> <div class="input-group"> <input id="btn-input" type="text" class="form-control input-sm" placeholder="Escribe tu comentario aqui..." /> <span class="input-group-btn"> <button class="btn btn-warning btn-sm" id="btn-chat" data-id="' . $pidProfesores . '" onclick="comentar(this)"> Enviar </button> </span> </div> </p> Al dar click en el boton de enviar está aceptando nuestros <a data-toggle="modal" data-target="#myModal">términos y condiciones</a>. </p> </div> '; } $pidProfesores = $_GET["idProfesores"]; getchart($pidProfesores);
<?php // The BBC Radio 1 Chart Show ends at 17:45 every Friday, this will allow 15 minutes for the site to update. $publish_time = "Friday 18:00"; header('Content-Type: application/json'); include "get_chart.php"; switch ($params[1]) { case 'singles': if (filemtime("endpoints/charts/singles_cache.txt") < strtotime($publish_time . " this week") || $params[2] == "recache") { getchart("singles"); } echo file_get_contents("endpoints/charts/singles_cache.txt"); break; case 'albums': if (filemtime("endpoints/charts/singles_cache.txt") < strtotime($publish_time . " this week") || $params[2] == "recache") { getchart("albums"); } echo file_get_contents("endpoints/charts/albums_cache.txt"); break; }