} } if ($success) { header('Location: index.php?billing&success=b'); } else { printError("Failed to process all EDT records."); } break; case 'closeAccount': $b = new Billing(); $bill = $b->getBill($data['pid']); if ($bill['balance'] >= 0) { $b->displayBill($data['pid']); echo "<p class='confirmDelete'>Are you sure you wish to delete all information associated with this account?</p>"; $form = array('form_action' => 'closeAccountConfirm', 'submit_text' => 'Confirm Deletion of All Information', '_hidden1' => array('name' => 'pid', 'value' => $data['pid']), '_dropdown1' => array('label' => 'Response', 'name' => 'confirm', array(0 => 'No', 1 => 'Yes'))); buildForm($form); break; } $data['confirm'] = 1; // Fall through otherwise // Fall through otherwise case 'closeAccountConfirm': $b = new Billing(); if (!$data['confirm']) { header('Location: index.php?billing&success=bn'); } else { if ($b->closeAccount($data['pid'])) { header('Location: index.php?billing&success=b'); } else { printError("Failed to delete patient."); }
echo ' <table border="1px" style="width=100%"> <tr> <td>' . $commentArray['commentText'] . '</td> </tr> </table> <br>'; //echo " " $commentArray[' //commentText']. " " "<br>"; } } if (isset($_POST['submit'])) { if (!empty($_POST['commentText'])) { $query3 = "Insert Into Comments (whoWrote,commentText,forRecipeID) Values ( " . $_SESSION['userID'] . ",'" . $_POST['commentText'] . " '," . $_POST['recipeID'] . " )"; mysql_query($query3); header("Location: http://localhost/agproje/index.php"); } if ($_POST['fav']) { favIt($_POST['recipeID']); header("Location: http://localhost/agproje/index.php"); } } } echo "<br><br><br><h1>Sitemize son eklenen 10 tarif</h1><br>"; isLogin(); buildForm(); ?> </body> </html>
$func = "sync_" . $_GET['sync']; $func(); } if (isset($_POST['update'])) { updateLangData(); } if (isset($_REQUEST['what'])) { switch ($_REQUEST['what']) { case 'getCat': buildForm($_REQUEST['category'], 'getCat'); break; case 'getAlb': buildForm($_REQUEST['category'], 'getAlb'); break; case 'getPic': buildForm($_REQUEST['picAlbum'], 'getPic'); break; default: cpg_die(ERROR, 'Invalid action performed', __FILE__, __LINE__); } } pagefooter(); function buildForm($val, $what) { global $CONFIG, $catPerPage, $picPerPage, $albPerPage, $start; $langArr = explode(',', $CONFIG['mod_active_lang']); $langCount = count($langArr); if ($what == 'getAlb' && $val == 'none') { return; } if ($what == 'getCat' && !$val) {
define('AREA', 'admin'); /** * Include our init.php, which manages Sessions, Language etc. */ $need_db_sql_data = true; $need_root_db_sql_data = true; require "./lib/init.php"; if (($page == 'settings' || $page == 'overview') && $userinfo['change_serversettings'] == '1') { $settings_data = loadConfigArrayDir('./actions/admin/settings/'); $settings = loadSettings(&$settings_data, &$db); if (isset($_POST['send']) && $_POST['send'] == 'send') { if (processForm(&$settings_data, &$_POST, array('filename' => $filename, 'action' => $action, 'page' => $page))) { standard_success('settingssaved', '', array('filename' => $filename, 'action' => $action, 'page' => $page)); } } else { $fields = buildForm(&$settings_data); eval("echo \"" . getTemplate("settings/settings") . "\";"); } } elseif ($page == 'rebuildconfigs' && $userinfo['change_serversettings'] == '1') { if (isset($_POST['send']) && $_POST['send'] == 'send') { $log->logAction(ADM_ACTION, LOG_INFO, "rebuild configfiles"); inserttask('1'); inserttask('4'); inserttask('5'); redirectTo('admin_index.php', array('s' => $s)); } else { ask_yesno('admin_configs_reallyrebuild', $filename, array('page' => $page)); } } elseif ($page == 'updatecounters' && $userinfo['change_serversettings'] == '1') { if (isset($_POST['send']) && $_POST['send'] == 'send') { $log->logAction(ADM_ACTION, LOG_INFO, "updated resource-counters");
phpAds_registerGlobalUnslashed('name', 'email', 'author', 'url', 'version', 'group', 'licence', 'description'); OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN); global $session; $aVersion['major'] = 0; $aVersion['minor'] = 0; $aVersion['build'] = 1; $aVersion['status'] = '-dev'; $aValues['name'] = $name ? $name : $oTrans->translate("myPlugin"); $aValues['email'] = $email ? $email : $session['user']->aUser['email_address']; $aValues['author'] = $author ? $author : $session['user']->aUser['contact_name']; $aValues['url'] = $url ? $url : $GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST']; $aValues['licence'] = $licence ? $licence : 'GPL'; $aValues['description'] = $description ? $description : $oTrans->translate("My New Plugin"); $aValues['group'] = $group ? $group : array(); $aValues['version'] = $version ? $version : $aVersion; $form = buildForm(); if ($form->validate()) { $aMessages = processForm($form, $aValues); } else { $form->setDefaults($aValues); } displayPage($form, $aMessages); function &buildForm() { global $oTrans; $form = new OA_Admin_UI_Component_Form("oxToolBoxForm", "POST", $_SERVER['SCRIPT_NAME'], null, array("enctype" => "multipart/form-data")); $form->forceClientValidation(true); $form->addElement('header', 'header', $oTrans->translate("New Plugin")); $form->addElement('text', 'name', $oTrans->translate("Plugin Name"), array('class' => 'medium')); $form->addElement('text', 'email', $oTrans->translate("Author Email")); $form->addElement('text', 'author', $oTrans->translate("Author Name"));
<?php namespace Components\Forms\Login; function buildForm() { $form = \shgysk8zer0\DOM\HTML::getInstance()->createElement('form'); $form->name = basename(__FILE__, '.php'); $form->method = 'POST'; $form->action = \shgysk8zer0\Core\URL::getInstance(); $form->append('label', 'Email', ['for' => "{$form->name}[user]"]); $form->append('input', null, ['type' => 'email', 'name' => "{$form->name}[user]", 'id' => "{$form->name}[user]", 'placeholder' => '*****@*****.**', 'required' => '']); $form->append('br'); $form->append('label', 'Password', ['for' => "{$form->name}[password]"]); $form->append('input', null, ['type' => 'password', 'name' => "{$form->name}[password]", 'id' => "{$form->name}[password]", 'placeholder' => '************', 'required' => '']); $form->append('hr'); $form->append('button', null, ['type' => 'submit', 'title' => 'Submit'])->import(\shgysk8zer0\DOM\SVG::useIcon('check', ['height' => 30, 'width' => 30])); $form->append('button', null, ['type' => 'reset', 'title' => 'Reset'])->import(\shgysk8zer0\DOM\SVG::useIcon('x', ['height' => 30, 'width' => 30])); return $form; } return buildForm();
public function displayUnprocessedEDTs($edts) { $a = new Admin(); $activities = $a->getActivityTypes(); $patients = $a->getAllPatients(); echo "<h2>Process EDT Records for " . ($edts ? $edts[0]['pname'] : "N/A") . "</h2>"; echo "<p>Click the 'Yes' beside each entry to process individually or click the button below to process all shown.</p>"; if (!$edts) { echo "<p class='notice'>Nothing to display.</p>"; return; } echo "<table><tr>"; echo "<th>Process?</th><th>Name</th><th>Date Performed</th><th>Action</th><th>Physicians</th><th>Cost</th>"; foreach ($edts as $e) { unset($e['pid']); echo "<tr>"; foreach ($e as $k => $d) { if ($k == 'activitytype') { echo "<td>" . $activities[$d] . "</td>"; } elseif ($k == 'duration' || $k == 'description' || $k == 'outcome') { continue; } elseif ($k == 'edtid') { echo "<td><a href='process.php?processEDT=" . $d . "'>Yes</a></td>"; } else { echo "<td>" . $d . "</td>"; } } echo "</tr>"; } echo "</table>"; $form = array('form_action' => 'processAllEDTs', 'submit_text' => 'Process All Records', '_hidden1' => array('name' => 'pid', 'value' => array_search($edts[0]['pname'], $patients))); buildForm($form); }