リビジョン 04e657a7
app/Config/bootstrap.php | ||
---|---|---|
99 | 99 |
* Configures default file logging options |
100 | 100 |
*/ |
101 | 101 |
App::uses('CakeLog', 'Log'); |
102 |
App::uses( 'CakeEmail', 'Network/Email'); |
|
102 | 103 |
CakeLog::config('debug', array( |
103 | 104 |
'engine' => 'File', |
104 | 105 |
'types' => array('notice', 'info', 'debug'), |
app/Config/core.php | ||
---|---|---|
34 | 34 |
* In production mode, flash messages redirect after a time interval. |
35 | 35 |
* In development mode, you need to click the flash message to continue. |
36 | 36 |
*/ |
37 |
Configure::write('debug', 2);
|
|
37 |
Configure::write('debug',22 );
|
|
38 | 38 |
|
39 | 39 |
/** |
40 | 40 |
* Configure the Error handler used to handle errors for your application. By default |
app/Config/email.php | ||
---|---|---|
1 |
<?php |
|
2 |
/** |
|
3 |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
|
4 |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
5 |
* |
|
6 |
* Licensed under The MIT License |
|
7 |
* For full copyright and license information, please see the LICENSE.txt |
|
8 |
* Redistributions of files must retain the above copyright notice. |
|
9 |
* |
|
10 |
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
11 |
* @link http://cakephp.org CakePHP(tm) Project |
|
12 |
* @package app.Config |
|
13 |
* @since CakePHP(tm) v 2.0.0 |
|
14 |
* @license http://www.opensource.org/licenses/mit-license.php MIT License |
|
15 |
*/ |
|
16 |
|
|
17 |
/** |
|
18 |
* This is email configuration file. |
|
19 |
* |
|
20 |
* Use it to configure email transports of CakePHP. |
|
21 |
* |
|
22 |
* Email configuration class. |
|
23 |
* You can specify multiple configurations for production, development and testing. |
|
24 |
* |
|
25 |
* transport => The name of a supported transport; valid options are as follows: |
|
26 |
* Mail - Send using PHP mail function |
|
27 |
* Smtp - Send using SMTP |
|
28 |
* Debug - Do not send the email, just return the result |
|
29 |
* |
|
30 |
* You can add custom transports (or override existing transports) by adding the |
|
31 |
* appropriate file to app/Network/Email. Transports should be named 'YourTransport.php', |
|
32 |
* where 'Your' is the name of the transport. |
|
33 |
* |
|
34 |
* from => |
|
35 |
* The origin email. See CakeEmail::from() about the valid values |
|
36 |
*/ |
|
37 |
class EmailConfig { |
|
38 |
|
|
39 |
public $default = array( |
|
40 |
'transport' => 'Mail', |
|
41 |
'from' => 'you@localhost', |
|
42 |
//'charset' => 'utf-8', |
|
43 |
//'headerCharset' => 'utf-8', |
|
44 |
); |
|
45 |
|
|
46 |
public $smtp = array( |
|
47 |
'transport' => 'Smtp', |
|
48 |
'from' => array('site@localhost' => 'My Site'), |
|
49 |
'host' => 'localhost', |
|
50 |
'port' => 25, |
|
51 |
'timeout' => 30, |
|
52 |
'username' => 'user', |
|
53 |
'password' => 'secret', |
|
54 |
'client' => null, |
|
55 |
'log' => false, |
|
56 |
//'charset' => 'utf-8', |
|
57 |
//'headerCharset' => 'utf-8', |
|
58 |
); |
|
59 |
|
|
60 |
public $fast = array( |
|
61 |
'from' => 'you@localhost', |
|
62 |
'sender' => null, |
|
63 |
'to' => null, |
|
64 |
'cc' => null, |
|
65 |
'bcc' => null, |
|
66 |
'replyTo' => null, |
|
67 |
'readReceipt' => null, |
|
68 |
'returnPath' => null, |
|
69 |
'messageId' => true, |
|
70 |
'subject' => null, |
|
71 |
'message' => null, |
|
72 |
'headers' => null, |
|
73 |
'viewRender' => null, |
|
74 |
'template' => false, |
|
75 |
'layout' => false, |
|
76 |
'viewVars' => null, |
|
77 |
'attachments' => null, |
|
78 |
'emailFormat' => null, |
|
79 |
'transport' => 'Smtp', |
|
80 |
'host' => 'localhost', |
|
81 |
'port' => 25, |
|
82 |
'timeout' => 30, |
|
83 |
'username' => 'user', |
|
84 |
'password' => 'secret', |
|
85 |
'client' => null, |
|
86 |
'log' => true, |
|
87 |
//'charset' => 'utf-8', |
|
88 |
//'headerCharset' => 'utf-8', |
|
89 |
); |
|
90 |
|
|
91 |
} |
app/Controller/UsersController.php | ||
---|---|---|
9 | 9 |
class UsersController extends AppController { |
10 | 10 |
|
11 | 11 |
public $layout = 'procedure'; |
12 |
// var $name = 'users'; |
|
13 | 12 |
|
14 | 13 |
public function beforeFilter() { |
15 | 14 |
parent::beforeFilter(); |
16 |
$this->Auth->allow('add');
|
|
15 |
$this->Auth->allow('register','activate');
|
|
17 | 16 |
} |
18 | 17 |
|
19 | 18 |
/** |
... | ... | |
48 | 47 |
$this->set('user', $this->User->find('first', $options)); |
49 | 48 |
} |
50 | 49 |
|
50 |
|
|
51 |
/** |
|
52 |
* register method |
|
53 |
* |
|
54 |
* @return void |
|
55 |
*/ |
|
56 |
public function register() { |
|
57 |
if($this->request->is('post') || $this->request->is('put')){ |
|
58 |
$this->User->set($this->request->data); |
|
59 |
if($this->User->validates()){ |
|
60 |
$this->Session->write('register',$this->request->data); |
|
61 |
$this->redirect(array('action'=>'confirm')); |
|
62 |
}else{ |
|
63 |
} |
|
64 |
} |
|
65 |
|
|
66 |
// if (!empty( $this->data)){ |
|
67 |
// // 保存 |
|
68 |
// if( $this->User->set( $this->data)){ |
|
69 |
// // if( $this->User->save( $this->data)){ |
|
70 |
// // ユーザアクティベート(本登録)用URLの作成 |
|
71 |
// $url = |
|
72 |
// DS . strtolower($this->name) . // コントローラ |
|
73 |
// DS . 'activate' . // アクション |
|
74 |
// DS . $this->User->id . // ユーザID |
|
75 |
// DS . $this->User->getActivationHash(); // ハッシュ値 |
|
76 |
// $url = Router::url( $url, true); // ドメイン(+サブディレクトリ)を付与 |
|
77 |
// // メール送信 |
|
78 |
// // return |
|
79 |
// $this->redirect(array('action' => 'confirm')); |
|
80 |
// $this->Session->write('register',$this->request->data); |
|
81 |
// $this->Session->setFlash( '仮登録成功。メール送信しました。'); |
|
82 |
// } else { |
|
83 |
// // バリデーションエラーメッセージを渡す |
|
84 |
// $this->Session->setFlash( '入力エラー'); |
|
85 |
// } |
|
86 |
// } |
|
87 |
} |
|
88 |
|
|
89 |
/** |
|
90 |
* register confirm |
|
91 |
*/ |
|
92 |
public function confirm() { |
|
93 |
if($this->Session->read('register')){ |
|
94 |
$this->set('register',$this->Session->read('register')); |
|
95 |
}else{ |
|
96 |
$this->redirect(array('action'=>'register')); |
|
97 |
} |
|
98 |
} |
|
99 |
|
|
100 |
|
|
101 |
/** |
|
102 |
* register sent |
|
103 |
*/ |
|
104 |
public function sent() { |
|
105 |
// if (!empty( $this->data)){ |
|
106 |
// // 保存 |
|
107 |
if( $this->User->save($this->Session->read('register'))){ |
|
108 |
// メール送信 |
|
109 |
$this->set('register',$this->Session->read('register')); |
|
110 |
$name = $this->Session->read('register.user.login_id'); |
|
111 |
$mail = $this->Session->read('register.user.email'); |
|
112 |
// ユーザアクティベート(本登録)用URLの作成 |
|
113 |
$url = |
|
114 |
DS . 'users' . // コントローラ |
|
115 |
DS . 'activate' . // アクション |
|
116 |
DS . $this->User->id . // ユーザID |
|
117 |
DS . $this->User->getActivationHash(); // ハッシュ値 |
|
118 |
$url = Router::url( $url, true); // ドメイン(+サブディレクトリ)を付与 |
|
119 |
$comment = $url; |
|
120 |
|
|
121 |
$Email = new CakeEmail(); |
|
122 |
$Email->charset('ISO-2022-JP'); |
|
123 |
$Email->emailFormat('text'); |
|
124 |
$Email->template('user_register'); |
|
125 |
$Email->viewVars(array('name'=>$name,'comment'=>$comment)); |
|
126 |
$Email->from($mail); |
|
127 |
$Email->to('hasegawa@i-hearts.jp'); |
|
128 |
$Email->subject('[PICT CODE]問い合わせ'); |
|
129 |
$Email->send(); |
|
130 |
|
|
131 |
// return |
|
132 |
// $this->redirect(array('action' => 'confirm')); |
|
133 |
// $this->Session->setFlash( '仮登録成功。メール送信しました。'); |
|
134 |
// } else { |
|
135 |
// // バリデーションエラーメッセージを渡す |
|
136 |
// $this->Session->setFlash( '入力エラー'); |
|
137 |
// } |
|
138 |
} |
|
139 |
|
|
140 |
} |
|
141 |
|
|
142 |
/** |
|
143 |
* register activate |
|
144 |
*/ |
|
145 |
public function activate( $user_id = null, $in_hash = null) { |
|
146 |
// UserモデルにIDをセット |
|
147 |
$this->User->id = $user_id; |
|
148 |
if ($this->User->exists() && $in_hash == $this->User->getActivationHash()) { |
|
149 |
// 本登録に有効なURL |
|
150 |
// statusフィールドを0に更新 |
|
151 |
$this->User->saveField( 'status', 0); |
|
152 |
$this->Session->setFlash( 'Your account has been activated.'); |
|
153 |
}else{ |
|
154 |
// 本登録に無効なURL |
|
155 |
$this->Session->setFlash( 'Invalid activation URL'); |
|
156 |
} |
|
157 |
} |
|
158 |
|
|
51 | 159 |
/** |
52 | 160 |
* add method |
53 | 161 |
* |
... | ... | |
140 | 248 |
public function logout() { |
141 | 249 |
$this->redirect($this->Auth->logout()); |
142 | 250 |
} |
251 |
|
|
252 |
|
|
253 |
|
|
143 | 254 |
} |
255 |
|
|
256 |
|
app/Model/User.php | ||
---|---|---|
28 | 28 |
//'on' => 'create', // Limit validation to 'create' or 'update' operations |
29 | 29 |
), |
30 | 30 |
), |
31 |
'password' => array( |
|
32 |
'notBlank' => array( |
|
33 |
'rule' => array('notBlank'), |
|
34 |
//'message' => 'Your custom message here', |
|
35 |
//'allowEmpty' => false, |
|
36 |
//'required' => false, |
|
37 |
//'last' => false, // Stop validation after this rule |
|
38 |
//'on' => 'create', // Limit validation to 'create' or 'update' operations |
|
39 |
), |
|
40 |
), |
|
31 |
'email' => array( |
|
32 |
// メールアドレスであること。 |
|
33 |
'validEmail' => array( 'rule' => array( 'email', true), 'message' => 'アドレスを入力して下さい'), |
|
34 |
// 一意性チェック |
|
35 |
// 'emailExists' => array( 'rule' => 'isUnique', 'message' => '既に登録されています'), |
|
36 |
), |
|
37 |
'password' => array( |
|
38 |
// パスワード・確認用パスワードの一致 |
|
39 |
'match' => array( 'rule' => array( 'confirmPassword', 'password_confirm'), 'message' => '一致しません'), |
|
40 |
), |
|
41 |
// 'password' => array( |
|
42 |
// 'notBlank' => array( |
|
43 |
// 'rule' => array('notBlank'), |
|
44 |
// //'message' => 'Your custom message here', |
|
45 |
// //'allowEmpty' => false, |
|
46 |
// //'required' => false, |
|
47 |
// //'last' => false, // Stop validation after this rule |
|
48 |
// //'on' => 'create', // Limit validation to 'create' or 'update' operations |
|
49 |
// ), |
|
50 |
// ), |
|
41 | 51 |
'status' => array( |
42 | 52 |
'numeric' => array( |
43 | 53 |
'rule' => array('numeric'), |
... | ... | |
51 | 61 |
); |
52 | 62 |
|
53 | 63 |
|
64 |
|
|
65 |
public function confirmPassword( $field, $password_confirm) { |
|
66 |
if ($field['password'] === $this->data[$this->name][$password_confirm]) { |
|
67 |
// パスワードハッシュ化 |
|
68 |
$this->data[$this->name]['password'] = Security::hash( $plain, 'sha512', true); |
|
69 |
return true; |
|
70 |
} |
|
71 |
} |
|
72 |
|
|
73 |
public function getActivationHash() { |
|
74 |
// ユーザIDの有無確認 |
|
75 |
if (!isset($this->id)) { |
|
76 |
return false; |
|
77 |
} |
|
78 |
// 更新日時をハッシュ化 |
|
79 |
return Security::hash( $this->field('updated'), 'md5', true); |
|
80 |
} |
|
81 |
|
|
82 |
|
|
54 | 83 |
public function beforeSave($options = array()) { |
55 | 84 |
if (isset($this->data[$this->alias]['password'])) { |
56 | 85 |
$passwordHasher = new BlowfishPasswordHasher(); |
app/View/Emails/text/user_register.ctp | ||
---|---|---|
1 |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
|
2 |
このメールは、PICT CODE から配信されています |
|
3 |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
|
4 |
|
|
5 |
以下の内容で、お客様よりお問い合わせがありました。 |
|
6 |
|
|
7 |
お名前:<?php echo $name;?> |
|
8 |
|
|
9 |
お問い合わせ内容: |
|
10 |
|
|
11 |
<?php echo $comment;?> |
|
12 |
|
|
13 |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
|
14 |
PICT CODE カスタマーサポートセンター |
|
15 |
メールでのお問い合わせ: info@itkids.com |
|
16 |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
app/View/Layouts/procedure.ctp | ||
---|---|---|
19 | 19 |
<!-- Le styles --> |
20 | 20 |
<link rel="stylesheet" href="/css/bootstrap.min.css"> |
21 | 21 |
<!-- Custom CSS --> |
22 |
<link href="/css/freelancer.css" rel="stylesheet">
|
|
22 |
<!-- <link href="/css/freelancer.css" rel="stylesheet"> -->
|
|
23 | 23 |
<link href = "/css/main.css" rel="stylesheet"> |
24 | 24 |
<!-- <link href="/css/pictcode/bootstrap/bootstrap.css" rel="stylesheet" > --> |
25 | 25 |
<link href="/css/jquery-ui.min.css" rel="stylesheet" > |
... | ... | |
47 | 47 |
<a href=""><img class="header_button right" type="button" src="/img/btn_header_014.png" alt=""></a> |
48 | 48 |
</header> |
49 | 49 |
|
50 |
<!-- メインコンテンツ --> |
|
51 |
|
|
52 |
<script type="text/javascript"> |
|
53 |
$(function(){ |
|
54 |
reviseMargin(); |
|
55 |
$(window).on("resize",reviseMargin); |
|
56 |
function reviseMargin(){ |
|
57 |
$("#contents").css({ |
|
58 |
"margin-top":$("header")[150].offsetHeight + "px", |
|
59 |
"margin-bottom": $("footer")[450].offsetHeight + "px" |
|
60 |
}); |
|
61 |
} |
|
62 |
}); |
|
63 |
</script> |
|
64 |
|
|
65 |
|
|
66 |
|
|
67 | 50 |
|
51 |
<!-- メインコンテンツ --> |
|
68 | 52 |
<div class="container"> |
69 | 53 |
|
70 | 54 |
<?php echo $this->fetch('content'); ?> |
71 | 55 |
|
72 | 56 |
</div><!-- /container --> |
73 | 57 |
|
58 |
|
|
74 | 59 |
<!-- フッター --> |
75 | 60 |
|
76 | 61 |
<footer> |
app/View/Layouts/top.ctp | ||
---|---|---|
51 | 51 |
<ul class="nav navbar-nav navbar-right"> |
52 | 52 |
<li><?php echo $this->Html->link('新規登録', array( |
53 | 53 |
'controller' => 'users', |
54 |
'action' => 'add'
|
|
54 |
'action' => 'register'
|
|
55 | 55 |
)); ?></li> |
56 | 56 |
<li><?php echo $this->Html->link('ログイン', array( |
57 | 57 |
'controller' => 'users', |
app/View/users/activate.ctp | ||
---|---|---|
1 |
<main role="main"> |
|
2 |
<article class="register"> |
|
3 |
<h2> |
|
4 |
<img src="/img/img_h1_register04.png" alt="PictCode登録 - 情報入力"> |
|
5 |
</h2> |
|
6 |
<ol> |
|
7 |
<li id="navigator01_off"></li> |
|
8 |
<li id="navigator02_off"></li> |
|
9 |
<li id="navigator03_off"></li> |
|
10 |
<li id="navigator04_on"></li> |
|
11 |
</ol> |
|
12 |
<div id="contents"> |
|
13 |
<section> |
|
14 |
<h3>登録が完了しました!</h3> |
|
15 |
<p>この度は、PictCodeにご登録いただき誠にありがとうございます。<br>PictCodeは、これからIT技術を担っていくお子様達に、プログラミングを楽しんでもらうと同時に、プログラムを組む上で必要な「計画性」と「組織性」、そして「想像力」を育むツールでもあります。プログラミングにおいて、この無限大の可能性を持つツールを用いる事で、お子様の想像力を最大限に発揮させ、さらには世界を代表するような逸材に育てていきましょう!</p> |
|
16 |
</section> |
|
17 |
|
|
18 |
|
|
19 |
<?php |
|
20 |
echo $this->Session->flash(); |
|
21 |
echo $this->Html->link( 'ログイン画面へ', '/users/login'); |
|
22 |
?> |
|
23 |
</div> |
|
24 |
<section class="button_area01"> |
|
25 |
<a href="index.html"><p class="button btn_top02"></p></a> |
|
26 |
</section> |
|
27 |
</article> |
|
28 |
</main> |
app/View/users/add.ctp | ||
---|---|---|
1 |
<div class="users form"> |
|
2 |
<?php echo $this->Form->create('User'); ?> |
|
1 |
<main role="main"> |
|
2 |
<article class="register"> |
|
3 |
<h2> |
|
4 |
<img src="/img/img_h1_register01.png" alt="PictCode登録 - 情報入力"> |
|
5 |
</h2> |
|
6 |
<ol> |
|
7 |
<li id="navigator01_on"></li> |
|
8 |
<li id="navigator02_off"></li> |
|
9 |
<li id="navigator03_off"></li> |
|
10 |
<li id="navigator04_off"></li> |
|
11 |
</ol> |
|
12 |
<p class="">PictCodeに新規登録を行います。登録の際にはご両親の付き添い、または管理のもと、お間違いのないよう入力を行ってください。</p> |
|
13 |
<div id="contents"> |
|
14 |
<?php echo $this->Form->create('User',array( |
|
15 |
'div' => false, |
|
16 |
'type'=>'post', |
|
17 |
'action'=>'signup' |
|
18 |
'inputDefaults' => array( |
|
19 |
'before' => '<dt>', |
|
20 |
'between' => '</dt><dd>', |
|
21 |
'after' => '</dd>', |
|
22 |
'wrapInput' => false, |
|
23 |
), |
|
24 |
'class' => 'well')); ?> |
|
25 |
<fieldset> |
|
26 |
<section> |
|
27 |
<dl> |
|
28 |
<?php |
|
29 |
echo |
|
30 |
'<dt><label for="">ニックネーム</label></dt> |
|
31 |
<dd>'; |
|
32 |
echo $this->Form->text('login_id', |
|
33 |
array( 'type' => 'text', |
|
34 |
'placeholder'=>'ニックネーム' |
|
35 |
)); |
|
36 |
echo |
|
37 |
'</dd> |
|
38 |
<dt><label for="">パスワード</label></dt> |
|
39 |
<dd>'; |
|
40 |
echo $this->Form->text('password', |
|
41 |
array( 'placeholder'=>'パスワード', |
|
42 |
'maxlength' => '50', |
|
43 |
'type' => 'password' |
|
44 |
)); |
|
45 |
echo |
|
46 |
'</dd> |
|
47 |
<dt><label for="">パスワード(確認用)</label></dt> |
|
48 |
<dd>'; |
|
49 |
echo $this->Form->text('password_confirm', |
|
50 |
array( 'placeholder'=>'パスワード(確認用)', |
|
51 |
'maxlength' => '50', |
|
52 |
'type' => 'password' |
|
53 |
)); |
|
54 |
echo |
|
55 |
'</dd> |
|
56 |
<dt><label for="">メールアドレス</label></dt> |
|
57 |
<dd>'; |
|
58 |
echo $this->Form->text( 'username', array( 'maxlength' => '255', 'type' => 'email')); |
|
59 |
|
|
60 |
|
|
61 |
$this->Form->input('user_flg',1); |
|
62 |
$this->Form->input('status',1); |
|
63 |
?> |
|
64 |
</dl> |
|
65 |
</section> |
|
66 |
</fieldset> |
|
67 |
<?php //echo $this->Form->end(__('Submit')); ?> |
|
68 |
<?php echo $this->Form->end('Register'); ?> |
|
69 |
</div> |
|
70 |
<section class="button_area01"> |
|
71 |
<a href="index.html"><p class="button btn_back01"></p></a> |
|
72 |
<a href="register_check.html"><p class="button btn_check01"></p></a> |
|
73 |
</section> |
|
74 |
</article> |
|
75 |
</main> |
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
<!-- <div class="users form"> |
|
83 |
<?php //echo $this->Form->create('User'); ?> |
|
3 | 84 |
<fieldset> |
4 |
<legend><?php echo __('Add User'); ?></legend> |
|
85 |
<legend><?php //echo __('Add User'); ?></legend>
|
|
5 | 86 |
<?php |
6 |
echo $this->Form->input('login_id',array( 'type' => 'text')); |
|
7 |
echo $this->Form->input('password'); |
|
8 |
echo $this->Form->input('user_flg'); |
|
9 |
echo $this->Form->input('status', array( |
|
10 |
'options' => array('0' => 'Active', '1' => 'expire'))); |
|
87 |
//echo $this->Form->input('login_id',array( 'type' => 'text'));
|
|
88 |
//echo $this->Form->input('password');
|
|
89 |
//echo $this->Form->input('user_flg');
|
|
90 |
//echo $this->Form->input('status', array(
|
|
91 |
//'options' => array('0' => 'Active', '1' => 'expire')));
|
|
11 | 92 |
?> |
12 | 93 |
</fieldset> |
13 |
<?php echo $this->Form->end(__('Submit')); ?> |
|
14 |
</div> |
|
94 |
<?php //echo $this->Form->end(__('Submit')); ?>
|
|
95 |
</div> -->
|
|
15 | 96 |
<!-- <div class="actions"> |
16 | 97 |
<h3><?php //echo __('Actions'); ?></h3> |
17 | 98 |
<ul> |
app/View/users/confirm.ctp | ||
---|---|---|
1 |
<main role="main"> |
|
2 |
<article class="register"> |
|
3 |
<h2> |
|
4 |
<img src="/img/img_h1_register02.png" alt="PictCode登録 - 情報入力"> |
|
5 |
</h2> |
|
6 |
<ol> |
|
7 |
<li id="navigator01_off"></li> |
|
8 |
<li id="navigator02_on"></li> |
|
9 |
<li id="navigator03_off"></li> |
|
10 |
<li id="navigator04_off"></li> |
|
11 |
</ol> |
|
12 |
<p class="">PictCodeに新規登録を行います。登録の際にはご両親の付き添い、または管理のもと、お間違いのないよう入力を行ってください。</p> |
|
13 |
<div id="contents"> |
|
14 |
<section> |
|
15 |
<dl> |
|
16 |
<dt><label for="">ニックネーム</label></dt> |
|
17 |
<dd><p><?php echo $register['User']['login_id'];?></p></dd> |
|
18 |
<dt><label for="">パスワード</label></dt> |
|
19 |
<dd><p><?php echo $register['User']['password'];?></p></dd> |
|
20 |
<dt><label for="">メールアドレス</label></dt> |
|
21 |
<dd><p><?php echo $register['User']['email'];?></p></dd> |
|
22 |
<!-- <dt><label for="">キャプチャコード</label></dt> |
|
23 |
<dd><p><?php //echo data[User][email];?></p></dd> |
|
24 |
--> </dl> |
|
25 |
</section> |
|
26 |
</div> |
|
27 |
<section class="button_area01"> |
|
28 |
<a href="register.html"><p class="button btn_alter01"></p></a> |
|
29 |
<a href="/users/sent"><p class="button btn_register"></p></a> |
|
30 |
</section> |
|
31 |
</article> |
|
32 |
</main> |
app/View/users/register.ctp | ||
---|---|---|
1 |
<main role="main"> |
|
2 |
<article class="register"> |
|
3 |
<h2> |
|
4 |
<img src="/img/img_h1_register01.png" alt="PictCode登録 - 情報入力"> |
|
5 |
</h2> |
|
6 |
<ol> |
|
7 |
<li id="navigator01_on"></li> |
|
8 |
<li id="navigator02_off"></li> |
|
9 |
<li id="navigator03_off"></li> |
|
10 |
<li id="navigator04_off"></li> |
|
11 |
</ol> |
|
12 |
<p class="">PictCodeに新規登録を行います。登録の際にはご両親の付き添い、または管理のもと、お間違いのないよう入力を行ってください。</p> |
|
13 |
<div id="contents"> |
|
14 |
<?php echo $this->Form->create('User',array( |
|
15 |
'div' => false, |
|
16 |
'type'=>'post', |
|
17 |
//action'=>'register', |
|
18 |
)); ?> |
|
19 |
<fieldset> |
|
20 |
<section> |
|
21 |
<dl> |
|
22 |
<?php |
|
23 |
echo |
|
24 |
'<dt><label for="">ニックネーム</label></dt> |
|
25 |
<dd>'; |
|
26 |
echo $this->Form->text('login_id', |
|
27 |
array( 'type' => 'text', |
|
28 |
'placeholder'=>'ニックネーム' |
|
29 |
)); |
|
30 |
echo |
|
31 |
'</dd> |
|
32 |
<dt><label for="">パスワード</label></dt> |
|
33 |
<dd>'; |
|
34 |
echo $this->Form->text('password', |
|
35 |
array( 'placeholder'=>'パスワード', |
|
36 |
'maxlength' => '50', |
|
37 |
'type' => 'password' |
|
38 |
)); |
|
39 |
echo |
|
40 |
'</dd> |
|
41 |
<dt><label for="">パスワード(確認用)</label></dt> |
|
42 |
<dd>'; |
|
43 |
echo $this->Form->text('password_confirm', |
|
44 |
array( 'placeholder'=>'パスワード(確認用)', |
|
45 |
'maxlength' => '50', |
|
46 |
'type' => 'password' |
|
47 |
)); |
|
48 |
echo |
|
49 |
'</dd> |
|
50 |
<dt><label for="">メールアドレス</label></dt> |
|
51 |
<dd>'; |
|
52 |
echo $this->Form->text( 'email', array('placeholder'=>'メールアドレス', |
|
53 |
'maxlength' => '255', |
|
54 |
'type' => 'email')); |
|
55 |
|
|
56 |
|
|
57 |
$this->Form->input('user_flg',1); |
|
58 |
$this->Form->input('status',1); |
|
59 |
?> |
|
60 |
</dl> |
|
61 |
</section> |
|
62 |
</fieldset> |
|
63 |
<?php echo $this->Form->submit('送信する',array('class'=>'btn btn-info')); ?> |
|
64 |
<?php echo $this->Form->end(); ?> |
|
65 |
<?php //echo $this->Form->end(__('Submit')); ?> |
|
66 |
<?php //echo $this->Form->end('Register'); ?> |
|
67 |
<?php //echo $this->Form->end(); ?> |
|
68 |
</div> |
|
69 |
<section class="button_area01"> |
|
70 |
<a href="javascript:history.back();"> |
|
71 |
<p class="button btn_back01"></p> |
|
72 |
</a> |
|
73 |
<a href="/confirm"> |
|
74 |
<p class="button btn_check01"></p> |
|
75 |
</a> |
|
76 |
</section> |
|
77 |
</article> |
|
78 |
</main> |
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
<!-- <div class="users form"> |
|
86 |
<?php //echo $this->Form->create('User'); ?> |
|
87 |
<fieldset> |
|
88 |
<legend><?php //echo __('Add User'); ?></legend> |
|
89 |
<?php |
|
90 |
//echo $this->Form->input('login_id',array( 'type' => 'text')); |
|
91 |
//echo $this->Form->input('password'); |
|
92 |
//echo $this->Form->input('user_flg'); |
|
93 |
//echo $this->Form->input('status', array( |
|
94 |
//'options' => array('0' => 'Active', '1' => 'expire'))); |
|
95 |
?> |
|
96 |
</fieldset> |
|
97 |
<?php //echo $this->Form->end(__('Submit')); ?> |
|
98 |
</div> --> |
|
99 |
<!-- <div class="actions"> |
|
100 |
<h3><?php //echo __('Actions'); ?></h3> |
|
101 |
<ul> |
|
102 |
|
|
103 |
<li><?php //echo $this->Html->link(__('List Users'), array('action' => 'index')); ?></li> |
|
104 |
<li><?php //echo $this->Html->link(__('List Logins'), array('controller' => 'logins', 'action' => 'index')); ?> </li> |
|
105 |
<li><?php //echo $this->Html->link(__('New Login'), array('controller' => 'logins', 'action' => 'add')); ?> </li> |
|
106 |
<li><?php //echo $this->Html->link(__('List Programs'), array('controller' => 'programs', 'action' => 'index')); ?> </li> |
|
107 |
<li><?php //echo $this->Html->link(__('New Program'), array('controller' => 'programs', 'action' => 'add')); ?> </li> |
|
108 |
</ul> |
|
109 |
</div> |
|
110 |
--> |
app/View/users/sent.ctp | ||
---|---|---|
1 |
<main role="main"> |
|
2 |
<article class="register"> |
|
3 |
<h2> |
|
4 |
<img src="img/img_h1_register03.png" alt="PictCode登録 - 情報入力"> |
|
5 |
</h2> |
|
6 |
<ol> |
|
7 |
<li id="navigator01_off"></li> |
|
8 |
<li id="navigator02_off"></li> |
|
9 |
<li id="navigator03_on"></li> |
|
10 |
<li id="navigator04_off"></li> |
|
11 |
</ol> |
|
12 |
<div id="contents"> |
|
13 |
<section> |
|
14 |
<h3>認証メールを送信しました!</h3> |
|
15 |
<p>ご入力いただいたメールアドレス宛に、登録承認メールを送信しました。メール内に記載されてあるURLにアクセスしますと本承認が完了します。<br>万が一、メールが来ない場合は、迷惑メール処理が行われている、もしくはメールアドレスに誤りがある可能性があります。その場合には大変お手数ですが、メールアドレス等をご確認の上、再度ご登録お願い致します。</p> |
|
16 |
</section> |
|
17 |
</div> |
|
18 |
<section class="button_area01"> |
|
19 |
<a href="index.html"><p class="button btn_top01"></p></a> |
|
20 |
</section> |
|
21 |
</article> |
|
22 |
</main> |
app/View/users/user_register.ctp | ||
---|---|---|
1 |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
|
2 |
このメールは、PICT CODE から配信されています |
|
3 |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
|
4 |
|
|
5 |
以下の内容で、お客様よりお問い合わせがありました。 |
|
6 |
|
|
7 |
お名前:<?php echo $name;?> |
|
8 |
|
|
9 |
お問い合わせ内容: |
|
10 |
|
|
11 |
<?php echo $comment;?> |
|
12 |
|
|
13 |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
|
14 |
PICT CODE カスタマーサポートセンター |
|
15 |
メールでのお問い合わせ: info@itkids.com |
|
16 |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
他の形式にエクスポート: Unified diff