Index: temp/test-xoops.ec-cube.net/html/modules/xoopspoll/templates/xoopspoll_new.html
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/xoopspoll/templates/xoopspoll_new.html	(revision 773)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/templates/xoopspoll_new.html	(revision 773)
@@ -0,0 +1,58 @@
+<div style="padding: 15px 0;">
+	<table border="0" cellspacing="0" cellpadding="0">
+		<tr bgcolor="#2b8200">
+			<td><img src="/themes/default/img/main/title_left_top.gif" width="17" height="12" alt="" border="0"></td>
+			<td style="width:100%;"></td>
+			<td align="left"><img src="/themes/default/img/main/title_right_top.gif" width="17" height="12" alt="" border="0"></td>
+		</tr>
+		<tr>
+			<td bgcolor="#2b8200" colspan="3">
+			<table border="0" cellspacing="0" cellpadding="0">
+				<tr>
+					<td style="padding: 0 0 0 17px;"><img src="/themes/default/img/main/title_ranking.gif" width="197" height="22" alt="µ¡Ç½Í×Ë¾¥é¥ó¥­¥ó¥°" ></td>
+				</tr>
+			</table>
+			</td>
+		</tr>
+		<tr bgcolor="#2b8200">
+			<td><img src="/themes/default/img/main/title_left_bottom.gif" width="17" height="12" alt="" border="0"></td>
+			<td style="width:100%;"></td>
+			<td align="left"><img src="/themes/default/img/main/title_right_bottom.gif" width="17" height="12" alt="" border="0"></td>
+		</tr>
+	</table>
+	
+	<table border="0" cellspacing="0" cellpadding="0">
+	<form name="form1" id="form1" method="post" action="./pollnew.php">
+	<input type="hidden" name="mode" value="regist">
+		<tr><td height="20"></td></tr>
+		<tr>
+			<td bgcolor="#cccccc">
+			<table border="0" cellspacing="1" cellpadding="0">
+				<tr>
+					<td class="ranking01">¥¿¥¤¥È¥ë</td>
+					<td class="ranking02"><input type="text" name="title" style="width: 99%;" /></td>
+				</tr>
+				<tr>
+					<td class="ranking01">¥«¥Æ¥´¥ê</td>
+					<td class="ranking02">
+					<select name="category_id">
+					<{html_options options=$arrCat selected=$category_id}>
+					</select>
+					</td>
+				</tr>
+				<tr>
+					<td class="ranking01">ÆâÍÆ</td>
+					<td class="ranking02"><textarea name="body" style="width: 99%; height:150px;">ÆâÍÆ¤ò¤´µ­Æþ¤¯¤À¤µ¤¤¡£</textarea></td>
+				</tr>
+				<tr>
+					<td colspan="2" align="center" class="ranking02"><input type="submit" value="Í×Ë¾¤òÄÉ²Ã¤¹¤ë" /></td>
+				</tr>
+			</table>
+			</td>
+		</tr>
+		<tr><td height="50"></td></tr>
+	</form>
+	</table>
+	
+	<div style="height: 40px;"></div>
+</div>
Index: temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollnew.php
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollnew.php	(revision 773)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollnew.php	(revision 773)
@@ -0,0 +1,63 @@
+<?php
+// $Id: pollresults.php,v 1.3 2005/09/04 20:46:12 onokazu Exp $
+//  ------------------------------------------------------------------------ //
+//                XOOPS - PHP Content Management System                      //
+//                    Copyright (c) 2000 XOOPS.org                           //
+//                       <http://www.xoops.org/>                             //
+//  ------------------------------------------------------------------------ //
+//  This program is free software; you can redistribute it and/or modify     //
+//  it under the terms of the GNU General Public License as published by     //
+//  the Free Software Foundation; either version 2 of the License, or        //
+//  (at your option) any later version.                                      //
+//                                                                           //
+//  You may not change or alter any portion of this comment or credits       //
+//  of supporting developers from this source code or any supporting         //
+//  source code which is considered copyrighted (c) material of the          //
+//  original comment or credit authors.                                      //
+//                                                                           //
+//  This program is distributed in the hope that it will be useful,          //
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
+//  GNU General Public License for more details.                             //
+//                                                                           //
+//  You should have received a copy of the GNU General Public License        //
+//  along with this program; if not, write to the Free Software              //
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
+//  ------------------------------------------------------------------------ //
+
+include "../../mainfile.php";
+include XOOPS_ROOT_PATH."/modules/xoopspoll/include/constants.php";
+include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspoll.php";
+include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspolloption.php";
+include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspolllog.php";
+include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspollrenderer.php";
+
+
+switch($_POST['mode']) {
+	case 'regist':
+		$poll_id = $_POST['poll_id'];
+		$poll = new XoopsPoll($poll_id);
+		if ( $xoopsUser ) {
+			$uid = $xoopsUser->getVar("uid");
+		} else {
+			$uid = 0;
+		}
+		$poll->vote($option_id, xoops_getenv('REMOTE_ADDR'), $uid, $_POST['rating_id'], $_POST['comment']);
+		$poll->updateCount();
+		redirect_header(XOOPS_URL."/modules/xoopspoll/pollresults.php?poll_id=".$poll_id, 1, $msg);
+		exit();
+		break;
+	default:
+		break;
+}
+
+
+$xoopsOption['template_main'] = 'xoopspoll_new.html';
+include XOOPS_ROOT_PATH."/header.php";
+
+$xoopsTpl->assign('arrStatus', $arrStatus);
+$xoopsTpl->assign('arrCat', $arrCategory);
+$xoopsTpl->assign('arrRating', $arrRating);
+
+include XOOPS_ROOT_PATH."/footer.php";
+?>
