示例#1
0
  document.forms[0].action = "../admin/theme_preview.php";
  document.forms[0].target = "secondary";
  document.forms[0].submit();
}

function editTheme()
{
  document.forms[0].action = "../admin/theme_new.php";
  document.forms[0].target = "";
  document.forms[0].submit();
}
/*]]>*///-->
</script>

<?php 
echo HTML::para(HTML::link(_("Preview Theme"), '#', null, array('onclick' => 'previewTheme(); return false;')) . ' | ' . HTML::link(_("Preload CSS file"), '../admin/theme_preload_css.php', isset($idTheme) ? array('id_theme' => $idTheme, 'copy' => 'Y') : null));
echo HTML::rule();
echo Form::errorMsg();
/**
 * New form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../admin/theme_new.php'));
require_once "../admin/theme_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Note: The fields with * are required."));
echo HTML::para(HTML::link(_("Return"), $returnLocation));
/**
 * Destroy form values and errors
 */
Form::unsetSession();
require_once "../layout/footer.php";
 * Retrieving get vars
 */
$idMember = intval($_GET["id_member"]);
$surname1 = Check::safeText($_GET["surname1"]);
$surname2 = Check::safeText($_GET["surname2"]);
$firstName = Check::safeText($_GET["first_name"]);
/**
 * Show page
 */
$title = _("Delete Staff Member");
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
$links = array(_("Admin") => "../admin/index.php", _("Staff Members") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_staff");
unset($links);
/**
 * Form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../admin/staff_del.php'));
$tbody = array();
$tbody[] = Msg::warning(sprintf(_("Are you sure you want to delete staff member, %s %s %s?"), $firstName, $surname1, $surname2));
$tbody[] = Form::hidden("id_member", $idMember);
$tfoot = array(Form::button("delete", _("Delete")) . Form::generateToken());
$options = array('class' => 'center');
echo Form::fieldset($title, $tbody, $tfoot, $options);
echo HTML::end('form');
echo Msg::hint('* ' . _("Note: The del function will delete the related user too (if exists)."));
echo HTML::para(HTML::link(_("Return"), $returnLocation));
require_once "../layout/footer.php";
示例#3
0
$title = _("Editar Atendimento");
$titlePage = $patient->getName() . ' [' . $problem->getWordingPreview() . '] (' . $title . ')';
$focusFormField = "wording";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
//$returnLocation = "../medical/problem_view.php?id_problem=" . $idProblem . "&id_patient=" . $idPatient;
$returnLocation = "../medical/problem_view.php";
/**
 * Breadcrumb
 */
$links = array(_("Registro do Atendimento") => "../medical/index.php", $patient->getName() => "../medical/problem_view.php", _("Outras informações") => "../medical/problem_list.php", $problem->getWordingPreview() => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
echo Form::errorMsg();
/**
 * Edit form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/problem_edit.php'));
echo Form::hidden("id_problem", $formVar["id_problem"]);
echo Form::hidden("last_update_date", $formVar["last_update_date"]);
echo Form::hidden("id_patient", $formVar["id_patient"]);
require_once "../medical/problem_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Importante: Os campos com * são obrigatórios."));
echo HTML::para(HTML::link(_("Return"), $returnLocation));
/**
 * Destroy form values and errors
 */
Form::unsetSession();
require_once "../layout/footer.php";
示例#4
0
        //"** " . _("del");
    } elseif ($theme->getId() == OPEN_THEME_ID || $theme->getCount() > 0) {
        $row .= '*';
        //"* " . _("del");
    } else {
        $row .= HTML::link(HTML::image('../img/action_delete.png', _("delete")), '../admin/theme_del_confirm.php', array('id_theme' => $theme->getId(), 'name' => $theme->getName()));
    }
    // end if
    $row .= OPEN_SEPARATOR;
    $row .= $theme->getName();
    $row .= OPEN_SEPARATOR;
    if ($theme->getId() == OPEN_THEME_ID) {
        $row .= _("in use") . " (" . _("by application") . ") ";
    }
    if ($theme->getCount() > 0) {
        $row .= _("in use") . " (" . sprintf(_("%d user(s)"), $theme->getCount()) . ")";
    } else {
        $row .= "";
    }
    $tbody[] = explode(OPEN_SEPARATOR, $row);
}
// end while
$themeQ->freeResult();
$themeQ->close();
$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'));
echo HTML::table($thead, $tbody, null, $options);
unset($themeQ);
unset($theme);
echo Msg::hint('* ' . _("Note: The delete function is not available on the themes that are currently in use by some user or by the application."));
echo Msg::hint('** ' . _("Note: The functions edit and delete are not available on the application themes."));
require_once "../layout/footer.php";
示例#5
0
loginCheck(OPEN_PROFILE_ADMINISTRATIVE);
// after clean form vars
//$formVar["last_update_date"] = date("d-m-Y"); //date("Y-m-d");
/**
 * Show page
 */
