0){ $offset = esc($offset); if($offset) $offset--; } else $offset = 0; if ($_REQUEST['callsign']) $_SESSION['at_callsign'] = esc($_REQUEST['callsign']); if (isset($_REQUEST['reset']) && $_REQUEST['reset'] == 1){ $_SESSION['at_callsign'] = ''; die; } //post qsl type if (isset($_REQUEST['qsl_type']) && !empty($_REQUEST['qsl_type'])){ $_SESSION['qsl_type'] = $_REQUEST['qsl_type']; } if (!isset($_SESSION['qsl_type'])) $_SESSION['qsl_type'] = 'flag'; //post kill if (count($_POST) > 0) header('Location: /cb-home-at/'); if ($_SESSION['at_callsign']) $sql_pre = "select * from `logbook_at` where callsign like '%".$_SESSION['at_callsign']."%'"; else $sql_pre = "select * from `logbook_at`"; $pre = mysql_query($sql_pre); $messcount = @mysql_num_rows($pre); //main news SmartyPaginate::paging_init('offset', _SET_PAGING_LIMIT, $messcount, '/cb-home-at'); Qso::get_loogbook_at($obj, $offset, _SET_PAGING_LIMIT); if ($_SESSION['qsl_type']=='flag') $obj->assign("QSL_SELECT1", 'selected'); else $obj->assign("QSL_SELECT2", 'selected'); if ($_SESSION['at_callsign']) $obj->assign("SEARCH", $_SESSION['at_callsign']); $obj->assign("CALLSIGN_TITLE", '317 AT 118'); if($_SESSION['admin']){ $obj->assign("ADM1", ''); $obj->assign("ADM2", ''); } else{ $obj->assign("ADM1", ''); } //tpl $obj->assign("TITLE", '317AT118 - Online Logbook'); $obj->parse("MAIN_CONTEXT", ".at_table"); $obj->parse("CONTEXT", ".index"); $obj->no_strict(); //для отладки $obj->parse('result', "index"); $obj->FastPrint('result'); ?>