ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 2146


Ignore:
Timestamp:
Mar 18, 2007, 3:45:32 AM (16 years ago)
Author:
ishida
Message:

退会者情報の転送
http://trac.openpne.jp/ticket/488
実装完了

Location:
OpenPNE/branches/ishida/prj_dev28/webapp
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/ishida/prj_dev28/webapp/lib/OpenPNE/Config.php

    r2117 r2146  
    4040            'USE_EXTRA_SERVICE',
    4141            'USE_BIZ_DIR',
     42            'SEND_USER_DATA',
    4243            'LIMIT_DOMAIN1',
    4344            'LIMIT_DOMAIN2',
     
    125126            'USE_EXTRA_SERVICE' => '1',
    126127            'USE_BIZ_DIR' => '0',
     128            'SEND_USER_DATA' => '1',
    127129            'LIMIT_DOMAIN1' => '',
    128130            'LIMIT_DOMAIN2' => '',
  • OpenPNE/branches/ishida/prj_dev28/webapp/lib/util/mail_send.php

    r1856 r2146  
    622622    $params['url'] = openpne_gen_url('ktai', 'page_o_regist_pre', $p);
    623623    return fetch_send_mail($sender, 'm_ktai_regist_get', $params);
     624}
     625
     626//退会完了メール(管理者宛)
     627function do_common_send_mail_taikai4admin($c_member_id, $reason)
     628{
     629
     630    $p_list = db_common_c_profile_list4null();
     631    $c_profile_list = array();
     632    foreach ($p_list as $key => $value) {
     633         $c_profile_list[]=$p_list[$key];
     634    }
     635
     636    $c_member = db_common_c_member4c_member_id($c_member_id, true, true, 'private');
     637    $c_member['c_member_invite'] = db_common_c_member4c_member_id_LIGHT($c_member['c_member_id_invite']);
     638
     639    $params = array(
     640        "c_member" => $c_member,
     641        "c_profile_list" => $c_profile_list,
     642        "reason" => $reason,
     643    );
     644    return fetch_send_mail(ADMIN_EMAIL, 'm_pc_taikai4admin', $params);
    624645}
    625646
  • OpenPNE/branches/ishida/prj_dev28/webapp/modules/admin/templates/edit_c_admin_config.tpl

    r2117 r2146  
    277277<option value="1"({if $smarty.const.USE_BIZ_DIR}) selected="selected"({/if})>使用する</option>
    278278<option value="0"({if !$smarty.const.USE_BIZ_DIR}) selected="selected"({/if})>使用しない</option>
     279</select></td>
     280</tr>
     281
     282<tr class="cell28">
     283<th colspan="2">退会者のデータ</th>
     284<td>
     285<span class="info">退会者のデータを管理者のメールアドレスに転送するかどうかを設定します</span><br />
     286<select class="basic" name="SEND_USER_DATA">
     287<option value="1"({if $smarty.const.SEND_USER_DATA}) selected="selected"({/if})>転送する</option>
     288<option value="0"({if !$smarty.const.SEND_USER_DATA}) selected="selected"({/if})>転送しない</option>
    279289</select></td>
    280290</tr>
  • OpenPNE/branches/ishida/prj_dev28/webapp/modules/admin/validate/do/update_c_admin_config.ini

    r2117 r2146  
    141141default = "0"
    142142
     143[SEND_USER_DATA]
     144type = "bool"
     145default = "1"
     146
    143147[OPENPNE_ENABLE_ROLLOVER]
    144148type = "bool"
  • OpenPNE/branches/ishida/prj_dev28/webapp/modules/pc/do/h_taikai.php

    r1856 r2146  
    1313    {
    1414        $password = $requests['password'];
     15        $reason = $requests['reason'];
    1516        $u = $GLOBALS['AUTH']->uid();
    1617
    1718        if ($u == 1) {
    1819            openpne_redirect('pc', 'page_h_config');
     20        }
     21
     22        //退会理由は必須
     23        if (!$reason) {
     24            $msg = "退会理由を入力して下さい";
     25            $p = array('msg' => $msg);
     26            openpne_redirect('pc', 'page_h_taikai_confirm', $p);
    1927        }
    2028
     
    2735        //退会完了メール送信
    2836        do_common_send_mail_taikai_end_pc($u);
     37
     38        if (SEND_USER_DATA) {
     39            //退会完了メール送信(管理者宛)
     40            do_common_send_mail_taikai4admin($u, $reason);
     41        }
    2942
    3043        //退会処理
  • OpenPNE/branches/ishida/prj_dev28/webapp/modules/pc/templates/h_taikai_confirm.tpl

    r1088 r2146  
    8888<tr>
    8989<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     90<td style="width:180px;" class="bg_05" align="left" valign="middle">
     91
     92<div class="padding_s">
     93
     94退会理由 <span class="caution">※</span>
     95
     96</div>
     97<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     98<td style="width:381px;" class="bg_02" align="left" valign="middle">
     99
     100<div class="padding_s">
     101
     102<textarea name="reason" rows="15" cols="50" style="width:415px"></textarea>
     103
     104</div>
     105
     106</td>
     107<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     108</tr>
     109({*********})
     110<tr>
     111<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     112</tr>
     113({*********})
     114<tr>
     115<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    90116<td class="bg_03" align="center" valign="middle" colspan="3">
    91117
  • OpenPNE/branches/ishida/prj_dev28/webapp/modules/pc/validate/do/h_taikai.ini

    r2 r2146  
    11[password]
    22type = "string"
     3
     4[reason]
     5type = "string"
Note: See TracChangeset for help on using the changeset viewer.