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

Changeset 552


Ignore:
Timestamp:
Oct 30, 2006, 8:29:42 PM (16 years ago)
Author:
takanashi
Message:

r551/r548/r547追加

Location:
OpenPNE/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/public_html/img.php

    r2 r552  
    1414include_once OPENPNE_LIB_DIR . '/include/PHP/Compat/Constant/PATH_SEPARATOR.php';
    1515$include_paths = array(
     16    OPENPNE_LIB_DIR . '/include',
    1617    OPENPNE_WEBAPP_DIR . '/lib',
    17     OPENPNE_LIB_DIR . '/include',
    1818    ini_get('include_path')
    1919);
  • OpenPNE/trunk/webapp_biz/modules/admin_biz/do/biz_update_c_admin_config.php

    r276 r552  
    2424            }
    2525
    26             if (is_null(biz_admin_c_admin_config4name($name))) {
    27                 biz_admin_insertConfig($name, $value);
    28 
    29             } else {
    30                 biz_admin_updateConfig($name, $value);
    31             }
     26            biz_admin_updateConfig($name, $value);
    3227        }
    3328
  • OpenPNE/trunk/webapp_biz/modules/admin_biz/lib/biz_admin.php

    r269 r552  
    66
    77// admin モジュール用 DB接続ライブラリ
    8 
    9 function biz_admin_insertConfig($name, $value)
    10 {
    11     $sql = "INSERT INTO biz_admin_config (name, value)" .
    12         " VALUES (?, ?)";
    13     $params = array(
    14         $name,
    15         $value,
    16     );
    17 
    18     return db_insert($sql, $params);
    19 }
    208
    219function biz_admin_updateConfig($name, $value)
  • OpenPNE/trunk/webapp_biz/modules/biz/do/fh_biz_schedule_edit.php

    r406 r552  
    114114        }
    115115
    116         //繰り返し予定
    117         if ($requests['sc_rp']) {
     116        $schedule_id = '';
     117
     118        if (!$requests['sc_rp']) {
     119            //繰り返しなし
     120            $finish_date = date("Y-m-d", strtotime($requests['sc_b_year'].'-'.$requests['sc_b_month'].'-'.($requests['sc_b_date']+($requests['sc_bn']-1))));
     121            //繰り返しをしない予定登録
     122            biz_editSchedule($requests['sc_title'], $u, $begin_date, $finish_date, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, 0, $requests['sc_j_mem'], $requests['sc_j_plc'], $requests['schedule_id']);
     123            $schedule_id = $requests['schedule_id'];
     124        } else {
     125            $schedule_id = $requests['schedule_id'];
     126            biz_deleteSchedule($schedule_id);
     127
    118128            //終了日の決定
    119129            $finish_date = date("Y-m-d", strtotime($requests['sc_b_year'].'-'.$requests['sc_b_month'].'-'.($requests['sc_b_date']+($requests['sc_rcount'])*7)));
     
    123133                $rp_rule += 1 << $value;
    124134            }
    125         } else {
    126             //繰り返しなし
    127             $finish_date = date("Y-m-d", strtotime($requests['sc_b_year'].'-'.$requests['sc_b_month'].'-'.($requests['sc_b_date']+($requests['sc_bn']-1))));
    128         }
    129135
    130         $schedule_id = '';
    131 
    132         if (!$requests['sc_rp']) {
    133             //繰り返しをしない予定登録
    134             biz_editSchedule($requests['sc_title'], $u, $begin_date, $finish_date, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, 0, $requests['sc_j_mem'], $requests['sc_j_plc'], $requests['schedule_id']);
    135             $schedule_id = $requests['schedule_id'];
    136         } else {
    137136            //繰り返し予定
    138137            $tmp = $begin_date;  //処理中の日付
  • OpenPNE/trunk/webapp_biz/modules/biz/page/fh_biz_schedule_view.php

    r406 r552  
    2525            $target_id = $requests['target_id'];
    2626            $this->set('is_f', true);  //判別フラグ
    27             $this->set('inc_navi',fetch_inc_navi('f'));
     27            $this->set('inc_navi',fetch_inc_navi('f',$requests['target_id']));
    2828        }
    2929
     
    3232        $this->set("target_member", $target_member);
    3333        $this->set("form_val", $form_val);
    34 
     34        $this->set("target_c_member_id", $requests['target_id']);
     35       
    3536        //カレンダー関係
    3637        //カレンダー開始用変数
  • OpenPNE/trunk/webapp_biz/modules/biz/templates/fh_biz_schedule_view.tpl

    r415 r552  
    277277<input type="hidden" name="members" value="({$jmembers_enc})">
    278278<input type="hidden" name="schedule_id" value="({$schedule_id})">
    279 <input type="hidden" name="target_id" value="({$target_c_member.c_member_id})">
     279<input type="hidden" name="target_id" value="({$target_c_member_id})">
    280280
    281281<input value="修正する" type="submit" class="submit">
Note: See TracChangeset for help on using the changeset viewer.