function mainGetTitleRecord($uuid, $table = 'md') { $rs = ''; if ($uuid != '') { $record = mainDetailAll($uuid); $rs = isset($record['data']['head']['title']) && $record['data']['head']['title'] != '' ? $record['data']['head']['title'] : ''; } return $rs; }
$request['language'] = MICKA_LANG; $request['format'] = 'text/html'; } setRecordDetail2Session(); } $dataBox = isset($_REQUEST['url']) && $_REQUEST['url'] != '' ? $csw->getDataFromURL($_REQUEST['url'], htmlspecialchars($_REQUEST['language'])) : $csw->run($csw->dirtyParams($request)); if ($ak == 'find') { setRecordsMatched2Session(); } break; //============================================================================== //============================================================================== case 'detailall': //============================================================================== $uuid = isset($_GET['uuid']) ? htmlspecialchars($_GET['uuid']) : ''; $record = mainDetailAll($uuid); $record['data']['md']['UUID'] = $uuid; break; //============================================================================== //============================================================================== case 'insert': //============================================================================== if (canAction('w') === FALSE) { require PHPINC_DIR . '/templates/403.php'; } $post = isset($_GET['standard']) && $_GET['standard'] > -1 ? $_GET : $_POST; $redirectUrl = mainInsert($post, array('edit_group' => $defaultEditGroup, 'view_group' => $defaultViewGroup)); if (is_array($redirectUrl) === TRUE) { if (isset($redirectUrl['report']) === TRUE) { setFlashMessage($redirectUrl['report'], $type = 'error'); }