[xoops-cvslog 122] CVS update: xoops2jp/html/modules/news/include

Back to archive index

onokazu onoka****@users*****
2005年 6月 11日 (土) 11:32:48 JST


Index: xoops2jp/html/modules/news/include/storyform.inc.php
diff -u xoops2jp/html/modules/news/include/storyform.inc.php:1.2 xoops2jp/html/modules/news/include/storyform.inc.php:1.3
--- xoops2jp/html/modules/news/include/storyform.inc.php:1.2	Fri Mar 18 21:52:38 2005
+++ xoops2jp/html/modules/news/include/storyform.inc.php	Sat Jun 11 11:32:48 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: storyform.inc.php,v 1.2 2005/03/18 12:52:38 onokazu Exp $
+// $Id: storyform.inc.php,v 1.3 2005/06/11 02:32:48 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -27,6 +27,7 @@
 
 include XOOPS_ROOT_PATH."/class/xoopsformloader.php";
 $sform = new XoopsThemeForm(_NW_SUBMITNEWS, "storyform", xoops_getenv('PHP_SELF'));
+$sform->addElement(new XoopsFormToken(XoopsMultiTokenHandler::quickCreate('news_submit')));
 $sform->addElement(new XoopsFormText(_NW_TITLE, 'subject', 50, 80, $subject), true);
 ob_start();
 $xt->makeTopicSelBox(0);
@@ -36,19 +37,19 @@
 $sform->addElement(new XoopsFormDhtmlTextArea(_NW_THESCOOP, 'message', $message, 15, 60), true);
 $option_tray = new XoopsFormElementTray(_OPTIONS,'<br />');
 if ($xoopsUser) {
-	if ($xoopsConfig['anonpost'] == 1) {
-		$noname_checkbox = new XoopsFormCheckBox('', 'noname', $noname);
-		$noname_checkbox->addOption(1, _POSTANON);
-		$option_tray->addElement($noname_checkbox);
-	}
-	$notify_checkbox = new XoopsFormCheckBox('', 'notifypub', $notifypub);
-	$notify_checkbox->addOption(1, _NW_NOTIFYPUBLISH);
-	$option_tray->addElement($notify_checkbox);
-	if ($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) {
-		$nohtml_checkbox = new XoopsFormCheckBox('', 'nohtml', $nohtml);
-		$nohtml_checkbox->addOption(1, _DISABLEHTML);
-		$option_tray->addElement($nohtml_checkbox);
-	}
+    if ($xoopsConfig['anonpost'] == 1) {
+        $noname_checkbox = new XoopsFormCheckBox('', 'noname', $noname);
+        $noname_checkbox->addOption(1, _POSTANON);
+        $option_tray->addElement($noname_checkbox);
+    }
+    $notify_checkbox = new XoopsFormCheckBox('', 'notifypub', $notifypub);
+    $notify_checkbox->addOption(1, _NW_NOTIFYPUBLISH);
+    $option_tray->addElement($notify_checkbox);
+    if ($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) {
+        $nohtml_checkbox = new XoopsFormCheckBox('', 'nohtml', $nohtml);
+        $nohtml_checkbox->addOption(1, _DISABLEHTML);
+        $option_tray->addElement($nohtml_checkbox);
+    }
 }
 $smiley_checkbox = new XoopsFormCheckBox('', 'nosmiley', $nosmiley);
 $smiley_checkbox->addOption(1, _DISABLESMILEY);


xoops-cvslog メーリングリストの案内
Back to archive index