OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / widgets / s / custom_footer / include / template / admin.tmpl.html
1 /**\r
2  * 表示データ作成用テンプレート(patTemplate)\r
3  *\r
4  * LICENSE: This source file is licensed under the terms of the GNU General Public License.\r
5  *\r
6  * @package    Magic3 Framework\r
7  * @author     平田直毅(Naoki Hirata) <naoki@aplo.co.jp>\r
8  * @copyright  Copyright 2006-2013 Magic3 Project.\r
9  * @license    http://www.gnu.org/copyleft/gpl.html  GPL License\r
10  * @version    SVN: $Id: admin.tmpl.html 5677 2013-02-16 09:57:01Z fishbone $\r
11  * @link       http://www.magic3.org\r
12  */\r
13 <patTemplate:tmpl name="_widget">\r
14 <script type="text/javascript">\r
15 //<![CDATA[\r
16 function updateItem(){\r
17         if (!window.confirm('設定を更新しますか?')) return false;\r
18         document.main.act.value='update';\r
19         document.main.submit();\r
20         return true;\r
21 }\r
22 $(document).ready(function(){\r
23         // WYSIWYGエディター作成\r
24         //m3_setHtmlEditor('item_content');\r
25         m3SetWysiwygEditor('item_content', 200);\r
26 });\r
27 //]]>\r
28 </script>\r
29 <div align="center">\r
30 <br />\r
31 <!-- m3:ErrorMessage -->\r
32 <form method="post" name="main">\r
33 <input type="hidden" name="act" />\r
34 <table class="simple-table" width="90%">\r
35     <tbody>\r
36         <tr>\r
37             <td class="table-head" width="100">内容</td><td width="800"><textarea name="item_content">{CONTENT}</textarea></td>\r
38         </tr>\r
39         <tr class="even">\r
40             <td colspan="2" align="right"><input type="button" class="button" onclick="updateItem();" value="更新" /></td>\r
41         </tr>\r
42     </tbody>\r
43 </table>\r
44 </form>\r
45 </div>\r
46 </patTemplate:tmpl>\r