sql_connect(); $nau = new class_andy; $nau->sql_connect(); include($_SERVER['DOCUMENT_ROOT'] . '/inc/header.phtml'); $this_id = 0; $andy->pid = 3; $andy->ucount = 1; $andy->fid = 15; $andy->get_subunits('5', DESC, '1'); if ($andy->ucount) { $this_id = $andy->uid = $andy->units[0]; $andy->get_unit_data(); $andy->date_to_jd(intval($andy->udata['date'])); $andy->title[] = 'Свежий номер: ' . $andy->udata['name'] . ', ' . $andy->monthes_ru[$andy->month] . ' ' . $andy->year; } ?>
title[count($andy->title) - 1] ?>
Тема номера
udata['issue'] ?> udata['cover']) and @file_exists($x = 'unitsimg/' . $andy->udata['cover'])) { $ps = @getimagesize($x); if ($ps[0] and $ps[1]) { ?> udata['in'])) { $andy->data = str_replace(';;', ',', $andy->udata['in']); $andy->sql_str = 'select u.lat_name, ud.data from tblUnits u, tblUnitRels ur, tblUnitData ud where (u.unitid in (' . mysql_real_escape_string($andy->data) . ')) and (u.unitid=ud.unitid) and (ud.fieldid=1) and (u.unitid=ur.unitid) order by ur.sortorder'; $andy->sql_execute(); if (@mysql_num_rows($andy->sql_res)) { ?> В номере ulatn, $andy->data) = @mysql_fetch_array($andy->sql_res)) { ?> data ?>
Задать вопрос
Город
ФИО
E-Mail
Текст
 



pid = $this_id) { $andy->units = array(); $andy->sql_str = 'select distinct ur2.unitid, ud2.data from tblUnitRels ur1, tblUnitRels ur2, tblUnitData ud1, tblUnitData ud2, tblUnitData ud3 where (ur1.parentid=' . $andy->pid . ') and (ur1.unitid=ud1.unitid) and (ud1.fieldid=9) and (ud1.data+0=ur2.unitid) and (ur2.unitid=ud2.unitid) and (ud2.fieldid=2) and (ur1.unitid=ud3.unitid) and (ud3.fieldid=8) and (ud3.data+0=1) order by ur2.sortorder'; $andy->sql_execute(); $i = 0; while (list($andy->uid, $andy->data) = @mysql_fetch_array($andy->sql_res)) { ?>
data ?>
units = array(); $nau->sql_str = 'select ur.unitid from tblUnitRels ur, tblUnitData ud1, tblUnitData ud2 where (ur.parentid=' . $this_id . ') and (ur.unitid=ud1.unitid) and (ud1.fieldid=9) and (ud1.data+0=' . $andy->uid . ') and (ur.unitid=ud2.unitid) and (ud2.fieldid=8) and (ud2.data+0=1) order by ur.sortorder'; $nau->sql_execute(); while (list($nau->uid) = @mysql_fetch_array($nau->sql_res)) $nau->units[] = $nau->uid; if ($nau->ucount = count($nau->units)) for ($j = 0; $j < $nau->ucount; $j ++) { $nau->uid = $nau->units[$j]; $nau->get_unit_data(); $nau->get_uname(); ?> udata['title'] ?> udata['pic']) and @file_exists($x = 'unitsimg/' . $nau->udata['pic'])) { $ps = @getimagesize($x); if ($ps[0] and $ps[1]) { ?>
border="0"> udata['text'] ?>
Читать далее