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

Changeset 2150


Ignore:
Timestamp:
Mar 18, 2007, 11:42:33 AM (13 years ago)
Author:
maruyama
Message:

スケジュール修正

Location:
OpenPNE/branches/maruyama/dev_2_6_biz/webapp_biz/modules
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/maruyama/dev_2_6_biz/webapp_biz/modules/biz/do/fh_biz_schedule_edit.php

    r2039 r2150  
    1616            handle_kengen_error();
    1717        }
    18 
     18        $schedule = biz_getScheduleInfo($requests['schedule_id']);
     19       
    1920        //ERROR----------------
    2021        //存在しない日付
     
    2223            $redirect_script = '?m=biz&a=page_fh_biz_schedule_edit';
    2324            $msg = '存在しない日付が指定されました。';
    24 
    25             $schedule = biz_getScheduleInfo($requests['schedule_id']);
    2625
    2726            $begin_date = $schedule['begin_date'];
     
    135134            $finish_date = date("Y-m-d", strtotime($requests['sc_b_year'].'-'.$requests['sc_b_month'].'-'.($requests['sc_b_date']+($requests['sc_bn']-1))));
    136135            //繰り返しをしない予定登録
    137             biz_editSchedule($requests['sc_title'], $u, $begin_date, $finish_date, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, 0, $requests['biz_group_id'], $requests['public_flag'], $requests['schedule_id'], $requests['sc_j_mem']);
     136            biz_editSchedule($requests['sc_title'], $schedule['c_member_id'], $begin_date, $finish_date, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, 0, $requests['biz_group_id'], $requests['public_flag'], $requests['schedule_id'], $requests['sc_j_mem']);
    138137            $schedule_id = $requests['schedule_id'];
    139138        } else {
     
    164163               
    165164                if ($rp_rule & (1 << date("w", $nowday))) {
    166                     biz_insertSchedule($requests['sc_title'], $u, date("Y-m-d", $tmp), date("Y-m-d", $tmp), $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, $first_id, $requests['biz_group_id'], $requests['public_flag'], $requests['sc_j_mem']);
     165                    biz_insertSchedule($requests['sc_title'], $schedule['c_member_id'], date("Y-m-d", $tmp), date("Y-m-d", $tmp), $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, $first_id, $requests['biz_group_id'], $requests['public_flag'], $requests['sc_j_mem']);
    167166                }
    168167            }
  • OpenPNE/branches/maruyama/dev_2_6_biz/webapp_biz/modules/biz/page/fh_biz_schedule_edit.php

    r2039 r2150  
    2323        $schedule = biz_getScheduleInfo($requests['schedule_id']);
    2424
    25         if (empty($requests['target_id']) || ($requests['target_id'] == $u)) {
     25        if ($schedule['c_member_id'] == $u) {
    2626            //自分自身
    2727            $target_id = $u;
  • OpenPNE/branches/maruyama/dev_2_6_biz/webapp_biz/modules/biz/templates/fh_biz_schedule_add.tpl

    r2039 r2150  
    234234<td class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    235235</tr>
     236<input type="hidden" name="biz_group_id" value="0">
     237({*
    236238<tr>
    237239<td style="width:1px;" class="bg_01"><img src="./skin/dummy.gif" style="width:1px; height:1px;" class="dummy"></td>
     
    264266<td style="width:1px;" class="bg_01"><img src="./skin/dummy.gif" style="width:1px; height:1px;" class="dummy"></td>
    265267</tr>
    266 ({*********})
    267 <tr>
    268 <td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    269 </tr>
    270 ({*********})
     268*})
     269({*********})
     270({*
     271<tr>
     272<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     273</tr>
     274*})
     275({*********})
     276<input type="hidden" name="public_flag" value="public">
     277({*
    271278<tr>
    272279<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     
    289296<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    290297</tr>
    291 ({*********})
    292 <tr>
    293 <td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    294 </tr>
     298*})
     299({*********})
     300({*
     301<tr>
     302<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     303</tr>
     304*})
    295305({*********})
    296306<tr>
  • OpenPNE/branches/maruyama/dev_2_6_biz/webapp_biz/modules/biz/templates/fh_biz_schedule_edit.tpl

    r2039 r2150  
    246246<td class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    247247</tr>
     248<input type="hidden" name="biz_group_id" value="0">
     249({*
    248250<tr>
    249251<td style="width:1px;" class="bg_01"><img src="./skin/dummy.gif" style="width:1px; height:1px;" class="dummy"></td>
     
    280282<td style="width:1px;" class="bg_01"><img src="./skin/dummy.gif" style="width:1px; height:1px;" class="dummy"></td>
    281283</tr>
    282 ({*********})
    283 <tr>
    284 <td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    285 </tr>
    286 ({*********})
     284*})
     285({*********})
     286({*
     287<tr>
     288<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     289</tr>
     290*})
     291({*********})
     292<input type="hidden" name="public_flag" value="public">
     293({*
    287294<tr>
    288295<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     
    305312<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    306313</tr>
    307 ({*********})
    308 <tr>
    309 <td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    310 </tr>
     314*})
     315({*********})
     316({*
     317<tr>
     318<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     319</tr>
     320*})
    311321({*********})
    312322<tr>
  • OpenPNE/branches/maruyama/dev_2_6_biz/webapp_biz/modules/biz/templates/fh_biz_schedule_view.tpl

    r2039 r2150  
    224224({/if})
    225225({*********})
     226({*
    226227<tr>
    227228<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     
    245246<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    246247</tr>
    247 ({*********})
    248 <tr>
    249 <td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    250 </tr>
     248*})
     249({*********})
     250({*
     251<tr>
     252<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     253</tr>
     254*})
    251255({*********})
    252256<tr>
  • OpenPNE/branches/maruyama/dev_2_6_biz/webapp_biz/modules/ktai_biz/do/fh_biz_schedule_edit.php

    r1775 r2150  
    1515            handle_kengen_error();
    1616        }
     17        $schedule = biz_getScheduleInfo($requests['schedule_id']);
     18        echo 1;
     19        print_r($schedule);
     20        exit;
    1721       
    1822        //ERROR----------------
     
    132136        $schedule_id = '';
    133137
    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['public_flag'], $requests['schedule_id']);
     138        biz_editSchedule($requests['sc_title'], $schedule['c_member_id'], $begin_date, $finish_date, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, 0, $requests['sc_j_mem'], $requests['public_flag'], $requests['schedule_id']);
    135139        $schedule_id = $requests['schedule_id'];
    136140
  • OpenPNE/branches/maruyama/dev_2_6_biz/webapp_biz/modules/ktai_biz/do/fhg_biz_schedule_add.php

    r1775 r2150  
    1515        if (!$requests['target_id']) {
    1616            $requests['target_id'] = $u;
     17        }
     18       
     19        $requests['sc_b_year'] = $requests['sc_b_year'] + 2000;
     20       
     21        if (!$requests['sc_j_mem']) {
     22            //「全員」が含まれている場合は、配列を空に
     23            $requests['sc_j_mem'] = array();
     24        } elseif ($requests['sc_j_mem'] == "my") {
     25            //本人またはフレンドのみの場合
     26            $requests['sc_j_mem']=array($requests['target_id']);
     27        } else {
     28            $join_group = biz_getGroupMember($requests['sc_j_mem']);
     29            $i = 0;
     30
     31            $requests['sc_j_mem'] = array();
     32            foreach ($join_group as $key) {
     33                    $requests['sc_j_mem'][$i] = $key['c_member_id'];
     34                    $i++;
     35            }
    1736        }
    1837
     
    135154        if (!$requests['sc_rp']) {
    136155            //繰り返しをしない予定登録
    137             biz_insertSchedule($requests['sc_title'], $u, $begin_date, $finish_date, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, 0, $requests['biz_group_id'], $requests['public_flag']);
     156            biz_insertSchedule($requests['sc_title'], $requests['target_id'], $begin_date, $finish_date, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, 0, $requests['biz_group_id'], $requests['public_flag'], $requests['sc_j_mem']);
    138157        } else {
    139158            //繰り返し予定
     
    144163                $tmp = date("Ymd", $nowday);
    145164                if ($rp_rule & (1 << date("w",$nowday))) {
    146                     biz_insertSchedule($requests['sc_title'], $u, $tmp, $tmp, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, $first_id, $requests['biz_group_id'], $requests['public_flag']);
     165                    biz_insertSchedule($requests['sc_title'], $requests['target_id'], $tmp, $tmp, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, $first_id, $requests['biz_group_id'], $requests['public_flag'], $requests['sc_j_mem']);
    147166                }
    148167            }
  • OpenPNE/branches/maruyama/dev_2_6_biz/webapp_biz/modules/ktai_biz/templates/fh_biz_schedule_add.tpl

    r1775 r2150  
    2121タイトル:<input type="text" name='sc_title' size="30"><br>
    2222
     23<input type="hidden" name="biz_group_id" value="0">
     24<input type="hidden" name="public_flag" value="public">
     25参加者:<select name='sc_j_mem'>
     26                <option value="my">({if $is_f})フレンド({else})自分({/if})のみ</option>
     27                <option value="">全ユーザー</option>
     28                ({foreach item=nm from=$jgroup name=join})
     29                <option value="({$nm.biz_group_id})">({$nm.name})
     30                ({/foreach})
     31               
     32                </select><br>
     33({*
    2334グループ:<select name="biz_group_id">
    2435        <option type="radio" value="0">指定なし
     
    3243<input type='radio' name='public_flag' value='private'>公開しない<br><br>
    3344<center>
     45*})
    3446
    3547
  • OpenPNE/branches/maruyama/dev_2_6_biz/webapp_biz/modules/ktai_biz/templates/fh_biz_schedule_edit.tpl

    r1775 r2150  
    2929詳細:({$value})<br>
    3030登録者:({$writer})<br>
     31<input type="hidden" name="biz_group_id" value="0">
     32<input type="hidden" name="public_flag" value="public">
     33({*
    3134公開範囲:<br>
    3235<input type='radio' name='public_flag' value='public' ({if $public_flag == 'public'})checked({/if})>全体に公開<br>
     
    3437<input type='radio' name='public_flag' value='private' ({if $public_flag == 'private'})checked({/if})>公開しない<br>
    3538<br>
     39*})
    3640参加者:
    3741        ({foreach item=name key=id from=$member})
  • OpenPNE/branches/maruyama/dev_2_6_biz/webapp_biz/modules/ktai_biz/validate/do/fhg_biz_schedule_add.ini

    r1775 r2150  
    5252type="string"
    5353requeired = 1
     54
     55[sc_j_mem]
     56type= "string"
     57required = 0
     58capiton = "メンバー"
Note: See TracChangeset for help on using the changeset viewer.