<?php $this->pageTitle = Yii::t('AuthModule.forms', 'Password restore. Title'); $formRender = new FormElements($this, $model); $formRender->startForm(); $formRender->showErrors(); $formRender->textField('email', Yii::t('AuthModule.forms', 'Password restore. Email placeholder')); $formRender->capthaField('verifyCode'); $formRender->submitButton(Yii::t('AuthModule.forms', 'Password restore. Submit button')); $formRender->endForm();
<?php $this->pageTitle = Yii::t('AuthModule.forms', 'Login. Title'); $isAjax = Yii::app()->request->isAjaxRequest; if (!isset($model)) { $model = new LoginForm(); } if (isset($username)) { $model->username = $username; } $model->rememberMe = true; $formRender = new FormElements($this, $model); //$formRender->startForm('user-login', true); $formRender->startForm('user-login', $isAjax); $formRender->showErrors(Yii::t('AuthModule.forms', 'Login. Login failure')); $formRender->textField('username', Yii::t('AuthModule.forms', 'Login. Username placeholder')); $formRender->passwordField('password', Yii::t('AuthModule.forms', 'Login. Password placeholder')); $formRender->checkBox('rememberMe', Yii::t('AuthModule.forms', 'Login. Remember me checkbox')); $formRender->capthaField('verifyCode'); if ($model->scenario != 'withCaptcha') { Yii::app()->clientScript->registerScript("captcha", "\n \$('#captcha').hide();\n "); } $buttonLabel = Yii::t('AuthModule.forms', 'Login. Submit button'); if (!$isAjax) { $formRender->submitButton($buttonLabel); } else { $url = $this->createUrl('login'); $formRender->ajaxSubmitPanel($buttonLabel, $url); } $formRender->endForm(); ?>
<?php include "./findconfig.php"; include $_SERVER['DOCUMENT_ROOT'] . "/" . $ROOTPATH . "/Includes/Top.php"; $F = new FormElements(); $db = new conn(); $firephp->log($_REQUEST); if ($_REQUEST["report"]) { // Inventory Report if ($_REQUEST["report"] == "inventory") { if ($_REQUEST["StartDate"] && $_REQUEST["EndDate"]) { $db->connect(); $startDate = $db->Sanitize($_REQUEST["StartDate"]); $endDate = $db->Sanitize($_REQUEST["EndDate"]); $productType = $db->Sanitize($_REQUEST["ProductType"]); $db->close(); header("Location: NexusReport_Inventory.php?startDate=" . $startDate . "&endDate=" . $endDate . "&productType=" . $productType); } } $firephp->log($_REQUEST["report"]); $firephp->log($_REQUEST["generalSalesStartDate"]); $firephp->log($_REQUEST["generalSalesEndDate"]); // Individual Sale if ($_REQUEST["report"] == "IndividualOrder") { if ($_REQUEST["OrderID"]) { $db->connect(); $order_id = $DB->sanitize($_REQUEST["OrderID"]); $db->close(); header("Location: NexusReport_IndividualOrder.php?OrderID=" . $order_id); } }
</tr> </tbody> </table> </div> <p><b>3.</b> ' . $gL10n->get('LST_CHOOSE_ROLE') . '</p> <div class="form-group"> <label class="col-sm-3 control-label" for="rol_id">' . $gL10n->get('SYS_ROLE') . '</label> <div class="col-sm-9">'); // Combobox mit allen Rollen ausgeben, ggf. nur die inaktiven Rollen anzeigen $role_select_box_mode = 0; if ($getActiveRole == 0) { $role_select_box_mode = 2; } $page->addHtml(FormElements::generateRoleSelectBox($getRoleId, 'rol_id', $role_select_box_mode)); $page->addHtml('</div> </div> <div class="form-group"> <label class="col-sm-3 control-label" for="show_members">' . $gL10n->get('LST_MEMBER_STATUS') . '</label> <div class="col-sm-9">'); // Auswahlbox, ob aktive oder ehemalige Mitglieder angezeigt werden sollen // bei inaktiven Rollen gibt es nur Ehemalige if ($getActiveRole == 1) { $selected[0] = ''; $selected[1] = ''; $selected[2] = ''; $selected[$getShowMembers] = ' selected="selected" '; $page->addHtml(' <select class="form-control" size="1" id="show_members" name="show_members"> <option ' . $selected[0] . ' value="0">' . $gL10n->get('LST_ACTIVE_MEMBERS') . '</option>
/* @var $form CActiveForm */ ?> <?php $isNewRecord = $model->getScenario() == 'insert'; if ($isNewRecord) { $this->pageTitle = Yii::t('AuthModule.forms', 'Registration form. Title'); $this->h1 = Yii::t('AuthModule.forms', 'Registration form. H1'); } else { $this->pageTitle = Yii::t('AuthModule.forms', 'Update form. Title'); $this->h1 = Yii::t('AuthModule.forms', 'Update form. H1'); } ?> <?php $formRender = new FormElements($this, $model); $formRender->startForm(); $formRender->showErrors(); if ($isNewRecord) { $formRender->textField('username', Yii::t('AuthModule.forms', 'Registration form. Username placeholder')); if (isset($inivtationGuid)) { $model->invitationGuid = $inivtationGuid; //$formRender->textField('invitationGuid', Yii::t('AuthModule.forms', 'Invitation')); $formRender->from->hiddenField($model, 'invitationGuid'); } } else { $formRender->textFieldDisabled('username'); } $formRender->textField('email', Yii::t('AuthModule.forms', 'User form. Email placeholder')); $formRender->textField('full_name', Yii::t('AuthModule.forms', 'User form. Fullname placeholder')); $formRender->passwordField('password_entered', Yii::t('AuthModule.forms', 'User form. Password placeholder'));
<?php include "./findconfig.php"; include $_SERVER['DOCUMENT_ROOT'] . "/" . $ROOTPATH . "/Includes/Top.php"; if (!UserMay("Admin_EditFinance")) { AccessDenied(); } $DB = new conn(); $DB->connect(); $F = new FormElements(); $CompanyName = ""; $Address = ""; $City = ""; $State = ""; $ZipCode = ""; $ContactName = ""; $Phone = ""; $Extension = ""; $Email = ""; $Reserve = "0"; $LoanOptions = ""; $Action = "addNew"; // Form Vars if ($_REQUEST) { if (isset($_REQUEST["id"])) { $id = $DB->sanitize($_REQUEST["id"]); $sql = "SELECT * FROM finance_options WHERE id = '" . $id . "'"; $result = $DB->query($sql); if ($result) { $financeDetails = mysql_fetch_assoc($result); $CompanyName = $financeDetails["CompanyName"];
$tableDatePrint = ''; $calendar = new TableCategory($gDb, $getCatId); // Get a copy of date results if recordsets are found if ($datesTotalCount > 0) { $dateElements = $datesResult['recordset']; } // Define options for selectbox if ($gValidLogin) { $selectBoxEntries = array($gL10n->get('SYS_OVERVIEW'), $gL10n->get('SYS_DESCRIPTION'), $gL10n->get('SYS_PARTICIPANTS')); } else { $selectBoxEntries = array($gL10n->get('SYS_OVERVIEW'), $gL10n->get('SYS_DESCRIPTION')); } // Define header and footer content for the html table $tableHead = ' <h1>' . $dates->getHeadline($getHeadline) . '</h1> <h3>' . $gL10n->get('SYS_START') . ': ' . $dates->getParameter('dateStartFormatAdmidio') . ' - ' . $gL10n->get('SYS_END') . ': ' . $dates->getParameter('dateEndFormatAdmidio') . '<span class="form" style="margin-left: 40px;">' . FormElements::generateDynamicSelectBox($selectBoxEntries, $defaultEntry = '0', $fieldId = 'admSelectBox', $createFirstEntry = false) . ' </span> </h3>'; $tableFooter = '<i>provided by Admidio</i> <i style="font-size: 0.6em;">' . date($gPreferences['system_date'] . ' ' . $gPreferences['system_time']) . '</i>'; // Define columns headlines for body elements $bodyHeadline_1 = array($gL10n->get('SYS_START'), $gL10n->get('SYS_END'), $gL10n->get('SYS_TIME_FROM'), $gL10n->get('SYS_TIME_TO'), $gL10n->get('DAT_DATE'), $gL10n->get('SYS_LOCATION'), $gL10n->get('DAT_ROOM_INFORMATIONS'), $gL10n->get('SYS_LEADER'), $gL10n->get('SYS_PARTICIPANTS')); $bodyHeadline_2 = array($gL10n->get('SYS_START'), $gL10n->get('SYS_END'), $gL10n->get('SYS_TIME_FROM'), $gL10n->get('SYS_TIME_TO'), $gL10n->get('DAT_DATE'), $gL10n->get('SYS_DESCRIPTION')); $bodyHeadline_3 = array($gL10n->get('SYS_START'), $gL10n->get('SYS_END'), $gL10n->get('SYS_TIME_FROM'), $gL10n->get('SYS_TIME_TO'), $gL10n->get('DAT_DATE'), $gL10n->get('SYS_PARTICIPANTS')); $body_1 = array(); $body_2 = array(); $body_3 = array(); // Get dates and configure table bodies if recordsets are found $numElement = 1; if ($datesTotalCount > 0) { foreach ($dateElements as $row) {
<?php include "./findconfig.php"; include $_SERVER['DOCUMENT_ROOT'] . "/" . $ROOTPATH . "/Includes/Top.php"; $F = new FormElements(); $DB = new conn(); $DB->connect(); // Form Vars if ($_REQUEST) { if ($_POST) { if ($_REQUEST["Action"]) { $action = $_REQUEST["Action"]; if ($action == "addNew") { // ALL FORM INPUTS MUST BE SANITIZED $ProductId = $DB->sanitize($_REQUEST["ProductId"]); $LocationId = $DB->sanitize($_REQUEST["LocationId"]); $Invoice = $DB->sanitize($_REQUEST["Invoice"]); $DateReceived = $DB->sanitize($_REQUEST["receivedDate"]); $serials = array(); foreach ($_REQUEST as $key => $value) { $pos = strpos($key, "Serial"); if ($pos !== false) { $serials[] = $DB->sanitize($value); } } foreach ($serials as $serial) { $sql = "INSERT INTO inventory (product_id, storagelocation_id, invoice, serial, status, status_data, AddedBy, DateReceived) VALUES (" . $ProductId . ", " . $LocationId . ", '" . $Invoice . "', '" . $serial . "', '1', " . $LocationId . ", " . $_SESSION["user_id"] . ", STR_TO_DATE('" . $DateReceived . "', '%m/%d/%Y') )"; $newId = $DB->insert($sql); $sql = "SELECT storagelocation_name from storagelocations where storagelocation_id = " . $LocationId; $locText = $DB->query_scalar($sql); $statusdate = date("m/d/y");
<?php $this->pageTitle = Yii::t('AuthModule.forms', 'Activation form. Title'); $this->h1 = Yii::t('AuthModule.forms', 'Activation form. H1'); $formRender = new FormElements($this, $model); $formRender->startForm(); $formRender->showErrors(); $formRender->textField('guid', Yii::t('AuthModule.forms', 'Activation form. Guid placeholder')); $formRender->submitButton(Yii::t('AuthModule.forms', 'Activation form. Submit button')); $formRender->endForm();
switch ($formRecord[0]["reference"]) { case "devotions": $mainDateRecord = be_devotion::select("dvt01=" . $referenceID); $mainDateRecord = $mainDateRecord[0]; break; case "states": $mainDateRecord = be_state::select("sta02=" . $referenceID); $mainDateRecord = $mainDateRecord[0]; break; case "rents": $mainDateRecord = be_rent::select("rnt02=" . $referenceID); $mainDateRecord = $mainDateRecord[0]; break; } //__________________________________________________________ $element_dt = FormElements::selectWithWfmValues($FormID, $LetterID, $_SESSION["PersonID"], $RefID); //__________________________________________________________ for ($i = 0; $i < count($element_dt); $i++) { $output .= "<tr><td>" . $element_dt[$i]["ElementTitle"] . "</td><td class='infoText' height='21px'>"; switch ($element_dt[$i]["ElementType"]) { case "bind": $cur_output = $mainDateRecord[$element_dt[$i]["referenceField"]]; break; //.............................................................................. //.............................................................................. case "text": if ($element_dt[$i]["access"] == "1" && $element_dt[$i]["active"] == "1") { $cur_output = "<input type='text' class='x-form-text x-form-field' style='width:" . $element_dt[$i]["width"] . "'\r\n\t\t\t\tid='elem_" . $element_dt[$i]["ElementID"] . "' name='elem_" . $element_dt[$i]["ElementID"] . "'value='" . $element_dt[$i]["wfmElementValue"] . "'>"; } else { $cur_output = $element_dt[$i]["wfmElementValue"] . " "; }
if ($action == "update") { $Action = "update"; $sql = "UPDATE users SET FirstName = '" . $FirstName . "', LastName = '" . $LastName . "', permission_role = '" . $Role . "', team_id = '" . $Team . "', License = '" . $License . "', Social = '" . $Social . "', BirthDate = '" . $BirthDate . "', Address = '" . $Address1 . "', Address2 = '" . $Address2 . "', HomeType = '" . $HomeType . "', City = '" . $City . "', State = '" . $State . "', ZipCode = '" . $ZipCode . "', Phone = '" . $Phone . "', Cell = '" . $Cell . "', ContactFirstName = '" . $ContactFirstName . "', ContactLastName = '" . $ContactLastName . "', ContactAddress = '" . $ContactAddress1 . "', ContactAddress2 = '" . $ContactAddress2 . "', ContactCity = '" . $ContactCity . "', ContactState = '" . $ContactState . "', ContactZipCode = '" . $ContactZipCode . "', ContactPhone = '" . $ContactPhone . "', ContactCell = '" . $ContactCell . "', dtoffice = '" . $dtoffice . "' WHERE user_id = " . $user_id; $DB->execute_nonquery($sql); $DB->addHistory('users', $_SESSION["user_id"], "update", ""); if ($Password && $Password != "dummytext") { $sql = "UPDATE users SET user_password = MD5('" . $Password . "') WHERE user_id = " . $user_id; $DB->execute_nonquery($sql); $DB->addHistory('users', $_SESSION["user_id"], "update", ""); } header("Location: ManageUsers.php"); } } } $DB->close(); $F = new FormElements(); ?> <div class="navMenu" id="navMenu"> <div id="bullets"> <div class="navHeaderdiv"><h1>Users</h1></div> <div class="navBulletBorderTop"></div> <div class="navBullet navBulletSelected" id="custBullet"><a href="#" id="custBulletLink">Add New User</a></div> <div class="navBulletBorderBottom"></div> </div> <div class="navPageSpacing"></div> </div>
<?php include "./findconfig.php"; include $_SERVER['DOCUMENT_ROOT'] . "/" . $ROOTPATH . "/Includes/Top.php"; if (!UserMay("Admin_EditComm")) { AccessDenied(); } $F = new FormElements(); ?> <div class="navMenu" id="navMenu"> <div id="bullets"> <div class="navHeaderdiv"><h1>Templates</h1></div> <div class="navBulletBorderTop"></div> <div class="navBullet navBulletSelected" id="custBullet"><a href="#" id="custBulletLink">Add New Template</a></div> <div class="navBulletBorderBottom"></div> </div> <div class="navPageSpacing"></div> </div> <div class="pageContent" id="pageContent"> <div class="contentHeaderDiv"> </div> <div class="commandBox" style="background-color: #EDECDC"> <h1>Add Template Element</h1> <FORM ID="templateForm" method="POST" ACTION=""> <div style="float: left; width: 43%;">
function elementDelete() { FormElements::delete("ElementID=" . $_POST["ElementID"]); dataAccess::AUDIT("حذف جزء قالب فرم با عنوان [" . $_POST["ElementTitle"] . "]"); echo "true"; die; }
<p>Если у вас нет приглашения, то его можно запросить, написав письмо на адрес: <?php try { $email = Helpers::getAppParam('adminEmail'); } catch (Exception $ex) { $email = AuthCommon::getParam('adminEmail'); } echo CHtml::mailto($email, $email); ?> </p> <div class="margin-bottom-30"></div> <div class="row"> <div class="table-responsive col-md-5"> <?php $formRender = new FormElements($this, $model); $formRender->fieldClass = "col-sm-8"; $formRender->labelClass = "col-sm-3"; $formRender->submitOffcet = "col-sm-offset-3"; $formRender->startForm(); $formRender->showErrors(); $formRender->textField('guid', '', '', false); if ($model->scenario == 'withCaptcha') { $formRender->capthaField('verifyCode'); } $formRender->submitButton(Yii::t('AuthModule.forms', 'RegisterMe')); $formRender->endForm(); ?> </div> </div>
<div class="navHeaderdiv"><h1>Contacts</h1></div> <div class="navBulletBorderTop"></div> <div class="navBullet navBulletSelected" id="custBullet"><a href="#" id="custBulletLink">Add Contact</a></div> <div class="navBulletBorderBottom"></div> </div> <div class="navPageSpacing"></div> </div> <div class="pageContent" id="pageContent"> <div class="contentDiv"> <div class="formDiv" style="display: block; background-color: #EDECDC"> <h1>Add Contact</h1> <?php $F = new FormElements(); ?> <h1 style="background-color:silver; color:#365181; font-size:1.1em;margin:2em 0 0.5em 1.25em; padding:2px 0 2px 5px; width:350px;">General Information</h1> <ul class="form"> <?php $F->ddlContactType(); ?> <?php $F->tbVal("FirstName", "First Name", "", "float:left;"); ?> <?php $F->tbVal("LastName", "Last Name", "", "float:left; padding-left:0"); ?>
$DB = new conn(); $DB->connect(); if ($_REQUEST) { if (isset($_REQUEST["order_id"])) { $id = $DB->sanitize($_REQUEST["order_id"]); $sql = "SELECT * FROM orders WHERE order_id = '" . $id . "'"; $firephp->log($sql); $result = $DB->query($sql); $firephp->log($result); if ($result) { $order = mysql_fetch_assoc($result); $firephp->log($order); } } } $F = new FormElements(); ?> <div style="display: none"> <?php echo $F->ddlDealerRoles(false, "baseDealers"); ?> </div> <div class="navMenu" id="navMenu"> <div id="bullets"> <div class="navHeaderdiv"><h1>Sales / Leads</h1></div> <div class="navBulletBorderTop"></div> <div class="navBullet" id="custBullet"><a href="#" id="custBulletLink">Customer Info</a></div> <div class="navBullet" id="equipmentBullet"><a href="#" id="equipmentBulletLink">Equipment</a></div> <div class="navBullet" id="paymentBullet"><a href="#" id="paymentBulletLink">Payment Info</a></div>
<div class="commandBox"> <h1>Customer Details</h1> <span class="label">Customer ID:</span><span class="value" id="spanCustomerID"></span> <span class="label">Contact Info:</span><span class="value contact" id="spanContactInfo"></span> <div style="clear:both"></div> </div> <div class="commandBox"> <a href="#" id="lbCreateNewContact" onClick="displayAddContactForm(); return false;">Create New Contact</a> | <a href="#" id="lbSelectExistingContact" onClick="displaySelectContactForm(); return false;">Select Existing Contact</a> </div> <div class="formBoxDialog" id="fBoxCreateNewCustomer"> <h1>Create New Customer Form</h1> <?php $F = new FormElements(); ?> <form id="formCreateNew" method="post" action=""> <ul class="form"> <div style="float:left; width:260px; padding:15px"> <?php $F->ddlContactType(); ?> <?php $F->tbVal("FirstName"); ?> <?php $F->tbVal("LastName"); ?> <?php $F->tbNotVal("Email");
<?php $this->pageTitle = Yii::t('AuthModule.forms', 'Password change. Title'); $formRender = new FormElements($this, $model); $formRender->startForm(); $formRender->showErrors(); $formRender->passwordField('password', Yii::t('AuthModule.forms', 'Password change. Password placeholder')); $formRender->textField('guid', Yii::t('AuthModule.forms', 'Password change. Guid placeholder')); $formRender->capthaField('verifyCode'); $formRender->submitButton(Yii::t('AuthModule.forms', 'Password change. Submit button')); $formRender->endForm();