Changeset 17369
- Timestamp:
- 2008/06/23 15:50:48 (15 years ago)
- Location:
- branches/comu-ver2/data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/Smarty/templates/default/admin/customer/index.tpl
r17365 r17369 55 55 } 56 56 57 function fnReSendMail(customer_id) { 58 if (confirm('仮登録メールを再送しても宜しいですか?')) { 59 document.form1.mode.value = "resend_mail" 60 document.form1['edit_customer_id'].value = customer_id; 61 document.form1.submit(); 62 return false; 63 } 64 } 65 57 66 function fnSubmit() { 58 67 document.form1.submit(); … … 81 90 <th>顧客名(カナ)</th> 82 91 <td><!--{if $arrErr.kana}--><span class="attention"><!--{$arrErr.kana}--></span><br /><!--{/if}--><input type="text" name="kana" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$arrForm.kana|escape}-->" size="30" class="box30" <!--{if $arrErr.kana}--><!--{sfSetErrorStyle}--><!--{/if}--> /></td> 92 </tr> 93 <tr> 94 <th>会員状態</th> 95 <td><!--{html_checkboxes name="status" options=$arrStatus separator=" " selected=$arrForm.status}--></td> 83 96 </tr> 84 97 <tr> … … 254 267 </form> 255 268 256 <!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' ) }-->269 <!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' or $smarty.post.mode == 'resend_mail') }--> 257 270 258 271 <!--★★検索結果一覧★★--> 259 272 <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"> 260 273 <!--{foreach from=$smarty.post key="key" item="item"}--> 261 <!--{if $key ne "mode" && $key ne "del_mode" && $key ne "edit_customer_id" && $key ne "del_customer_id" && $key ne "search_pageno" && $key ne "csv_mode" && $key ne "job" && $key ne "sex" }--><input type="hidden" name="<!--{$key|escape}-->" value="<!--{$item|escape}-->"><!--{/if}-->274 <!--{if $key ne "mode" && $key ne "del_mode" && $key ne "edit_customer_id" && $key ne "del_customer_id" && $key ne "search_pageno" && $key ne "csv_mode" && $key ne "job" && $key ne "sex" && $key ne "status"}--><input type="hidden" name="<!--{$key|escape}-->" value="<!--{$item|escape}-->"><!--{/if}--> 262 275 <!--{/foreach}--> 263 276 <!--{foreach from=$smarty.post.job key="key" item="item"}--> … … 266 279 <!--{foreach from=$smarty.post.sex key="key" item="item"}--> 267 280 <input type="hidden" name="sex[]" value=<!--{$item}-->> 281 <!--{/foreach}--> 282 <!--{foreach from=$smarty.post.status key="key" item="item"}--> 283 <input type="hidden" name="status[]" value=<!--{$item}-->> 268 284 <!--{/foreach}--> 269 285 <input type="hidden" name="mode" value="search" /> … … 316 332 <tr> 317 333 <td><!--{assign var=pref value=$search_data[data].pref}--><!--{$arrPref[$pref]}--></td> 318 <td><!--{mailto address=$search_data[data].email encode="javascript"}--></a>< /td>334 <td><!--{mailto address=$search_data[data].email encode="javascript"}--></a><!--{if $search_data[data].status eq 1}--><br /><a href="#" onclick="return fnReSendMail('<!--{$search_data[data].customer_id|escape}-->');">仮登録メール再送</a><!--{/if}--></td> 319 335 </tr> 320 336 <!--顧客<!--{$smarty.section.data.iteration}-->--> -
branches/comu-ver2/data/class/SC_CustomerList.php
r16968 r17369 46 46 if($mode == "customer") { 47 47 // 管理者ページ顧客検索の場合仮登録会員も検索 48 $this->setWhere( "(status = 1 OR status = 2) AND del_flg = 0 "); 48 //$this->setWhere( "(status = 1 OR status = 2) AND del_flg = 0 "); 49 $this->setWhere( " del_flg = 0 "); 49 50 // 登録日を示すカラム 50 51 $regdate_col = 'dtb_customer.update_date'; … … 344 345 } 345 346 347 //会員状態 348 if (!isset($this->arrSql['status'])) $this->arrSql['status'] = ""; 349 if ( is_array( $this->arrSql['status'] ) ){ 350 $arrStatusVal = $this->setItemTerm( $this->arrSql['status'] ,"status" ); 351 foreach ($arrStatusVal as $data) { 352 $this->arrVal[] = $data; 353 } 354 } 355 346 356 $this->setOrder( "customer_id DESC" ); 347 357 } -
branches/comu-ver2/data/class/pages/admin/customer/LC_Page_Admin_Customer.php
r16741 r17369 63 63 $this->arrHtmlmail[1] = $this->arrMAILMAGATYPE[1]; 64 64 $this->arrHtmlmail[2] = $this->arrMAILMAGATYPE[2]; 65 66 $this->arrStatus[1] = "仮会員"; 67 $this->arrStatus[2] = "本会員"; 65 68 66 69 //---- CSVダウンロード用 … … 182 185 switch($key) { 183 186 case 'sex': 187 case 'status': 184 188 $this->arrHidden[$key] = SC_Utils_Ex::sfMergeParamCheckBoxes($val); 185 189 if(!is_array($val)) { … … 208 212 } 209 213 } 210 if ($_POST['mode'] == "search" || $_POST['mode'] == "csv" || $_POST['mode'] == "delete" || $_POST['mode'] == "delete_all") { 214 // 登録メール再送 215 if ($_POST['mode'] == "resend_mail") { 216 $CONF = $objDb->sf_getBasisData(); 217 $this->CONF = $CONF; 218 $objMailText = new SC_SiteView(); 219 $objMailText->assignobj($this); 220 $mailHelper = new SC_Helper_Mail_Ex(); 221 222 $arrRet = $objQuery->select("name01, name02, secret_key, email", "dtb_customer","customer_id = ? AND del_flg <> 1 AND status = 1", array($_POST["edit_customer_id"])); 223 224 $this->name01 = $arrRet[0]['name01']; 225 $this->name02 = $arrRet[0]['name02']; 226 $this->uniqid = $arrRet[0]['secret_key']; 227 228 229 $subject = $mailHelper->sfMakesubject($objQuery, $objMailText, $this, '会員登録のご確認'); 230 $toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl"); 231 232 $objMail = new SC_SendMail(); 233 $objMail->setItem( 234 '' // 宛先 235 , $subject // サブジェクト 236 , $toCustomerMail // 本文 237 , $CONF["email03"] // 配送元アドレス 238 , $CONF["shop_name"] // 配送元 名前 239 , $CONF["email03"] // reply_to 240 , $CONF["email04"] // return_path 241 , $CONF["email04"] // Errors_to 242 ); 243 // 宛先の設定 244 $name = $this->name01 . $this->name02 ." 様"; 245 $objMail->setTo($arrRet[0]["email"], $name); 246 $objMail->sendMail(); 247 248 } 249 250 if ($_POST['mode'] == "search" || $_POST['mode'] == "csv" || $_POST['mode'] == "delete" || $_POST['mode'] == "delete_all" || $_POST['mode'] == "resend_mail") { 211 251 // 入力文字の強制変換 212 252 $this->lfConvertParam();
Note: See TracChangeset
for help on using the changeset viewer.