76 lines
2.4 KiB
PHP
76 lines
2.4 KiB
PHP
<?php
|
|
require_once("include/globals.php");
|
|
|
|
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
|
header("Location: /");
|
|
exit();
|
|
}
|
|
|
|
|
|
//
|
|
// Process all actions to list and edit records
|
|
//
|
|
$TitleText = "Form Actions Management";
|
|
|
|
|
|
// Start the template and output buffering
|
|
startTemplate();
|
|
$templatePageTitle = $TitleText;
|
|
|
|
|
|
// Ensure that only valid user types have access to this module
|
|
$AllowedUserTypes = array('SuperUser');
|
|
if (checkPermission($AllowedUserTypes) != 1) {
|
|
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
|
|
include "form.messages.php";
|
|
endTemplate();
|
|
exit();
|
|
}
|
|
|
|
|
|
//
|
|
// Setup generic table processing
|
|
//
|
|
$FormActionName = "form-actions";
|
|
// $TableName = "_form_actions";
|
|
// $ListTableName = "form-actions";
|
|
// $SequenceFlag = 'N';
|
|
// $DialogTitle = $TitleText;
|
|
// $SearchField = 'none';
|
|
// $CustomData = "";
|
|
//
|
|
// $YN = array(array('Y','Yes'),array('N','No'));
|
|
//
|
|
// $FormFields = array(
|
|
// array('action_name','Action Name','text',50,'required'),
|
|
// array('action_table_name','DB Table Name','text',40,'required'),
|
|
// array('action_table_load_name','DataTable Lookup Name','text',60,'optional'),
|
|
// array('action_dialog_title','Dialog Title','text',40,'required'),
|
|
// array('action_sortable_flag','Sortable','select-records',$YN,'required'),
|
|
// array('action_default_commands_flag','Default Commands','select-records',$YN,'required'),
|
|
// array('action_searchable_flag','Searchable','select-records',$YN,'required'),
|
|
// array('action_searchable_fields','Search Fields','text',40,'optional'),
|
|
// array('action_lookup_custom_data','Custom Lookup Data','text',40,'optional'),
|
|
// array('action_custom_jquery','Custom JQuery Code','textbox',80,'optional'),
|
|
// );
|
|
// $FormDefaults = array(
|
|
// array('action_sortable_flag','N'),
|
|
// array('action_default_commands_flag','Y'),
|
|
// array('action_searchable_flag','N'));
|
|
//
|
|
// $CustomJQuery = "
|
|
// $(document).on('click touch', '.edit-form-fields', function(e) {
|
|
// e.preventDefault(e);
|
|
//
|
|
// var rnum = $(this).attr('rnum');
|
|
// location.href = '/?action=formfields&formaction='+rnum;
|
|
// exit();
|
|
// });
|
|
//
|
|
// ";
|
|
|
|
include "table-edit.php";
|
|
|
|
endTemplate();
|
|
?>
|