예제 #1
1
    <li><a href="report/clients-word.php">Word 2007 (.docx)</a></li>
  </ul>
</div>
-->
</div>
<div class="card">
  <div class="card-header" data-background-color="blue">
      <h4 class="title">Historial de Citas del Paciente</h4>
<p>Paciente: <?php 
echo $pacient->name . " " . $pacient->lastname;
?>
</p>
  </div>
  <div class="card-content table-responsive">
		<?php 
$users = ReservationData::getAllByPacientId($_GET["id"]);
if (count($users) > 0) {
    // si hay usuarios
    ?>
			<table class="table table-bordered table-hover">
			<thead>
			<th>Asunto</th>
			<th>Paciente</th>
			<th>Medico</th>
			<th>Fecha</th>
			</thead>
			<?php 
    foreach ($users as $user) {
        $pacient = $user->getPacient();
        $medic = $user->getMedic();
        ?>
예제 #2
0
<?php

$user = ReservationData::getById($_GET["id"]);
$user->del();
print "<script>window.location='index.php?view=reservations';</script>";
예제 #3
0
<?php

$events = ReservationData::getEvery();
foreach ($events as $event) {
    $thejson[] = array("title" => $event->title, "url" => "./?view=editreservation&id=" . $event->id, "start" => $event->date_at . "T" . $event->time_at);
}
// print_r(json_encode($thejson));
?>
<script>


	$(document).ready(function() {

		$('#calendar').fullCalendar({
			header: {
				left: 'prev,next today',
				center: 'title',
				right: 'month,agendaWeek,agendaDay'
			},
			defaultDate: '2015-09-22',
			editable: false,
			eventLimit: true, // allow "more" link when too many events
			events: <?php 
echo json_encode($thejson);
?>
		});
		
	});

</script>
예제 #4
0
    }
    if ($_GET["medic_id"] != "") {
        if ($_GET["q"] != "" || $_GET["pacient_id"] != "") {
            $sql .= " and ";
        }
        $sql .= " medic_id = " . $_GET["medic_id"];
    }
    if ($_GET["date_at"] != "") {
        if ($_GET["q"] != "" || $_GET["pacient_id"] != "" || $_GET["medic_id"] != "") {
            $sql .= " and ";
        }
        $sql .= " date_at = \"" . $_GET["date_at"] . "\"";
    }
    $users = ReservationData::getBySQL($sql);
} else {
    $users = ReservationData::getAll();
}
if (count($users) > 0) {
    // si hay usuarios
    ?>
			<table class="table table-bordered table-hover">
			<thead>
			<th>Asunto</th>
			<th>Paciente</th>
			<th>Medico</th>
			<th>Fecha</th>
			<th></th>
			</thead>
			<?php 
    foreach ($users as $user) {
        $pacient = $user->getPacient();
예제 #5
0
	<div class="col-md-12">
<div class="btn-group pull-right">
<!--<div class="btn-group pull-right">
  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
    <i class="fa fa-download"></i> Descargar <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" role="menu">
    <li><a href="report/clients-word.php">Word 2007 (.docx)</a></li>
  </ul>
</div>
-->
</div>
		<h1>Citas</h1>
<br>
		<?php 
$users = ReservationData::getOld();
if (count($users) > 0) {
    // si hay usuarios
    ?>

			<table class="table table-bordered table-hover">
			<thead>
			<th>Asunto</th>
			<th>Paciente</th>
			<th>Medico</th>
			<th>Fecha</th>
			<th></th>
			</thead>
			<?php 
    foreach ($users as $user) {
        $pacient = $user->getPacient();
<?php

/**
* BookMedik
* @author evilnapsis
**/
$rx = ReservationData::getRepeated($_POST["pacient_id"], $_POST["medic_id"], $_POST["date_at"], $_POST["time_at"]);
if ($rx == null) {
    $r = new ReservationData();
    $r->title = $_POST["title"];
    $r->note = $_POST["note"];
    $r->pacient_id = $_POST["pacient_id"];
    $r->medic_id = $_POST["medic_id"];
    $r->date_at = $_POST["date_at"];
    $r->time_at = $_POST["time_at"];
    $r->user_id = $_SESSION["user_id"];
    $r->status_id = $_POST["status_id"];
    $r->payment_id = $_POST["payment_id"];
    $r->price = $_POST["price"];
    $r->sick = $_POST["sick"];
    $r->symtoms = $_POST["symtoms"];
    $r->medicaments = $_POST["medicaments"];
    $r->add();
    Core::alert("Agregado exitosamente!");
} else {
    Core::alert("Error al agregar, Cita Repetida!");
}
Core::redir("./index.php?view=reservations");
예제 #7
0
    if ($_GET["medic_id"] != "") {
        if ($_GET["status_id"] != "" || $_GET["pacient_id"] != "" || $_GET["payment_id"] != "") {
            $sql .= " and ";
        }
        $sql .= " medic_id = " . $_GET["medic_id"];
    }
    if ($_GET["start_at"] != "" && $_GET["finish_at"]) {
        if ($_GET["status_id"] != "" || $_GET["pacient_id"] != "" || $_GET["medic_id"] != "" || $_GET["payment_id"] != "") {
            $sql .= " and ";
        }
        $sql .= " ( date_at >= \"" . $_GET["start_at"] . "\" and date_at <= \"" . $_GET["finish_at"] . "\" ) ";
    }
    //echo $sql;
    $users = ReservationData::getBySQL($sql);
} else {
    $users = ReservationData::getAllPendings();
}
if (count($users) > 0) {
    // si hay usuarios
    $_SESSION["report_data"] = $users;
    ?>
			<div class="panel panel-default">
			<div class="panel-heading">
			<a href="./report/report-word.php" class="btn btn-default btn-xs pull-right"><i class="fa fa-download"> Descargar</i></a>
			Reportes</div>
			<table class="table table-bordered table-hover">
			<thead>
			<th>Asunto</th>
			<th>Paciente</th>
			<th>Medico</th>
			<th>Fecha</th>
예제 #8
0
  </button>
  <ul class="dropdown-menu" role="menu">
    <li><a href="report/clients-word.php">Word 2007 (.docx)</a></li>
  </ul>
</div>
-->
</div>
		<h1>Historial de Citas del Medico</h1>
<h4>Medico: <?php 
echo $pacient->name . " " . $pacient->lastname;
?>
</h4>

<br>
		<?php 
$users = ReservationData::getAllByMedicId($_GET["id"]);
if (count($users) > 0) {
    // si hay usuarios
    ?>
			<table class="table table-bordered table-hover">
			<thead>
			<th>Asunto</th>
			<th>Paciente</th>
			<th>Medico</th>
			<th>Fecha</th>
			</thead>
			<?php 
    foreach ($users as $user) {
        $pacient = $user->getPacient();
        $medic = $user->getMedic();
        ?>