リビジョン ceb21f43
| app/Controller/UsersController.php | ||
|---|---|---|
| 203 | 203 |
} |
| 204 | 204 |
if ($this->request->is('post')) {
|
| 205 | 205 |
if ($this->Auth->login()) {
|
| 206 |
$this->redirect($this->Auth->redirectUrl());
|
|
| 206 |
$this->redirect('/Users/login_top');
|
|
| 207 | 207 |
} else {
|
| 208 |
$this->Flash->error(__('login error'));
|
|
| 208 |
$this->Flash->error(__('error'));
|
|
| 209 |
// $this->Flash->error(__('<section class="caution"><p>ニックネームか パスワードに<br>まちがいが あるよ!</p></section>'));
|
|
| 209 | 210 |
} |
| 210 | 211 |
} |
| 211 | 212 |
} |
| 212 | 213 |
/** |
| 213 |
* logout method |
|
| 214 |
* logout methods
|
|
| 214 | 215 |
* |
| 215 | 216 |
* @throws NotFoundException |
| 216 | 217 |
* @param string $id |
| ... | ... | |
| 221 | 222 |
} |
| 222 | 223 |
|
| 223 | 224 |
|
| 225 |
/** |
|
| 226 |
* login_top method |
|
| 227 |
* |
|
| 228 |
*/ |
|
| 229 |
public function login_top() {
|
|
| 230 |
} |
|
| 231 |
|
|
| 232 |
|
|
| 224 | 233 |
|
| 225 | 234 |
} |
| 226 | 235 |
|
| app/View/Layouts/procedure.ctp | ||
|---|---|---|
| 42 | 42 |
|
| 43 | 43 |
<body id="page-top" class="index"> |
| 44 | 44 |
<header> |
| 45 |
<a href=""><img class="header_button left" type="button" src="/img/btn_header_004.png" alt=""></a> |
|
| 45 |
<a href="/top/index"><img class="header_button left" type="button" src="/img/btn_header_004.png" alt=""></a>
|
|
| 46 | 46 |
<img class="center" src="/img/header_title.png" alt="Pict Code"> |
| 47 | 47 |
<a href=""><img class="header_button right" type="button" src="/img/btn_header_014.png" alt=""></a> |
| 48 | 48 |
</header> |
| ... | ... | |
| 60 | 60 |
<footer> |
| 61 | 61 |
<div id="wrapper"> |
| 62 | 62 |
<ul> |
| 63 |
<li><a href="aboutthis.html" alt="">PictCodeについて</a></li>
|
|
| 64 |
<li><a href="terms.html" alt="">利用規約</a></li>
|
|
| 65 |
<li><a href="privacy.html" alt="">プライバシーポリシー</a></li>
|
|
| 66 |
<li><a href="aboutus.html" alt="">運営会社情報</a></li>
|
|
| 67 |
<li><a href="contact.html" alt="">お問い合わせ</a></li>
|
|
| 63 |
<li><a href="/top/aboutthis" alt="">PictCodeについて</a></li>
|
|
| 64 |
<li><a href="/top/terms" alt="">利用規約</a></li>
|
|
| 65 |
<li><a href="/top/privacy" alt="">プライバシーポリシー</a></li>
|
|
| 66 |
<li><a href="/top/aboutus" alt="">運営会社情報</a></li>
|
|
| 67 |
<li><a href="/top/contact" alt="">お問い合わせ</a></li>
|
|
| 68 | 68 |
</ul> |
| 69 | 69 |
<a href="index.html"><img class="logo" src="/img/footer_logo01.png" alt=""></a> |
| 70 | 70 |
<hr> |
| app/View/top/index.ctp | ||
|---|---|---|
| 1 |
<header> |
|
| 2 |
<div class="container"> |
|
| 3 |
<div class="row"> |
|
| 4 |
<div class="col-lg-12"> |
|
| 5 |
<!-- |
|
| 6 |
<img class="img-responsive" src="img/profile.png" alt=""> |
|
| 7 |
--> |
|
| 8 |
<div class="intro-text"> |
|
| 9 |
<span class="name">作ってみよう</span> |
|
| 10 |
<hr class="star-light"> |
|
| 11 |
<a href="/pictcode" class="btn btn-info skills">作ってみる</a> |
|
| 12 |
<a href="/users/login" class="btn btn-warning skills">ログインする</a> |
|
| 13 |
<a href="/top/about" class="btn btn-danger skills">PictCodeについて</a> |
|
| 14 |
</div> |
|
| 15 |
</div> |
|
| 16 |
</div> |
|
| 17 |
</div> |
|
| 18 |
</header> |
|
| 19 |
|
|
| 20 |
<!-- Portfolio Grid Section --> |
|
| 21 |
<section id="portfolio"> |
|
| 22 |
<div class="container"> |
|
| 23 |
<div class="row"> |
|
| 24 |
<div class="col-lg-12 text-center"> |
|
| 25 |
<h2>Other PictCode</h2> |
|
| 26 |
<hr class="star-primary"> |
|
| 27 |
</div> |
|
| 28 |
</div> |
|
| 29 |
<div class="row"> |
|
| 30 |
<div class="col-sm-4 portfolio-item"> |
|
| 31 |
<a href="#portfolioModal1" class="portfolio-link" data-toggle="modal"> |
|
| 32 |
<div class="caption"> |
|
| 33 |
<div class="caption-content"> |
|
| 34 |
<i class="fa fa-search-plus fa-3x"></i> |
|
| 35 |
</div> |
|
| 36 |
</div> |
|
| 37 |
<img src="img/portfolio/cabin.png" class="img-responsive" alt=""> |
|
| 38 |
</a> |
|
| 39 |
</div> |
|
| 40 |
<div class="col-sm-4 portfolio-item"> |
|
| 41 |
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal"> |
|
| 42 |
<div class="caption"> |
|
| 43 |
<div class="caption-content"> |
|
| 44 |
<i class="fa fa-search-plus fa-3x"></i> |
|
| 45 |
</div> |
|
| 46 |
</div> |
|
| 47 |
<img src="img/portfolio/cake.png" class="img-responsive" alt=""> |
|
| 48 |
</a> |
|
| 49 |
</div> |
|
| 50 |
<div class="col-sm-4 portfolio-item"> |
|
| 51 |
<a href="#portfolioModal3" class="portfolio-link" data-toggle="modal"> |
|
| 52 |
<div class="caption"> |
|
| 53 |
<div class="caption-content"> |
|
| 54 |
<i class="fa fa-search-plus fa-3x"></i> |
|
| 55 |
</div> |
|
| 56 |
</div> |
|
| 57 |
<img src="img/portfolio/circus.png" class="img-responsive" alt=""> |
|
| 58 |
</a> |
|
| 59 |
</div> |
|
| 60 |
<div class="col-sm-4 portfolio-item"> |
|
| 61 |
<a href="#portfolioModal4" class="portfolio-link" data-toggle="modal"> |
|
| 62 |
<div class="caption"> |
|
| 63 |
<div class="caption-content"> |
|
| 64 |
<i class="fa fa-search-plus fa-3x"></i> |
|
| 65 |
</div> |
|
| 66 |
</div> |
|
| 67 |
<img src="img/portfolio/game.png" class="img-responsive" alt=""> |
|
| 68 |
</a> |
|
| 69 |
</div> |
|
| 70 |
<div class="col-sm-4 portfolio-item"> |
|
| 71 |
<a href="#portfolioModal5" class="portfolio-link" data-toggle="modal"> |
|
| 72 |
<div class="caption"> |
|
| 73 |
<div class="caption-content"> |
|
| 74 |
<i class="fa fa-search-plus fa-3x"></i> |
|
| 75 |
</div> |
|
| 76 |
</div> |
|
| 77 |
<img src="img/portfolio/safe.png" class="img-responsive" alt=""> |
|
| 78 |
</a> |
|
| 79 |
</div> |
|
| 80 |
<div class="col-sm-4 portfolio-item"> |
|
| 81 |
<a href="#portfolioModal6" class="portfolio-link" data-toggle="modal"> |
|
| 82 |
<div class="caption"> |
|
| 83 |
<div class="caption-content"> |
|
| 84 |
<i class="fa fa-search-plus fa-3x"></i> |
|
| 85 |
</div> |
|
| 86 |
</div> |
|
| 87 |
<img src="img/portfolio/submarine.png" class="img-responsive" alt=""> |
|
| 88 |
</a> |
|
| 89 |
</div> |
|
| 90 |
</div> |
|
| 91 |
</div> |
|
| 92 |
</section> |
|
| 93 |
<?php echo $this->element('footer');?>
|
|
| 1 |
<!-- メインコンテンツ --> |
|
| 2 |
<main role="main"> |
|
| 3 |
<article class="main_top"> |
|
| 4 |
<section class="main_top01"> |
|
| 5 |
<p class="main_btn01"><a href=""><img src="/img/img_arrow_top01.png">今すぐ始める!</a></p> |
|
| 6 |
</section> |
|
| 7 |
<section class="main_top02"> |
|
| 8 |
<p class="main_btn02"><a href="/Users/login |
|
| 9 |
"><img src="/img/img_arrow_top02.png" style="margin-right:10px;">ログインする</a></p> |
|
| 10 |
<p class="main_btn03"><a href="/Users/register"><img src="/img/img_arrow_top03.png" style="margin-right:8px;">とうろくする</a></p> |
|
| 11 |
</section> |
|
| 12 |
</article> |
|
| 13 |
</main> |
|
| app/View/top/login.html | ||
|---|---|---|
| 1 |
<!DOCTYPE html> |
|
| 2 | 1 |
|
| 3 |
<html> |
|
| 4 |
<head> |
|
| 5 |
<title>-PictCode-</title> |
|
| 6 |
<meta name="apple-mobile-web-app-capable" content="yes"> |
|
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |
|
| 8 |
<meta charset = "UTF-8"> |
|
| 9 |
<meta http-equiv="pragma" content="public"> |
|
| 10 |
<meta http-equiv="Cache-Control" content="public"> |
|
| 11 |
<meta http-equiv="Expires" content="-1"> |
|
| 12 |
<meta http-equiv="Expires" content="86400"> |
|
| 13 |
<!-- css --> |
|
| 14 |
<link href = "css/main.css" rel="stylesheet" type="text/css"> |
|
| 15 |
<link href="css/bootstrap/bootstrap.css" rel="stylesheet" > |
|
| 16 |
<link href="css/jquery-ui.min.css" rel="stylesheet" > |
|
| 17 |
<!-- <link href = "css/fixedheaderandfooter.css" rel="stylesheet" type="text/css">--> |
|
| 18 |
</head> |
|
| 19 |
|
|
| 20 |
<body> |
|
| 21 |
<!-- ヘッダー --> |
|
| 22 |
|
|
| 23 |
<header> |
|
| 24 |
<a href=""><img class="header_button left" type="button" src="img/btn_header_004.png" alt=""></a> |
|
| 25 |
<img class="center" src="img/header_title.png" alt="Pict Code"> |
|
| 26 |
</header> |
|
| 27 | 2 |
|
| 28 | 3 |
<!-- メインコンテンツ --> |
| 29 | 4 |
<main role="main"> |
| 30 | 5 |
<article class="large_form"> |
| 31 | 6 |
<h2> |
| 32 |
<img src="img/img_h1_login.png" alt="PictCode ログイン"> |
|
| 7 |
<img src="/img/img_h1_login.png" alt="PictCode ログイン">
|
|
| 33 | 8 |
</h2> |
| 34 | 9 |
<p class="">ほぞんデータを かんりするためには、ニックネームと パスワードを 入力して ログインする ひつようが あります。 入力に まちがいがないように 注意してください。</p> |
| 35 | 10 |
<section> |
| ... | ... | |
| 53 | 28 |
</article> |
| 54 | 29 |
</main> |
| 55 | 30 |
|
| 56 |
<!-- フッター --> |
|
| 57 |
|
|
| 58 |
<footer> |
|
| 59 |
<div id="wrapper"> |
|
| 60 |
<ul> |
|
| 61 |
<li><a href="aboutthis.html" alt="">PictCodeについて</a></li> |
|
| 62 |
<li><a href="terms.html" alt="">利用規約</a></li> |
|
| 63 |
<li><a href="privacy.html" alt="">プライバシーポリシー</a></li> |
|
| 64 |
<li><a href="aboutus.html" alt="">運営会社情報</a></li> |
|
| 65 |
<li><a href="contact.html" alt="">お問い合わせ</a></li> |
|
| 66 |
</ul> |
|
| 67 |
<a href="index.html"><img class="logo" src="img/footer_logo01.png" alt=""></a> |
|
| 68 |
<hr> |
|
| 69 |
<img class="logo" src="img/footer_logo02.png" alt=""> |
|
| 70 |
</div> |
|
| 71 |
</footer> |
|
| 72 |
|
|
| 73 |
<!-- js --> |
|
| 74 |
<script src="js/require_config.js"></script> |
|
| 75 |
<script data-main="js/app.js" src="js/require.js"></script> |
|
| 76 |
</body> |
|
| 77 |
</html> |
|
| 31 |
|
|
| app/View/top/login_top.ctp | ||
|---|---|---|
| 1 |
|
|
| 2 |
<main role="main"> |
|
| 3 |
<article class="login_top"> |
|
| 4 |
<h2> |
|
| 5 |
<img src="/img/img_h1_top.png" alt="トップページ"> |
|
| 6 |
</h2> |
|
| 7 |
<p>PictCodeの トップページです。<br> |
|
| 8 |
<p>ここから PictCodeで プログラムを 作ったり かんりしたり、そうさほうほうを見たり することが できるよ! 下のボタンから やりたいメニューボタンを おしてね!</p> |
|
| 9 |
<section> |
|
| 10 |
<a href="#"><p class="btn_new"></p></a> |
|
| 11 |
</section> |
|
| 12 |
<section> |
|
| 13 |
<a href="admin_top"><p class="btn_continued"></p></a> |
|
| 14 |
</section> |
|
| 15 |
<section class="howto"> |
|
| 16 |
<p class="howto_btn"><a href="howto"><img src="/img/img_arrow_top04.png">PictCodeの使い方</a></p> |
|
| 17 |
</section> |
|
| 18 |
</article> |
|
| 19 |
</main> |
|
| 20 |
|
|
| app/View/users/login.ctp | ||
|---|---|---|
| 1 |
<header> |
|
| 2 |
<div class="container"> |
|
| 3 |
<div class="row"> |
|
| 4 |
<div class="col-lg-12"> |
|
| 5 |
<div class="intro-text"> |
|
| 6 |
<span class="name">ログイン</span> |
|
| 7 |
</div> |
|
| 8 |
</div> |
|
| 9 |
</div> |
|
| 10 |
</div> |
|
| 11 |
</header> |
|
| 12 |
<div class="users form"> |
|
| 13 |
<?php echo $this->Flash->render('auth'); ?>
|
|
| 14 |
<?php echo $this->Form->create('User',array(
|
|
| 15 |
'inputDefaults' => array( |
|
| 16 |
'div' => 'form-group', |
|
| 17 |
'wrapInput' => false, |
|
| 18 |
'class' => 'form-control' |
|
| 19 |
), |
|
| 20 |
'class' => 'well')); ?> |
|
| 21 |
<fieldset> |
|
| 22 |
<legend> |
|
| 23 |
<?php echo __('ユーザーネームとパスワードを入力してください'); ?>
|
|
| 24 |
</legend> |
|
| 25 |
<?php echo $this->Form->input('login_id',array( 'type' => 'text'));
|
|
| 26 |
echo $this->Form->input('password');
|
|
| 27 |
?> |
|
| 28 |
</fieldset> |
|
| 29 |
<?php echo $this->Session->Flash(); ?> |
|
| 30 |
<?php echo $this->Form->submit('ログイン',array('class'=>'btn btn-info')); ?>
|
|
| 31 |
<?php echo $this->Form->end(); ?> |
|
| 32 |
</div> |
|
| 33 |
<?php echo $this->element('footer');?>
|
|
| 1 |
<?php $this->set('title_for_layout','Login'); ?>
|
|
| 2 |
<!-- メインコンテンツ --> |
|
| 3 |
<main role="main"> |
|
| 4 |
<article class="large_form"> |
|
| 5 |
<h2> |
|
| 6 |
<img src="/img/img_h1_login.png" alt="PictCode ログイン"> |
|
| 7 |
</h2> |
|
| 8 |
<p class="">ほぞんデータを かんりするためには、ニックネームと パスワードを 入力して ログインする ひつようが あります。 入力に まちがいがないように 注意してください。</p> |
|
| 9 |
<?php echo $this->Form->create('User',array(
|
|
| 10 |
'div' => false, |
|
| 11 |
'type'=>'post', |
|
| 12 |
)); ?> |
|
| 13 |
<fieldset> |
|
| 14 |
<section> |
|
| 15 |
<dl> |
|
| 16 |
<?php |
|
| 17 |
echo |
|
| 18 |
'<dt><label for="">ニックネーム</label></dt> |
|
| 19 |
<dd>'; |
|
| 20 |
echo $this->Form->text('login_id',
|
|
| 21 |
array( 'type' => 'text', |
|
| 22 |
'placeholder'=>'ニックネーム' |
|
| 23 |
)); |
|
| 24 |
echo |
|
| 25 |
'</dd> |
|
| 26 |
<dt><label for="">パスワード</label></dt> |
|
| 27 |
<dd>'; |
|
| 28 |
echo $this->Form->text('password',
|
|
| 29 |
array( 'placeholder'=>'パスワード', |
|
| 30 |
'maxlength' => '50', |
|
| 31 |
'type' => 'password' |
|
| 32 |
)); |
|
| 33 |
echo |
|
| 34 |
'</dd>'; |
|
| 35 |
?> |
|
| 36 |
</dl> |
|
| 37 |
</section> |
|
| 38 |
</fieldset> |
|
| 39 |
<?php $this->Form->submit('送信する',array('class'=>'btn btn-info')); ?>
|
|
| 40 |
<?php $this->Form->end(); ?> |
|
| 41 |
|
|
| 42 |
<?php echo $this->Flash->render('auth'); ?>
|
|
| 43 |
|
|
| 44 |
<section> |
|
| 45 |
<p>ニックネームや パスワードを 忘れたばあいには お父さんや お母さんに 相談して、<br><a href="reminder.html"><span class="link_reminder">コチラ</span></a>を クリックして パスワードを 再はっこうしてもらってね!</p> |
|
| 46 |
</section> |
|
| 47 |
<section class="button_area01"> |
|
| 48 |
<a href="/top/index"><p class="button btn_back02"></p></a> |
|
| 49 |
<a href="login_top"><p class="button btn_login"></p></a> |
|
| 50 |
</section> |
|
| 51 |
</article> |
|
| 52 |
</main> |
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| app/View/users/login_top.ctp | ||
|---|---|---|
| 1 |
|
|
| 2 |
<main role="main"> |
|
| 3 |
<article class="login_top"> |
|
| 4 |
<h2> |
|
| 5 |
<img src="/img/img_h1_top.png" alt="トップページ"> |
|
| 6 |
</h2> |
|
| 7 |
<p>PictCodeの トップページです。<br> |
|
| 8 |
<p>ここから PictCodeで プログラムを 作ったり かんりしたり、そうさほうほうを見たり することが できるよ! 下のボタンから やりたいメニューボタンを おしてね!</p> |
|
| 9 |
<section> |
|
| 10 |
<a href="#"><p class="btn_new"></p></a> |
|
| 11 |
</section> |
|
| 12 |
<section> |
|
| 13 |
<a href="admin_top"><p class="btn_continued"></p></a> |
|
| 14 |
</section> |
|
| 15 |
<section class="howto"> |
|
| 16 |
<p class="howto_btn"><a href="howto"><img src="/img/img_arrow_top04.png">PictCodeの使い方</a></p> |
|
| 17 |
</section> |
|
| 18 |
</article> |
|
| 19 |
</main> |
|
| 20 |
|
|
| app/View/users/register.ctp | ||
|---|---|---|
| 80 | 80 |
|
| 81 | 81 |
|
| 82 | 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/yano_login.ctp | ||
|---|---|---|
| 1 |
<div class="users form"> |
|
| 2 |
<?php echo $this->Flash->render('auth'); ?>
|
|
| 3 |
<?php echo $this->Form->create('User',array(
|
|
| 4 |
'inputDefaults' => array( |
|
| 5 |
'div' => 'form-group', |
|
| 6 |
'wrapInput' => false, |
|
| 7 |
'class' => 'form-control' |
|
| 8 |
), |
|
| 9 |
'class' => 'well')); ?> |
|
| 10 |
<fieldset> |
|
| 11 |
<legend> |
|
| 12 |
<?php echo __('ユーザーネームとパスワードを入力してください'); ?>
|
|
| 13 |
</legend> |
|
| 14 |
<?php echo $this->Form->input('login_id',array( 'type' => 'text'));
|
|
| 15 |
echo $this->Form->input('password');
|
|
| 16 |
?> |
|
| 17 |
</fieldset> |
|
| 18 |
<?php echo $this->Session->Flash(); ?> |
|
| 19 |
<?php echo $this->Form->submit('ログイン',array('class'=>'btn btn-info')); ?>
|
|
| 20 |
<?php echo $this->Form->end(); ?> |
|
| 21 |
</div> |
|
| 22 |
<?php echo $this->element('footer');?>
|
|
他の形式にエクスポート: Unified diff