本文整理汇总了PHP中NewsStory::storyid方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsStory::storyid方法的具体用法?PHP NewsStory::storyid怎么用?PHP NewsStory::storyid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsStory
的用法示例。
在下文中一共展示了NewsStory::storyid方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PrintPage
function PrintPage($storyid)
{
global $xoopsConfig, $xoopsModule;
$story = new NewsStory($storyid);
$datetime = formatTimestamp($story->published());
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
echo '<html><head>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=' . _CHARSET . '" />';
echo '<title>' . $xoopsConfig['sitename'] . '</title>';
echo '<meta name="AUTHOR" content="' . $xoopsConfig['sitename'] . '" />';
echo '<meta name="COPYRIGHT" content="Copyright (c) 2001 by ' . $xoopsConfig['sitename'] . '" />';
echo '<meta name="DESCRIPTION" content="' . $xoopsConfig['slogan'] . '" />';
echo '<meta name="GENERATOR" content="' . XOOPS_VERSION . '" />';
echo '<body bgcolor="#ffffff" text="#000000" onload="window.print()">
<table border="0"><tr><td align="center">
<table border="0" width="640" cellpadding="0" cellspacing="1" bgcolor="#000000"><tr><td>
<table border="0" width="640" cellpadding="20" cellspacing="1" bgcolor="#ffffff"><tr><td align="center">
<img src="' . XOOPS_URL . '/images/logo.gif" border="0" alt="" /><br /><br />
<h3>' . $story->title() . '</h3>
<small><b>' . _NW_DATE . '</b> ' . $datetime . ' | <b>' . _NW_TOPICC . '</b> ' . $story->topic_title() . '</small><br /><br /></td></tr>';
echo '<tr valign="top" style="font:12px;"><td>' . $story->hometext() . '<br />';
$bodytext = $story->bodytext();
$bodytext = str_replace("[pagebreak]", "<br style=\"page-break-after:always;\">", $bodytext);
if ($bodytext != '') {
echo $bodytext . '<br /><br />';
}
echo '</td></tr></table></td></tr></table>
<br /><br />';
printf(_NW_THISCOMESFROM, $xoopsConfig['sitename']);
echo '<br /><a href="' . XOOPS_URL . '/">' . XOOPS_URL . '</a><br /><br />
' . _NW_URLFORSTORY . ' <!-- Tag below can be used to display Permalink image --><!--img src="' . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/images/x.gif" /--><br />
<a href="' . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/article.php?storyid=' . $story->storyid() . '">' . XOOPS_URL . '/article.php?storyid=' . $story->storyid() . '</a>
</td></tr></table>
</body>
</html>
';
}
示例2: editPost
function editPost()
{
if (!$this->_checkUser($this->params[1], $this->params[2])) {
$this->response->add(new XoopsXmlRpcFault(104));
} else {
if (!($fields =& $this->_getPostFields($this->params[0]))) {
} else {
$missing = array();
foreach ($fields as $tag => $detail) {
if (!isset($this->params[3][$tag])) {
$data = $this->_getTagCdata($this->params[3]['xoops_text'], $tag, true);
if (trim($data) == '') {
if ($detail['required']) {
$missing[] = $tag;
}
} else {
$post[$tag] = $data;
}
} else {
$post[$tag] = $this->params[3][$tag];
}
}
if (count($missing) > 0) {
$msg = '';
foreach ($missing as $m) {
$msg .= '<' . $m . '> ';
}
$this->response->add(new XoopsXmlRpcFault(109, $msg));
} else {
// will be removed... don't worry if this looks bad
include_once XOOPS_ROOT_PATH . '/modules/news/class/class.newsstory.php';
$story = new NewsStory($this->params[0]);
$storyid = $story->storyid();
if (empty($storyid)) {
$this->response->add(new XoopsXmlRpcFault(106));
} elseif (!$this->_checkAdmin()) {
$this->response->add(new XoopsXmlRpcFault(111));
} else {
$story->setTitle(addslashes(trim($post['title'])));
if (isset($post['moretext'])) {
$story->setBodytext(addslashes(trim($post['moretext'])));
}
if (!isset($post['hometext'])) {
$story->setHometext(addslashes(trim($this->params[3]['xoops_text'])));
} else {
$story->setHometext(addslashes(trim($post['hometext'])));
}
if ($this->params[4]) {
$story->setApproved(true);
$story->setPublished(time());
}
$story->setTopicalign('R');
if (!$story->store()) {
$this->response->add(new XoopsXmlRpcFault(106));
} else {
$this->response->add(new XoopsXmlRpcBoolean(true));
}
}
}
}
}
}
示例3: b_news_top_show
//.........这里部分代码省略.........
$tabs[] = array('id' => 0, 'title' => _MB_NEWS_SPOTLIGHT_TITLE);
}
if (count($topics) > 0) {
foreach ($topics as $onetopic) {
if (isset($topicstitles[$onetopic])) {
$tabs[] = array('id' => $onetopic, 'title' => $topicstitles[$onetopic]['title'], 'picture' => $topicstitles[$onetopic]['picture']);
}
}
}
$block['tabs'] = $tabs;
$block['current_is_spotlight'] = false;
$block['current_tab'] = $currenttab;
$block['use_rating'] = $newsrating;
if ($currenttab == 0 && $usespotlight) {
// Spotlight or not ?
$block['current_is_spotlight'] = true;
if ($options[5] == 0 && $options[6] == 0) {
// If the story to use was no selected then we switch to the "recent news" mode.
$options[5] = 1;
}
if ($options[5] == 0) {
// Use a specific news
if (!isset($permstory)) {
$tmpstory->NewsStory($options[6]);
} else {
$tmpstory = $permstory;
}
} else {
// Use the most recent news
$stories = array();
$stories = $tmpstory->getAllPublished(1, 0, $restricted, 0, 1, true, $options[0]);
if (count($stories) > 0) {
$firststory = $stories[0];
$tmpstory->NewsStory($firststory->storyid());
} else {
$block['use_spotlight'] = false;
}
}
$spotlight = array();
$spotlight['title'] = $tmpstory->title();
if ($options[7] != '') {
$spotlight['image'] = sprintf("<a href='%s'>%s</a>", XOOPS_URL . '/modules/news/article.php?storyid=' . $tmpstory->storyid(), $myts->displayTarea($options[7], $tmpstory->nohtml));
}
$spotlight['text'] = $tmpstory->hometext();
// Added 16 february 2007 *****************************************
$story_user = null;
$story_user = new XoopsUser($tmpstory->uid());
if (is_object($story_user)) {
$spotlight['avatar'] = XOOPS_UPLOAD_URL . '/' . $story_user->getVar('user_avatar');
}
// ****************************************************************
$spotlight['id'] = $tmpstory->storyid();
$spotlight['date'] = formatTimestamp($tmpstory->published(), $dateformat);
$spotlight['hits'] = $tmpstory->counter();
$spotlight['rating'] = number_format($tmpstory->rating(), 2);
$spotlight['votes'] = $tmpstory->votes();
if (strlen(xoops_trim($tmpstory->bodytext())) > 0) {
$spotlight['read_more'] = true;
} else {
$spotlight['read_more'] = false;
}
$spotlight['readmore'] = sprintf("<a href='%s'>%s</a>", XOOPS_URL . '/modules/news/article.php?storyid=' . $tmpstory->storyid(), _MB_READMORE);
$spotlight['title_with_link'] = sprintf("<a href='%s'>%s</a>", XOOPS_URL . '/modules/news/article.php?storyid=' . $tmpstory->storyid(), $tmpstory->title());
if ($tmpstory->votes() == 1) {
$spotlight['number_votes'] = _NW_ONEVOTE;
} else {
示例4: formatTimestamp
$tpl->assign('channel_desc', xoops_utf8_encode(htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES)));
$tpl->assign('channel_lastbuild', formatTimestamp(time(), 'rss'));
$tpl->assign('channel_webmaster', checkEmail($xoopsConfig['adminmail'], true));
// Fed up with spam
$tpl->assign('channel_editor', checkEmail($xoopsConfig['adminmail'], true));
// Fed up with spam
$tpl->assign('channel_category', 'News');
$tpl->assign('channel_generator', 'XOOPS');
$tpl->assign('channel_language', _LANGCODE);
$tpl->assign('image_url', XOOPS_URL . '/images/logo.gif');
$dimention = getimagesize(XOOPS_ROOT_PATH . '/images/logo.gif');
if (empty($dimention[0])) {
$width = 88;
} else {
$width = $dimention[0] > 144 ? 144 : $dimention[0];
}
if (empty($dimention[1])) {
$height = 31;
} else {
$height = $dimention[1] > 400 ? 400 : $dimention[1];
}
$tpl->assign('image_width', $width);
$tpl->assign('image_height', $height);
$count = $sarray;
foreach ($sarray as $story) {
//$tpl->append('items', array('title' => xoops_utf8_encode(htmlspecialchars($story->title(), ENT_QUOTES)), 'link' => XOOPS_URL.'/modules/news/article.php?storyid='.$story->storyid(), 'guid' => XOOPS_URL.'/modules/news/article.php?storyid='.$story->storyid(), 'pubdate' => formatTimestamp($story->published(), 'rss'), 'description' => xoops_utf8_encode($myts->undoHtmlSpecialChars($story->hometext(), ENT_QUOTES))));
$tpl->append('items', array('title' => xoops_utf8_encode(htmlspecialchars($story->title(), ENT_QUOTES)), 'link' => XOOPS_URL . '/modules/news/article.php?storyid=' . $story->storyid(), 'guid' => XOOPS_URL . '/modules/news/article.php?storyid=' . $story->storyid(), 'pubdate' => formatTimestamp($story->published(), 'rss'), 'description' => xoops_utf8_encode(htmlspecialchars($story->hometext(), ENT_QUOTES))));
}
}
}
$tpl->display('db:system_rss.html');
示例5: array
$story->setNotifyPub($notifypub);
$story->setType('user');
if ($xoopsModuleConfig['autoapprove'] == 1) {
$approve = 1;
$story->setApproved($approve);
$story->setPublished(time());
$story->setExpired(0);
$story->setTopicalign('R');
}
$result = $story->store();
if ($result) {
// Notification
$notification_handler =& xoops_gethandler('notification');
$tags = array();
$tags['STORY_NAME'] = $subject;
$tags['STORY_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/article.php?storyid=' . $story->storyid();
if ($xoopsModuleConfig['autoapprove'] == 1) {
$notification_handler->triggerEvent('global', 0, 'new_story', $tags);
} else {
$tags['WAITINGSTORIES_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/admin/index.php?op=newarticle';
$notification_handler->triggerEvent('global', 0, 'story_submit', $tags);
}
// If notify checkbox is set, add subscription for approve
if ($notifypub) {
include_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
$notification_handler->subscribe('story', $story->storyid(), 'approve', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE);
}
/*
if ($xoopsModuleConfig['notifysubmit'] == 1 ) {
$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
示例6: array
$story->Setpicture(basename($destname));
} else {
echo _AM_UPLOAD_ERROR . ' ' . $uploader->getErrors();
}
} else {
echo $uploader->getErrors();
}
}
}
}
$destname = '';
$result = $story->store();
if ($result) {
if ($approveprivilege && news_getmoduleoption('tags')) {
$tag_handler = xoops_getmodulehandler('tag', 'tag');
$tag_handler->updateByItem($_POST['item_tag'], $story->storyid(), $xoopsModule->getVar('dirname'), 0);
}
if (!$editmode) {
// Notification
// TODO: modifier afin qu'en cas de prépublication, la notification ne se fasse pas
$notification_handler =& xoops_gethandler('notification');
$tags = array();
$tags['STORY_NAME'] = $story->title();
$tags['STORY_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/article.php?storyid=' . $story->storyid();
// If notify checkbox is set, add subscription for approve
if ($notifypub && $approve) {
include_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
$notification_handler->subscribe('story', $story->storyid(), 'approve', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE, $xoopsModule->getVar('mid'), $story->uid());
}
if ($approve == 1) {
$notification_handler->triggerEvent('global', 0, 'new_story', $tags);
示例7: sprintf
if (is_object($xoopsUser)) {
if ($xoopsUser->isAdmin($xoopsModule->getVar('mid')) || news_getmoduleoption('authoredit') && $article->uid() == $xoopsUser->getVar('uid')) {
$isadmin = true;
$story['adminlink'] = $article->adminlink();
}
}
$story['topicid'] = $article->topicid();
$story['topic_color'] = '#' . $myts->displayTarea($article->topic_color);
$story['imglink'] = '';
$story['align'] = '';
if ($article->topicdisplay()) {
$story['imglink'] = $article->imglink();
$story['align'] = $article->topicalign();
}
$story['hits'] = $article->counter();
$story['mail_link'] = 'mailto:?subject=' . sprintf(_NW_INTARTICLE, $xoopsConfig['sitename']) . '&body=' . sprintf(_NW_INTARTFOUND, $xoopsConfig['sitename']) . ': ' . XOOPS_URL . '/modules/news/article.php?storyid=' . $article->storyid();
$xoopsTpl->assign('lang_printerpage', _NW_PRINTERFRIENDLY);
$xoopsTpl->assign('lang_sendstory', _NW_SENDSTORY);
$xoopsTpl->assign('lang_pdfstory', _NW_MAKEPDF);
$xoopsTpl->assign('lang_on', _ON);
$xoopsTpl->assign('lang_postedby', _POSTEDBY);
$xoopsTpl->assign('lang_reads', _READS);
$xoopsTpl->assign('mail_link', 'mailto:?subject=' . sprintf(_NW_INTARTICLE, $xoopsConfig['sitename']) . '&body=' . sprintf(_NW_INTARTFOUND, $xoopsConfig['sitename']) . ': ' . XOOPS_URL . '/modules/news/article.php?storyid=' . $article->storyid());
if (xoops_trim($article->picture()) != '') {
$xoopsTpl->assign('articlePicture', XOOPS_URL . '/modules/news/images/topics/' . $article->picture());
} else {
$xoopsTpl->assign('articlePicture', '');
}
$xoopsTpl->assign('lang_attached_files', _NW_ATTACHEDFILES);
$sfiles = new sFiles();
$filesarr = $newsfiles = array();
示例8: array
$story->setExpired(0);
/**/
$story->setPublished(0);
/**/
$story->setApproved(0);
/**/
//save the story
$result = $story->store();
//notify
if ($result) {
$notification_handler =& xoops_gethandler('notification');
$tags['WAITINGSTORIES_URL'] = XOOPS_URL . '/modules/news/admin/index.php?op=newarticle';
$notification_handler->triggerEvent('global', 0, 'story_submit', $tags);
$tags = array();
$tags['STORY_NAME'] = $post->getVar('subject', 'e');
$tags['STORY_URL'] = XOOPS_URL . '/modules/news/ticle.php?storyid=' . $story->storyid();
$tags['WAITINGSTORIES_URL'] = XOOPS_URL . '/modules/news/admin/index.php?op=newarticle';
$notification_handler->triggerEvent('global', 0, 'story_submit', $tags);
}
redirect_header(XOOPS_URL . '/modules/news/submit.php?op=edit&storyid=' . $story->storyid(), 3, _MD_THANKSSUBMIT);
break;
case 'form':
default:
echo "<form action='" . $_SERVER['PHP_SELF'] . "' method='post'>";
echo "<table border='0' cellpadding='1' cellspacing='0' align='center' width='95%'>";
echo "<tr>";
echo "<td align='center'><p style='margin:5px;'><h2>" . _MD_POSTTONEWS . "</h2></p>";
echo "<input type='hidden' name='post_id' value='" . $post_id . "' />";
echo "<input type='submit' name='post' value='" . _MD_SUBMIT . "' />";
echo "</td></tr></table></form>";
break;
示例9: formatTimestamp
$tpl->assign('channel_lastbuild', formatTimestamp(time(), 'rss'));
$tpl->assign('channel_webmaster', checkEmail($xoopsConfig['adminmail'], true));
// Fed up with spam
$tpl->assign('channel_editor', checkEmail($xoopsConfig['adminmail'], true));
// Fed up with spam
$tpl->assign('channel_category', htmlspecialchars($xt->topic_title(), ENT_QUOTES));
$tpl->assign('channel_generator', 'XOOPS');
$tpl->assign('channel_language', _LANGCODE);
$tpl->assign('image_url', XOOPS_URL . '/images/logo.gif');
$dimention = getimagesize(XOOPS_ROOT_PATH . '/images/logo.gif');
if (empty($dimention[0])) {
$width = 88;
} else {
$width = $dimention[0] > 144 ? 144 : $dimention[0];
}
if (empty($dimention[1])) {
$height = 31;
} else {
$height = $dimention[1] > 400 ? 400 : $dimention[1];
}
$tpl->assign('image_width', $width);
$tpl->assign('image_height', $height);
$count = $sarray;
foreach ($sarray as $story) {
$storytitle = htmlspecialchars($story->title(), ENT_QUOTES);
$description = htmlspecialchars($story->hometext(), ENT_QUOTES);
$tpl->append('items', array('title' => xoops_utf8_encode($storytitle), 'link' => XOOPS_URL . '/modules/news/article.php?storyid=' . $story->storyid(), 'guid' => XOOPS_URL . '/modules/news/article.php?storyid=' . $story->storyid(), 'pubdate' => formatTimestamp($story->published(), 'rss'), 'description' => xoops_utf8_encode($description)));
}
}
}
$tpl->display('db:news_rss.html', $topicid);
示例10: empty
$story->setTopicId($_POST['topicid']);
$story->setTitle($_POST['title']);
$story->setHometext($_POST['hometext']);
$story->setBodytext($_POST['bodytext']);
$nohtml = empty($_POST['nohtml']) ? 0 : 1;
$nosmiley = empty($_POST['nosmiley']) ? 0 : 1;
$story->setNohtml($nohtml);
$story->setNosmiley($nosmiley);
$story->setIhome($_POST['ihome']);
$story->setTopicalign($_POST['topicalign']);
$story->setTopicdisplay($_POST['topicdisplay']);
$story->store();
$notification_handler =& xoops_gethandler('notification');
$tags = array();
$tags['STORY_NAME'] = $story->title();
$tags['STORY_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/article.php?storyid=' . $story->storyid();
if (!empty($isnew)) {
$notification_handler->triggerEvent('story', $story->storyid(), 'approve', $tags);
}
$notification_handler->triggerEvent('global', 0, 'new_story', $tags);
/*
$poster = new XoopsUser($story->uid());
$subject = _AM_ARTPUBLISHED;
$message = sprintf(_AM_HELLO,$poster->uname());
$message .= "\n\n"._AM_YOURARTPUB."\n\n";
$message .= _AM_TITLEC.$story->title()."\n"._AM_URLC.XOOPS_URL."/modules/".$xoopsModule->dirname()."/article.php?storyid=".$story->storyid()."\n"._AM_PUBLISHEDC.formatTimestamp($story->published(),"m",0)."\n\n";
$message .= $xoopsConfig['sitename']."\n".XOOPS_URL."";
$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
$xoopsMailer->setToEmails($poster->getVar("email"));
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
示例11: XoopsXmlRpcFault
/**
* @param bool $respond
*
* @return array
*/
public function &getPost($respond = true)
{
if (!$this->_checkUser($this->params[1], $this->params[2])) {
$this->response->add(new XoopsXmlRpcFault(104));
} else {
// will be removed... don't worry if this looks bad
include_once XOOPS_ROOT_PATH . '/modules/news/class/class.newsstory.php';
$story = new NewsStory($this->params[0]);
$ret = array('uid' => $story->uid(), 'published' => $story->published(), 'storyid' => $story->storyid(), 'title' => $story->title('Edit'), 'hometext' => $story->hometext('Edit'), 'moretext' => $story->bodytext('Edit'));
if (!$respond) {
return $ret;
} else {
if (!$ret) {
$this->response->add(new XoopsXmlRpcFault(106));
} else {
$struct = new XoopsXmlRpcStruct();
$content = '';
foreach ($ret as $key => $value) {
switch ($key) {
case 'uid':
$struct->add('userid', new XoopsXmlRpcString($value));
break;
case 'published':
$struct->add('dateCreated', new XoopsXmlRpcDatetime($value));
break;
case 'storyid':
$struct->add('postid', new XoopsXmlRpcString($value));
$struct->add('link', new XoopsXmlRpcString(XOOPS_URL . '/modules/news/article.php?item_id=' . $value));
$struct->add('permaLink', new XoopsXmlRpcString(XOOPS_URL . '/modules/news/article.php?item_id=' . $value));
break;
case 'title':
$struct->add('title', new XoopsXmlRpcString($value));
break;
default:
$content .= '<' . $key . '>' . trim($value) . '</' . $key . '>';
break;
}
}
$struct->add('description', new XoopsXmlRpcString($content));
$this->response->add($struct);
}
}
}
return null;
}
示例12: while
$news->Setdescription('');
$news->counter = $article['counter'];
$news->setTopicId($news_topicid);
$news->setIhome($article['ihome']);
$news->setNotifyPub($article['notifypub']);
$news->story_type = $article['story_type'];
$news->setTopicdisplay($article['topicdisplay']);
$news->setTopicalign($article['topicalign']);
$news->setComments($article['comments']);
$news->rating = $article['rating'];
$news->votes = $votes['cpt'];
$approved = $article['published'] > 0 ? true : false;
$news->approved = $approved;
$news->store($approved);
echo '<br> This story was imported : ' . $news->title();
$news_newsid = $news->storyid();
// ********************
// The files
$result4 = $db->query('SELECT * FROM ' . $ams_files . ' WHERE storyid=' . $ams_newsid);
while ($file = $db->fetchArray($result4)) {
$sfile = new sFiles();
$sfile->setFileRealName($file['filerealname']);
$sfile->setStoryid($news_newsid);
$sfile->date = $file['date'];
$sfile->setMimetype($file['mimetype']);
$sfile->setDownloadname($file['downloadname']);
$sfile->counter = $file['counter'];
$sfile->store();
echo '<br> This file was imported : ' . $sfile->getDownloadname();
$news_fileid = $sfile->fileid;
}
示例13: mktime
$xoopsTpl->assign('currentyear', $fromyear);
$xoopsTpl->assign('lang_actions', _NW_ACTIONS);
$xoopsTpl->assign('lang_date', _NW_DATE);
$xoopsTpl->assign('lang_views', _NW_VIEWS);
// must adjust the selected time to server timestamp
$timeoffset = $useroffset - $xoopsConfig['server_TZ'];
$monthstart = mktime(0 - $timeoffset, 0, 0, $frommonth, 1, $fromyear);
$monthend = mktime(23 - $timeoffset, 59, 59, $frommonth + 1, 0, $fromyear);
$monthend = $monthend > time() ? time() : $monthend;
$sql = "SELECT * FROM " . $xoopsDB->prefix("stories") . " WHERE published > {$monthstart} and published < {$monthend} ORDER by published DESC";
$result = $xoopsDB->query($sql);
$count = 0;
while ($myrow = $xoopsDB->fetchArray($result)) {
$article = new NewsStory($myrow);
$story = array();
$story['title'] = "<a href='index.php?storytopic=" . $article->topicid() . "'>" . $article->topic_title() . "</a>: <a href='article.php?storyid=" . $article->storyid() . "'>" . $article->title() . "</a>";
$story['counter'] = $article->counter();
$story['date'] = formatTimestamp($article->published(), "m", $useroffset);
$story['print_link'] = 'print.php?storyid=' . $article->storyid();
$story['mail_link'] = 'mailto:?subject=' . sprintf(_NW_INTARTICLE, $xoopsConfig['sitename']) . '&body=' . sprintf(_NW_INTARTFOUND, $xoopsConfig['sitename']) . ': ' . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/article.php?storyid=' . $article->storyid();
$xoopsTpl->append('stories', $story);
$count++;
}
$xoopsTpl->assign('lang_printer', _NW_PRINTERFRIENDLY);
$xoopsTpl->assign('lang_sendstory', _NW_SENDSTORY);
$xoopsTpl->assign('lang_storytotal', sprintf(_NW_THEREAREINTOTAL, $count));
} else {
$xoopsTpl->assign('show_articles', false);
}
$xoopsTpl->assign('lang_newsarchives', _NW_NEWSARCHIVES);
include XOOPS_ROOT_PATH . "/footer.php";