1 <script type="text/javascript">
3 $("#siteConfigTabs").tabs();
7 <div class="siteConfigs form">
9 <div id="siteConfigTabs">
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>
23 echo $form->create('SiteConfig', array('url' => array(
24 'controller' => 'site_configs',
25 'action' => 'admin_edit',
27 echo $token->create();
30 <legend><?php __('Site Config');?></legend>
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'];?>">
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'];?>">
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'];?>">
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'];?>">
67 <legend><?php __('Registration');?></legend>
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') ?>
77 <input name="data[SiteConfig][Site.newUserRegist][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Site.newUserRegist']['id'];?>">
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') ?>
87 <input name="data[SiteConfig][Site.registMail][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Site.registMail']['id'];?>">
95 echo $html->div('submit',
96 '<input type="submit" value="Submit" name="data[basic_submit]">',
108 <legend><?php __('Information');?></legend>
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'];?>">
122 echo $html->div('submit',
123 '<input type="submit" value="Submit" name="data[info_submit]">',
135 <legend><?php __('Image Upload');?></legend>
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)); ?>
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)); ?>
161 echo $html->div('submit',
162 '<input type="submit" value="Submit" name="data[upload_submit]">',
174 <legend><?php __('CharacterPicture');?></legend>
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']; ?>">
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'];?>">
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') ?>
197 <input name="data[SiteConfig][Character.fullLengthView][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Character.fullLengthView']['id'];?>">
204 echo $html->div('submit',
205 '<input type="submit" value="Submit" name="data[character_submit]">',
216 <legend><?php __('System');?></legend>
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') ?>
228 <input name="data[SiteConfig][System.singleSystem][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['System.singleSystem']['id'];?>">
236 echo $html->div('submit',
237 '<input type="submit" value="Submit" name="data[system_submit]">',