function list_readAction(&$udm, $options) { global $_REQUEST; if (isset($_REQUEST['UDM_Action'])) { switch ($_REQUEST['UDM_Action']) { case 'Publish': $options = list_publish($udm, $options, $_REQUEST['id']); break; case 'Unpublish': $options = list_unpublish($udm, $options, $_REQUEST['id']); break; case 'Delete': $options = list_delete($udm, $options, $_REQUEST['id']); break; case 'Advanced_Modin': $options['show_advanced_modin'] = true; break; } } if (isset($_REQUEST['list_editlink_action'])) { $options['editlink_action'] = $_REQUEST['list_editlink_action']; } if (isset($_REQUEST['list_show_adv_modin'])) { $options['show_advanced_modin'] = true; } return $options; }
$rs->moveNext(); } if (true) { // only works with oids print "\n\t\t\t\t\ttop.elements.tableData.controls = [];\n\t\t\t\t\ttop.elements.tableData.addControl('add', 'Add New');\n\t\t\t\t\ttop.elements.tableData.addControl('delete', 'Delete');\n\t\t\t\t\ttop.elements.tableDataAdd.controls = [];\n\t\t\t\t\ttop.elements.tableDataAdd.addControl('save', 'Save', null);\n\t\t\t\t\ttop.elements.tableDataAdd.addControl('back', 'Cancel', null);\n\t\t\t\t"; } else { print "\n\t\t\t\t\ttop.elements.tableData.controls = [];\n\t\t\t\t\ttop.elements.tableDataAdd.controls = [];\n\t\t\t\t\ttop.elements.tableDataAdd.addControl('back', 'Cancel', null);\n\t\t\t\t"; } } // -- table data $sql = "SELECT oid, * FROM " . $tbl[1] . "." . $tbl[2] . " WHERE ~SEARCH~"; list_process($db, $lstParams, $sql); break; case "tableData::lst_del_records": $tbl = split("\\.", $lstParams['table']); list_delete($db, $lstParams, $tbl[1] . "." . $tbl[2], 'oid'); break; case "tableDataAdd::edit_get_data": $sql = "SELECT * FROM " . $lstParams['table'] . " WHERE oid = '" . $lstParams['req_recid'] . "'"; if ($lstParams['req_recid'] == 'null') { $sql = "SELECT null"; } edit_process($db, $lstParams, $sql); break; case "tableDataAdd::edit_save_data": $tbl = split("\\.", $lstParams['table']); edit_save($db, $lstParams, $_POST, $tbl[1] . "." . $tbl[2], 'oid'); break; default: print "alert('List command is not recognized: " . $lstParams['req_name'] . "::" . $lstParams['req_cmd'] . "');"; break;