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

Changeset 895


Ignore:
Timestamp:
Nov 24, 2006, 8:04:44 PM (14 years ago)
Author:
takanashi
Message:

#123確認用

Location:
OpenPNE/branches/takanashi/prj_takanashi
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/takanashi/prj_takanashi/bin/tool_send_schedule_mail.php

    r2 r895  
    88require_once OPENPNE_WEBAPP_DIR . '/init.inc';
    99
    10 do_common_send_schedule_mail();
     10if (USE_BIZ_DIR) {
     11    require_once OPENPNE_MODULES_BIZ_DIR . '/biz/init.inc';
     12    biz_do_common_send_schedule_mail();
     13} else {
     14    do_common_send_schedule_mail();
     15}
    1116
    1217?>
  • OpenPNE/branches/takanashi/prj_takanashi/webapp_biz/modules/biz/lib/mysql_functions.php

    r803 r895  
    11911191}
    11921192
     1193//------------------------------
     1194//mail
     1195
     1196/**
     1197 * スケジュール通知メールを送信する
     1198 */
     1199function biz_do_common_send_schedule_mail()
     1200{
     1201    $y = date("Y");
     1202    $m = date("m");
     1203    $d = date("d");
     1204    $c_schedule_list = biz_getDateSchedule($y, $m, $d);
     1205
     1206    $send_list = array();
     1207    foreach ($c_schedule_list as $schedule_id) {
     1208        $value = biz_getScheduleInfo($schedule_id);
     1209        $c_member_id = $value['c_member_id'];
     1210        $send_list[$c_member_id][] = $value;
     1211    }
     1212
     1213    foreach ($send_list as $key => $value) {
     1214        $c_member_secure = db_common_c_member_secure4c_member_id($key);
     1215        $pc_address = $c_member_secure['pc_address'];
     1216
     1217        $params = array(
     1218            "c_member" => db_common_c_member4c_member_id_LIGHT($key),
     1219            "c_schedule_list" => $value,
     1220        );
     1221        var_dump($pc_address, $params);
     1222        fetch_send_mail($pc_address, 'm_pc_schedule_mail', $params);
     1223    }
     1224}
    11931225?>
Note: See TracChangeset for help on using the changeset viewer.