Changeset 17768
- Timestamp:
- 2009/02/13 21:47:04 (14 years ago)
- Location:
- branches/version-2_4/data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_4/data/Smarty/templates/default/admin/customer/index.tpl
r16979 r17768 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(); … … 132 141 </tr> 133 142 <tr class="fs12n"> 143 <td bgcolor="#f2f1ec" width="110">会員状態</td> 144 <td bgcolor="#ffffff" width="499" colspan="3"><!--{html_checkboxes name="status" options=$arrStatus separator=" " selected=$arrForm.status}--></td> 145 </tr> 146 <tr class="fs12n"> 134 147 <td bgcolor="#f2f1ec" width="110">誕生日</td> 135 148 <td bgcolor="#ffffff" width="499" colspan="3"> … … 314 327 <!--★★メインコンテンツ★★--> 315 328 316 <!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' ) }-->329 <!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' or $smarty.post.mode == 'resend_mail') }--> 317 330 318 331 <!--★★検索結果一覧★★--> … … 320 333 <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"> 321 334 <!--{foreach from=$smarty.post key="key" item="item"}--> 322 <!--{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}-->335 <!--{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}--> 323 336 <!--{/foreach}--> 324 337 <!--{foreach from=$smarty.post.job key="key" item="item"}--> … … 327 340 <!--{foreach from=$smarty.post.sex key="key" item="item"}--> 328 341 <input type="hidden" name="sex[]" value=<!--{$item}-->> 342 <!--{/foreach}--> 343 <!--{foreach from=$smarty.post.status key="key" item="item"}--> 344 <input type="hidden" name="status[]" value=<!--{$item}-->> 329 345 <!--{/foreach}--> 330 346 <input type="hidden" name="mode" value="search"> … … 417 433 <tr bgcolor="#ffffff" class="fs12n"> 418 434 <td width=""><!--{assign var=pref value=$search_data[data].pref}--><!--{$arrPref[$pref]}--></td> 419 <td width=""><!--{mailto address=$search_data[data].email encode="javascript"}-->< /a></td>435 <td width=""><!--{mailto address=$search_data[data].email encode="javascript"}--><!--{if $search_data[data].status eq 1}--><br /><a href="#" onclick="return fnReSendMail('<!--{$search_data[data].customer_id|escape}-->');"> 仮登録メール再送</a><!--{/if}--></td> 420 436 </tr> 421 437 <!--顧客<!--{$smarty.section.data.iteration}-->--> -
branches/version-2_4/data/class/SC_CustomerList.php
r17218 r17768 28 28 29 29 var $arrColumnCSV; 30 30 31 31 function SC_CustomerList($array, $mode = '') { 32 32 parent::SC_SelectSql($array); 33 33 34 34 $masterData = new SC_DB_MasterData_Ex(); 35 35 $arrMobileDomain = $masterData->getMasterData("mtb_mobile_domain"); 36 36 37 37 $objDb = new SC_Helper_DB_Ex(); 38 38 … … 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'; … … 164 165 // E-MAIL(mobile) 165 166 if (!isset($this->arrSql['email_mobile'])) $this->arrSql['email_mobile'] = ""; 166 167 167 168 if (strlen($this->arrSql['email_mobile']) > 0) { 168 169 //カンマ区切りで複数の条件指定可能に … … 196 197 // PCサイトメールが指定されている場合 197 198 if ( strlen($this->arrSql['mail_type']) > 0 && $this->arrSql['mail_type'] == 1) { 198 199 200 $this->setWhere(" dtb_customer.email NOT ILIKE '%$mobile_domain' "); 201 199 // 携帯ドメインを外す。 200 foreach($arrMobileDomain as $mobile_domain) { 201 $this->setWhere(" dtb_customer.email NOT ILIKE '%$mobile_domain' "); 202 } 202 203 // 携帯サイトメールが指定されている場合 203 204 } else if( strlen($this->arrSql['mail_type']) > 0 && $this->arrSql['mail_type'] == 2) { 204 205 $this->setWhere( " dtb_customer.email_mobile <> '' "); 205 206 } 206 207 } … … 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 } 346 355 $this->setOrder( "customer_id DESC" ); 347 356 } -
branches/version-2_4/data/class/pages/admin/customer/LC_Page_Admin_Customer.php
r17343 r17768 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 //if ($_POST['mode'] == "search" || $_POST['mode'] == "csv" || $_POST['mode'] == "delete" || $_POST['mode'] == "delete_all") { 215 // 登録メール再送 216 if ($_POST['mode'] == "resend_mail") { 217 $CONF = $objDb->sf_getBasisData(); 218 $this->CONF = $CONF; 219 $objMailText = new SC_SiteView(); 220 $objMailText->assignobj($this); 221 $mailHelper = new SC_Helper_Mail_Ex(); 222 223 $arrRet = $objQuery->select("name01, name02, secret_key, email", "dtb_customer","customer_id = ? AND del_flg <> 1 AND status = 1", array($_POST["edit_customer_id"])); 224 225 $this->name01 = $arrRet[0]['name01']; 226 $this->name02 = $arrRet[0]['name02']; 227 $this->uniqid = $arrRet[0]['secret_key']; 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 if ($_POST['mode'] == "search" || $_POST['mode'] == "csv" || $_POST['mode'] == "delete" || $_POST['mode'] == "delete_all" || $_POST['mode'] == "resend_mail") { 250 211 251 // 入力文字の強制変換 212 252 $this->lfConvertParam();
Note: See TracChangeset
for help on using the changeset viewer.