function showExtensionSettings($smarty, $module_name, $local_templates_dir, &$pDB, $arrConf) { global $arrCredentials; $pMyExten = new paloMyExten($pDB, $arrCredentials['idUser']); if (getParameter('action') == 'save') { $my_exten = $_POST; } else { $my_exten = $pMyExten->getMyExtension(); } if ($my_exten == false) { $smarty->assign("MSG_ERROR_FIELD", $pMyExten->getErrorMsg()); } $smarty->assign("DISPLAY_NAME_LABEL", _tr("Display Name CID:")); $smarty->assign("clid_name", $my_exten['clid_name']); $smarty->assign("DISPLAY_EXT_LABEL", _tr("Extension number:")); $smarty->assign("DISPLAY_DEVICE_LABEL", _tr("Device:")); $smarty->assign("device", $my_exten['device']); $smarty->assign("extension", $my_exten['extension']); $smarty->assign("DISPLAY_CFC_LABEL", _tr("Call Forward Configuration")); $smarty->assign("DISPLAY_CMS_LABEL", _tr("Call Monitor Settings")); $smarty->assign("DISPLAY_VOICEMAIL_LABEL", _tr("Voicemail Configuration")); //$smarty->assign("SAVE_CONF_BTN",_tr("Save Configuration")); // $smarty->assign("CANCEL_BTN",_tr("Cancel")); //contiene los elementos del formulario $arrForm = createForm(); $oForm = new paloForm($smarty, $arrForm); $html = $oForm->fetchForm("{$local_templates_dir}/form.tpl", _tr('extension'), $my_exten); $contenidoModulo = "<div><form method='POST' style='margin-bottom:0;' name='{$module_name}' id='{$module_name}' action='?menu={$module_name}'>" . $html . "</form></div>"; return $contenidoModulo; }
function comboBox_range($from, $to, $assign = '', $opt = 0) { if (isNum($from) && isNum($to) && $from <= $to) { if (!isStr($assign)) { $assign = ''; } $list = createForm()->select->create(array()); for ($i = $from; $i <= $to; $i++) { $list->add_option($i, $opt <= 0 ? $assign . $i : $i . $assign); } return $list; } }
function templateContact($smarty, $module_name, $local_templates_dir, &$pDB, $arrConf) { $jsonObject = new PaloSantoJSON(); $coreContact = new coreContact($pDB); $smarty->assign("TOOLTIP_FIRS_NAME", _tr("Invalid first name")); $smarty->assign("TOOLTIP_LAST_NAME", _tr("Invalid last name")); $smarty->assign("TOOLTIP_POHNE", _tr("Just numeric characters are valid")); $smarty->assign("TOOLTIP_EMAIL", _tr("Invalid email")); if (getParameter('action') == 'newContact') { //formulario vario con los valores por default $smarty->assign('ELX_ACTION', 'new'); $arrayContact = array(); $arrayContact['contact_type'] = 'isPrivate'; } else { //consulto la informacion del usuario que me piden $idContact = getParameter('idContact'); //consulta que exista en la base y que el usuario tenga acceso la mismo (usuario y dominio) $arrayContact = $coreContact->sqlContact->getExternalContactForEdit($idContact); if ($arrayContact === false) { $smarty->assign("MSG_ERROR_FIELD", $coreContact->sqlContact->getErrorMsg()); $jsonObject->set_error($coreContact->sqlContact->getErrorMsg()); return $jsonObject->createJSON(); } if ($arrayContact == false) { $smarty->assign("MSG_ERROR_FIELD", _tr('User does not exist')); $jsonObject->set_error($coreContact->sqlContact->getErrorMsg()); return $jsonObject->createJSON(); } $_SESSION['idContact'] = $idContact; $arrayContact['contact_type'] = htmlentities($arrayContact['status'], ENT_QUOTES, "UTF-8"); $arrayContact['first_name'] = htmlentities($arrayContact['name'], ENT_QUOTES, "UTF-8"); $arrayContact['last_name'] = htmlentities($arrayContact['last_name'], ENT_QUOTES, "UTF-8"); $arrayContact['work_phone_number'] = htmlentities($arrayContact['work_phone'], ENT_QUOTES, "UTF-8"); $arrayContact['cell_phone_number'] = htmlentities($arrayContact['cell_phone'], ENT_QUOTES, "UTF-8"); $arrayContact['home_phone_number'] = htmlentities($arrayContact['home_phone'], ENT_QUOTES, "UTF-8"); $arrayContact['fax_number_1'] = htmlentities($arrayContact['fax1'], ENT_QUOTES, "UTF-8"); $arrayContact['fax_number_2'] = htmlentities($arrayContact['fax2'], ENT_QUOTES, "UTF-8"); $arrayContact['email'] = htmlentities($arrayContact['email'], ENT_QUOTES, "UTF-8"); $arrayContact['province'] = htmlentities($arrayContact['province'], ENT_QUOTES, "UTF-8"); $arrayContact['city'] = htmlentities($arrayContact['city'], ENT_QUOTES, "UTF-8"); $arrayContact['address'] = htmlentities($arrayContact['address'], ENT_QUOTES, "UTF-8"); $arrayContact['company'] = htmlentities($arrayContact['company'], ENT_QUOTES, "UTF-8"); $arrayContact['contact_person'] = htmlentities($arrayContact['company_contact'], ENT_QUOTES, "UTF-8"); $arrayContact['contact_person_position'] = htmlentities($arrayContact['contact_rol'], ENT_QUOTES, "UTF-8"); $arrayContact['notes'] = htmlentities($arrayContact['notes'], ENT_QUOTES, "UTF-8"); $smarty->assign('ID_PICTURE', $arrayContact['picture']); $smarty->assign('ELX_ACTION', 'edit'); } //contiene los elementos del formulario $arrForm = createForm(); $oForm = new paloForm($smarty, $arrForm); $html = $oForm->fetchForm("{$local_templates_dir}/form.tpl", _tr('extension'), $arrayContact); $contenidoModulo = "<div><form enctype='multipart/form-data' method='POST' style='margin-bottom:0;' name='{$module_name}' id='{$module_name}' action='?menu={$module_name}'>" . $html . "</form></div>"; $jsonObject->set_message($contenidoModulo); return $jsonObject->createJSON(); }
function formMetaChecker() { $parser = new MetaParser(); return createForm($parser); }
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?> <? createForm($arResult['FILTERS']); ?> <div class="solutionresult" id="resbutt"></div> <div id="result"> </div> <div id="resultbuy"> </div> <script> $(document).ready(function(){ $('#resbutt').click(function (){ // Поддержка передачи изображения на мобильные устройства if($('#mobile_dev').val()=="<?php echo GetMessage("LIST_YES"); ?> "){ var mobile = 1; }else var mobile = 0; // Поддержка бесперебойного питания if($('#uninterrupted').val()=="<?php echo GetMessage("LIST_YES"); ?> "){ var uninterrupted = 1; }else var uninterrupted = 0; var request={
} ?> <tr> <td align="center"> <?php $target_comment = $curr_thread->getDiscussionComment($comment_id); $msubject = $target_comment->commentSubject; if (substr($msubject, 0, 3) != "Re:") { $msubject = "Re: " . $msubject; } $mbody = $target_comment->commentText; if (substr($mbody, 0, 3) != "<i>") { $mbody = "<i>" . $mbody . "</i>"; } $fstruct = array(array("paction", "", "hidden", "insertReply", false), array("discussion_id", "", "hidden", $curr_thread->discussionID, false), array("thread_id", "", "hidden", $curr_thread->threadID, false), array("comment_id", "", "hidden", $comment_id, false), array("message_subject", "Subject", "text", $msubject, true), array("message_text", "Message", "textarea", $mbody, true)); createForm($fstruct, "field", "addReply", "view_thread.php", true, "Add Message", ""); ?> </td> </tr> </table> </td> </tr> </table> <br> <?php } ?> <table border="0" width="750" cellpadding="0" cellspacing="0"> <tr> <td width="25" background="images/section.header.bg.gif"><img height="32" width="25" src="images/section.header.w.gif"></td>
</form> <tr> <td width="25" background="images/section.header.bg.gif"><img height="32" width="25" src="images/section.header.w.gif"></td> <td width="700" background="images/section.header.bg.gif"> <span class="sectionHeader"> <a href="lists.php" class="boldWhiteLink">All lists</a> >> <?php echo $curr_list->listTitle; ?> >> Add Item </span> </td> <td width="25"><img border="0" height="32" width="25" src="images/section.header.e.gif"></td> </tr> <tr> <td align="center" colspan="3"> <?php $fstruct = array(array("paction", "", "hidden", "insertListItem", false), array("list_id", "", "hidden", $list_id, false), array("item_text", "Text", "textarea", $item_text_in, true), array("item_url", "URL", "text", $item_url_in, false), array("item_file", "File", "file", $item_file_in, false)); createForm($fstruct, "field", "addList", "view_list.php", true, "Add Item", ""); ?> </td> </tr> <tr><td colspan="3"><br></td></tr> </table> <?php WriteFooter(); $application->save();
while ($row = $result->fetch_assoc()) { $email = $row['Email']; } } else { echo "0 results"; } echo "<BR>Email updated to: {$email}<BR><BR>"; $_SESSION['sess_user'] = $email; // Updates the username to the new email of the current session user. echo "<form action='loginSuccessful.php'><input type='submit' value='Back to profile'></form>"; } else { echo "<br>Unable to update email.<br>"; } } else { // Emails don't match, brings you back to the change email form. echo "<script>alert('Emails do not match');</script>"; createForm(); } } else { // If the inputted password is invalid, then it alerts 'invalid password' then brings you back to the change email form. echo "<script>alert('Invalid password');</script>"; createForm(); } $conn->close(); } ?> </body> </html> <?php }
writeListItemComments($item_id, $application); ?> </td> <td></td> </tr> <!-- form for adding a new comment --> <tr> <td width="25" background="images/section.header.bg.gif"><img height="32" width="25" src="images/section.header.w.gif"></td> <td width="700" background="images/section.header.bg.gif"> <span class="sectionHeader"> Add Your Comments </span> </td> <td width="25"><img border="0" height="32" width="25" src="images/section.header.e.gif"></td> </tr> <tr> <td align="center" colspan="3"> <?php $fstruct = array(array("paction", "", "hidden", "insertComment", false), array("l", "", "hidden", $list_id, false), array("i", "", "hidden", $item_id, false), array("comment_text", "Comments", "textarea", "", true)); createForm($fstruct, "field", "addComment", "view_list_item.php", true, "Add my \$0.02", ""); ?> </td> </tr> </table> <?php WriteFooter(); $application->save();
<td colspan="3" align="center"> <table border="0" cellpadding="0" cellspacing="0" width="700"> <?php if (strlen($errMsg) > 0) { ?> <tr> <td><?php echo $errMsg; ?> </td> </tr> <?php } ?> <tr> <td align="center"> <?php $fstruct = array(array("paction", "", "hidden", "insertDiscussion", false), array("filterDate", "", "hidden", $filter_date, false), array("discussion_title", "Title", "text", $ltitle_in, true), array("discussion_description", "Description", "textarea", $ldesc_in, true)); createForm($fstruct, "field", "addDiscussion", "view_discussion.php", true, "Create Discussion", ""); ?> </td> </tr> </table> </td> </tr> </table> <?php WriteFooter(); $application->save();
writeJournalEntryComments($item_id); ?> </td> <td></td> </tr> <tr><td colspan="3"><br></td></tr> <!-- form for adding a new comment --> <tr> <td width="25" background="images/section.header.bg.gif"><img height="32" width="25" src="images/section.header.w.gif"></td> <td width="700" background="images/section.header.bg.gif"> <span class="boldWhiteMediumText"> Add Your Comments </span> </td> <td width="25"><img border="0" height="32" width="25" src="images/section.header.e.gif"></td> </tr> <tr> <td align="center" colspan="3"> <?php $fstruct = array(array("paction", "", "hidden", "insertComment", false), array("j", "", "hidden", $journal_id, false), array("e", "", "hidden", $item_id, false), array("comment_text", "Comments", "textarea", "", true)); createForm($fstruct, "field", "addList", "view_news_item.php", true, "Add my \$0.02", ""); ?> </td> </tr> </table> <?php WriteFooter(); $application->save();
<td colspan="3" align="center"> <table border="0" cellpadding="0" cellspacing="0" width="700"> <?php if (strlen($errMsg) > 0) { ?> <tr> <td><?php echo $errMsg; ?> </td> </tr> <?php } ?> <tr> <td align="center"> <?php $fstruct = array(array("paction", "", "hidden", "insertMessage", false), array("discussion_id", "", "hidden", $discussion_id, false), array("page", "", "hidden", $curr_page, false), array("message_subject", "Subject", "text", $ltitle_in, true), array("message_text", "Body", "textarea", $ldesc_in, true)); createForm($fstruct, "field", "addDiscussion", "view_discussion.php", true, "Add Message", ""); ?> </td> </tr> </table> </td> </tr> </table> <?php WriteFooter(); $application->save();
$statuspo = $bar->statuspo; $kodesupplier = $bar->kodesupplier; $stat_release = $bar->stat_release; } if ($statuspo > 0 && $stat_release == 1) { $str = "select * from " . $dbname . ".log_poht where nopo='" . $nopo . "'"; $res = mysql_query($str); if ($datatype == 'supplier') { echo $kodesupplier; } else { if ($datatype == 'data') { createForm($nopo); } else { if ($datatype == 'edit') { $notransaksi = $_POST['notransaksi']; createForm($nopo, $notransaksi); } } } } else { echo " Error: Purchase order no." . $nopo . ". not released"; } } else { echo " Error: Purchase order no." . $nopo . ". not found"; } } else { echo " Error: Transaction Period missing"; } function createForm($nopo, $notransaksi = '') { //no transaksi terisi hanya pada saat edit
<td width="700" background="images/section.header.bg.gif"> <span class="boldWhiteMediumText"> <a href="news.php" class="boldWhiteLink">News Columns</a> >> Add to <?php echo $row["JournalTitle"]; ?> </span> </td> <td width="25"><img border="0" height="32" width="25" src="images/section.header.e.gif"></td> </tr> <tr> <td align="center" colspan="3"> <?php $fstruct = array(array("paction", "", "hidden", "insertNewsItem", false), array("j", "", "hidden", $journal_id, false), array("item_title", "Title", "text", "", true), array("item_file", "File", "file", "", true), array("item_description", "Description", "textarea", "", true)); createForm($fstruct, "field", "addList", "view_news.php", true, "Add News", ""); ?> </td> </tr> <tr><td colspan="3"><br></td></tr> <tr> <td width="25" background="images/section.header.bg.gif"><img height="32" width="25" src="images/section.header.w.gif"></td> <td width="700" background="images/section.header.bg.gif"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td> <span class="boldWhiteMediumText"> <a href="news.php" class="boldWhiteLink">News Columns</a> >> <?php echo $row["JournalTitle"];
if (empty($lesson)) { $arr = array('msg' => 'error', 'data' => '获取课表失败,可能是系统出错或密码错误,后者请重新绑定', 'url' => $bd_url, 'operate' => 'jump'); exit(json_encode($arr)); } $arr = array('msg' => 'success', 'data' => $lesson); exit(json_encode($arr)); break; case 'bookList': include './school/Library.php'; $lib = new Library($sno, $pwd, $openid, $code); $libArr = $lib->getList(); if (empty($libArr)) { $arr = array('msg' => 'error', 'data' => '查不到您的图书馆信息,可能您的借书历史为空,如果不为空请重试'); exit(json_encode($arr)); } $html = createForm('../t/show_library.php', array('result' => base64_encode(json_encode($libArr)))); $arr = array('msg' => 'success', 'operate' => 'form', 'data' => $html); exit(json_encode($arr)); break; case 'xuefei': $text = $school->getXueFei(); $text = str_replace("\n", '<br>', $text); $arr = array('msg' => 'success', 'data' => $text); exit(json_encode($arr)); break; case 'getMakeUpArrange': $text = $school->getMakeUpArrange(); $text = str_replace("\n", '<br>', $text); $arr = array('msg' => 'success', 'data' => $text); exit(json_encode($arr)); break;
$inserted = (bool) mysqli_stmt_affected_rows($statement); if ($inserted) { $user['id'] = mysqli_stmt_insert_id($statement); } mysqli_stmt_close($statement); return $inserted; } /** * @param array $request * @return array */ return function (array $request) { if (currentUser()) { return createRedirectResponse('/index.php/'); } $form = createForm(); formHandleRequest($form, $request); $form['fields']['name']['value'] = trim(preg_replace('/(\\s)+/', ' ', $form['fields']['name']['value'])); if (formIsValid($form)) { $user = extractValues($form); $user['email'] = strtolower($user['email']); $user['hashed_password'] = password_hash($user['password'], PASSWORD_DEFAULT); unset($user['password'], $user['password_repeat']); $userConnection = mappedConnection('users'); if (saveUser($userConnection, $user)) { authorize($user); return createRedirectResponse('/'); } else { $form['valid'] = false; $form['fields']['email']['errors'][] = 'Такой Email уже используется.'; }
$productReport = new ProductReport(); $productReport->createReport(); break; case 'product_stock': require_once 'product_stock_report.php'; $productStockReport = new ProductStockReport(); $productStockReport->createReport(); break; } break; default: if ($strForm) { if ($strFunc == 'settings') { createFuncMenu($strFunc); } createForm($strFunc, $strList, $strForm); } else { createFuncMenu($strFunc); if ($strFunc == 'open_invoices') { createOpenInvoiceList(); } elseif ($strFunc == 'archived_invoices') { createList('archived_invoices', 'invoice', 'archived_invoices', ''); } else { if ($strList == 'settings') { createSettingsList(); } else { createList($strFunc, $strList); } } } }
function license_management_page() { echo '<div class="wrap">'; echo '<h2>License Manager</h2>'; $site_url = network_site_url('/'); $lic = new LicenseManager($site_url, YOUR_VERIFICATION_SECRET_KEY, CREATION_SECRET_KEY); handleButtonClicks($lic); echo activateForm(); echo deactivateForm(); echo checkForm(); echo createForm(); echo '<p>' . getSavedData() . '</p><hr/>'; showServerInfo(); echo '</div>'; }
function showExtensionSettings($smarty, $module_name, $local_templates_dir, &$pDB, $arrConf) { global $arrCredentials; $pMyFax = new paloMyFax($pDB, $arrCredentials['idUser']); if (getParameter('action') == 'save') { $my_fax = $_POST; } else { $my_fax = $pMyFax->getMyFaxExtension(); } if ($my_fax == false) { $smarty->assign("MSG_ERROR_FIELD", $pMyFax->getErrorMsg()); } $smarty->assign("EXTENSION_LABEL", _tr("Fax Extension:")); $smarty->assign("EXTENSION", $my_fax['FAX_EXTEN']); $smarty->assign("DEVICE_LABEL", _tr("Device:")); $smarty->assign("DEVICE", $my_fax['DEVICE']); $smarty->assign("STATUS_LABEL", _tr("Status:")); $smarty->assign("STATUS", $my_fax['STATUS']); $smarty->assign("FAX_EMAIL_SETTINGS", _tr("Fax email settings")); $my_fax['FAX_SUBJECT'] = htmlentities($my_fax['FAX_SUBJECT'], ENT_QUOTES, "UTF-8"); $my_fax['FAX_CONTENT'] = htmlentities($my_fax['FAX_CONTENT'], ENT_QUOTES, "UTF-8"); $my_fax['CID_NAME'] = htmlentities($my_fax['CID_NAME'], ENT_QUOTES, "UTF-8"); $my_fax['CID_NUMBER'] = htmlentities($my_fax['CID_NUMBER'], ENT_QUOTES, "UTF-8"); $my_fax['COUNTRY_CODE'] = htmlentities($my_fax['COUNTRY_CODE'], ENT_QUOTES, "UTF-8"); $my_fax['AREA_CODE'] = htmlentities($my_fax['AREA_CODE'], ENT_QUOTES, "UTF-8"); $session = getSession(); $session['faxlistStatus'] = $my_fax['STATUS']; putSession($session); //contiene los elementos del formulario $arrForm = createForm(); $oForm = new paloForm($smarty, $arrForm); $html = $oForm->fetchForm("{$local_templates_dir}/form.tpl", _tr('extension'), $my_fax); $contenidoModulo = "<div><form method='POST' style='margin-bottom:0;' name='{$module_name}' id='{$module_name}' action='?menu={$module_name}'>" . $html . "</form></div>"; return $contenidoModulo; }
<?php include_once __DIR__ . '/common.php'; include_once SRC_DIR . '/template.php'; return function (array $request) { if (currentUser()) { return createRedirectResponse('/index.php/'); } return createResponse(render('registration/index.html.php', ['form' => createForm()])); };
deleteForm($db); } else { if (isset($_GET['deletefield']) && !empty($_GET['deletefield'])) { deleteField($db); } else { if (isset($_GET['empid']) && !empty($_GET['empid'])) { pullVals($db); } else { if (isset($_POST['addField']) && !empty($_POST['addField'])) { updateForm($db); } else { if (isset($_POST['input']) && !empty($_POST['input'])) { editEmployee($db); } else { if (isset($_POST['formData']) && !empty($_POST['formData'])) { createForm($db); } else { if (isset($_POST['allVals']) && !empty($_POST['allVals'])) { submitUserCreatedForm($db); } else { if (isset($_POST) && !empty($_POST)) { deleteEmployee($db); } else { echo json_encode("There is no post and somehow you are here."); } } } } } } }
function listParameterFaxMail($smarty, $module_name, $local_templates_dir, $pDB, $credentials) { $arrData = array(); $oFax = new paloFax($pDB); global $arrPermission; $smarty->assign("EDIT", in_array('edit', $arrPermission)); if (getParameter("submit_apply_change")) { $arrParameterFaxMail = $_POST; } else { $arrParameterFaxMail = $oFax->getConfigurationSendingFaxMailOrg($credentials['id_organization']); if ($arrParameterFaxMail === false) { $smarty->assign("mb_title", "ERROR"); $smarty->assign("mb_message", "An error has ocurred to retrieved email fax configutaion"); } } // Definición del formulario $smarty->assign("REQUIRED_FIELD", _tr("Required field")); $smarty->assign("CANCEL", _tr("Cancel")); $smarty->assign("APPLY_CHANGES", _tr("Apply changes")); $smarty->assign("SAVE", _tr("Save")); $smarty->assign("EDIT", _tr("Edit")); $smarty->assign("EDIT_PARAMETERS", _tr("Edit Parameters")); $smarty->assign("icon", "web/apps/{$module_name}/images/fax_email_template.png"); $arrFaxConfig = createForm(); $oForm = new paloForm($smarty, $arrFaxConfig); if (getParameter("submit_apply_change") || getParameter("submit_edit")) { $oForm->setEditMode(); } else { $oForm->setViewMode(); } return $oForm->fetchForm("{$local_templates_dir}/parameterFaxMail.tpl", _tr("Configuration Sending Fax Mail"), $arrParameterFaxMail); }
function init() { global $wgOut; $wgOut->addModules('ext.InitialFacebookImport'); $wgOut->addHTML(createForm()); }
function showVacationSettings($smarty, $module_name, $local_templates_dir, &$pDB, $arrConf) { global $arrCredentials; $email = $_SESSION['elastix_user']; $pVacations = new paloMyVacation($pDB, $arrCredentials['idUser']); $objAntispam = new paloSantoAntispam($arrConf['path_postfix'], $arrConf['path_spamassassin'], $arrConf['file_master_cf'], $arrConf['file_local_cf']); $statusSieve = $pVacations->verifySieveStatus(); if (!$statusSieve['response']) { $smarty->assign("MSG_ERROR_FIELD", $statusSieve['message']); } if (getParameter('action') == 'save') { $my_vacation = $_POST; } else { $my_vacation = $pVacations->getVacationByUser(); } if ($my_vacation == false) { $smarty->assign("MSG_ERROR_FIELD", $pVacations->getErrorMsg()); } elseif ($my_vacation == "default-vacation") { $my_vacation = array(); $my_vacation[_tr('FROM')] = date('Y-m-d'); $my_vacation[_tr('TO')] = date('Y-m-d'); $my_vacation['EMAIL_ADDRESS'] = $_SESSION['elastix_user']; $my_vacation['EMAIL_SUBJECT'] = "Auto-Reply: Out of the office"; $my_vacation['EMAIL_CONTENT'] = "I will be out of the office until {END_DATE}. \n\n----\nBest Regards."; } else { $my_vacation[_tr('FROM')] = $my_vacation['init_date']; $my_vacation[_tr('TO')] = $my_vacation['end_date']; $my_vacation['EMAIL_ADDRESS'] = $_SESSION['elastix_user']; $my_vacation['EMAIL_SUBJECT'] = htmlentities($my_vacation['email_subject'], ENT_QUOTES, "UTF-8"); $my_vacation['EMAIL_CONTENT'] = htmlentities($my_vacation['email_body'], ENT_QUOTES, "UTF-8"); } $smarty->assign("PERIOD_LABEL", _tr("Period:")); $smarty->assign("STATUS_LABEL", _tr("Status:")); $smarty->assign("FAX_EMAIL_SETTINGS", _tr("Fax email settings")); //contiene los elementos del formulario $arrForm = createForm(); $oForm = new paloForm($smarty, $arrForm); $html = $oForm->fetchForm("{$local_templates_dir}/form.tpl", _tr('vacation'), $my_vacation); $contenidoModulo = "<div><form method='POST' style='margin-bottom:0;' name='{$module_name}' id='{$module_name}' action='?menu={$module_name}'>" . $html . "</form></div>"; return $contenidoModulo; }
</table> <table border="0" cellpadding="0" cellspacing="0" width="700"> <?php if (strlen($errMsg) > 0) { ?> <tr> <td><?php echo $errMsg; ?> </td> </tr> <?php } ?> <tr> <td align="center"> <?php $fstruct = array(array("paction", "", "hidden", "insertList", false), array("filterDate", "", "hidden", $filter_date, false), array("list_type", "List Type", "radio", array(array(0, "Private List", false), array(1, "Public List", true)), true), array("list_title", "List Title", "text", $ltitle_in, true), array("list_description", "List Description", "textarea", $ldesc_in, true)); createForm($fstruct, "field", "addList", "lists.php", true, "Create List", ""); ?> </td> </tr> </table> </td> </tr> </table> <?php WriteFooter(); $application->save();
<td align="center"> <?php writeAllNews(); ?> </td> <td></td> </tr> <tr><td colspan="3"><br></td></tr> <tr> <td width="25" background="images/section.header.bg.gif"><img height="32" width="25" src="images/section.header.w.gif"></td> <td width="700" background="images/section.header.bg.gif"> <span class="boldWhiteMediumText"> Create A News Column </span> </td> <td width="25"><img border="0" height="32" width="25" src="images/section.header.e.gif"></td> </tr> <tr> <td align="center" colspan="3"> <?php $fstruct = array(array("paction", "", "hidden", "insertNewsColumn", false), array("column_title", "Title", "text", "", true), array("column_description", "Description", "textarea", "", true)); createForm($fstruct, "field", "addList", "view_news.php", true, "Create Column", ""); ?> </td> </tr> </table> <?php WriteFooter(); $application->save();