function add($code = null) {
// 新規登録停止
- if (!$this->site_configs['Site.newUserRegist']['value']) {
+ if (!$this->site_configs['User.newUserRegist']['value']) {
$this->Session->setFlash(__('Unavailable Now.', true));
$this->redirect(array('action'=>'index'));
}
// メールアドレス登録必須
- if ($this->site_configs['Site.registMail']['value']) {
+ if ($this->site_configs['User.registMail']['value']) {
if (empty($code)) {
$this->redirect(array('controller' => 'regist_mails', 'action'=>'add'));
}
}
// アドレス登録必須設定
- if ($this->site_configs['Site.registMail']['value'] && !$this->isAdmin) {
+ if ($this->site_configs['User.registMail']['value'] && !$this->isAdmin) {
if (empty($registData)) {
$this->redirect(array('controller' => 'regist_mails', 'action'=>'add'));
}
$this->User->create();
if ($this->User->save($this->data, array('fieldList' => $fieldList, 'validate' => false))) {
if (!$this->isAdmin) {
- if ($this->site_configs['Site.registMail']['value']) {
+ if ($this->site_configs['User.registMail']['value']) {
if (!empty($registData)) {
$this->{$this->modelClass}->deleteRegistData4mail($registData['RegistMail']['mail']);
}
<ul class="tabs">
<li><?php echo $html->link(__('Basic', true), "#basic", array('onclick' => 'return false;')) ?></li>
+<li><?php echo $html->link(__('User Setting', true), "#user", array('onclick' => 'return false;')) ?></li>
<li><?php echo $html->link(__('Character', true), "#character", array('onclick' => 'return false;')) ?></li>
<li><?php echo $html->link(__('Upload', true), "#upload", array('onclick' => 'return false;')) ?></li>
<li><?php echo $html->link(__('Information', true), "#info", array('onclick' => 'return false;')) ?></li>
</table>
</fieldset>
+<?php
+echo $html->div('submit',
+ '<input type="submit" value="Submit" name="data[basic_submit]">',
+ array('escape' => false)
+);
+?>
+
+</p>
+</div>
+
+<div id="user">
+<p>
+
<fieldset>
<legend><?php __('Registration');?></legend>
<th><?php echo __('Allow New User Regist') ?></th>
<td id="Site_newUserRegist">
<div class="input radio inline">
-<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') ?>
-<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') ?>
+<input name="data[SiteConfig][User.newUserRegist][value]" type="radio" value="1"<?php if (!empty($this->data['SiteConfig']['User.newUserRegist']['value'])): ?> checked="checked"<?php endif; ?>><?php __('Allow') ?>
+<input name="data[SiteConfig][User.newUserRegist][value]" type="radio" value="0"<?php if (empty($this->data['SiteConfig']['User.newUserRegist']['value'])): ?> checked="checked"<?php endif; ?>><?php __('No Allow') ?>
</div>
-<input name="data[SiteConfig][Site.newUserRegist][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Site.newUserRegist']['id'];?>">
+<input name="data[SiteConfig][User.newUserRegist][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['User.newUserRegist']['id'];?>">
</td>
</tr>
<tr>
<th><?php echo __('Regist Mail') ?></th>
<td id="Site_registMail">
<div class="input radio inline">
-<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') ?>
-<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') ?>
+<input name="data[SiteConfig][User.registMail][value]" type="radio" value="1"<?php if (!empty($this->data['SiteConfig']['User.registMail']['value'])): ?> checked="checked"<?php endif; ?>><?php __('Required') ?>
+<input name="data[SiteConfig][User.registMail][value]" type="radio" value="0"<?php if (empty($this->data['SiteConfig']['User.registMail']['value'])): ?> checked="checked"<?php endif; ?>><?php __('Not Required') ?>
</div>
-<input name="data[SiteConfig][Site.registMail][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['Site.registMail']['id'];?>">
+<input name="data[SiteConfig][User.registMail][id]" type="hidden" value="<?php echo $this->data['SiteConfig']['User.registMail']['id'];?>">
</td>
</tr>
<?php
echo $html->div('submit',
- '<input type="submit" value="Submit" name="data[basic_submit]">',
+ '<input type="submit" value="Submit" name="data[user_submit]">',
array('escape' => false)
);
?>