Add OK and Cancel button for grid editing
[phpmyadmin/arisferyanto.git] / setup / frames / form.inc.php
blob83cace37aaf862b5e25b47e6f6f1fc025e1120b0
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Form edit view
6 * @package PhpMyAdmin-setup
7 */
9 if (!defined('PHPMYADMIN')) {
10 exit;
13 /**
14 * Core libraries.
16 require_once './libraries/config/Form.class.php';
17 require_once './libraries/config/FormDisplay.class.php';
18 require_once './setup/lib/form_processing.lib.php';
20 require './libraries/config/setup.forms.php';
22 $formset_id = filter_input(INPUT_GET, 'formset');
23 $mode = filter_input(INPUT_GET, 'mode');
24 if (! isset($forms[$formset_id])) {
25 die(__('Incorrect formset, check $formsets array in setup/frames/form.inc.php'));
28 if (isset($GLOBALS['strConfigFormset_' . $formset_id])) {
29 echo '<h2>' . $GLOBALS['strConfigFormset_' . $formset_id] . '</h2>';
31 $form_display = new FormDisplay();
32 foreach ($forms[$formset_id] as $form_name => $form) {
33 $form_display->registerForm($form_name, $form);
35 process_formset($form_display);