function update_visit_forms(&$menu_list) { $baseURL = "/interface/patient_file/encounter/load_form.php?formname="; $menu_list->children = array(); $lres = sqlStatement("SELECT * FROM list_options " . "WHERE list_id = 'lbfnames' AND activity = 1 ORDER BY seq, title"); if (sqlNumRows($lres)) { while ($lrow = sqlFetchArray($lres)) { $option_id = $lrow['option_id']; // should start with LBF $title = $lrow['title']; $formURL = $baseURL . urlencode($option_id); $formEntry = new stdClass(); $formEntry->label = xl_form_title($title); $formEntry->url = $formURL; $formEntry->requirement = 2; $formEntry->target = 'enc'; array_push($menu_list->children, $formEntry); } } $reg = getRegistered(); if (!empty($reg)) { foreach ($reg as $entry) { $option_id = $entry['directory']; $title = trim($entry['nickname']); if ($option_id == 'fee_sheet') { continue; } if ($option_id == 'newpatient') { continue; } if (empty($title)) { $title = $entry['name']; } $formURL = $baseURL . urlencode($option_id); $formEntry = new stdClass(); $formEntry->label = xl_form_title($title); $formEntry->url = $formURL; $formEntry->requirement = 2; $formEntry->target = 'enc'; array_push($menu_list->children, $formEntry); } } }
</span></a> <ul> <?php // Generate the items for visit forms, both traditional and LBF. // $lres = sqlStatement("SELECT * FROM list_options " . "WHERE list_id = 'lbfnames' ORDER BY seq, title"); if (sqlNumRows($lres)) { while ($lrow = sqlFetchArray($lres)) { $option_id = $lrow['option_id']; // should start with LBF $title = $lrow['title']; genMiscLink('RBot', 'cod', '2', xl_form_title($title), "patient_file/encounter/load_form.php?formname={$option_id}"); } } include_once "{$srcdir}/registry.inc"; $reg = getRegistered(); if (!empty($reg)) { foreach ($reg as $entry) { $option_id = $entry['directory']; $title = trim($entry['nickname']); if ($option_id == 'fee_sheet') { continue; } if ($option_id == 'newpatient') { continue; } if (empty($title)) { $title = $entry['name']; } genMiscLink('RBot', 'cod', '2', xl_form_title($title), "patient_file/encounter/load_form.php?formname=" . urlencode($option_id)); }
<?php session_start(); include_once "events.php"; include_once "users.php"; include_once "templates/nav.php"; $logged = isset($_SESSION['username']); $id = isset($_GET['id']) ? $_GET['id'] : ""; $event = getEvent($id); $registered = getRegistered($id); $from_email = getUserEmail($_SESSION['username'])[0]; $comments = getComments($id); $url = 'http' . (empty($_SERVER['HTTPS']) ? '' : 's') . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; include_once "templates/show_event.php"; ?> <!-- Comment form and Share form--> <?php if ($logged && (isRegisteredInEvent($id, $_SESSION['username']) || $_SESSION['username'] == $event['creator'])) { ?> <form action="action_comment.php" method="post"> <input type="hidden" name="id" value="<?php echo $id; ?> "> <input type="hidden" name="event" value="<?php echo $id; ?> "> <input type="hidden" name="author" value="<?php echo $_SESSION['username'];
include_once "{$srcdir}/sql.inc"; if ($_GET['method'] == "enable") { updateRegistered($_GET['id'], "state=1"); } elseif ($_GET['method'] == "disable") { updateRegistered($_GET['id'], "state=0"); } elseif ($_GET['method'] == "install_db") { $dir = getRegistryEntry($_GET['id'], "directory"); if (installSQL("{$srcdir}/../interface/forms/{$dir['directory']}")) { updateRegistered($_GET['id'], "sql_run=1"); } else { $err = xl('ERROR: could not open table.sql, broken form?'); } } elseif ($_GET['method'] == "register") { registerForm($_GET['name']) or $err = xl('error while registering form!'); } $bigdata = getRegistered("%") or $bigdata = false; //START OUT OUR PAGE.... ?> <html> <head> <?php html_header_show(); ?> <link rel="stylesheet" href="<?php echo $css_header; ?> " type="text/css"> </head> <body class="body_top"> <span class="title"><?php xl('Forms Administration', 'e');