リビジョン 0a142321
| app/Controller/TopController.php | ||
|---|---|---|
| 128 | 128 | 
    * contact_complete  | 
| 129 | 129 | 
    */  | 
| 130 | 130 | 
    	public function contact_complete() {
   | 
| 131 | 
     | 
|
| 132 | 
    $postcode=null;  | 
|
| 133 | 
    $address=null;  | 
|
| 134 | 
    $tel=null;  | 
|
| 131 | 135 | 
    		$this->set('contact',$this->Session->read('contact'));
   | 
| 132 | 136 | 
    		$name = $this->Session->read('contact.ContactValidate.name');
   | 
| 133 | 137 | 
    		$mail = $this->Session->read('contact.ContactValidate.email');
   | 
| 134 | 138 | 
    		$comment = $this->Session->read('contact.ContactValidate.comment');
   | 
| 139 | 
    		if($this->Session->read('contact.ContactValidate.postcode')!= null){
   | 
|
| 140 | 
    			$postcode = $this->Session->read('contact.ContactValidate.postcode');
   | 
|
| 141 | 
    }  | 
|
| 142 | 
    		if(($this->Session->read('contact.ContactValidate.prefecture'))!= null||($this->Session->read('contact.ContactValidate.address')!= null)){
   | 
|
| 143 | 
    			$address = $this->Session->read('contact.ContactValidate.prefecture').$this->Session->read('contact.ContactValidate.address');
   | 
|
| 144 | 
    }  | 
|
| 145 | 
    		if($this->Session->read('contact.ContactValidate.tel')!= null){
   | 
|
| 146 | 
    			$tel = $this->Session->read('contact.ContactValidate.tel');
   | 
|
| 147 | 
    }  | 
|
| 135 | 148 | 
    $Email = new CakeEmail();  | 
| 136 | 149 | 
    		$Email->charset('ISO-2022-JP');
   | 
| 137 | 150 | 
    		$Email->emailFormat('text');
   | 
| 138 | 151 | 
    		$Email->template('user_contact');
   | 
| 139 | 
    		$Email->viewVars(array('name'=>$name,'comment'=>$comment));
   | 
|
| 152 | 
    		$Email->viewVars(array('name'=>$name,'comment'=>$comment,'mail'=>$mail,'postcode'=>$postcode,'address'=>$address,'tel'=>$tel));
   | 
|
| 140 | 153 | 
    $Email->from( MAIL_FROM );  | 
| 141 | 154 | 
    $Email->to($mail);  | 
| 142 | 155 | 
    		$Email->subject('【PictCode】お問い合わせいただき、ありがとうございます。');
   | 
| app/Model/User.php | ||
|---|---|---|
| 182 | 182 | 
    	public function DuplicateEmailCheck(){
   | 
| 183 | 183 | 
    		$query = array('conditions' => array('User.email' => $this->data['User']['email'],'User.status' => 1));
   | 
| 184 | 184 | 
    		$num = $this->find('count',$query);
   | 
| 185 | 
    //$this->log($recodes);  | 
|
| 186 | 
    //var_dump($num);  | 
|
| 187 | 
    //exit;  | 
|
| 188 | 185 | 
    		if($num > 0){
   | 
| 189 | 186 | 
    return false; //登録済み  | 
| 190 | 187 | 
    		} else{
   | 
| ... | ... | |
| 240 | 237 | 
    	public function NotExistEmailCheck(){
   | 
| 241 | 238 | 
    		$query = array('conditions' => array('User.email' => $this->data['User']['email'],'User.status' => 1));
   | 
| 242 | 239 | 
    		$num = $this->find('count',$query);
   | 
| 243 | 
    //$this->log($recodes);  | 
|
| 244 | 
    //var_dump($num);  | 
|
| 245 | 
    //exit;  | 
|
| 246 | 240 | 
    		if($num > 0){
   | 
| 247 | 241 | 
    return true; //未登録  | 
| 248 | 242 | 
    		} else{
   | 
| app/View/Emails/text/user_contact.ctp | ||
|---|---|---|
| 7 | 7 | 
     | 
| 8 | 8 | 
     | 
| 9 | 9 | 
    お名前: <?php echo $name;?>  | 
| 10 | 
     | 
|
| 10 | 11 | 
    メールアドレス: <?php echo $mail;?>  | 
| 12 | 
     | 
|
| 11 | 13 | 
    郵便番号: <?php echo $postcode;?>  | 
| 14 | 
     | 
|
| 12 | 15 | 
    ご住所: <?php echo $address;?>  | 
| 16 | 
     | 
|
| 13 | 17 | 
    お電話番号: <?php echo $tel;?>  | 
| 18 | 
     | 
|
| 14 | 19 | 
    お問い合わせ内容: <?php echo $comment;?>  | 
| 15 | 20 | 
     | 
| 16 | 21 | 
     | 
| app/View/top/contact_confirm.ctp | ||
|---|---|---|
| 10 | 10 | 
    <dl>  | 
| 11 | 11 | 
    <dt><label for="">お名前</label></dt>  | 
| 12 | 12 | 
    <dd><?php echo $contact['ContactValidate']['name'];?></dd>  | 
| 13 | 
    <dt><label for="">年齢</label></dt>  | 
|
| 14 | 
    <dd><?php echo $contact['ContactValidate']['age'];?>歳</dd>  | 
|
| 15 | 13 | 
    <dt><label for="">メールアドレス</label></dt>  | 
| 16 | 14 | 
    <dd><?php echo $contact['ContactValidate']['email'];?></dd>  | 
| 17 | 
    <dt><label for="">郵便番号</label></dt>  | 
|
| 18 | 
    <dd>〒<?php echo $contact['ContactValidate']['postcode'];?></dd>  | 
|
| 19 | 
    <dt><label for="">ご住所</label></dt>  | 
|
| 20 | 
    <dd><?php echo $contact['ContactValidate']['prefecture'];?></dd>  | 
|
| 21 | 
    <dd><?php echo $contact['ContactValidate']['address'];?></dd>  | 
|
| 22 | 
    <dt><label for="">お電話番号</label></dt>  | 
|
| 23 | 
    <dd><?php echo $contact['ContactValidate']['tel'];?></dd>  | 
|
| 15 | 
    <?php  | 
|
| 16 | 
    		if($contact['ContactValidate']['postcode']!= null){
   | 
|
| 17 | 
    echo '<dt><label for="">郵便番号</label></dt><dd>'.$contact['ContactValidate']['postcode'].'</dd>';  | 
|
| 18 | 
    }  | 
|
| 19 | 
    		if($contact['ContactValidate']['prefecture']!= null||$contact['ContactValidate']['address']!= null){
   | 
|
| 20 | 
    echo '<dt><label for="">ご住所</label></dt><dd>'.$contact['ContactValidate']['prefecture'].$contact['ContactValidate']['address'].'</dd>';  | 
|
| 21 | 
    }  | 
|
| 22 | 
    		if($contact['ContactValidate']['tel']!= null){
   | 
|
| 23 | 
    echo '<dt><label for="">お電話番号</label></dt><dd>'.$contact['ContactValidate']['tel'].'</dd>';  | 
|
| 24 | 
    }  | 
|
| 25 | 
    ?>  | 
|
| 26 | 
     | 
|
| 24 | 27 | 
    <dt><label for="">お問い合わせ内容</label></dt>  | 
| 25 | 
    						<dd><?php echo $contact['ContactValidate']['comment'];?></dd>
   | 
|
| 28 | 
    <dd><?php echo $contact['ContactValidate']['comment']?></dd>  | 
|
| 26 | 29 | 
    </dl>  | 
| 27 | 30 | 
    </section>  | 
| 28 | 31 | 
    <section class="button_area01">  | 
| app/View/top/mypage.ctp | ||
|---|---|---|
| 1 | 
    <main role="main">  | 
|
| 2 | 
    <article class="admin">  | 
|
| 3 | 
    <h2>  | 
|
| 4 | 
    <img src="/img/img_h1_admin01.png" alt="お問い合わせ - 送信完了">  | 
|
| 5 | 
    </h2>  | 
|
| 6 | 
    <p>ほぞんした PictCodeの プログラムを へんしゅうしたり さくじょしたり、コピーしたりできるよ!</p>  | 
|
| 7 | 
    <p>下のいちらんから せんたくして へんしゅうしよう!</p>  | 
|
| 8 | 
     | 
|
| 9 | 
    <!-- Save Data 01 -->  | 
|
| 10 | 
    <section class="blank_data">  | 
|
| 11 | 
    <a name="#save_data10">  | 
|
| 12 | 
    <img src="/img/img_save_blank.png" alt="タイトル">  | 
|
| 13 | 
    </a>  | 
|
| 14 | 
    <span class="blank"><a href="">あたらしく作る</a></span>  | 
|
| 15 | 
    </section>  | 
|
| 16 | 
    <section class="save_data">  | 
|
| 17 | 
    <a name="#save_data01">  | 
|
| 18 | 
    <img src="/img/img_save_sample02.png" alt="タイトル">  | 
|
| 19 | 
    <h3>ここにタイトルが入ります</h3>  | 
|
| 20 | 
    <p>こちらに内容が入ります。</p>  | 
|
| 21 | 
    </a>  | 
|
| 22 | 
    <ul>  | 
|
| 23 | 
    <li><a href="delete_check">さくじょ</a></li>  | 
|
| 24 | 
    <li><a href="play">きょうゆう</a></li>  | 
|
| 25 | 
    <li><a href="copy">コピー</a></li>  | 
|
| 26 | 
    </ul>  | 
|
| 27 | 
    </section>  | 
|
| 28 | 
     | 
|
| 29 | 
    <!-- Save Data 02 -->  | 
|
| 30 | 
    <section class="save_data">  | 
|
| 31 | 
    <a name="#save_data02">  | 
|
| 32 | 
    <img src="/img/img_save_sample02.png" alt="タイトル">  | 
|
| 33 | 
    <h3>作品タイトル作品タイトル</h3>  | 
|
| 34 | 
    <p>内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。</p>  | 
|
| 35 | 
    </a>  | 
|
| 36 | 
    <ul>  | 
|
| 37 | 
    <li><a href="delete_check">さくじょ</a></li>  | 
|
| 38 | 
    <li><a href="play">きょうゆう</a></li>  | 
|
| 39 | 
    <li><a href="copy">コピー</a></li>  | 
|
| 40 | 
    </ul>  | 
|
| 41 | 
    </section>  | 
|
| 42 | 
     | 
|
| 43 | 
    <!-- Save Data 03 -->  | 
|
| 44 | 
    <section class="save_data">  | 
|
| 45 | 
    <a name="#save_data03">  | 
|
| 46 | 
    <img src="/img/img_save_sample02.png" alt="タイトル">  | 
|
| 47 | 
    <h3>作品タイトル作品タイトル</h3>  | 
|
| 48 | 
    <p>内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。</p>  | 
|
| 49 | 
    </a>  | 
|
| 50 | 
    <ul>  | 
|
| 51 | 
    <li><a href="delete_check">さくじょ</a></li>  | 
|
| 52 | 
    <li><a href="play">きょうゆう</a></li>  | 
|
| 53 | 
    <li><a href="copy">コピー</a></li>  | 
|
| 54 | 
    </ul>  | 
|
| 55 | 
    </section>  | 
|
| 56 | 
     | 
|
| 57 | 
    <!-- Save Data 04 -->  | 
|
| 58 | 
    <section class="save_data">  | 
|
| 59 | 
    <a name="#save_data04">  | 
|
| 60 | 
    <img src="/img/img_save_sample02.png" alt="タイトル">  | 
|
| 61 | 
    <h3>作品タイトル作品タイトル</h3>  | 
|
| 62 | 
    <p>内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。</p>  | 
|
| 63 | 
    </a>  | 
|
| 64 | 
    <ul>  | 
|
| 65 | 
    <li><a href="delete_check">さくじょ</a></li>  | 
|
| 66 | 
    <li><a href="play">きょうゆう</a></li>  | 
|
| 67 | 
    <li><a href="copy">コピー</a></li>  | 
|
| 68 | 
    </ul>  | 
|
| 69 | 
    </a>  | 
|
| 70 | 
    </section>  | 
|
| 71 | 
     | 
|
| 72 | 
    <!-- Save Data 05 -->  | 
|
| 73 | 
    <section class="save_data">  | 
|
| 74 | 
    <a name="#save_data05">  | 
|
| 75 | 
    <img src="/img/img_save_sample02.png" alt="タイトル">  | 
|
| 76 | 
    <h3>作品タイトル作品タイトル</h3>  | 
|
| 77 | 
    <p>内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。</p>  | 
|
| 78 | 
    </a>  | 
|
| 79 | 
    <ul>  | 
|
| 80 | 
    <li><a href="delete_check">さくじょ</a></li>  | 
|
| 81 | 
    <li><a href="play">きょうゆう</a></li>  | 
|
| 82 | 
    <li><a href="copy">コピー</a></li>  | 
|
| 83 | 
    </ul>  | 
|
| 84 | 
    </section>  | 
|
| 85 | 
     | 
|
| 86 | 
    <!-- Save Data 06 -->  | 
|
| 87 | 
    <section class="save_data">  | 
|
| 88 | 
    <a name="#save_data06">  | 
|
| 89 | 
    <img src="/img/img_save_sample02.png" alt="タイトル">  | 
|
| 90 | 
    <h3>作品タイトル作品タイトル</h3>  | 
|
| 91 | 
    <p>内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。</p>  | 
|
| 92 | 
    </a>  | 
|
| 93 | 
    <ul>  | 
|
| 94 | 
    <li><a href="delete_check">さくじょ</a></li>  | 
|
| 95 | 
    <li><a href="play">きょうゆう</a></li>  | 
|
| 96 | 
    <li><a href="copy">コピー</a></li>  | 
|
| 97 | 
    </ul>  | 
|
| 98 | 
    </section>  | 
|
| 99 | 
     | 
|
| 100 | 
    <!-- Save Data 07 -->  | 
|
| 101 | 
    <section class="save_data">  | 
|
| 102 | 
    <a name="#save_data07">  | 
|
| 103 | 
    <img src="/img/img_save_sample02.png" alt="タイトル">  | 
|
| 104 | 
    <h3>作品タイトル作品タイトル</h3>  | 
|
| 105 | 
    <p>内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。</p>  | 
|
| 106 | 
    </a>  | 
|
| 107 | 
    <ul>  | 
|
| 108 | 
    <li><a href="delete_check">さくじょ</a></li>  | 
|
| 109 | 
    <li><a href="play">きょうゆう</a></li>  | 
|
| 110 | 
    <li><a href="copy">コピー</a></li>  | 
|
| 111 | 
    </ul>  | 
|
| 112 | 
    </section>  | 
|
| 113 | 
     | 
|
| 114 | 
    <!-- Save Data 08 -->  | 
|
| 115 | 
    <section class="save_data">  | 
|
| 116 | 
    <a name="#save_data08">  | 
|
| 117 | 
    <img src="/img/img_save_sample02.png" alt="タイトル">  | 
|
| 118 | 
    <h3>作品タイトル作品タイトル</h3>  | 
|
| 119 | 
    <p>内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。</p>  | 
|
| 120 | 
    </a>  | 
|
| 121 | 
    <ul>  | 
|
| 122 | 
    <li><a href="delete_check">さくじょ</a></li>  | 
|
| 123 | 
    <li><a href="play">きょうゆう</a></li>  | 
|
| 124 | 
    <li><a href="copy">コピー</a></li>  | 
|
| 125 | 
    </ul>  | 
|
| 126 | 
    </section>  | 
|
| 127 | 
     | 
|
| 128 | 
    <!-- Save Data 09 -->  | 
|
| 129 | 
    <section class="save_data">  | 
|
| 130 | 
    <a name="#save_data09">  | 
|
| 131 | 
    <img src="/img/img_save_sample02.png" alt="タイトル">  | 
|
| 132 | 
    <h3>作品タイトル作品タイトル</h3>  | 
|
| 133 | 
    <p>内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。</p>  | 
|
| 134 | 
    </a>  | 
|
| 135 | 
    <ul>  | 
|
| 136 | 
    <li><a href="delete_check">さくじょ</a></li>  | 
|
| 137 | 
    <li><a href="play">きょうゆう</a></li>  | 
|
| 138 | 
    <li><a href="copy">コピー</a></li>  | 
|
| 139 | 
    </ul>  | 
|
| 140 | 
    </section>  | 
|
| 141 | 
     | 
|
| 142 | 
    <!-- Save Data 10 -->  | 
|
| 143 | 
    <section class="save_data">  | 
|
| 144 | 
    <a name="#save_data10">  | 
|
| 145 | 
    <img src="/img/img_save_sample02.png" alt="タイトル">  | 
|
| 146 | 
    <h3>作品タイトル作品タイトル</h3>  | 
|
| 147 | 
    <p>内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。内容ないようナイヨウ内容ないようナイヨウ内容ないようナイヨウ。</p>  | 
|
| 148 | 
    </a>  | 
|
| 149 | 
    <ul>  | 
|
| 150 | 
    <li><a href="delete_check">さくじょ</a></li>  | 
|
| 151 | 
    <li><a href="play">きょうゆう</a></li>  | 
|
| 152 | 
    <li><a href="copy">コピー</a></li>  | 
|
| 153 | 
    </ul>  | 
|
| 154 | 
    </section>  | 
|
| 155 | 
     | 
|
| 156 | 
     | 
|
| 157 | 
    </article>  | 
|
| 158 | 
    </main>  | 
|
| 159 | 
     | 
|
他の形式にエクスポート: Unified diff