$title = _("Adicionar novo");
$focusFormField = "nif";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
$links = array(_("Dados clínicos") => $returnLocation, _("Adicionar novo beneficiário") => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo Form::errorMsg();
/**
 * New form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/patient_new.php'));
//echo Form::hidden("last_update_date", $formVar['last_update_date']);
require_once "../medical/patient_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Nota: Os campos com * são obrigatórios."));
echo HTML::para(HTML::link(_("Return"), $returnLocation));
/**
 * Destroy form values and errors
 */
Form::unsetSession();
require_once "../layout/footer.php";
示例#6
0
    $row .= OPEN_SEPARATOR;
    $row .= $staff->getFirstName();
    $row .= OPEN_SEPARATOR;
    $row .= $staff->getSurname1();
    $row .= OPEN_SEPARATOR;
    $row .= $staff->getSurname2();
    $row .= OPEN_SEPARATOR;
    $row .= $staff->getLogin();
    if ($viewType) {
        $row .= OPEN_SEPARATOR;
        switch ($staff->getMemberType()) {
            case OPEN_ADMINISTRATIVE:
                $row .= _("Administrative");
                break;
            case OPEN_DOCTOR:
                $row .= _("Doctor");
                break;
        }
    }
    $tbody[] = explode(OPEN_SEPARATOR, $row);
}
// end while
$staffQ->freeResult();
$staffQ->close();
unset($staffQ);
unset($staff);
$options = array(0 => array('align' => 'right'), 1 => array('align' => 'center'), 2 => array('align' => 'center'), 3 => array('align' => 'center'));
echo HTML::table($thead, $tbody, null, $options);
echo Msg::hint('* ' . _("Note: To the create user function must have a correct login."));
echo Msg::hint('** ' . _("Note: The del function will not be applicated to the session user."));
require_once "../layout/footer.php";
示例#7
0
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/footer.php";
    $setQ->close();
    unset($setQ);
    unset($set);
}
/**
 * Show page
 */
$title = _("Config settings");
$focusFormField = "session_timeout";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
$links = array(_("Admin") => "../admin/index.php", $title => "");
echo HTML::breadcrumb($links, "icon icon_config");
unset($links);
echo Form::errorMsg();
/**
 * Edit form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../admin/setting_edit.php'));
require_once "../admin/setting_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Note: The fields with * are required."));
echo Msg::hint('** ' . _("Note: If zero, searchs return all results without pagination."));
/**
 * Destroy form values and errors
 */
Form::unsetSession();
require_once "../layout/footer.php";
 * Show page
 */
$title = _("Search Patient");
$focusFormField = "search_text";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
$headerWording2 = _("Search Patient by Medical Problem");
$returnLocation = "../medical/index.php";
/**
 * Breadcrumb
 */
