2 * 表示データ作成用テンプレート(patTemplate)
\r
4 * LICENSE: This source file is licensed under the terms of the GNU General Public License.
\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_other.tmpl.html 6006 2013-05-17 11:06:21Z fishbone $
\r
11 * @link http://www.magic3.org
\r
13 <patTemplate:tmpl name="_widget">
\r
14 <link rel="stylesheet" href="{_ROOT_URL}/scripts/js_color_picker_v2/js_color_picker_v2.css" media="screen" />
\r
15 <script src="{_ROOT_URL}/scripts/js_color_picker_v2/color_functions.js"></script>
\r
16 <script type="text/javascript" src="{_ROOT_URL}/scripts/js_color_picker_v2/js_color_picker_v2.js"></script>
\r
17 <script type="text/javascript">
\r
19 var imageType = 0; // 画像タイプ
\r
21 function updateItem(){
\r
22 if (!window.confirm('設定を更新しますか?')) return false;
\r
23 document.main.act.value = 'update';
\r
24 document.main.submit();
\r
28 function selectImage(type)
\r
31 m3_openImageFileBrowser();
\r
34 function SetUrl(url)
\r
37 if (imageType == 0){
\r
38 $('#top_image').val(url);
\r
39 } else if (imageType == 1){
\r
40 $('#bg_image').val(url);
\r
45 m3_tableWithScrollbar('item_list', -1, 0);
\r
48 //m3_setHtmlEditor('bbs_guide');
\r
49 //m3_setHtmlEditor('bottom_message');
\r
50 m3SetWysiwygEditor('bbs_guide', 150);
\r
51 m3SetWysiwygEditor('bottom_message', 150);
\r
55 <div align="center">
\r
57 <!-- m3:ErrorMessage -->
\r
58 <form method="post" name="main">
\r
59 <input type="hidden" name="act" />
\r
60 <input type="hidden" name="task" value="other" />
\r
62 <table width="90%"><tr><td>
\r
63 <table id="item_list" class="simple-table" width="100%">
\r
66 <td class="table-headside" width="150">掲示板タイトル</td>
\r
67 <td colspan="3"><input type="text" name="bbs_title" value="{BBS_TITLE}" size="60" maxlength="100" /></td>
\r
70 <td class="table-headside">トップ画像リンク先</td>
\r
71 <td colspan="3"><input type="text" name="top_link" value="{TOP_LINK}" size="60" maxlength="100" /></td>
\r
74 <td class="table-headside">トップ画像</td>
\r
75 <td colspan="3"><input type="text" id="top_image" name="top_image" value="{TOP_IMAGE}" size="60" maxlength="100" /><input type="button" class="button" onclick="selectImage(0);" value="変更" /></td>
\r
78 <td class="table-headside">背景画像</td>
\r
79 <td colspan="3"><input type="text" id="bg_image" name="bg_image" value="{BG_IMAGE}" size="60" maxlength="100" /><input type="button" class="button" onclick="selectImage(1);" value="変更" /></td>
\r
82 <td class="table-headside">掲示板規則</td>
\r
83 <td colspan="3"><textarea name="bbs_guide">{BBS_GUIDE}</textarea></td>
\r
86 <td class="table-headside">画面下部メッセージ</td>
\r
87 <td colspan="3"><textarea name="bottom_message">{BOTTOM_MESSAGE}</textarea></td>
\r
90 <td class="table-headside">文字色</td>
\r
91 <td colspan="3"><input type="text" name="text_color" value="{TEXT_COLOR}" size="10" maxlength="10" /><input type="button" value="カラー" onclick="showColorPicker(this,document.forms[0].text_color);" /></td>
\r
94 <td class="table-headside">背景色</td>
\r
95 <td colspan="3"><input type="text" name="bg_color" value="{BG_COLOR}" size="10" maxlength="10" /><input type="button" value="カラー" onclick="showColorPicker(this,document.forms[0].bg_color);" /></td>
\r
98 <td class="table-headside">タイトルカラー</td>
\r
99 <td colspan="3"><input type="text" name="title_color" value="{TITLE_COLOR}" size="10" maxlength="10" /><input type="button" value="カラー" onclick="showColorPicker(this,document.forms[0].title_color);" /></td>
\r
102 <td class="table-headside">メニュー背景色</td>
\r
103 <td colspan="3"><input type="text" name="menu_color" value="{MENU_COLOR}" size="10" maxlength="10" /><input type="button" value="カラー" onclick="showColorPicker(this,document.forms[0].menu_color);" /></td>
\r
106 <td class="table-headside">スレッド表示部背景色</td>
\r
107 <td colspan="3"><input type="text" name="thread_color" value="{THREAD_COLOR}" size="10" maxlength="10" /><input type="button" value="カラー" onclick="showColorPicker(this,document.forms[0].thread_color);" /></td>
\r
110 <td class="table-headside">スレッド作成部背景色</td>
\r
111 <td colspan="3"><input type="text" name="makethread_color" value="{MAKETHREAD_COLOR}" size="10" maxlength="10" /><input type="button" value="カラー" onclick="showColorPicker(this,document.forms[0].makethread_color);" /></td>
\r
114 <td class="table-headside">リンク色</td>
\r
115 <td colspan="3"><input type="text" name="link_color" value="{LINK_COLOR}" size="10" maxlength="10" /><input type="button" value="カラー" onclick="showColorPicker(this,document.forms[0].link_color);" /></td>
\r
118 <td class="table-headside">リンク色(アクティブ)</td>
\r
119 <td colspan="3"><input type="text" name="alink_color" value="{ALINK_COLOR}" size="10" maxlength="10" /><input type="button" value="カラー" onclick="showColorPicker(this,document.forms[0].alink_color);" /></td>
\r
122 <td class="table-headside">リンク色(アクセス済み)</td>
\r
123 <td colspan="3"><input type="text" name="vlink_color" value="{VLINK_COLOR}" size="10" maxlength="10" /><input type="button" value="カラー" onclick="showColorPicker(this,document.forms[0].vlink_color);" /></td>
\r
126 <td class="table-headside">件名文字色</td>
\r
127 <td colspan="3"><input type="text" name="subject_color" value="{SUBJECT_COLOR}" size="10" maxlength="10" /><input type="button" value="カラー" onclick="showColorPicker(this,document.forms[0].subject_color);" /></td>
\r
130 <td class="table-headside">投稿者名文字色</td>
\r
131 <td colspan="3"><input type="text" name="name_color" value="{NAME_COLOR}" size="10" maxlength="10" /><input type="button" value="カラー" onclick="showColorPicker(this,document.forms[0].name_color);" /></td>
\r
134 <td class="table-headside">エラーメッセージ文字色</td>
\r
135 <td colspan="3"><input type="text" name="err_message_color" value="{ERR_MESSAGE_COLOR}" size="10" maxlength="10" /><input type="button" value="カラー" onclick="showColorPicker(this,document.forms[0].err_message_color);" /></td>
\r
138 <td class="table-headside">件名最大長</td>
\r
139 <td colspan="3"><input type="text" name="subject_length" value="{SUBJECT_LENGTH}" size="3" maxlength="3" onkeypress="return m3_numericKey(event,true);" /></td>
\r
142 <td class="table-headside">投稿者名最大長</td>
\r
143 <td colspan="3"><input type="text" name="name_length" value="{NAME_LENGTH}" size="2" maxlength="2" onkeypress="return m3_numericKey(event,true);" /></td>
\r
146 <td class="table-headside">emailアドレス最大長</td>
\r
147 <td colspan="3"><input type="text" name="email_length" value="{EMAIL_LENGTH}" size="2" maxlength="2" onkeypress="return m3_numericKey(event,true);" /></td>
\r
150 <td class="table-headside">投稿文最大長</td>
\r
151 <td colspan="3"><input type="text" name="message_length" value="{MESSAGE_LENGTH}" size="4" maxlength="4" onkeypress="return m3_numericKey(event,true);" /></td>
\r
154 <td class="table-headside">投稿文行長</td>
\r
155 <td colspan="3"><input type="text" name="line_length" value="{LINE_LENGTH}" size="3" maxlength="3" onkeypress="return m3_numericKey(event,true);" /></td>
\r
158 <td class="table-headside">投稿文行数</td>
\r
159 <td colspan="3"><input type="text" name="line_count" value="{LINE_COUNT}" size="2" maxlength="2" onkeypress="return m3_numericKey(event,true);" /></td>
\r
162 <td class="table-headside">レスアンカーリンク数</td>
\r
163 <td colspan="3"><input type="text" name="res_anchor_link_count" value="{RES_ANCHOR_LINK_COUNT}" size="2" maxlength="2" onkeypress="return m3_numericKey(event,true);" /></td>
\r
166 <td class="table-headside">トップ画面のスレッド最大数</td>
\r
167 <td colspan="3"><input type="text" name="thread_count" value="{THREAD_COUNT}" size="2" maxlength="2" onkeypress="return m3_numericKey(event,true);" /></td>
\r
170 <td class="table-headside">トップ画面のレス最大数</td>
\r
171 <td colspan="3"><input type="text" name="res_count" value="{RES_COUNT}" size="2" maxlength="2" onkeypress="return m3_numericKey(event,true);" /></td>
\r
174 <td class="table-headside">投稿可能なレス数の上限</td>
\r
175 <td colspan="3"><input type="text" name="thread_res" value="{THREAD_RES}" size="4" maxlength="4" onkeypress="return m3_numericKey(event,true);" /></td>
\r
178 <td class="table-headside">メニューのスレッド最大数</td>
\r
179 <td colspan="3"><input type="text" name="menu_thread_count" value="{MENU_THREAD_COUNT}" size="2" maxlength="2" onkeypress="return m3_numericKey(event,true);" /></td>
\r
182 <td class="table-headside">名前未設定時の表示名</td>
\r
183 <td colspan="3"><input type="text" name="noname_name" value="{NONAME_NAME}" size="30" maxlength="30" /></td>
\r
186 <td class="table-headside">サイト運営者名</td>
\r
187 <td colspan="3"><input type="text" name="admin_name" value="{ADMIN_NAME}" size="30" maxlength="30" /></td>
\r
190 <td class="table-headside">スレッド終了メッセージ</td>
\r
191 <td colspan="3" height="50"><textarea name="thread_end_message" style="width:100%;height:100%;">{THREAD_END_MESSAGE}</textarea></td>
\r
194 <td class="table-headside">ファイルアップロード</td>
\r
195 <td colspan="3"><input type="checkbox" name="item_required[]" {REQUIRED} /></td>
\r
201 <tr><td align="right">
\r
202 <input type="button" class="button" onclick="updateItem();" value="更新" />
\r
206 </patTemplate:tmpl>
\r