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

Changeset 1168


Ignore:
Timestamp:
Dec 14, 2006, 8:23:44 PM (14 years ago)
Author:
ebihara
Message:

#236 PC版週間スケジュールの開始曜日を変更できるように

Location:
OpenPNE/branches/ebihara/prj_dev26_calendar
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/ebihara/prj_dev26_calendar/webapp/lib/db/deprecated_temporary4.php

    r1131 r1168  
    446446                $c_password_query_answer,
    447447                $public_flag_diary,
    448                 $is_shinobiashi)
     448                $is_shinobiashi,
     449                $schedule_start_day)
    449450{
    450451    return db_member_h_config_3(
     
    457458                $c_password_query_answer,
    458459                $public_flag_diary,
    459                 $is_shinobiashi);
     460                $is_shinobiashi,
     461                $schedule_start_day);
    460462}
    461463
  • OpenPNE/branches/ebihara/prj_dev26_calendar/webapp/lib/db/member.php

    r1096 r1168  
    10161016                $c_password_query_answer,
    10171017                $public_flag_diary,
    1018                 $is_shinobiashi)
     1018                $is_shinobiashi,
     1019                $schedule_start_day)
    10191020{
    10201021    //function cacheの削除
     
    10291030        'public_flag_diary' => $public_flag_diary,
    10301031        'is_shinobiashi' => $is_shinobiashi,
     1032        'schedule_start_day' => $schedule_start_day,
    10311033    );
    10321034    $where = array('c_member_id' => intval($c_member_id));
  • OpenPNE/branches/ebihara/prj_dev26_calendar/webapp/modules/pc/do/h_config_3.php

    r134 r1168  
    3131        $public_flag_diary = $requests['public_flag_diary'];
    3232        $is_shinobiashi = $requests['is_shinobiashi'];
     33        $schedule_start_day = $requests['schedule_start_day'];
    3334        // ----------
    3435
     
    5859            $c_password_query_answer,
    5960            $public_flag_diary,
    60             $is_shinobiashi
     61            $is_shinobiashi,
     62            $schedule_start_day
    6163        );
    6264
  • OpenPNE/branches/ebihara/prj_dev26_calendar/webapp/modules/pc/page/h_home.php

    r1159 r1168  
    9999        /// 週間カレンダー
    100100        if (DISPLAY_SCHEDULE_HOME) {
    101             $this->set('calendar', $this->get_calendar($u, $requests['w']));
     101                        //開始曜日の設定
     102                        if ($c_member['schedule_start_day'] == 2) {
     103                $start_day = date("w");
     104            } else {
     105                $start_day = $c_member['schedule_start_day'];
     106            }
     107            $this->set('calendar', $this->get_calendar($u, $requests['w'], $start_day));
    102108        }
    103109
     
    128134    }
    129135
    130     function get_calendar($u, $week)
     136    function get_calendar($u, $week, $start_day)
    131137    {
    132138        include_once 'Calendar/Week.php';
     
    137143        $this->set('w', $w);
    138144        $time = strtotime($w . ' week');
    139         $Week = new Calendar_Week(date('Y', $time), date('m', $time), date('d', $time), 0);
     145        $Week = new Calendar_Week(date('Y', $time), date('m', $time), date('d', $time), $start_day);
    140146        $Week->build();
    141147        $calendar = array();
    142148        $dayofweek = array('日','月','火','水','木','金','土');
    143         $i = 0;
     149        $i = $start_day;
     150        $dayofweek = array_merge($dayofweek,
     151            array_slice($dayofweek, 0, ($start_day + 1)));
    144152        while ($Day = $Week->fetch()) {
    145153            $y = $Day->thisYear();
  • OpenPNE/branches/ebihara/prj_dev26_calendar/webapp/modules/pc/templates/h_config.tpl

    r1096 r1168  
    368368<input type="radio" name="is_receive_daily_news" value="0" ({if $c_member.is_receive_daily_news eq 0}) checked="checked"({/if}) class="no_bg">受け取らない<br>
    369369<span>※({$SNS_NAME})の最新情報をお届けします。</span>
     370
     371</div>
     372</td>
     373<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     374</tr>
     375({*********})
     376<tr>
     377<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     378</tr>
     379({/if})
     380({*********})
     381({if $smarty.const.DISPLAY_SCHEDULE_HOME})
     382<tr>
     383<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     384<td class="bg_05" align="left" valign="middle">
     385
     386<div class="padding_s">
     387
     388週間カレンダー
     389
     390</div>
     391
     392</td>
     393<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     394<td class="bg_02" align="left" valign="middle">
     395<div class="padding_s">
     396
     397<input type="radio" name="schedule_start_day" value="0" ({if $c_member.schedule_start_day == 0}) checked="checked"({/if})>日曜始まり
     398<input type="radio" name="schedule_start_day" value="1" ({if $c_member.schedule_start_day == 1}) checked="checked"({/if})>月曜始まり
     399<input type="radio" name="schedule_start_day" value="2" ({if $c_member.schedule_start_day == 2}) checked="checked"({/if})>本日始まり
    370400
    371401</div>
  • OpenPNE/branches/ebihara/prj_dev26_calendar/webapp/modules/pc/validate/do/h_config_3.ini

    r260 r1168  
    3535type = "string"
    3636default = "public"
     37
     38[schedule_start_day]
     39type="int"
     40default=0
Note: See TracChangeset for help on using the changeset viewer.