-
Notifications
You must be signed in to change notification settings - Fork 0
/
review-p.php
47 lines (43 loc) · 1.59 KB
/
review-p.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
$issue = $_GET['issue'];
/**
* Съдържание на статии от категория поезия.
*/
$articlesQuery = "Select * from `articles` where `cat` = 'poetry' and `issue` = '$issue' order by `id` DESC";
$articlesQuery = mysql_query($articlesQuery);
while($row = mysql_fetch_assoc($articlesQuery)) {
$row['text'] = nl2br($row['text']);
$row['text'] = mb_substr($row['text'], 0, 350, 'UTF-8');
$row['text'] = closetags($row['text']);
$row['link'] = "index.php?q=poetry&id=$row[id]&issue=$issue&method=full";
$articles[] = $row;
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php echo($err); ?>
<tr>
<td><div id="main-head" style="width:920px;">Поезия</div></td>
</tr>
<tr>
<td>
<div id="content">
<?php foreach($articles as $article): ?>
<div id="full-box-header"><?php echo $article['title']; ?></div>
<div id="full-box">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="285"><img src="<?php echo $article['img']; ?>" width="285" height="220" class="pic"></td>
<td><?php echo $article['text']; ?>... <br />
<a href="<?php echo $article['link']; ?>" class="text-head">[чети още]</a><br /><br /></td>
</tr>
</table>
</div>
<div id="info">
<div id="edit">Инфо:<br /><br />
Автор: <?php echo $article['author']; ?><br />Публукуване: <?php echo $article['date']; ?><br />
Последна редакция:<br /><?php echo $article['edit']; ?><br /><br />
</div></div>
<?php endforeach; ?>
</div></td>
</tr>
</table>