$links = array(_("Medical Records") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_search");
unset($links);
$tokenForm = Form::generateToken();
// for 2 forms (patient, problem)
/**
 * Patient search form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/patient_search.php'));
require_once "../medical/patient_search_fields.php";
echo HTML::end('form');
echo HTML::rule();
/**
 * Problem search form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/problem_search.php'));
require_once "../medical/problem_search_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Note: Empty search to see all results."));
require_once "../layout/footer.php";
示例#10
0
echo HTML::para(HTML::link(_("Install dump from file"), '../install/index.php') . ' | ' . HTML::link(_("Optimize Database"), '../admin/dump_optimize_db.php'));
if ($numTables < 1) {
    // @todo message
    require_once "../layout/footer.php";
    exit;
}
echo HTML::insertScript('dump_functions.js');
echo HTML::start('form', array('method' => 'post', 'action' => './dump_process.php'));
$i = 0;
$table = null;
while ($i < $numTables) {
    DUMP_MYSQL_INT_VERSION >= 32303 ? $table[$tables[$i]['Name']] = $tables[$i]['Name'] : ($table[$tables[$i]] = $tables[$i]);
    $i++;
}
$fieldArray = array(Form::select("table_select", $table, null, array('size' => 15)));
unset($table);
$fieldFoot = array(HTML::link(_("Select all"), '#', null, array('id' => 'select_all')) . ' / ' . HTML::link(_("Unselect all"), '#', null, array('id' => 'unselect_all')));
echo Form::fieldset(_("View dump of database"), $fieldArray, $fieldFoot, array('id' => 'dump_tables'));
$fieldArray = null;
$fieldArray[] = Form::radioButton("what", "data", array('id' => 'radio_dump_data', 'checked' => true)) . Form::label("radio_dump_data", _("Structure and data"));
$fieldArray[] = Form::radioButton("what", "structure", array('id' => 'radio_dump_structure')) . Form::label("radio_dump_structure", _("Structure only"));
$fieldArray[] = Form::radioButton("what", "dataonly", array('id' => 'radio_dump_dataonly')) . Form::label("radio_dump_dataonly", _("Data only"));
$fieldArray[] = Form::radioButton("what", "xml", array('id' => 'radio_dump_xml')) . Form::label("radio_dump_xml", _("Export to XML format"));
$fieldArray[] = Form::radioButton("what", "excel", array('id' => 'radio_dump_csv')) . Form::label("radio_dump_csv", _("Export to CSV format (data only)"));
echo Form::fieldset(_("Options"), $fieldArray, null, array('id' => 'dump_options'));
$fieldArray = array(Form::checkBox("drop", "yes") . Form::label("drop", _("Add 'DROP TABLE'")), Form::checkBox("show_columns", "yes") . Form::label("show_columns", _("Complete 'INSERTs'")), Form::checkBox("extended_inserts", "yes") . Form::label("extended_inserts", _("Extended 'INSERTs'")), Form::checkBox("use_backquotes", "yes") . Form::label("use_backquotes", _("Enclose table and field names with backquotes")), Form::checkBox("add_delete", "yes") . Form::label("add_delete", _("Add 'DELETE * FROM __table__'")), Form::checkBox("use_dbname", "yes") . Form::label("use_dbname", _("Add 'USE __dbname__'")), Form::checkBox("create_db", "yes") . Form::label("create_db", _("Add 'CREATE DATABASE __dbname__'")), Form::checkBox("as_file", "sendit") . Form::label("as_file", _("Save as file")));
echo Form::fieldset(_("Extended options"), $fieldArray, null, array('id' => 'dump_extended'));
echo HTML::para(Form::button("dump", _("Submit")) . Form::generateToken(), array('class' => 'center'));
echo HTML::end('form');
echo Msg::hint(_("Note: Some check options are exclusive. Be carefully!"));
require_once "../layout/footer.php";
示例#11
0
    $links = array(_("Admin") => "../admin/index.php", _("Users") => $returnLocation, $title => "");
} else {
    $links = array(_("Home") => $returnLocation, $title => "");
}
echo HTML::breadcrumb($links, "icon icon_user");
unset($links);
echo Form::errorMsg();
/**
 * Edit form
 */
echo HTML::start('form', array('id' => 'userEdit', 'method' => 'post', 'action' => '../admin/user_edit.php'));
echo Form::hidden("referer", "edit");
// to user_validate_post.php
echo Form::hidden("id_user", $formVar["id_user"]);
echo Form::hidden("id_member", $formVar["id_member"]);
if (isset($_GET["all"])) {
    echo Form::hidden("all", "Y");
}
$action = "edit";
require_once "../admin/user_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Note: The fields with * are required."));
if (isset($_GET["all"])) {
    echo Msg::hint(_("Fill password fields only if you want to change it."));
}
echo HTML::para(HTML::link(_("Return"), $returnLocation));
/**
 * Destroy form values and errors
 */
Form::unsetSession();
require_once "../layout/footer.php";