- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
foreach($Articles as $art){
$id = $art['id'];
$count++;
if(isset($_GET['str'])){
$str = (int)$_GET['str'];
$mn = $number*($str-1)+1;
}else{
$str = 1;
$_GET['str'] = 1;
}
if($count == $mn){
$flag = true;
$k=5;
}
if($flag && $k!=0){
$k--;
$title = $art['title'];
$content = $art['content'];
$author = $art['author'];
$date = $art['date'];
printf("<h1>%s</h1><br /><h3 align='left'>%s</h3>%s <a href='index.php?id=articles&str=%s&nomer=%s'>Далее</a><hr /><br />",$title,$date, substr($content, 0,800),$nav, $id);
}
}