示例#1
0
 }
 //if($storyid==0 && isset($_POST['storyid'])) {
 //	$storyid=intval($_POST['storyid']);
 //}
 $story = new NewsStory($storyid);
 if (!$gperm_handler->checkRight('news_view', $story->topicid(), $groups, $module_id)) {
     redirect_header(XOOPS_URL . '/modules/news/index.php', 0, _NOPERM);
     exit;
 }
 echo "<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class=\"odd\">";
 echo '<h4>' . _AM_EDITARTICLE . '</h4>';
 $title = $story->title('Edit');
 $hometext = $story->hometext('Edit');
 $bodytext = $story->bodytext('Edit');
 $nohtml = $story->nohtml();
 $nosmiley = $story->nosmiley();
 $description = $story->description();
 $keywords = $story->keywords();
 $ihome = $story->ihome();
 $newsauthor = $story->uid();
 $topicid = $story->topicid();
 $notifypub = $story->notifypub();
 $picture = $story->picture();
 $approve = 0;
 $published = $story->published();
 if (isset($published) && $published > 0) {
     $approve = 1;
 }
 if ($story->published() != 0) {
     $published = $story->published();
 }