} } ?> <input type="hidden" id="requestGenModuleId" value="<?php echo $_REQUEST['id']; ?> "> <input type="hidden" id="requestGenModuleoldTable" value="<?php echo $old_Table_name; ?> "> <?php $form = new GenerateFormField(); $values = $fpdo->from($db_table)->where('id', $_REQUEST['id'])->fetch(); $Congrats = $utils->create_gen_path($_REQUEST['table_id'], $array_steps, $array_steps_pages) . "<div class='col-sm-12'><h3 style='margin-top:130px;margin-bottom:60px;text-align:center'>" . $utils->getConstant("Publish_clause") . "</h3></div>" . '<div class="col-sm-12" style="margin-bottom:130px;text-align:center">' . '<button type="submit" class="btn btn-submit" name="saveContinue" value="saveContinue">' . $utils->getConstant("Publish_module") . '</button> ' . ' <a href="' . $pageList . '" class="btn btn-back " >' . $utils->getConstant("Close") . '</a> ' . '</div>'; $form->setColumns(); $form->setTypes($types); $form->setValues($values); $form->setRequireds($required); $form->setExtendTables($source); $form->setIdForm('genModulesTitle'); $form->setDescription($description_array); $form->setExtra($extra); $form->setClasses(''); $form->setCountCell(1); $form->setCellClassWithCount('col-sm-12'); $form->stepsModule($stepsModule); $form->setAppendToForm($Congrats); //$form->stepsModule(true, $array_steps, $array_steps_pages); $form->setBackBtn(false); $form->setSubmit(false);
<?php include "../../common/top.php"; include '../../common/header.php'; include 'config.php'; if (isset($_REQUEST) && $_REQUEST['action'] == 'Insert') { $save_ob = new saveform($db_table, $_REQUEST, $Savecols, 'id', 'ord', 'map'); $utils->redirect($pageList); } $form = new GenerateFormField(); $form->setColumns($cols); $form->setTypes($types); $form->setExtendTables($source); $form->setRequireds($required); $form->setCountCell(1); $form->setSubmit(true); $form->setAsForm(true); echo $form->getForm('Insert'); include_once '../../common/footer.php';
<? $textjs = new textext_js(); echo $textjs->get_header(); if (isset($_REQUEST) && $_REQUEST['action'] == 'Edit') { $save_ob = new saveform($db_table, $_REQUEST, $colsUpdate, 'id'); $temp_id = $_REQUEST['id']; $t_field = $temp_maker->insertTmplateFields($_REQUEST['main_html'],$_REQUEST['item_html'],$temp_id); $t_settings = $temp_maker->insertTemplateSettings($_REQUEST['main_html'],$_REQUEST['item_html'],$temp_id); $temp_maker->insertTemplateLabels($_REQUEST['main_html'],$_REQUEST['item_html']); $utils->redirect($pageList); } $form = new GenerateFormField(); $values = $fpdo->from($db_table)->where('id', $_REQUEST['id'])->fetch(); $form->setColumns($colsUpdate); $form->setTypes($types); $form->setValues($values); $form->setRequireds(); $form->setExtendTables($source); $form->setClasses(); $form->setCountCell(1); $form->setCellClassWithCount('col-sm-12'); echo $ob_roles->getUpdateRole($grp_id,$form,$module_id); include_once '../../common/footer.php'; ?>
<?php include "../../common/top.php"; include 'config.php'; $form = new GenerateFormField(); $form->setColumns($colsAdd); $form->setTypes($types); $form->setValues($values); $form->setExtendTables($_source); $form->setExtra($extra); $form->setRequireds($required); $form->setIdForm('AddNewField'); $form->setCountCell(1); $form->setSubmit(true); $form->setBackBtn(false); $form->setAsForm(true); $form->setSubMain(array('col-sm-3', 'red', 'col-sm-9')); echo $ob_roles->getInsertRole($grp_id, $form, $module_id);
$return_tabs .= '<div role="tabpane' . $i . '" class="tab-pane ' . $class . '" id="SEO' . $i . '">' . $ob_roles->getInsertRole($grp_id, $form, $module_id) . '</div>'; $i++; } $return_ul .= '</ul>'; $return_tabs .= ' </div>'; echo '<div>'; echo '<button type="button" class="btn btn-submit seosave-btn" >Save</button>'; echo $return_ul; echo $return_tabs; echo '</div>'; } else { $page_id = $_REQUEST['page_id']; $values = $fpdo->from($dbtable_seo)->where("id='{$page_id}'")->fetch(); $input = '<input type="hidden" name="page_id" id="page_id" value="' . $page_id . '">'; $form = new GenerateFormField(); $form->setColumns($cols_seo); $form->setTypes($types_seo); $form->setValues($values); $form->setExtendTables($source); $form->setRequireds($required); $form->setIdForm('seosave'); $form->setCssForm('seosave'); $form->setClasses('seosave'); $form->setCountCell(1); $form->setSubmit(true); $form->setBackBtn(false); $form->setAsForm(true); $form->setSubMain(array('col-sm-3', 'red', 'col-sm-9')); $form->setAppendToForm($input); echo $ob_roles->getInsertRole($grp_id, $form, $module_id); }
foreach ($queryFields as $field) { $fieldName = $field["title"]; array_push($colsArray, $fieldName); $typeField = $field["type"]; $typesArray[$field["title"]] = $typeField; $requiredField = $field["required"]; $requiredField != 0 ? array_push($requiredArray, $fieldName) : ""; $plusField = $field["plus"]; $plusArray[$field["title"]] = $plusField; $descriptionField = $field["description"]; $descArray[$field["title"]] = $descriptionField; $is_lang_eff = $field["is_lang_eff"]; $values[$field["title"]] = $query[0][$field["title"]]; } $form = new GenerateFormField(); $form->setColumns($colsArray); $form->setTypes($typesArray); $form->setExtendTables($source); $form->setRequireds($requiredArray); $form->setExtra($plusArray); $form->setValues($values); $form->setDescription($descArray); $form->setCountCell(1); $form->setSubmit(false); $form->setAsForm(false); $form->setBackBtn(false); $htmlForm = $form->getForm(); echo json_encode(array("success" => 1, "html" => $htmlForm, "id" => $query[0]["id"], "table" => $table_name, "fields" => implode(",", $colsArray))); } } elseif (count($query) > 0) { echo json_encode(array("success" => 0, "errorMessage" => "This widget has more than one item, So you can't edit items" . count($query)));
<?php include '../../common/header.php'; include 'config.php'; $wizard = $utils->lookupField('cms_modules', 'id', 'wizard', $_REQUEST['table_id']); if ($wizard == "") { if (isset($_REQUEST) && $_REQUEST['action'] == 'Edit') { $_REQUEST['id'] = $_REQUEST['table_id']; $save_ob = new saveform($db_table_wizard, $_REQUEST, $cols_wizard, "id", $order_field, $map_field); $utils->redirect($pageList); } $form = new GenerateFormField(); $form->setColumns($cols_wizard); $form->setTypes($type_cols_wizard); $form->setRequireds($cols_required_wizard); $form->setExtendTables(); $form->setDescription(); $form->setExtra($extra_cols_wizard); $form->setClasses(''); $form->setCountCell(1); $form->setCellClassWithCount('col-sm-12'); echo $ob_roles->getUpdateRole($grp_id, $form, $module_id); } else { ?> <style> #fieldsGroupDivs .panel .panel-heading,.connectUl.ui-sortable{cursor:move;} .placeholder { border: 1px solid green; background-color: greenyellow; -webkit-box-shadow: 0px 0px 10px #888; -moz-box-shadow: 0px 0px 10px #888;
<?php include 'config.php'; include '../../common/header.php'; if (isset($_REQUEST) && $_REQUEST['action'] == 'Insert') { $_REQUEST['lang'] = $cmsMlang; array_push($Savecols, 'lang'); $save_ob = new saveform($db_table, $_REQUEST, $Savecols); $utils->redirect($pageList); } $form = new GenerateFormField(); $form->setColumns($Savecols); $form->setTypes($types); $form->setExtendTables($source); $form->setRequireds($required); $form->setCountCell(1); $form->setSubmit(true); $form->setAsForm(true); echo $ob_roles->getInsertRole($grp_id, $form, $module_id); include_once '../../common/footer.php';