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

Changeset 9141


Ignore:
Timestamp:
Nov 14, 2008, 2:17:40 AM (11 years ago)
Author:
akamine
Message:

#2151 PEAR標準コーティング規約通りに修正とPCに設定が反映されないのを修正と一部変数名を小文字に修正

Location:
OpenPNE/branches/stable-2.12.x/webapp_biz/modules
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.12.x/webapp_biz/modules/biz/lib/mysql_functions.php

    r9126 r9141  
    13441344
    13451345//スケジュール通知メールの設定があるかどうかを取得
    1346 function db_schedule_pcktai_config($c_member_id)
    1347 {
    1348     $sql = 'SELECT * FROM c_member_config '.
     1346function biz_db_schedule_pcktai_config($c_member_id)
     1347{
     1348    $sql = 'SELECT COUNT(*) FROM c_member_config '.
    13491349        'WHERE c_member_id = ? AND name = "SEND_SCHEDULE_MAIL_KTAI" '.
    13501350        'OR c_member_id = ? AND name = "SEND_SCHEDULE_MAIL_PC"';
     
    13751375    }
    13761376
    1377     $send_mail_config = db_schedule_pcktai_config($c_member_id);
     1377    $send_mail_config = biz_db_schedule_pcktai_config($c_member_id);
    13781378
    13791379    //DBにデータがない場合
     
    13851385
    13861386    $target_c_member_config = util_get_c_member_config($c_member_id);
    1387     if ($target_c_member_config['SEND_SCHEDULE_MAIL_PC']){
     1387    if ($target_c_member_config['SEND_SCHEDULE_MAIL_PC']) {
    13881388        $is_pc = true;
    13891389    }
    13901390
    1391     if ($target_c_member_config['SEND_SCHEDULE_MAIL_KTAI']){
     1391    if ($target_c_member_config['SEND_SCHEDULE_MAIL_KTAI']) {
    13921392        $is_ktai = true;
    13931393    }
     
    14141414
    14151415            $params = array(
    1416                 'c_member'    => db_member_c_member4c_member_id_LIGHT($key),
     1416                "c_member"    => db_member_c_member4c_member_id_LIGHT($key),
    14171417                "c_schedule_list" => $value,
    1418                 'login_url'   => $login_url,
     1418                "login_url"   => $login_url,
    14191419            );
    14201420            $result_ktai = fetch_send_mail($to, 'm_ktai_schedule_mail', $params);
    14211421        }
    1422     return ($result_ktai && $result_pc);
     1422        return ($result_ktai && $result_pc);
    14231423    }
    14241424}
  • OpenPNE/branches/stable-2.12.x/webapp_biz/modules/ktai_biz/do/h_member_config_update_schedule_mail.php

    r9077 r9141  
    1515        $u = $GLOBALS['KTAI_C_MEMBER_ID'];
    1616
    17         // ランクアップメール通知
     17        // スケジュールお知らせメール通知
    1818
    1919        db_member_update_c_member_config($u, 'SEND_SCHEDULE_MAIL_KTAI', $requests['SEND_SCHEDULE_MAIL_KTAI']);
  • OpenPNE/branches/stable-2.12.x/webapp_biz/modules/ktai_biz/page/h_member_config_schedule_mail.php

    r9126 r9141  
    99    function execute($requests)
    1010    {
    11         $u  = $GLOBALS['KTAI_C_MEMBER_ID'];
     11        $u = $GLOBALS['KTAI_C_MEMBER_ID'];
    1212
    13         $OPTION =util_get_c_member_config($u);
    14         $this->set("OPTION", $OPTION);
     13        $option = util_get_c_member_config($u);
     14        $this->set("option", $option);
    1515
    16         $SEND_SCHEDULE_MAIL_KTAI =$OPTION['SEND_SCHEDULE_MAIL_KTAI'];
    17         $this->set("SEND_SCHEDULE_MAIL_KTAI", $SEND_SCHEDULE_MAIL_KTAI);
     16        $send_schedule_mail_ktai = $option['SEND_SCHEDULE_MAIL_KTAI'];
     17        $this->set("send_schedule_mail_ktai", $send_schedule_mail_ktai);
    1818
    1919        return 'success';
  • OpenPNE/branches/stable-2.12.x/webapp_biz/modules/ktai_biz/templates/h_member_config_schedule_mail.tpl

    r9126 r9141  
    1111({t_form m=ktai_biz a=do_h_member_config_update_schedule_mail})
    1212<input type="hidden" name="ksid" value="({$PHPSESSID})">
    13 <input type="radio" name="SEND_SCHEDULE_MAIL_KTAI" value="1"({if $SEND_SCHEDULE_MAIL_KTAI}) checked="checked"({/if})>
     13<input type="radio" name="SEND_SCHEDULE_MAIL_KTAI" value="1"({if $send_schedule_mail_ktai}) checked="checked"({/if})>
    1414受け取る<br>
    15 <input type="radio" name="SEND_SCHEDULE_MAIL_KTAI" value="0"({if !$SEND_SCHEDULE_MAIL_KTAI}) checked="checked"({/if})>
     15<input type="radio" name="SEND_SCHEDULE_MAIL_KTAI" value="0"({if !$send_schedule_mail_ktai}) checked="checked"({/if})>
    1616受け取らない<br>
    1717
Note: See TracChangeset for help on using the changeset viewer.