|
@@ 170-181 (lines=12) @@
|
| 167 |
|
. "</th><th align='center'>" |
| 168 |
|
. _AM_NEWS_ACTION |
| 169 |
|
. '</th></tr>'; |
| 170 |
|
foreach ($storyarray as $autostory) { |
| 171 |
|
$topic = $autostory->topic(); |
| 172 |
|
$expire = ($autostory->expired() > 0) ? formatTimestamp($autostory->expired(), $dateformat) : ''; |
| 173 |
|
$class = ('even' === $class) ? 'odd' : 'even'; |
| 174 |
|
echo "<tr class='" . $class . "'>"; |
| 175 |
|
echo "<td align='center'><b>" |
| 176 |
|
. $autostory->storyid() |
| 177 |
|
. "</b> |
| 178 |
|
</td><td align='left'><a href='" |
| 179 |
|
. XOOPS_URL |
| 180 |
|
. '/modules/news/article.php?storyid=' |
| 181 |
|
. $autostory->storyid() |
| 182 |
|
. "'>" |
| 183 |
|
. $autostory->title() |
| 184 |
|
. "</a> |
|
@@ 339-354 (lines=16) @@
|
| 336 |
|
. "</th><th align='center'>" |
| 337 |
|
. _AM_NEWS_ACTION |
| 338 |
|
. '</th></tr>'; |
| 339 |
|
foreach ($storyarray as $eachstory) { |
| 340 |
|
$created = formatTimestamp($eachstory->created(), $dateformat); |
| 341 |
|
$expired = formatTimestamp($eachstory->expired(), $dateformat); |
| 342 |
|
$topic = $eachstory->topic(); |
| 343 |
|
// added exired value field to table |
| 344 |
|
$class = ('even' === $class) ? 'odd' : 'even'; |
| 345 |
|
echo "<tr class='" . $class . "'>"; |
| 346 |
|
echo "<td align='center'><b>" . $eachstory->storyid() . "</b> |
| 347 |
|
</td><td align='left'><a href='" . XOOPS_URL . '/modules/news/article.php?returnside=1&storyid=' . $eachstory->storyid() . "'>" . $eachstory->title() . "</a> |
| 348 |
|
</td><td align='center'>" . $topic->topic_title() . " |
| 349 |
|
</td><td align='center'><a href='" . XOOPS_URL . '/userinfo.php?uid=' . $eachstory->uid() . "'>" . $eachstory->uname() . "</a></td><td align='center' class='nw'>" . $created . "</td><td align='center' class='nw'>" . $expired . "</td><td align='center'> |
| 350 |
|
<a href='" . XOOPS_URL . '/modules/news/submit.php?returnside=1&op=edit&storyid=' . $eachstory->storyid() . "'> <img src='" . $pathIcon16 . "/edit.png' title=" . _AM_EDIT . "></a> |
| 351 |
|
<a href='" . XOOPS_URL . '/modules/news/admin/index.php?op=delete&storyid=' . $eachstory->storyid() . "'><img src='" . $pathIcon16 . "/delete.png' title='" . _AM_DELETE . "'></a>"; |
| 352 |
|
|
| 353 |
|
echo "</td></tr>\n"; |
| 354 |
|
} |
| 355 |
|
echo '</table><br>'; |
| 356 |
|
echo "<div align='right'>" . $pagenav->renderNav() . '</div><br>'; |
| 357 |
|
echo "<form action='index.php' method='get'> |