Пример #1
0
     //Make sure query is null
     setCookie('editorquery', '', time() - 3600, $clientRoot ? $clientRoot : '/');
 }
 if (!$goToMode) {
     $oArr = $occManager->getOccurMap();
     if ($oArr) {
         if (!$occId) {
             $occId = $occManager->getOccId();
         }
         $occArr = $oArr[$occId];
         if (!$collMap) {
             $collMap = $occManager->getCollMap();
         }
     }
 } elseif ($goToMode == 2) {
     $occArr = $occManager->carryOverValues($_REQUEST);
 }
 if ($qryCnt !== false) {
     if ($qryCnt == 0) {
         if (!$goToMode) {
             $navStr .= '<div style="margin:20px;font-size:150%;font-weight:bold;">';
             $navStr .= 'Search returned 0 records</div>' . "\n";
         }
     } else {
         $navStr = '<b>';
         if ($occIndex > 0) {
             $navStr .= '<a href="#" onclick="return submitQueryForm(0);" title="First Record">';
         }
         $navStr .= '|&lt;';
         if ($occIndex > 0) {
             $navStr .= '</a>';