Changeset 17768


Ignore:
Timestamp:
2009/02/13 21:47:04 (15 years ago)
Author:
zeniya
Message:

EC-CUBE2.4改修 #309

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  
    5555    } 
    5656 
     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 
    5766    function fnSubmit() { 
    5867        document.form1.submit(); 
     
    132141                            </tr> 
    133142                            <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="&nbsp;" selected=$arrForm.status}--></td> 
     145                            </tr> 
     146                            <tr class="fs12n"> 
    134147                                <td bgcolor="#f2f1ec" width="110">誕生日</td> 
    135148                                <td bgcolor="#ffffff" width="499" colspan="3"> 
     
    314327<!--★★メインコンテンツ★★--> 
    315328 
    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') }--> 
    317330 
    318331<!--★★検索結果一覧★★--> 
     
    320333<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"> 
    321334<!--{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}--> 
    323336<!--{/foreach}--> 
    324337<!--{foreach from=$smarty.post.job key="key" item="item"}--> 
     
    327340<!--{foreach from=$smarty.post.sex key="key" item="item"}--> 
    328341<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}-->> 
    329345<!--{/foreach}--> 
    330346<input type="hidden" name="mode" value="search"> 
     
    417433                            <tr bgcolor="#ffffff" class="fs12n"> 
    418434                                <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> 
    420436                            </tr> 
    421437                            <!--顧客<!--{$smarty.section.data.iteration}-->--> 
  • branches/version-2_4/data/class/SC_CustomerList.php

    r17218 r17768  
    2828 
    2929    var $arrColumnCSV; 
    30              
     30 
    3131    function SC_CustomerList($array, $mode = '') { 
    3232        parent::SC_SelectSql($array); 
    33          
     33 
    3434        $masterData = new SC_DB_MasterData_Ex(); 
    3535        $arrMobileDomain = $masterData->getMasterData("mtb_mobile_domain"); 
    36          
     36 
    3737        $objDb = new SC_Helper_DB_Ex(); 
    3838 
     
    4646        if($mode == "customer") { 
    4747            // 管理者ページ顧客検索の場合仮登録会員も検索 
    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 "); 
    4950            // 登録日を示すカラム 
    5051            $regdate_col = 'dtb_customer.update_date'; 
     
    164165        // E-MAIL(mobile) 
    165166        if (!isset($this->arrSql['email_mobile'])) $this->arrSql['email_mobile'] = ""; 
    166          
     167 
    167168        if (strlen($this->arrSql['email_mobile']) > 0) { 
    168169            //カンマ区切りで複数の条件指定可能に 
     
    196197            // PCサイトメールが指定されている場合 
    197198            if ( strlen($this->arrSql['mail_type']) > 0 && $this->arrSql['mail_type'] == 1) { 
    198                 // 携帯ドメインを外す。 
    199                 foreach($arrMobileDomain as $mobile_domain) { 
    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                } 
    202203            // 携帯サイトメールが指定されている場合 
    203204            } else if( strlen($this->arrSql['mail_type']) > 0 && $this->arrSql['mail_type'] == 2) { 
    204                 $this->setWhere( " dtb_customer.email_mobile <> ''  "); 
     205                $this->setWhere( " dtb_customer.email_mobile <> ''  "); 
    205206            } 
    206207        } 
     
    344345        } 
    345346 
     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        } 
    346355        $this->setOrder( "customer_id DESC" ); 
    347356    } 
  • branches/version-2_4/data/class/pages/admin/customer/LC_Page_Admin_Customer.php

    r17343 r17768  
    6363        $this->arrHtmlmail[1] = $this->arrMAILMAGATYPE[1]; 
    6464        $this->arrHtmlmail[2] = $this->arrMAILMAGATYPE[2]; 
     65 
     66        $this->arrStatus[1] = "仮会員"; 
     67        $this->arrStatus[2] = "本会員"; 
    6568 
    6669        //---- CSVダウンロード用 
     
    182185            switch($key) { 
    183186            case 'sex': 
     187            case 'status': 
    184188                $this->arrHidden[$key] = SC_Utils_Ex::sfMergeParamCheckBoxes($val); 
    185189                if(!is_array($val)) { 
     
    208212            } 
    209213        } 
    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 
    211251            // 入力文字の強制変換 
    212252            $this->lfConvertParam(); 
Note: See TracChangeset for help on using the changeset viewer.