function OpenGridForm($title, $tabname) { $_retval = false; if (!OpenApp($title)) { return $_retval; } $GLOBALS['oForm'] = OpenTableEdit($tabname); $CanModify = $GLOBALS['accessRights'] == "rw"; $GLOBALS['oForm']->options["canAdd"] = $CanModify; $GLOBALS['oForm']->options["canEdit"] = $CanModify; $GLOBALS['oForm']->options["canDelete"] = $CanModify; session_set_cookie_params(60 * 60); $GLOBALS['sqltext'] = '.'; return true; }
function OpenTE($title, $tabname) { $_retval = false; if (!OpenApp($title)) { return $_retval; } $GLOBALS['oTE'] = new TableEditClass(); $GLOBALS['oTE']->SetTableName($tabname); $GLOBALS['oTE']->options["XMLprovider"] = "ricoXMLquery.php"; $CanModify = $GLOBALS['accessRights'] == "rw"; $GLOBALS['oTE']->options["canAdd"] = $CanModify; $GLOBALS['oTE']->options["canEdit"] = $CanModify; $GLOBALS['oTE']->options["canDelete"] = $CanModify; session_set_cookie_params(60 * 60); $GLOBALS['sqltext'] = '.'; return true; }