function announces_print($sess, $uoz, $rub, $pri, $keyword, $age) { // create header of page head_printing(); ?> <table width="720" border="0" cellspacing="0" cellpadding="3" align="center"> <?php if ($uoz != "") { // user listing of announces announces_print_selected($sess, $keyword, $age, $uoz); } elseif ($keyword != "" || $age != "") { // selected announces $agesec = Time() - $age * 24 * 3600; $agesel = "ann_date >= '{$agesec}'"; $keysel = "ann_text like '%{$keyword}%'"; $sel_keys = "{$agesel} AND {$keysel}"; @($sql_sub = mysql_query("SELECT count(ann_id) FROM uniletim_announces WHERE {$sel_keys} AND ul_group = '{$sess['4']}'")); $row_sub = mysql_fetch_row($sql_sub); if ($row_sub[0] < 20) { // listing of selected announces announces_print_selected($sess, $keyword, $age, $uoz); } else { // listing of subsections announces_print_subsections($sess, $rub, $pri, $keyword, $age); } } else { // listing of subsections announces_print_subsections($sess, $rub, $pri, $keyword, $age); } // create footer of page foot_printing($sess); }
</h25></td> </TR> <TR> <td width="360"><b><?php echo _OFFER; ?> </b></td> <td width="2" class="row"><img src="img/plocha.gif" width="0" border="0" alt="" hspace="0" vspace="0"></td> <td width="360"><b><?php echo _QUERY; ?> </b></td> </TR> <?php // listing of subsections announces_print_subsections($sub_sel, $sess); } } else { // user listing of announces announces_print_user($uoz, $sess); } ?> <tr> <td colspan="6"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><td colspan="2"><hr size="3" noshade></td></tr> </tr> <td> <b><?php $message = MySQL_Query("SELECT * FROM lets_skupiny WHERE s_id = '{$sess['4']}'") or die($query_error);