function actdelfield() { $model = new Forms(); $field = $model->getField($_GET['id']); $model->delField(); $this->redirect('/forms/' . $field['forms'] . '/'); }
public function leave() { $smarty = parent::load('smarty'); $leave_form = parent::load('form', 'LeaveForm', $_POST); parent::load('model', 'forms'); parent::load('model', 'system/contrib/auth.User'); if (!$this->is_post()) { import('system/share/web/paginator'); if (User::has_role('人力资源') || User::has_role('总经理')) { $data = Forms::get_by_type_and_user('请假申请'); $smarty->assign('has_role', true); } else { $data = Forms::get_by_type_and_user('请假申请', User::info('id')); } $paginator = new Paginator((array) $data, $_GET['page'], 10); $smarty->assign('paginator', $paginator->output()); $smarty->assign('page_title', '请假申请'); $smarty->assign('leave_form', $leave_form->output()); $smarty->display('forms/leave'); return; } $form_data = new Forms(); $form_data->user_id = User::info('id'); $form_data->state = 0; $form_data->type = '请假申请'; $form_data->form_data = serialize($_POST); $form_data->save(); import('system/share/network/redirect'); HTTPRedirect::flash_to('forms/leave', '提交请假申请成功, 请耐心等待审核', $smarty); }
public function form() { $form = new Forms(); $form->start("barcodes.php"); $form->input("import new barcodes", "import", $type = "textarea", null, null, 10); $form->button('import'); $form->end(); }
/** * Edit comment * @return void */ public function actionEdit($id) { // authorization $this->checkAuth(); $data = array(); $data['page_title'] = 'Edit comment'; $comment = $this->db->comment[$id]; if (!$comment) { $this->notFound(); } // Form $form = new Forms('commentEdit'); $form->successMessage = 'Comment was saved.'; $form->errorMessage = 'Error while saving comment. Try it later.'; $form->addInput('text', 'name', 'Author', false, $comment['name']); $form->addInput('email', 'email', 'E-mail', true, $comment['email']); $form->addTextArea('comment', 'Comment', true, $comment['comment'], 2); $form->addSubmit('save', 'Save'); if ($form->isValid()) { $auth = new Auth($this->db); $saveData = $form->values(); $saveData['updated'] = new NotORM_Literal("NOW()"); $commentSave = $comment->update($saveData); if ($commentSave) { $this->addMessage('success', 'Comment saved'); $this->redirect('admin/comments'); } else { $form->error(); } } $data['editForm'] = $form->formHtml(); $data['isAdmin'] = true; $this->renderTemplate('comment/edit', $data); }
/** * Admin - edit post * * @param integer $id ID of post * @return void */ public function actionEdit($id = null) { // authorization $this->checkAuth(); $data = array(); $data['page_title'] = 'New post'; $post = array('title' => '', 'uri' => '', 'annotation' => '', 'content' => '', 'category_id' => ''); if (!is_null($id)) { $post = $this->db->post[$id]; if ($post) { $data['page_title'] = 'Edit post'; } else { $this->notFound(); } } // Form $form = new Forms('postEdit'); $form->successMessage = 'Your post was saved.'; $form->errorMessage = 'Error while saving post. Try it later.'; $form->addInput('text', 'title', 'Title', true, $post['title']); $form->addInput('text', 'uri', 'URI', false, $post['uri']); // categories $categories = array('' => '= Choose category ='); foreach ($this->db->category() as $category) { $categories[$category['id']] = $category['title']; } $form->addSelect('category_id', 'Category', $categories, true, $post['category_id']); $form->addTextArea('annotation', 'Annotation', true, $post['annotation']); $form->addTextArea('content', 'Content', true, $post['content']); $form->addSubmit('save', 'Save'); if ($form->isValid()) { $auth = new Auth($this->db); $saveData = $form->values(); $saveData['uri'] = trim($saveData['uri']); if ($saveData['uri'] == "") { $saveData['uri'] = $saveData['title']; } $saveData['uri'] = $this->text2url($saveData['uri']); $saveData['user_id'] = $auth->userInfo()->id; $saveData['updated'] = new NotORM_Literal("NOW()"); if (is_null($id)) { $saveData['created'] = new NotORM_Literal("NOW()"); $postSave = $this->db->post()->insert($saveData); } else { $postSave = $this->db->post[$id]->update($saveData); } if ($postSave) { $this->addMessage('success', 'Post saved'); $this->redirect('admin'); // $form->success(); } else { $form->error(); } } $data['editForm'] = $form->formHtml(); $data['isAdmin'] = true; $this->renderTemplate('post/edit', $data); }
/** * Create user * @return void */ public function actionRegister() { // if user is logged in, redirect to main page if ($this->checkLogin()) { $this->redirect('admin'); } $form = new Forms('create'); $form->successMessage = 'Account succesfully created.'; $form->errorMessage = 'Error while creating account. Try it later.'; $form->addInput('text', 'name', 'Full name', true); $form->addInput('email', 'email', 'E-mail', true); $form->addInput('password', 'password', 'Password', true); $form->addSubmit('create', 'Create account'); if ($form->isValid()) { $formValues = $form->values(); $userCheck = $this->db->user()->where('email', $formValues['email'])->count('id'); if ($userCheck > 0) { $form->addMessage('warning', 'User with e-mail ' . $formValues['email'] . ' exists. LogIn or type other e-mail.'); } else { $auth = new Auth($this->db); if ($auth->addUser($formValues['email'], $formValues['password'], $formValues['name'])) { $auth->checkUser($formValues['email'], $formValues['password']); $this->redirect('admin'); } else { $form->error(); } } } $data['registerForm'] = $form->formHtml(); $this->renderTemplate('admin/register', $data); }
function lot_add() { $session = Session::getInstance(); if (!$session->checkLogin()) { return false; } $lot = new Lot(); $lot->itemid = isset($_POST['itemid']) && is_numeric($_POST['itemid']) ? $_POST['itemid'] : 0; $lot->storeid = isset($_POST['storeid']) && is_numeric($_POST['storeid']) ? $_POST['storeid'] : 0; $lot->boxes = isset($_POST['box']) ? $_POST['box'] : 0; $lot->units = isset($_POST['units']) ? $_POST['units'] : 0; $lot->stock = isset($_POST['stock']) ? $_POST['stock'] : 0; $lot->active = isset($_POST['active']) ? $_POST['active'] : 0; $lot->cost = isset($_POST['costo']) ? $_POST['costo'] : 0; $lot->costMar = isset($_POST['tmar']) ? $_POST['tmar'] : 0; $lot->costTer = isset($_POST['tter']) ? $_POST['tter'] : 0; $lot->costAdu = isset($_POST['aduana']) ? $_POST['aduana'] : 0; $lot->costBank = isset($_POST['tbank']) ? $_POST['tbank'] : 0; $lot->costLoad = isset($_POST['cade']) ? $_POST['cade'] : 0; $lot->costOther = isset($_POST['other']) ? $_POST['other'] : 0; $lot->price = isset($_POST['pricef']) ? $_POST['pricef'] : 0; $lot->gloss = isset($_POST['notes']) ? $_POST['notes'] : ''; if ($lot->add()) { header("location:" . Forms::getLink(FORM_LOT_DETAIL, array("lot" => $lot->id))); } return false; }
function additional() { $forms = Forms::getFormsList(); foreach ($forms as $item) { Fields::$additional[$item['path']] = $item; } return Fields::$additional; }
public function testGetConfig() { $config = Forms::getConfig('form'); $this->assertEquals('form', $config['name']); $config = Forms::getConfig('formGroup'); $this->assertEquals('formGroup', $config['name']); $this->assertEquals('form-group', $config['attributes']['class']); $this->assertFalse(Forms::getConfig('NotKeyExists')); }
public function postDeleteField() { if (Helper::isBusinessOwner(Input::get('business_id'), Helper::userId())) { // PAG added permission checking Forms::deleteField(Input::get('form_id')); return json_encode(array('status' => 1)); } else { return json_encode(array('message' => 'You are not allowed to access this function.')); } }
public function showLogin($arr = array('user' => 'Username', 'pass' => 'Password', 'login' => 'Sign in'), $invalid) { require 'Forms.php'; # in the same directory as Login.php $forms = new Forms(''); $fcnt = 1; # First field foreach ($arr as $k => $v) { if ($k != 'login') { $forms->textBox($v, $k, $fcnt == 1 && isset($_POST["txt_{$k}"]) && !empty($_POST["txt_{$k}"]) ? $_POST["txt_{$k}"] : '', 1, in_array($v, $invalid), '', 1); if ($fcnt == 1) { $u = $v; $u2 = $k; } // End if. if ($fcnt == 2) { $p = $v; $p2 = $k; } // End if. $fcnt++; } // End if. } // End foreach. $forms->submitButton(isset($arr['login']) ? $arr['login'] : '******', 'login', 1); echo $forms->closeform(); unset($forms); $focus = ''; if (count($invalid) || empty($_POST["txt_{$p}"])) { $focus = "\n<script>document.forms[0].txt_{$p2}.focus();</script>"; } if ((!count($invalid) || in_array($u, $invalid)) && empty($_POST["txt_{$u2}"])) { $focus = "\n<script>document.forms[0].txt_{$u2}.focus();</script>"; //$focus = "\n<script>\$(document).ready(function(){ \$('.classform input[name=txt_{$u2}]').focus(); });</script>"; } // End if. if (!empty($focus)) { echo $focus; } //else echo '<script>document.forms[0].user.focus();</script>'; }
public static function saveCustomerRequest() { if (!isset($_POST['contact'])) { die(0); } $CustomerRequests = new Structures\CustomerRequests(); $request = Forms::sanitize($_POST['contact']); $result = $CustomerRequests->set((object) $request); // Also notify admin Forms::sendToAdmin($request); die(!empty($result)); }
public function index() { ipAddJs('Ip/Internal/Config/assets/config.js'); ipAddCss('Ip/Internal/Config/assets/config.css'); $form = Forms::getForm(); $advancedForm = false; if (ipAdminPermission('Config advanced')) { $advancedForm = Forms::getAdvancedForm(); } $data = array('form' => $form, 'advancedForm' => $advancedForm); return ipView('view/configWindow.php', $data)->render(); }
/** * Edit category * @return void */ public function actionEdit($id = null) { // authorization $this->checkAuth(); $data = array(); $data['page_title'] = 'New category'; $category = array('title' => '', 'uri' => ''); if (!is_null($id)) { $category = $this->db->category[$id]; if ($category) { $data['page_title'] = 'Edit category'; } else { $this->notFound(); } } // Form $form = new Forms('categoryEdit'); $form->successMessage = 'Your category was saved.'; $form->errorMessage = 'Error while saving category. Try it later.'; $form->addInput('text', 'title', 'Title', true, $category['title']); $form->addInput('text', 'uri', 'URI', false, $category['uri']); $form->addSubmit('save', 'Save'); if ($form->isValid()) { $auth = new Auth($this->db); $saveData = $form->values(); $saveData['uri'] = trim($saveData['uri']); if ($saveData['uri'] == "") { $saveData['uri'] = $saveData['title']; } $saveData['uri'] = $this->text2url($saveData['uri']); $saveData['updated'] = new NotORM_Literal("NOW()"); if (is_null($id)) { $categorySave = $this->db->category()->insert($saveData); } else { $categorySave = $this->db->category[$id]->update($saveData); } if ($categorySave) { $this->addMessage('success', 'Category saved'); $this->redirect('admin/categories'); // $form->success(); } else { $form->error(); } } $data['editForm'] = $form->formHtml(); $data['isAdmin'] = true; $this->renderTemplate('category/edit', $data); }
protected function getMainSection() { $form = Forms::getRegisterForm(); $js = Forms::getRegisterJs('/'); $this->addInlineJs($js); return <<<HTML <div class="container theme-showcase" role="main"> <div class="jumbotron"> \t<h3>Register</h3> {$form} </div> </div> HTML; }
/** * Generate the middle section of the home page */ protected function getMainSection() { $nickName = empty($_COOKIE['n']) ? '' : $_COOKIE['n']; $form = Forms::getLoginForm($nickName); $js = Forms::getLoginFormJs(); $this->addInlineJs($js); return <<<HTML <div class="container theme-showcase" role="main"> <div class="jumbotron"> \t<h3>Sign In</h3> {$form} </div> </div> HTML; }
function customer_add() { $customer = new Customer(); $customer->name = isset($_POST['name']) ? $_POST['name'] : ""; $customer->address = isset($_POST['address']) ? $_POST['address'] : ""; $customer->phone = isset($_POST['phone']) ? $_POST['phone'] : ""; $customer->cell = isset($_POST['cell']) ? $_POST['cell'] : ""; $customer->active = isset($_POST['active']) ? $_POST['active'] : 0; $customer->email = isset($_POST['email']) ? $_POST['email'] : ""; $customer->nit = isset($_POST['nit']) ? $_POST['nit'] : ""; if ($customer->add()) { $params = array("customer" => $customer->id); header("location: " . Forms::getLink(FORM_CUSTOMER_DETAIL, $params)); exit; } return false; }
public function __construct($table, $current_id = '', $iterations = '1') { $this->table = $table; $this->table_object = $table_object = String::uc_slug($this->table, '_', '_'); $this->current_id = $current_id; if (class_exists($this->table_object) && get_parent_class($this->table_object) == 'Db_Object') { $this->current_object = new $table_object(); if (!empty($this->current_id)) { $this->current_object->select(array('id' => $current_id)); } } else { echo '<p class="error"><strong>Framework Error:</strong><br/>Database object does not exist for table: ' . $this->table . '</p>'; die; } parent::__construct($this->table, $iterations); $this->build(); }
public function postSendtoBusiness() { if (Auth::check()) { $business_id = Input::get('business_id'); $attachment = Input::get('contfile'); $email = User::email(Auth::user()->user_id); $timestamp = time(); $thread_key = $this->threadKeyGenerator($business_id, $email); $custom_fields_bool = Input::get('custom_fields_bool'); // save if there are custom fields available $custom_fields_data = ''; if ($custom_fields_bool) { $custom_fields = Input::get('custom_fields'); $res = Forms::getFieldsByBusinessId($business_id); foreach ($res as $count => $data) { $custom_fields_data .= '<strong>' . Forms::getLabelByFormId($data->form_id) . ':</strong> ' . $custom_fields[$data->form_id] . "\n"; } } if (!Message::checkThreadByKey($thread_key)) { $phones[] = Input::get('contmobile'); Message::createThread(array('contactname' => User::first_name(Auth::user()->user_id) . ' ' . User::last_name(Auth::user()->user_id), 'business_id' => $business_id, 'email' => $email, 'phone' => serialize($phones), 'thread_key' => $thread_key)); $data = json_encode(array(array('timestamp' => $timestamp, 'contmessage' => Input::get('contmessage') . "\n\n" . $custom_fields_data, 'attachment' => $attachment, 'sender' => 'user'))); file_put_contents(public_path() . '/json/messages/' . $thread_key . '.json', $data); } else { $data = json_decode(file_get_contents(public_path() . '/json/messages/' . $thread_key . '.json')); $data[] = array('timestamp' => $timestamp, 'contmessage' => Input::get('contmessage') . "\n\n" . $custom_fields_data, 'attachment' => $attachment, 'sender' => 'user'); $data = json_encode($data); file_put_contents(public_path() . '/json/messages/' . $thread_key . '.json', $data); } /* Mail::send('emails.contact', array( 'name' => $name, 'email' => $email, 'messageContent' => Input::get('contmessage') . "\n\nAttachment: " . $attachment . "\n\n" . $custom_fields_data, ), function($message, $email, $name) { $message->subject('Message from '. $name . ' ' . $email); $message->to('*****@*****.**'); }); */ return json_encode(array('status' => 1)); } else { return json_encode(array('messages' => 'You are not allowed to access this function.')); } }
public function login_form($page) { global $html; echo '<main class="container-fluid">'; echo "<div class='row login-panel'>"; echo "<div class='col-xs-12 col-sm-4 col-sm-offset-4 col-md-4 col-md-offset-4 col-lg-4 col-lg-offset-4 well'>"; //$html->title("Log on"); $form = new Forms(); $form->start($page); $form->input("username"); $form->input("password"); echo "<div class='col-xs-12 text-center'>"; $form->button("logon"); $form->end(); echo "</div>"; echo "</div>"; echo "</div>"; }
// print_r($_POST); $pk_id_user = $user->updateUser($_POST['USER_NAME'], $_POST['PASSWORD'], $_POST['PK_ID_PERSON'], $_POST['PK_ID_USER'], $_POST['ROL']); if ($pk_id_user) { Forms::setMessage('SUCCESS', 'Transaccion Exitosa!!', 'Los datos de usario se actualizaron correctamente!'); } else { Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de usario No se actualizaron correctamente!'); } } break; case 'DELETE': $data1 = array($_GET['PK_ID_USER']); $pk_id_person = $user->deleteUser($data1); if ($pk_id_person > 0) { Forms::setMessage('SUCCESS', 'Transaccion Exitosa!!', 'Los datos de usario se eliminaron correctamente!'); } else { Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de usario No se eliminaron correctamente!'); } break; default: break; } ?> <div class="grid_10"> <div class="box round first"> <h2><?php echo $property["pages"]["security/accounts_admin"]["SEGURIDAD_ADMIN_CUENTAS_TITLE"]; ?> </h2>
public function postGetPfTemplate($id) { $row = Forms::find($id); echo $row->forms_content_text; }
// получаем данные пользователя $_user = registration::get_User($_SESSION['log']); } unset($_POST['FORM']); $_POST['FORM'] = array('id_user' => $_SESSION['user_id'], 'note' => $_note, 'deliver' => $_deliver, 'form_payment' => $_form_payment); // пишем в базу!!! Forms::MultyInsertForm('order_number', 0); // номер заказа $_number_order = mysql_insert_id(); // формируем заказ if (isset($_SESSION['basket'])) { foreach ($_SESSION['basket'] as $key => $value) { unset($_POST['FORM']); $_POST['FORM'] = array('number_order' => $_number_order, 'id_good' => $value['id'], 'kolvo' => $value['kolvo'], 'cost' => $value['cost']); // пишем в базу!!! Forms::MultyInsertForm('orders', 0); } } //---------------------------------------------------------// //---------- отпраляем мыло админу ------------------------// //---------------------------------------------------------// // парсим тело письма $_arr = ___findarray('select * from message where id=4'); // елементы для замены $mass_element_for_parsing = array('%number_order%', '%user%', '%site%', '%order%', '%adm_part%'); // заменяеміе значения $mass_result_for_parsing = array('' . $_number_order, system::show_tpl(array('user' => $_user), '/frontend/mycabinet/user_mail.php'), ADRESS_SITE, system::show_tpl(array('result' => mycabinet::get_Order($_number_order)), '/frontend/mycabinet/list_mail.php'), 'http://' . ADRESS_SITE . '/backend/orders/new/id/' . $_number_order); // парсим данные $message = parsing_data($mass_element_for_parsing, $mass_result_for_parsing, nl2br($_arr['text'])); // парсим заголовок письма $subject = replace_data($_arr['zag'], '%site%', ADRESS_SITE);
<?php include_once "../includes/webservice.inc.php"; $webService = new Webservices_Writer(); $webService->init(); $formsObj = new Forms(); $data = isset($_POST['data']) ? $_POST['data'] : ''; $fp = fopen('/var/www/html/logfiles/usersharedform.txt', 'a'); fwrite($fp, $data . "\n"); fclose($fp); if ($result = $formsObj->userShareForm($data)) { $webService->createXMLInstance(); $webService->appendArrayToRootNode('', $result); $webService->displayXML(); } else { $xmls = $webService->errorXML(join(",", $formObj->errorMessages)); $webService->outputXML($xmls); }
<p class="form-title">Compras por Pagar</p> <?php if (!Forms::checkPermission(FORM_PURCHASE_PAYABLE)) { return; } require 'inc/class.purchase.php'; require 'inc/class.formatter.php'; $purchases = Purchase::getAllOutstanding("`date`", "DESC"); ?> <table class="default"> <thead> <tr> <th style="width:8em">Código</th> <th style="width:8em">Fecha</th> <th style="width:12em">Proveedor</th> <th>Estado</th> <th>Observación</th> <th style="width:8em">Monto <?php echo SB_CURRENCY; ?> </th> <th style="width:8em">Saldo <?php echo SB_CURRENCY; ?> </th> <th colspan="2"> </th> </tr> </thead> <tbody> <?php
<?php ini_set('display_errors', 'on'); include_once "includes/webservice.inc.php"; include 'modules/Forms.class.php'; $objFormModel = new Forms(); $filename = 'hello.pdf'; $formid = 189; $data = $objFormModel->getPdfFormData($formid, $db); print_r($data); $postFields = 'filename=' . $filename . '&formid=' . $formid . '&data=' . urlencode(serialize($data)); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://staging.valuelabs.net/heartweb/actual/plugins/pdf/pdf.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); $sms_server = curl_exec($ch); curl_close($ch);
<p class="form-title">Registro de Nuevo Usuario</p> <?php if (!Forms::checkPermission(FORM_USER_NEW)) { return; } require_once 'inc/class.store.php'; $stores = Store::getAllActive("name", "ASC"); $firstname = isset($_POST['firstname']) ? $_POST['firstname'] : ""; $lastname = isset($_POST['lastname']) ? $_POST['lastname'] : ""; $username = isset($_POST['username']) ? $_POST['username'] : ""; $passwd = isset($_POST['passwd']) ? $_POST['passwd'] : ""; $ci = isset($_POST['ci']) ? $_POST['ci'] : ""; $address = isset($_POST['address']) ? $_POST['address'] : ""; $phone = isset($_POST['phone']) ? $_POST['phone'] : ""; $role = isset($_POST['role']) ? $_POST['role'] : ""; $store = isset($_POST['store']) ? $_POST['store'] : ""; $email = isset($_POST['email']) ? $_POST['email'] : ""; $active = true; if (isset($_POST['page'])) { $active = isset($_POST['active']); } include 'inc/widget/error.php'; ?> <form action="" method="POST" enctype="multipart/form-data"> <table class="form"> <tbody> <tr> <td class="label">Nombre:</td> <td><input name="firstname" type="text" value="<?php echo $firstname; ?>
</td> <td class="col2"> <?php $end_datetime_admission = $action == 'EDIT' ? $data['end_datetime_admission'] : ''; if ($action == 'EDIT' || $action == 'INSERT') { Forms::printInput('TEXT', 'end_datetime_admission', $end_datetime_admission, 'datePicker mini', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"])); } elseif ($action == 'PREVIEW') { echo $data['end_datetime_admission']; } ?> </td> </tr> <tr> <td class="col1"> <?php Forms::printLabel('Cursos Disponibles'); ?> </td> <td class="col2"> <?php $end_datetime_admission = $action == 'EDIT' ? $data['end_datetime_admission'] : ''; if ($action == 'INSERT') { $mcconfig = new MainCourse($registry[$nameDataBase]); $list_mcconfig = $mcconfig->getMainCourseConfigurationAll($action); $itemsSelect = array(); foreach ($list_mcconfig as $item) { echo "<input type='checkbox' name='chk_cursos[]' id='chk_cursos' value=" . $item['pk_id_main_course'] . ">" . $item['description'] . "<br>"; } echo '<br>'; } if ($action == 'EDIT') {
} Forms::setMessage('SUCCESS', $v_label["SHORT_MESSAGE_OK_EDIT"], $v_label["DETAIL_MESSAGE_OK_EDIT"]); } else { Forms::setMessage('ERROR', $v_label["SHORT_MESSAGE_NOOK_EDIT"], $v_label["DETAIL_MESSAGE_NOOK_EDIT"]); } break; case 'DELETE': $transaction = new Transaction($registry[$nameDataBase]); MembershipAppForm::setDataOperationBusiness($registry[$nameDataBase]); $idTransaction = $transaction->insertTransaction(array(MembershipAppForm::$business, MembershipAppForm::$update, MembershipAppForm::$descriptionBusiness)); $data = array($_GET['DELETE']); $statusTransactionDB = $catalog->deleteMembershipAppForm($data, $idTransaction); if ($statusTransactionDB > 0) { Forms::setMessage('SUCCESS', $v_label["SHORT_MESSAGE_OK_DELETE"], $v_label["DETAIL_MESSAGE_OK_DELETE"]); } else { Forms::setMessage('ERROR', $v_label["SHORT_MESSAGE_NOOK_DELETE"], $v_label["DETAIL_MESSAGE_NOOK_DELETE"]); } break; default: break; } // Obtener lista $list = $catalog->getListMembershipAppForm(); ?> <div class="grid_10"> <div class="box round first"> <h2><?php echo $v_label["TITLE"]; ?> </h2>
.noUi-handle span strong { display: block; padding: 2px; } ul li{vertical-align: top;} .form-group ul{list-style-type:none;} input[type='search']{box-sizing:border-box;} div.btn-group, div.btn-group>.multiselect{width:100%;} .datepicker{padding:.375rem .75rem;} .second-addon{background:none;color:#ddd;border-right:none;} </style> <?php try { $form = new Forms('myform'); $form->setHeader(array('en' => 'TEST EN', 'fr' => 'TEST FR'), array('en' => 'Message EN', 'fr' => 'Message FR')); $form->setFooter(array('en' => 'Submit', 'fr' => 'Envoyer')); $el = new Elements($form, 'myselect', 'select'); $el->label(array('en' => 'label en', 'fr' => 'label fr')); $el->options(array('opt1', 'opt2')); $el->html(); $el = new Elements($form, 'mymultiselect', 'multiselect'); $el->label(array('en' => 'label en', 'fr' => 'label fr')); $el->options(array('opt1', 'opt2')); $el->html(); $el = new Elements($form, 'mycheckbox', 'checkbox'); $el->label(array('en' => 'label en', 'fr' => 'label fr')); $el->options(array('opt1', 'opt2')); $el->html(); $el = new Elements($form, 'myradio', 'radio');