OSDN Git Service

aa775ae431896106e7753272a96bfe732cfe6aef
[trpgtools-onweb/cake-frame.git] / app / views / site_configs / admin_edit.ctp
1 <script type="text/javascript">
2 $(function() {
3         $("#siteConfigTabs").tabs();
4 });
5 </script>
6
7 <div class="siteConfigs form">
8
9 <div id="siteConfigTabs">
10
11 <ul class="tabs">
12 <li><?php echo $html->link(__('Basic', true), "#basic", array('onclick' => 'return false;')) ?></li>
13 <li><?php echo $html->link(__('Information', true), "#info", array('onclick' => 'return false;')) ?></li>
14 <li><?php echo $html->link(__('Upload', true), "#upload", array('onclick' => 'return false;')) ?></li>
15 <li><?php echo $html->link(__('Character', true), "#character", array('onclick' => 'return false;')) ?></li>
16 <li><?php echo $html->link(__('System', true), "#system", array('onclick' => 'return false;')) ?></li>
17 </ul>
18
19
20 <div id="basic">
21 <p>
22 <?php 
23 echo $form->create('SiteConfig', array('url' => array(
24         'controller' => 'site_configs',
25         'action' => 'admin_edit',
26 )));
27 echo $token->create();
28 ?>
29 <fieldset>
30 <legend><?php __('Site Config');?></legend>
31
32 <table>
33 <tr>
34 <th><?php echo __('Site Name') ?></th>
35 <td id="Site_siteName">
36 <input name="data[SiteConfig][Site.siteName][value]" type="text" value="<?php echo $this->data['SiteConfig']['Site.siteName']['value'];?>">
37 <input name="data[SiteConfig][Site.siteName][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Site.siteName']['id'];?>">
38 </td>
39 </tr>
40 <tr>
41 <th><?php echo __('Admin Mail Address') ?></th>
42 <td id="Site_adminAddress">
43 <div class="explanation"><?php __('From Adress of the mail to send users.') ?></div>
44 <input name="data[SiteConfig][Site.adminAddress][value]" type="text" value="<?php echo $this->data['SiteConfig']['Site.adminAddress']['value'];?>">
45 <input name="data[SiteConfig][Site.adminAddress][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Site.adminAddress']['id'];?>">
46 </td>
47 </tr>
48 <tr>
49 <th><?php echo __('Outer Home URL') ?></th>
50 <td id="Site_outerHome">
51 <input name="data[SiteConfig][Site.outerHome][value]" type="text" value="<?php echo $this->data['SiteConfig']['Site.outerHome']['value'];?>">
52 <input name="data[SiteConfig][Site.outerHome][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Site.outerHome']['id'];?>">
53 </td>
54 </tr>
55 <tr>
56 <th><?php echo __('Link name of Outer Home') ?></th>
57 <td id="Site_outerHome">
58 <input name="data[SiteConfig][Site.outerHomeLinkname][value]" type="text" value="<?php echo $this->data['SiteConfig']['Site.outerHomeLinkname']['value'];?>">
59 <input name="data[SiteConfig][Site.outerHomeLinkname][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Site.outerHomeLinkname']['id'];?>">
60 </td>
61 </tr>
62
63 </table>
64 </fieldset>
65
66 <fieldset>
67 <legend><?php __('Registration');?></legend>
68
69 <table>
70 <tr>
71 <th><?php echo __('Allow New User Regist') ?></th>
72 <td id="Site_newUserRegist">
73 <div class="input radio inline">
74 <input name="data[SiteConfig][Site.newUserRegist][value]" type="radio" value="1"<?php if (!empty($this->data['SiteConfig']['Site.newUserRegist']['value'])): ?> checked="checked"<?php endif; ?>><?php __('Allow') ?>
75 <input name="data[SiteConfig][Site.newUserRegist][value]" type="radio" value="0"<?php if (empty($this->data['SiteConfig']['Site.newUserRegist']['value'])): ?> checked="checked"<?php endif; ?>><?php __('No Allow') ?>
76 </div>
77 <input name="data[SiteConfig][Site.newUserRegist][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Site.newUserRegist']['id'];?>">
78 </td>
79 </tr>
80 <tr>
81 <th><?php echo __('Regist Mail') ?></th>
82 <td id="Site_registMail">
83 <div class="input radio inline">
84 <input name="data[SiteConfig][Site.registMail][value]" type="radio" value="1"<?php if (!empty($this->data['SiteConfig']['Site.registMail']['value'])): ?> checked="checked"<?php endif; ?>><?php __('Required') ?>
85 <input name="data[SiteConfig][Site.registMail][value]" type="radio" value="0"<?php if (empty($this->data['SiteConfig']['Site.registMail']['value'])): ?> checked="checked"<?php endif; ?>><?php __('Not Required') ?>
86 </div>
87 <input name="data[SiteConfig][Site.registMail][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Site.registMail']['id'];?>">
88 </td>
89 </tr>
90
91 </table>
92 </fieldset>
93
94 <?php
95 echo $html->div('submit', 
96         '<input type="submit" value="Submit" name="data[basic_submit]">', 
97         false, false
98 );
99 ?>
100
101 </p>
102 </div>
103
104
105 <div id="info">
106 <p>
107 <fieldset>
108 <legend><?php __('Information');?></legend>
109
110 <table>
111 <tr>
112 <th><?php echo __('Site Description') ?></th>
113 <td id="Info_siteDescription">
114 <textarea name="data[SiteConfig][Info.siteDescription][value]"><?php echo $this->data['SiteConfig']['Info.siteDescription']['value'];?></textarea>
115 <input name="data[SiteConfig][Info.siteDescription][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Info.siteDescription']['id'];?>">
116 </td>
117 </tr>
118 </table>
119 </fieldset>
120
121 <?php
122 echo $html->div('submit', 
123         '<input type="submit" value="Submit" name="data[info_submit]">', 
124         false, false
125 );
126 ?>
127
128 </p>
129 </div>
130
131
132 <div id="upload">
133 <p>
134 <fieldset>
135 <legend><?php __('Image Upload');?></legend>
136
137 <table>
138 <tr>
139 <th><?php echo __('Max File Size of Upload Imagefile') ?></th>
140 <td class="sizeInput" id="Upload_imagefileFileSizeMax">
141 <input name="data[SiteConfig][Upload.imagefile.FileSizeMax][value]" type="text" value="<?php echo $this->data['SiteConfig']['Upload.imagefile.FileSizeMax']['value'];?>">kByte
142 <input name="data[SiteConfig][Upload.imagefile.FileSizeMax][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Upload.imagefile.FileSizeMax']['id'];?>"><br>
143 <?php echo $html->div('caption', __('Zero or NULL means NO LIMIT.', true)); ?>
144 </td>
145 </tr>
146 <tr>
147 <th><?php echo __('Max Size of Upload Imagefile') ?></th>
148 <td class="sizeInput" id="Upload_imagefileSizeMax">
149 <div id="Upload_imagefileWidthMax"><?php __('Width') ?> <input name="data[SiteConfig][Upload.imagefile.WidthMax][value]" type="text" value="<?php echo $this->data['SiteConfig']['Upload.imagefile.WidthMax']['value'];?>">px
150 <input name="data[SiteConfig][Upload.imagefile.WidthMax][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Upload.imagefile.WidthMax']['id'];?>"></div>
151 <div id="Upload_imagefileHeightMax"><?php __('Height') ?> <input name="data[SiteConfig][Upload.imagefile.HeightMax][value]" type="text" value="<?php echo $this->data['SiteConfig']['Upload.imagefile.HeightMax']['value'];?>">px
152 <input name="data[SiteConfig][Upload.imagefile.HeightMax][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Upload.imagefile.HeightMax']['id'];?>"></div>
153 <?php echo $html->div('caption', __('Zero or NULL means NO LIMIT.', true)); ?>
154 </td>
155 </tr>
156
157 </table>
158 </fieldset>
159
160 <?php
161 echo $html->div('submit', 
162         '<input type="submit" value="Submit" name="data[upload_submit]">', 
163         false, false
164 );
165 ?>
166
167 </p>
168 </div>
169
170
171 <div id="character">
172 <p>
173 <fieldset>
174 <legend><?php __('CharacterPicture');?></legend>
175
176 <table>
177 <tr>
178 <th><?php echo __('Max number of Pictures') ?></th>
179 <td id="Character_maxPictures" class="sizeInput">
180 <div class="explanation"><?php __('Maximum number of pictures for one character.') ?></div>
181 <div class="input text inline">
182 <input name="data[SiteConfig][Character.maxPictures][value]" type="text" value="<?php echo $this->data['SiteConfig']['Character.maxPictures']['value']; ?>">
183 </div>
184 <?php echo $html->div('caption', __('Zero or NULL means NO LIMIT.', true)); ?>
185 <input name="data[SiteConfig][Character.maxPictures][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Character.maxPictures']['id'];?>">
186 </td>
187 </tr>
188
189 <tr>
190 <th><?php echo __('Full-length View') ?></th>
191 <td id="Character_fullLengthView">
192 <div class="explanation"><?php __('Do you show the Full-length Picture on the default character sheet?') ?></div>
193 <div class="input radio inline">
194 <input name="data[SiteConfig][Character.fullLengthView][value]" type="radio" value="1"<?php if (!empty($this->data['SiteConfig']['Character.fullLengthView']['value'])): ?> checked="checked"<?php endif; ?>><?php __('Yes') ?>
195 <input name="data[SiteConfig][Character.fullLengthView][value]" type="radio" value="0"<?php if (empty($this->data['SiteConfig']['Character.fullLengthView']['value'])): ?> checked="checked"<?php endif; ?>><?php __('No') ?>
196 </div>
197 <input name="data[SiteConfig][Character.fullLengthView][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Character.fullLengthView']['id'];?>">
198 </td>
199 </tr>
200 </table>
201 </fieldset>
202
203 <?php
204 echo $html->div('submit', 
205         '<input type="submit" value="Submit" name="data[character_submit]">', 
206         false, false
207 );
208 ?>
209
210 </p>
211 </div>
212
213 <div id="system">
214 <p>
215 <fieldset>
216 <legend><?php __('System');?></legend>
217
218 <table>
219 <tr>
220 <th><?php echo __('Single System') ?></th>
221 <td id="System_singleSystem">
222 <?php echo $html->div('caption', __('Use the only one System. Make the system before setting.', true)); ?>
223 <?php echo $html->div('caption', __('Do not set it YES when there are mode than 2 systems.', true)); ?>
224 <div class="input radio inline">
225 <input name="data[SiteConfig][System.singleSystem][value]" type="radio" value="1"<?php if (!empty($this->data['SiteConfig']['System.singleSystem']['value'])): ?> checked="checked"<?php endif; ?>><?php __('Yes') ?>
226 <input name="data[SiteConfig][System.singleSystem][value]" type="radio" value="0"<?php if (empty($this->data['SiteConfig']['System.singleSystem']['value'])): ?> checked="checked"<?php endif; ?>><?php __('No') ?>
227 </div>
228 <input name="data[SiteConfig][System.singleSystem][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['System.singleSystem']['id'];?>">
229 </td>
230 </tr>
231
232 </table>
233 </fieldset>
234
235 <?php
236 echo $html->div('submit', 
237         '<input type="submit" value="Submit" name="data[system_submit]">', 
238         false, false
239 );
240 ?>
241
242 </p>
243 </div>
244
245 </div>
246 </div>
247