/** * Breadcrumb */ $links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", _("Clinic History") => "../medical/history_list.php", $title => ""); echo HTML::breadcrumb($links, "icon icon_patient"); unset($links); echo $patient->getHeader(); if ($_SESSION['auth']['is_administrative']) { echo HTML::para(HTML::link(_("Edit Family Antecedents"), '../medical/history_family_edit_form.php', array('id_patient' => $idPatient))); } /** * Show family antecedents */ echo HTML::section(2, _("Family Antecedents")); if ($history->getParentsStatusHealth()) { echo HTML::section(3, _("Parents Status Health")); echo HTML::para(nl2br($history->getParentsStatusHealth())); } if ($history->getBrothersStatusHealth()) { echo HTML::section(3, _("Brothers and Sisters Status Health")); echo HTML::para(nl2br($history->getBrothersStatusHealth())); } if ($history->getSpouseChildsStatusHealth()) { echo HTML::section(3, _("Spouse and Childs Status Health")); echo HTML::para(nl2br($history->getSpouseChildsStatusHealth())); } if ($history->getFamilyIllness()) { echo HTML::section(3, _("Family Illness")); echo HTML::para(nl2br($history->getFamilyIllness())); } require_once "../layout/footer.php";
$titlePage = $patient->getName() . ' (' . $title . ')'; require_once "../layout/header.php"; /** * Breadcrumb */ $links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", $title => ""); echo HTML::breadcrumb($links, "icon icon_patient"); unset($links); echo $patient->getHeader(); $problemQ = new Query_Page_Problem(); $lastOrderNumber = $problemQ->getLastOrderNumber($idPatient); if ($_SESSION['auth']['is_administrative']) { echo HTML::para(HTML::link(_("Add New Medical Problem"), '../medical/problem_new_form.php', array('id_patient' => $idPatient, 'order_number' => $lastOrderNumber))); } echo HTML::rule(); echo HTML::section(2, _("Medical Problems List:")); if (!$problemQ->selectProblems($idPatient)) { $problemQ->close(); echo Msg::info(_("No medical problems defined for this patient.")); include_once "../layout/footer.php"; exit; } $thead = array(_("Order Number"), _("Function") => array('colspan' => $_SESSION['auth']['is_administrative'] ? 5 : 3), _("Wording"), _("Opening Date"), _("Last Update Date")); $options = array(0 => array('align' => 'right')); $tbody = array(); while ($problem = $problemQ->fetch()) { $row = $problem->getOrderNumber(); $row .= OPEN_SEPARATOR; if ($_SESSION['auth']['is_administrative']) { $row .= HTML::link(HTML::image('../img/action_edit.png', _("edit")), '../medical/problem_edit_form.php', array('id_problem' => $problem->getIdProblem(), 'id_patient' => $problem->getIdPatient())); $row .= OPEN_SEPARATOR;
/** * Breadcrumb */ $links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", _("Clinic History") => "../medical/history_list.php", $title => ""); echo HTML::breadcrumb($links, "icon icon_patient"); unset($links); echo $patient->getHeader(); if ($_SESSION['auth']['is_administrative']) { echo HTML::para(HTML::link(_("Editar antecedentes familiares"), '../medical/history_family_edit_form.php', array('id_patient' => $idPatient))); } /** * Show family antecedents */ echo HTML::section(2, _("Antecedentes Familiares")); if ($history->getParentsStatusHealth()) { echo HTML::section(3, _("Estado atual de saúde dos pais")); echo HTML::para(nl2br($history->getParentsStatusHealth())); } if ($history->getBrothersStatusHealth()) { echo HTML::section(3, _("Estado geral da saúde dos irmãos")); echo HTML::para(nl2br($history->getBrothersStatusHealth())); } if ($history->getSpouseChildsStatusHealth()) { echo HTML::section(3, _("Histórico de problemas degenerativos ou de doenças crônicas")); echo HTML::para(nl2br($history->getSpouseChildsStatusHealth())); } if ($history->getFamilyIllness()) { echo HTML::section(3, _("Histórico visitas domiciliares")); echo HTML::para(nl2br($history->getFamilyIllness())); } require_once "../layout/footer.php";
FlashMsg::add(sprintf(_("No logs for user %s."), $login)); header("Location: " . $returnLocation); exit; } /** * Show page */ $title = _("Access Logs"); require_once "../layout/header.php"; /** * Breadcrumb */ $links = array(_("Admin") => "../admin/index.php", _("Users") => $returnLocation, $title => ""); echo HTML::breadcrumb($links, "icon icon_user"); unset($links); echo HTML::section(2, sprintf(_("Access Logs List for user %s"), $login) . ":"); // Printing result stats and page nav echo HTML::para(HTML::tag('strong', sprintf(_("%d accesses."), $accessQ->getRowCount()))); $params = array('id_user='******'login='******'&', $params); $pageCount = $accessQ->getPageCount(); $pageLinks = Search::pageLinks($currentPage, $pageCount, $_SERVER['PHP_SELF'] . '?' . $params); echo $pageLinks; $profiles = array(OPEN_PROFILE_ADMINISTRATOR => _("Administrator"), OPEN_PROFILE_ADMINISTRATIVE => _("Administrative"), OPEN_PROFILE_DOCTOR => _("Doctor")); $thead = array(_("Access Date") => array('colspan' => 2), _("Login"), _("Profile")); $options = array(0 => array('align' => 'right'), 2 => array('align' => 'center'), 3 => array('align' => 'center')); $tbody = array(); while ($access = $accessQ->fetch()) { $row = $accessQ->getCurrentRow() . "."; $row .= OPEN_SEPARATOR; $row .= I18n::localDate($access["access_date"]);
/** * void summary(string $table) * * Draws summary stats * * @param string $table * @return void * @access public * @static */ public static function summary($table) { $logQ = new Query_LogStats($table); $total = $logQ->totalHits(); if ($total == 0) { $logQ->close(); echo Msg::info(_("There are not statistics")); return; } $today = date("Y-m-d"); // calculated date $arrToday = explode("-", $today); $sectionTitle = _("Total") . ': ' . $total . ' ' . strtolower(_("Hits")); echo HTML::section(3, $sectionTitle); $array = $logQ->busiestYear(); if (is_array($array)) { list($year, $hits) = $array; echo HTML::para(sprintf(_("Busiest Year: %d (%d hits)"), intval($year), $hits)); } $array = $logQ->busiestMonth(); if (is_array($array)) { list($year, $month, $hits) = $array; $months = self::getMonthName(); echo HTML::para(sprintf(_("Busiest Month: %s %d (%d hits)"), $months[intval($month)], intval($year), $hits)); } $array = $logQ->busiestDay(); if (is_array($array)) { list($year, $month, $day, $hits) = $array; echo HTML::para(sprintf(_("Busiest Day: %d %s %d (%d hits)"), intval($day), $months[intval($month)], intval($year), $hits)); } $array = $logQ->busiestHour(); if (is_array($array)) { list($year, $month, $day, $hour, $hits) = $array; $hour = sprintf("%02d:00 - %02d:59", $hour, $hour); echo HTML::para(sprintf(_("Busiest Hour: %s on %s %d, %d (%d hits)"), $hour, $months[intval($month)], intval($day), intval($year), $hits)); } $logQ->freeResult(); $logQ->close(); unset($logQ); }
echo HTML::breadcrumb($links, "icon icon_patient"); unset($links); echo $patient->getHeader(); echo $problem->getHeader(); if ($_SESSION['auth']['is_administrative']) { echo HTML::para(HTML::link(_("Add New Medical Test"), '../medical/test_new_form.php', array('id_problem' => $idProblem, 'id_patient' => $idPatient))); echo HTML::rule(); } $testQ = new Query_Test(); if (!$testQ->select($idProblem)) { $testQ->close(); echo Msg::info(_("No medical tests defined for this medical problem.")); include_once "../layout/footer.php"; exit; } echo HTML::section(2, _("Medical Tests List:")); $thead = array(_("Function") => array('colspan' => $_SESSION['auth']['is_administrative'] ? 3 : 1), _("Document Type"), _("Path Filename")); $tbody = array(); while ($test = $testQ->fetch()) { $temp = "http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']); $temp = substr($temp, 0, strrpos($temp, "/")) . "/tests/" . String::translateBrowser($test->getPathFilename(false)); $row = HTML::link(HTML::image('../img/action_view.png', _("view")), $temp, null, array('class' => 'popup')); $row .= OPEN_SEPARATOR; if ($_SESSION['auth']['is_administrative']) { $row .= HTML::link(HTML::image('../img/action_edit.png', _("edit")), '../medical/test_edit_form.php', array('id_problem' => $idProblem, 'id_patient' => $idPatient, 'id_test' => $test->getIdTest())); $row .= OPEN_SEPARATOR; $row .= HTML::link(HTML::image('../img/action_delete.png', _("delete")), '../medical/test_del_confirm.php', array('id_problem' => $idProblem, 'id_patient' => $idPatient, 'id_test' => $test->getIdTest())); $row .= OPEN_SEPARATOR; } // end if $row .= $test->getDocumentType();
exit; } if ($themeQ->numRows() > 1) { $legend = _("Change Theme by default in application"); $content = Form::label("id_theme", _("Choose a New Theme:")); $content .= Form::selectTable("theme_tbl", "id_theme", OPEN_THEME_ID, "theme_name"); $body = array($content); $foot = array(Form::button("button1", _("Update"))); /** * Theme use form */ echo HTML::start('form', array('method' => 'post', 'action' => '../admin/theme_use.php')); echo Form::fieldset($legend, $body, $foot); echo HTML::end('form'); } echo HTML::section(2, _("Themes List:")); $thead = array(_("#"), _("Function") => array('colspan' => 5), _("Theme Name"), _("Usage")); $validateLink = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; $validateLink = str_replace("/admin/", "/css/", $validateLink); $validateLink = substr($validateLink, 0, strrpos($validateLink, "/") + 1); $validateLink = "http://jigsaw.w3.org/css-validator/validator?uri=" . $validateLink; $tbody = array(); $i = 0; while ($theme = $themeQ->fetch()) { /** * Row construction */ $row = ++$i . '.'; $row .= OPEN_SEPARATOR; if ($theme->isCssReserved($theme->getCssFile())) { $row .= '**';
* Search form */ echo HTML::start('form', array('method' => 'post', 'action' => '../medical/relative_search.php')); echo Form::hidden("id_patient", $idPatient); require_once "../medical/patient_search_fields.php"; echo HTML::end('form'); echo Msg::hint('* ' . _("Note: Empty search to see all results.")); } // end if if (count($relArray) == 0) { echo Msg::info(_("No relatives defined for this patient.")); include_once "../layout/footer.php"; exit; } echo HTML::rule(); echo HTML::section(2, _("Relatives List:")); $thead = array(_("#"), _("Function") => array('colspan' => $_SESSION['auth']['is_administrative'] ? 2 : 1), _("Surname 1"), _("Surname 2"), _("First Name")); $options = array(0 => array('align' => 'right')); $patQ = new Query_Page_Patient(); $patQ->captureError(true); $tbody = array(); for ($i = 0; $i < count($relArray); $i++) { $patQ->select($relArray[$i]); if ($patQ->isError()) { Error::query($patQ, false); continue; } $pat = $patQ->fetch(); if (!$pat) { $patQ->close(); Error::fetch($patQ);
/** * bool _validateSettings(void) * * Validates settings of install wizard * * @return boolean true if all settings are ok, false otherwise * @access private * */ function _validateSettings() { $error = ""; if (empty($_POST['dbHost'])) { $error .= _("Database Host is empty.") . PHP_EOL; } if (empty($_POST['dbUser'])) { $error .= _("Database User is empty.") . PHP_EOL; } if (empty($_POST['dbName'])) { $error .= _("Database Name is empty.") . PHP_EOL; } if ($_POST['timeout'] <= 0) { $error .= _("Session Timeout must be great than zero.") . PHP_EOL; } if ($_POST['itemsPage'] <= 0) { $error .= _("Items per page must be great than zero.") . PHP_EOL; } if (strlen($_POST['passwd']) < 4) { $error .= _("Admin password must be at least 4 characters.") . PHP_EOL; } if (!empty($error)) { echo HTML::section(3, _("There were some errors"), array('class' => 'error')); echo Msg::error($error); } return empty($error); }
echo HTML::section(3, _("Situação da família")); echo HTML::para(nl2br($patient->getFamilySituation())); } if ($patient->getLabourSituation()) { echo HTML::section(3, _("Condição de trabalho")); echo HTML::para(nl2br($patient->getLabourSituation())); } if ($patient->getEducation()) { echo HTML::section(3, _("Formação")); echo HTML::para(nl2br($patient->getEducation())); } if ($patient->getInsuranceCompany()) { echo HTML::section(3, _("Situação inicial")); echo HTML::para($patient->getInsuranceCompany()); } if ($patient->getIdMember()) { $staffQ = new Query_Staff(); if ($staffQ->select($patient->getIdMember())) { $staff = $staffQ->fetch(); if ($staff) { echo HTML::section(3, _("Atendente")); echo HTML::para($staff->getSurname1() . ' ' . $staff->getSurname2() . ', ' . $staff->getFirstName()); } $staffQ->freeResult(); } $staffQ->close(); unset($staffQ); unset($staff); } unset($patient); require_once "../layout/footer.php";
require_once "../auth/login_check.php"; loginCheck(OPEN_PROFILE_DOCTOR); require_once "../lib/LastViewedPatient.php"; /** * Show page */ $title = _("Medical Records"); require_once "../layout/header.php"; echo HTML::section(1, $title, array('class' => 'icon icon_medical')); echo HTML::para(_("Use the following functions located in the left hand navigation area to manage your medical records.")); echo HTML::section(2, HTML::link(_("Search Patient"), '../medical/patient_search_form.php'), array('class' => 'icon icon_search')); echo HTML::para(_("Search and view patients. Once a patient is selected you can:")); $array = array(_("manage social data"), _("manage clinic history"), _("manage problems report"), _("print medical record")); echo HTML::itemList($array); $viewedPatient = LastViewedPatient::get(); if ($viewedPatient) { echo HTML::rule(); echo HTML::section(2, _("Last Viewed Patients"), array('class' => 'icon icon_patient')); $array = array(); foreach ($viewedPatient as $key => $value) { $array[] = HTML::link($value, '../medical/patient_view.php', array('id_patient' => $key)); } echo HTML::itemList($array); } if ($_SESSION['auth']['is_administrative']) { echo HTML::rule(); echo HTML::section(2, HTML::link(_("New Patient"), '../medical/patient_new_form.php'), array('class' => 'icon icon_patient')); echo HTML::para(_("Build a new patient information in medical records system.")); } // end if require_once "../layout/footer.php";
$connQ = new Query_Connection(); $connArray = array(); if ($connQ->select($idProblem)) { while ($conn = $connQ->fetch()) { $connArray[] = $conn[1]; } $connQ->freeResult(); } $connQ->close(); unset($connQ); if (count($connArray) == 0) { echo Msg::info(_("No connections defined for this medical problem.")); include_once "../layout/footer.php"; exit; } echo HTML::section(2, _("Connection Problems List:")); $thead = array(_("#"), _("Function") => array('colspan' => $_SESSION['auth']['is_administrative'] ? 2 : 1), _("Opening Date"), _("Wording")); $problemQ = new Query_Page_Problem(); $problemQ->captureError(true); $tbody = array(); for ($i = 0; $i < count($connArray); $i++) { $problemQ->select($connArray[$i]); if ($problemQ->isError()) { Error::query($problemQ, false); continue; } $problem = $problemQ->fetch(); if (!$problem) { $problemQ->close(); Error::fetch($problemQ); }
require_once "../auth/login_check.php"; loginCheck(OPEN_PROFILE_DOCTOR); require_once "../lib/LastViewedPatient.php"; /** * Show page */ $title = _("Medical Records"); require_once "../layout/header.php"; echo HTML::section(1, $title, array('class' => 'icon icon_medical')); echo HTML::para(_("Use the following functions located in the left hand navigation area to manage your medical records.")); echo HTML::section(2, HTML::link(_("Search Patient"), '../medical/patient_search_form.php'), array('class' => 'icon icon_search')); echo HTML::para(_("Search and view patients. Once a patient is selected you can:")); $array = array(_("manage social data"), _("manage clinic history"), _("manage problems report"), _("print medical record")); echo HTML::itemList($array); $viewedPatient = LastViewedPatient::get(); if ($viewedPatient) { echo HTML::rule(); echo HTML::section(2, _("Last Viewed Patients"), array('class' => 'icon icon_patient')); $array = array(); foreach ($viewedPatient as $key => $value) { $array[] = HTML::link($value, '../medical/patient_view.php', array('id_patient' => $key)); } echo HTML::itemList($array); } if ($_SESSION['auth']['is_administrative']) { echo HTML::rule(); echo HTML::section(2, HTML::link(_("Adicionar beneficiário"), '../medical/patient_new_form.php'), array('class' => 'icon icon_patient')); echo HTML::para(_("Build a new patient information in medical records system.")); } // end if require_once "../layout/footer.php";
/** * Show page */ $title = _("Histórico do beneficiário"); $titlePage = $patient->getName() . ' (' . $title . ')'; require_once "../layout/header.php"; /** * Breadcrumb */ $links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", $title => ""); echo HTML::breadcrumb($links, "icon icon_patient"); unset($links); echo $patient->getHeader(); echo HTML::para(HTML::link(_("Ver antecedentes clínicos"), '../medical/history_personal_view.php', array('id_patient' => $idPatient)) . ' | ' . HTML::link(_("Ver antecedentes familiares"), '../medical/history_family_view.php', array('id_patient' => $idPatient))); echo HTML::rule(); echo HTML::section(2, _("Lista de cenários clínicos do beneficiário:")); $problemQ = new Query_Page_Problem(); if (!$problemQ->selectProblems($idPatient, true)) { $problemQ->close(); echo Msg::info(_("Não há cenários clínicos encerrados para esse beneficiário.")); include_once "../layout/footer.php"; exit; } $thead = array(_("Order Number"), _("Function") => array('colspan' => $_SESSION['auth']['is_administrative'] ? 4 : 3), _("Wording"), _("Opening Date"), _("Closing Date")); $options = array(0 => array('align' => 'right')); $tbody = array(); while ($problem = $problemQ->fetch()) { $row = $problem->getOrderNumber(); $row .= OPEN_SEPARATOR; // a closed medical problem is not editable $row .= HTML::link(HTML::image('../img/action_view.png', _("view")), '../medical/problem_view.php', array('id_problem' => $problem->getIdProblem(), 'id_patient' => $problem->getIdPatient()));
$listTitle = _("Administratives:"); break; case 'D': $listTitle = _("Doctors:"); break; } $viewType = false; } else { $numRows = $staffQ->select(); $listTitle = _("Staff Members") . ":"; $viewType = true; } //Error::debug($_SESSION); echo HTML::para(HTML::link(_("Add New Administrative"), '../admin/staff_new_form.php', array('type' => 'A')) . ' | ' . HTML::link(_("Add New Doctor"), '../admin/staff_new_form.php', array('type' => 'D'))); echo HTML::rule(); echo HTML::section(3, $listTitle); $relatedLinks = ""; if (!empty($memberType)) { $relatedLinks .= HTML::link(_("View all staff members"), '../admin/staff_list.php'); } else { $relatedLinks .= _("View all staff members"); } $relatedLinks .= ' | '; if ($memberType != 'A') { $relatedLinks .= HTML::link(_("View only administratives"), '../admin/staff_list.php', array('type' => 'A')); } else { $relatedLinks .= _("View only administratives"); } $relatedLinks .= ' | '; if ($memberType != 'D') { $relatedLinks .= HTML::link(_("View only doctors"), '../admin/staff_list.php', array('type' => 'D'));
<?php include "include/incluir.php"; //$titulo = SQL::filasEnArreglo(SQL::seleccionar("trcPriNombre","bif_terceros")); $menu = SQL::filasEnArreglo(SQL::seleccionar("mnsId, mnsDescripcion, mnsRuta", "bif_menus", "mnsPadre = 0")); $css = CSS::estiloHTML(); $js = ""; echo HTML::esquemaHTML(HTML::head($css, $js, "Fila") . HTML::body(HTML::header(HTML::figure("imagenes/logo.jpg") . HTML::nav(HTML::menuPrincipal($menu, 'navbar-nav'))) . HTML::section(HTML::article("") . HTML::aside("")) . HTML::footer("") . HTML::popUp("") . HTML::alert("") . HTML::menuBotones()));
$titlePage = $patient->getName() . ' (' . $title . ')'; require_once "../layout/header.php"; /** * Breadcrumb */ $links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", $title => ""); echo HTML::breadcrumb($links, "icon icon_patient"); unset($links); echo $patient->getHeader(); $problemQ = new Query_Page_Problem(); $lastOrderNumber = $problemQ->getLastOrderNumber($idPatient); if ($_SESSION['auth']['is_administrative']) { echo HTML::para(HTML::link(_("Iniciar novo atendimento"), '../medical/problem_new_form.php', array('id_patient' => $idPatient, 'order_number' => $lastOrderNumber))); } echo HTML::rule(); echo HTML::section(2, _("Lista de atendimentos:")); if (!$problemQ->selectProblems($idPatient)) { $problemQ->close(); echo Msg::info(_("Nenhum atendimento foi realizado para esse beneficiário.")); include_once "../layout/footer.php"; exit; } $thead = array(_("Código atendimento"), _("Ações") => array('colspan' => $_SESSION['auth']['is_administrative'] ? 5 : 3), _("Resumo"), _("Atendido em"), _("Alterado em")); $options = array(0 => array('align' => 'right')); $tbody = array(); while ($problem = $problemQ->fetch()) { $row = $problem->getOrderNumber(); $row .= OPEN_SEPARATOR; if ($_SESSION['auth']['is_administrative']) { $row .= HTML::link(HTML::image('../img/action_edit.png', _("edit")), '../medical/problem_edit_form.php', array('id_problem' => $problem->getIdProblem(), 'id_patient' => $problem->getIdPatient())); $row .= OPEN_SEPARATOR;
$localQuery = 'OPTIMIZE TABLE ' . $row['Name']; if (!$auxConn->exec($localQuery)) { $auxConn->close(); Error::connection($auxConn); } $content = $row['Name']; $content .= OPEN_SEPARATOR; $content .= $total . ' KB'; $content .= OPEN_SEPARATOR; if ($gain == 0) { $content .= _("Already optimized"); $content .= OPEN_SEPARATOR; $content .= '0 KB'; } else { $content .= _("Optimized!"); $content .= OPEN_SEPARATOR; $content .= $gain . ' KB'; } $tbody[] = explode(OPEN_SEPARATOR, $content); } $auxConn->close(); unset($auxConn); unset($rows); unset($row); echo HTML::table($thead, $tbody, null, $options); $totalGain = round($totalGain, 3); echo HTML::section(3, _("Optimization Results") . ":"); echo Msg::info(sprintf(_("Total Database Size: %d KB"), $totalAll)); echo Msg::info(sprintf(_("Total Space Saved: %d KB"), $totalGain)); echo HTML::para(HTML::link(_("Back return"), '../admin/dump_view_form.php')); require_once "../layout/footer.php";
*/ $tab = "home"; $nav = "summary"; require_once "../config/environment.php"; if (isset($_SESSION['auth']['token'])) { /** * Checking permissions */ include_once "../auth/login_check.php"; loginCheck(); } require_once "../lib/Check.php"; /** * Show page */ $title = _("Welcome to OpenClinic"); require_once "../layout/header.php"; echo HTML::section(1, $title); echo HTML::para(_("OpenClinic is an easy to use, open source, medical records system.")); echo HTML::para(_("When you select any of the following tabs you will be prompted to login.")); echo HTML::section(2, HTML::link(_("Medical Records"), '../medical/index.php'), array('class' => 'icon icon_medical')); echo HTML::para(_("Use this tab to manage your patient's medical records.")); echo HTML::para(_("Patient's Administration:")); $array = array(_("Search, new, delete, edit"), _("Social Data"), _("Clinic History"), _("Problem Reports")); echo HTML::itemList($array); echo HTML::rule(); echo HTML::section(2, HTML::link(_("Admin"), '../admin/index.php'), array('class' => 'icon icon_admin')); echo HTML::para(_("Use this tab to manage administrative options.")); $array = array(_("Staff members"), _("Config settings"), _("Clinic themes editor"), _("System users"), _("Dumps"), _("Logs")); echo HTML::itemList($array); require_once "../layout/footer.php";
echo HTML::para(I18n::localDate($problem->getClosingDate())); } if ($problem->getMeetingPlace()) { echo HTML::section(3, _("Local e Data de atendimento")); echo HTML::para($problem->getMeetingPlace()); } echo HTML::section(3, _("Resumo")); echo HTML::para(nl2br($problem->getWording())); if ($problem->getSubjective()) { echo HTML::section(3, _("Informações pedagógicas")); echo HTML::para(nl2br($problem->getSubjective())); } if (in_array($_SESSION['auth']['login_session'], $userArray)) { if ($problem->getObjective()) { echo HTML::section(3, _("Informações psicológicas (Campo restrito ao psicologo)")); echo HTML::para(nl2br($problem->getObjective())); } } if ($problem->getAppreciation()) { echo HTML::section(3, _("Evoluções")); echo HTML::para(nl2br($problem->getAppreciation())); } if ($problem->getActionPlan()) { echo HTML::section(3, _("Próximos passos")); echo HTML::para(nl2br($problem->getActionPlan())); } if ($problem->getPrescription()) { echo HTML::section(3, _("Prescrições")); echo HTML::para(nl2br($problem->getPrescription())); } require_once "../layout/footer.php";
FlashMsg::add(sprintf(_("No logs for user %s."), $login)); header("Location: " . $returnLocation); exit; } /** * Show page */ $title = _("Record Logs"); require_once "../layout/header.php"; /** * Breadcrumb */ $links = array(_("Admin") => "../admin/index.php", _("Users") => $returnLocation, $title => ""); echo HTML::breadcrumb($links, "icon icon_user"); unset($links); echo HTML::section(2, sprintf(_("Record Logs List for user %s"), $login) . ":"); // Printing result stats and page nav echo HTML::para(HTML::tag('strong', sprintf(_("%d transactions."), $recordQ->getRowCount()))); $params = array('id_user='******'login='******'&', $params); $pageCount = $recordQ->getPageCount(); $pageLinks = Search::pageLinks($currentPage, $pageCount, $_SERVER['PHP_SELF'] . '?' . $params); echo $pageLinks; $thead = array(_("Access Date") => array('colspan' => 2), _("Login"), _("Table"), _("Operation"), _("Data")); $options = array(0 => array('align' => 'right'), 1 => array('align' => 'center', 'nowrap' => 1), 2 => array('align' => 'center'), 3 => array('align' => 'center'), 4 => array('align' => 'center')); $tbody = array(); while ($record = $recordQ->fetch()) { $row = $recordQ->getCurrentRow() . "."; $row .= OPEN_SEPARATOR; $row .= I18n::localDate($record["access_date"]); $row .= OPEN_SEPARATOR;
echo HTML::end('head'); echo HTML::start('body', array('id' => 'top')); echo HTML::start('div', array('id' => 'wrap')); echo HTML::start('div', array('id' => 'header')); echo appLogo(); $array = array(HTML::link(_("Close Window"), '#', null, array('onclick' => 'window.close(); return false;'))); echo HTML::itemList($array, array('id' => 'shortcuts')); echo menuBar($tab); echo HTML::end('div'); // #header echo HTML::start('div', array('id' => 'main')); echo HTML::start('div', array('id' => 'content')); echo HTML::section(1, sprintf(_("This is a preview of the %s theme."), $_POST["theme_name"])); echo HTML::para(HTML::link(_("Sample Link"), '#top')); echo HTML::rule(); echo HTML::section(2, _("Subtitle Sample:")); $thead = array(_("Table Heading") => array('colspan' => 2)); $tbody = array(); $tbody[] = array(sprintf(_("Sample data row %d"), 1)); $tbody[] = array(sprintf(_("Sample data row %d"), 2)); $row = Form::label("sample_text", _("Required Field") . ":", array('class' => 'required')); $row .= OPEN_SEPARATOR; $row .= Form::text("sample_text", _("Sample Input Text"), array('size' => 50, 'readonly' => true)); $tbody[] = explode(OPEN_SEPARATOR, $row); $options = array('tfoot' => array('align' => 'center'), 'r0' => array('colspan' => 2), 'r1' => array('colspan' => 2)); $tfoot = array(Form::button("sample_button", _("Sample Button"), array('type' => 'button'))); echo HTML::table($thead, $tbody, $tfoot, $options); echo Msg::error(_("Sample Error")); echo Msg::warning(_("Sample Warning")); echo Msg::info(_("Sample Info")); echo Msg::hint(_("Sample Hint"));
require_once "../layout/header.php"; echo HTML::section(1, $title, array('class' => 'icon icon_admin')); echo HTML::para(_("Use the following functions located in the left hand navigation area to manage your clinic's staff and administrative records.")); echo HTML::section(2, HTML::link(_("Config settings"), '../admin/setting_edit_form.php'), array('class' => 'icon icon_config')); echo HTML::para(_("Update config settings.")); echo HTML::rule(); echo HTML::section(2, HTML::link(_("Staff Members"), '../admin/staff_list.php'), array('class' => 'icon icon_staff')); echo HTML::para(_("View the clinic staff member list.") . ' ' . _("From this list you can:")); $array = array(_("build a new staff member"), _("edit the staff member information"), _("build or edit the clinic user associated"), _("delete a staff member")); echo HTML::itemList($array); echo HTML::rule(); echo HTML::section(2, HTML::link(_("Users"), '../admin/user_list.php'), array('class' => 'icon icon_user')); echo HTML::para(_("View the list of clinic users.") . ' ' . _("From this list you can:")); $array = array(_("build a new clinic user"), _("edit a existing clinic user"), _("edit the staff member information"), _("reset a user's password"), _("delete a clinic user")); echo HTML::itemList($array); echo HTML::rule(); echo HTML::section(2, HTML::link(_("Themes"), '../admin/theme_list.php'), array('class' => 'icon icon_theme')); echo HTML::para(_("View the list of site look and feel themes.") . ' ' . _("From this list you can:")); $array = array(_("set the theme in use by default for your site"), _("build a new site theme"), _("edit an existing theme"), _("delete a theme")); echo HTML::itemList($array); echo HTML::rule(); echo HTML::section(2, HTML::link(_("Dumps"), '../admin/dump_view_form.php'), array('class' => 'icon icon_dump')); echo HTML::para(_("From this option you can:")); $array = array(_("install dump from file"), sprintf(_("export database dump to %s format"), "MySQL"), sprintf(_("export database dump to %s format"), "XML"), sprintf(_("export database dump to %s format"), "CSV"), _("optimize database")); echo HTML::itemList($array); echo HTML::rule(); echo HTML::section(2, HTML::link(_("Logs"), '../admin/log_stats.php'), array('class' => 'icon icon_log')); echo HTML::para(_("View logs generated by the program:")); $array = array(_("user's accesses logs"), _("operations with medical records logs"), _("statistics for years, months, days and hours")); echo HTML::itemList($array); require_once "../layout/footer.php";
* @copyright 2002-2013 jact * @license http://www.gnu.org/copyleft/gpl.html GNU GPL * @version CVS: $Id: index.php,v 1.34 2013/01/13 16:24:35 jact Exp $ * @author jact <*****@*****.**> */ $tab = "install"; $nav = "index"; // Instead of include environment.php (because maybe database connection doesn't exists) define("OPEN_THEME_NAME", "OpenClinic"); define("OPEN_THEME_CSS_FILE", "openclinic.css"); require_once "../config/i18n.php"; require_once "../config/session_info.php"; require_once "../lib/FlashMsg.php"; $title = _("OpenClinic Install"); require_once "../layout/header.php"; echo HTML::section(1, $title); require_once dirname(__FILE__) . "/parse_sql_file.php"; require_once "../lib/Form.php"; require_once "../lib/Check.php"; //Error::debug($_POST); //Error::debug($_FILES); if (isset($_POST['install_file'])) { Form::compareToken('./index.php'); // @fixme gecko browsers (Mozilla 1.7.8) cause to disappear CR/LF (and I don't know why) /*$_POST['sql_query'] = Check::safeText($_POST['sql_query'], false); if (get_magic_quotes_gpc()) { $_POST['sql_query'] = stripslashes($_POST['sql_query']); }*/ if (!parseSql($_POST['sql_query'])) { echo Msg::error(_("Parse failed."));
echo HTML::start('form', array('method' => 'post', 'action' => $_SERVER['PHP_SELF'] . '?confirm=yes')); echo HTML::para(Form::button("continue", _("Continue")) . Form::generateToken()); echo HTML::end('form'); echo HTML::para(HTML::link(_("Cancel"), './index.php')); include_once "../layout/footer.php"; exit; } } $setQ->close(); unset($setQ); unset($set); /** * Creating each table listed in the $tables array */ $tables = getTables(); foreach ($tables as $tableName) { $result = parseSqlFile("./sql/" . $tableName . ".sql", $tableName, true); if ($result) { $text = sprintf(_("Table %s dropped."), $tableName) . PHP_EOL; $text .= sprintf(_("Table %s created."), $tableName) . PHP_EOL; $text .= str_repeat(".", 50); echo HTML::para(nl2br($text)); } else { echo Msg::error(_("Last instruction failed")); include_once "../layout/footer.php"; exit; } } echo Msg::info(_("OpenClinic tables have been created successfully!")); echo HTML::section(1, HTML::link(_("Start using OpenClinic"), '../home/index.php')); require_once "../layout/footer.php";
echo HTML::para(nl2br($history->getHabits())); } if ($history->getPeristalticConditions()) { echo HTML::section(3, _("Condições periostáltica e/ou alimentar")); echo HTML::para(nl2br($history->getPeristalticConditions())); } if ($history->getPsychological()) { echo HTML::section(3, _("Condições psicológicas")); echo HTML::para(nl2br($history->getPsychological())); } if ($history->getChildrenComplaint()) { echo HTML::section(3, _("Queixas gerais (dores, tratamento familiar, etc.)")); echo HTML::para(nl2br($history->getChildrenComplaint())); } if ($history->getVenerealDisease()) { echo HTML::section(3, _("Está com alguma doença crônica ou venéria? Caso sim, quais?")); echo HTML::para(nl2br($history->getVenerealDisease())); } if ($history->getAccidentSurgicalOperation()) { echo HTML::section(3, _("Passou por sirurgia ou sofreu algum acidente? Caso sim, quais?")); echo HTML::para(nl2br($history->getAccidentSurgicalOperation())); } if ($history->getMedicinalIntolerance()) { echo HTML::section(3, _("Possui intolerância a medicamentos? Se sim, quais?")); echo HTML::para(nl2br($history->getMedicinalIntolerance())); } if ($history->getMentalIllness()) { echo HTML::section(3, _("Possui alguma doença mental? Se sim, qual?")); echo HTML::para(nl2br($history->getMentalIllness())); } require_once "../layout/footer.php";
echo HTML::para(nl2br($problem->getSubjective())); } if ($problem->getObjective()) { echo HTML::section(3, _("Objective")); echo HTML::para(nl2br($problem->getObjective())); } if ($problem->getAppreciation()) { echo HTML::section(3, _("Appreciation")); echo HTML::para(nl2br($problem->getAppreciation())); } if ($problem->getActionPlan()) { echo HTML::section(3, _("Action Plan")); echo HTML::para(nl2br($problem->getActionPlan())); } if ($problem->getPrescription()) { echo HTML::section(3, _("Prescription")); echo HTML::para(nl2br($problem->getPrescription())); } echo HTML::rule(); } // end while $problemQ->freeResult(); $problemQ->close(); unset($problemQ); unset($problem); /** * Do print the page */ echo HTML::start('script', array('type' => 'text/javascript')); echo "\n<!--/*--><![CDATA[/*<!--*/\n"; echo 'if (typeof(window.print) != "undefined")' . "\n";
$legend = _("Create New User"); if (empty($userArray)) { $content = _("There no more users to create. You must create more staff members first."); } else { $content = Form::label("id_member_login", _("Select a login to create a new user") . ": "); $content .= Form::select("id_member_login", $userArray); $tfoot = array(Form::button("new", _("Create")) . Form::generateToken()); } $tbody = array($content); /** * New user form */ echo HTML::start('form', array('method' => 'post', 'action' => '../admin/user_new_form.php')); echo Form::fieldset($legend, $tbody, isset($tfoot) ? $tfoot : null, array('id' => 'new_user')); echo HTML::end('form'); echo HTML::section(2, _("Users List:")); if (!$userQ->select()) { $userQ->close(); echo Msg::info(_("No results found.")); include_once "../layout/footer.php"; exit; } $profiles = array(OPEN_PROFILE_ADMINISTRATOR => _("Administrator"), OPEN_PROFILE_ADMINISTRATIVE => _("Administrative"), OPEN_PROFILE_DOCTOR => _("Doctor")); $thead = array(_("#"), _("Function") => array('colspan' => 6), _("Login"), _("Email"), _("Actived"), _("Profile")); $options = array(0 => array('align' => 'right'), 1 => array('align' => 'center'), 2 => array('align' => 'center'), 3 => array('align' => 'center'), 4 => array('align' => 'center'), 5 => array('align' => 'center'), 6 => array('align' => 'center'), 9 => array('align' => 'center'), 10 => array('align' => 'center')); $tbody = array(); $i = 0; while ($user = $userQ->fetch()) { /** * to protect 'big brother' user */
echo HTML::para(nl2br($history->getHabits())); } if ($history->getPeristalticConditions()) { echo HTML::section(3, _("Peristaltic Conditions")); echo HTML::para(nl2br($history->getPeristalticConditions())); } if ($history->getPsychological()) { echo HTML::section(3, _("Psychological Conditions")); echo HTML::para(nl2br($history->getPsychological())); } if ($history->getChildrenComplaint()) { echo HTML::section(3, _("Children Complaint")); echo HTML::para(nl2br($history->getChildrenComplaint())); } if ($history->getVenerealDisease()) { echo HTML::section(3, _("Venereal Disease")); echo HTML::para(nl2br($history->getVenerealDisease())); } if ($history->getAccidentSurgicalOperation()) { echo HTML::section(3, _("Accidents and Surgical Operations")); echo HTML::para(nl2br($history->getAccidentSurgicalOperation())); } if ($history->getMedicinalIntolerance()) { echo HTML::section(3, _("Medicinal Intolerance")); echo HTML::para(nl2br($history->getMedicinalIntolerance())); } if ($history->getMentalIllness()) { echo HTML::section(3, _("Mental Illness")); echo HTML::para(nl2br($history->getMentalIllness())); } require_once "../layout/footer.php";
* @since 0.4 */ /** * Controlling vars */ $tab = "admin"; $nav = "logs"; /** * Checking permissions */ require_once "../auth/login_check.php"; loginCheck(OPEN_PROFILE_ADMINISTRATOR, false); // There are not logs in demo version /** * Show page */ $title = _("Log Statistics"); require_once "../layout/header.php"; /** * Breadcrumb */ $links = array(_("Admin") => "../admin/index.php", $title => ""); echo HTML::breadcrumb($links, "icon icon_log"); unset($links); echo HTML::section(2, HTML::link(_("Access Logs"), '../admin/log_list.php', array('table' => 'access')), array('class' => 'icon icon_log')); require_once "../lib/LogStats.php"; LogStats::summary('access'); echo HTML::rule(); echo HTML::section(2, HTML::link(_("Record Logs"), '../admin/log_list.php', array('table' => 'record')), array('class' => 'icon icon_log')); LogStats::summary('record'); require_once "../layout/footer.php";