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

ChangeLog_develop: OpenPNE_2_5_4_to_2_5_5.patch

File OpenPNE_2_5_4_to_2_5_5.patch, 156.7 KB (added by takanashi, 11 years ago)
  • setup/sql/update/update05-for2.5.5_diary_category.sql

     
     1CREATE TABLE `c_diary_category` (
     2  `c_diary_category_id` int(11) NOT NULL auto_increment,
     3  `category_name` text collate utf8_unicode_ci NOT NULL,
     4  `c_member_id` int(11) NOT NULL,
     5  `r_datetime` datetime NOT NULL,
     6  PRIMARY KEY  (`c_diary_category_id`)
     7) ENGINE=MyISAM DEFAULT CHARSET=utf8;
     8
     9CREATE TABLE `c_diary_category_diary` (
     10  `c_diary_category_diary_id` int(11) NOT NULL auto_increment,
     11  `c_diary_category_id` int(11) NOT NULL,
     12  `c_diary_id` int(11) NOT NULL,
     13  PRIMARY KEY  (`c_diary_category_diary_id`)
     14) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  • webapp_biz/modules/pc/page/h_prof.php

    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: public_html/skin/button_search_4.gif
    ___________________________________________________________________
    Name: svn:mime-type
       + application/octet-stream
    
     
    5959        $stateform = biz_getStateForm($u);
    6060        $this->set("stateform", $stateform);
    6161
    62         $this->set("group_list", biz_getJoinGroup($u, 9));
     62        $group_list = biz_getHomeGroupList($u);
     63        $this->set('group_list', $group_list);
    6364
    6465        // ---bizここまで
    6566
  • webapp_biz/modules/biz/do/h_home_edit_biz_todo.php

     
    2525
    2626        biz_editTodo($todo_info['c_member_id'], $memo, $writer_id, $sort_order, $is_check, $id);
    2727
    28         $p = array('msg' => '');
    29         openpne_redirect('pc', 'page_h_home', $p);
     28        openpne_redirect('pc', 'page_h_home');
    3029    }
    3130}
    3231
  • webapp_biz/modules/biz/do/h_biz_shisetsu_delete.php

     
    1010    {
    1111        $u = $GLOBALS['AUTH']->uid();
    1212        $sessid = session_id();
    13         biz_deleteShisetsuIhige($requests['id'], $requests['filename']);
     13        biz_deleteShisetsuImage($requests['id'], $requests['filename']);
    1414
    1515        $p = array('id' => $requests['id']);
    1616        openpne_redirect('biz', 'page_s_edit_shisetsu', $p);
  • webapp_biz/modules/biz/do/s_add_schedule.php

     
    2323        $begin_time = strtotime($begin_time_str);
    2424        $begin_time_english = date("H:i d M Y", $begin_time);
    2525
    26         $finish_time = strtotime($begin_time_english . " +" . $requests['finish_time'] . " minute");
     26        $finish_time = $begin_time + $requests['finish_time'] * 60;
    2727        $finish_time_str = date("H:i:00", $finish_time);
    2828
    2929        //終了時間と開始時間が変
  • webapp_biz/modules/biz/page/h_biz_schedule_delete.php

     
    1212    {
    1313        $u = $GLOBALS['AUTH']->uid();
    1414
     15        $this->set('inc_navi', fetch_inc_navi("h"));
    1516        $this->set('schedule_id',$requests['schedule_id']);
    1617        $this->set("is_rep", $requests['is_rep']);
    1718
  • webapp/lib/OpenPNE/Config.php

     
    2727            'LOGIN_CHECK_ENABLE','LOGIN_CHECK_TIME','LOGIN_CHECK_NUM','LOGIN_REJECT_TIME',
    2828            'LOGIN_URL_PC', 'DISPLAY_LOGIN',
    2929            'DISPLAY_SCHEDULE_HOME', 'DISPLAY_SEARCH_HOME', 'DAILY_NEWS_DAY',
    30             'USE_BOOKMARK_FEED', 'USE_SHINOBIASHI',
     30            'USE_BOOKMARK_FEED', 'USE_SHINOBIASHI', 'USE_DIARY_CATEGORY',
    3131            'OPENPNE_USE_CMD_TAG', 'OPENPNE_USE_FLASH_LIST',
    3232            'WORD_FRIEND','WORD_MY_FRIEND',
    3333            'WORD_FRIEND_HALF','WORD_MY_FRIEND_HALF',
     
    3838            'UNUSED_MAILS',
    3939            'DISPLAY_OPENPNE_INFO',
    4040            'USE_EXTRA_SERVICE',
    41 
     41            'LIMIT_DOMAIN1',
     42            'LIMIT_DOMAIN2',
     43            'LIMIT_DOMAIN3',
     44            'LIMIT_DOMAIN4',
     45            'LIMIT_DOMAIN5',
    4246        );
    4347    }
    4448
     
    97101            'DAILY_NEWS_DAY' => '月,木',
    98102            'USE_BOOKMARK_FEED' => false,
    99103            'USE_SHINOBIASHI' => false,
     104            'USE_DIARY_CATEGORY' => true,
    100105            'OPENPNE_USE_CMD_TAG' => true,
    101106            'LOGIN_CHECK_ENABLE' => false,
    102107            'LOGIN_CHECK_NUM' => 1000,
     
    115120            'SKIN_VERSION' => '2.0',
    116121            'AFFILIATE_TAG' => '',
    117122            'UNUSED_MAILS' => '',
     123            'USE_EXTRA_SERVICE' => '1',
     124            'LIMIT_DOMAIN1' => '',
     125            'LIMIT_DOMAIN2' => '',
     126            'LIMIT_DOMAIN3' => '',
     127            'LIMIT_DOMAIN4' => '',
     128            'LIMIT_DOMAIN5' => '',
     129
    118130        // config.php
    119131            'OPENPNE_RSS_CACHE_DIR' => OPENPNE_VAR_DIR . '/rss_cache',
    120132            'OPENPNE_UNDER_MAINTENANCE' => false,
  • webapp/lib/db/member.php

     
    2020    if (!$is_recurred) {  //function cacheのために再帰処理を行う
    2121        $is_recurred = true;
    2222        $funcargs = func_get_args();
    23         return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     23        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_FAST, __FUNCTION__, $funcargs);
    2424    }
    2525
    2626    $is_recurred = false;
     
    619619    }
    620620}
    621621
     622//対象のアドレスが、ドメイン制限に合致しているかどうか
     623function db_member_is_limit_domain4mail_address($mail_address)
     624{
     625    // メールアドレスとして正しくない
     626    if (!db_common_is_mailaddress($mail_address)) {
     627        return false;
     628    }
     629
     630    // 携帯アドレスは制限しない
     631    if (is_ktai_mail_address($mail_address)) {
     632        return true;
     633    }
     634
     635    //ドメイン未設定なら無条件でOK
     636    if (LIMIT_DOMAIN1 == '' &&
     637        LIMIT_DOMAIN2 == '' &&
     638        LIMIT_DOMAIN3 == '' &&
     639        LIMIT_DOMAIN4 == '' &&
     640        LIMIT_DOMAIN5 == ''
     641    ) {
     642        return true;
     643    }
     644
     645    $arr = explode('@', $mail_address);
     646
     647    $domains = array(LIMIT_DOMAIN1,
     648                     LIMIT_DOMAIN2,
     649                     LIMIT_DOMAIN3,
     650                     LIMIT_DOMAIN4,
     651                     LIMIT_DOMAIN5,
     652               );
     653
     654    if (in_array($arr[1], $domains)) {
     655        return true;
     656    } else {
     657        return false;
     658    }
     659}
    622660function db_member_c_member_ktai_pre4ktai_address($ktai_address)
    623661{
    624662    $sql = 'SELECT * FROM c_member_ktai_pre WHERE ktai_address = ?';
     
    9791017                $public_flag_diary,
    9801018                $is_shinobiashi)
    9811019{
     1020    //function cacheの削除
     1021    cache_drop_c_member_profile($c_member_id);
     1022   
    9821023    $data = array(
    9831024        'is_receive_mail' => (bool)$is_receive_mail,
    9841025        'is_receive_daily_news' => intval($is_receive_daily_news),
  • webapp/lib/db/friend.php

     
    232232 */
    233233function db_friend_c_friend_list4c_member_id($c_member_id, $limit = 0)
    234234{
     235    $result = db_friend_c_friend_id_list4c_member_id($c_member_id, $limit);
     236
     237    foreach ($result as $key => $value) {
     238        $result[$key] = db_common_c_member4c_member_id_LIGHT($value['c_member_id']);
     239        $result[$key]['friend_count'] = db_friend_count_friends($value['c_member_id']);
     240    }
     241    return $result;
     242}
     243
     244/**
     245 * フレンドリスト用IDリストを取得する関数
     246 */
     247function db_friend_c_friend_id_list4c_member_id($c_member_id, $limit)
     248{
    235249    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
    236250
    237251    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     
    251265        $result = db_get_all($sql, $params);
    252266    }
    253267
    254     foreach ($result as $key => $value) {
    255         $result[$key] = db_common_c_member4c_member_id_LIGHT($value['c_member_id']);
    256         $result[$key]['friend_count'] = db_friend_count_friends($value['c_member_id']);
    257     }
    258268    return $result;
    259269}
    260270
  • webapp/lib/db/diary.php

     
    55 */
    66
    77/**
     8 * 指定メンバーの日記カテゴリリストを取得する
     9 *
     10 * @param int $c_member_id
     11 * @return array
     12 */
     13function db_diary_category_list4c_member_id($c_member_id)
     14{
     15    $sql = 'SELECT c_diary_category_id, category_name FROM c_diary_category ' .
     16        'WHERE c_member_id = ?';
     17    $result = db_get_all($sql, array(intval($c_member_id)));
     18
     19    return $result;
     20}
     21
     22/**
     23 * カテゴリ名からカテゴリIDを得る
     24 *
     25 * @param int $c_member_id
     26 * @param string $category_name
     27 * @return bool
     28 */
     29function db_diary_get_category_id4category_name($c_member_id, $category_name)
     30{
     31    $sql = 'SELECT c_diary_category_id FROM c_diary_category ' .
     32        'WHERE category_name LIKE ? AND c_member_id = ?';
     33    return db_get_one($sql, array($category_name, intval($c_member_id)));
     34}
     35
     36/**
     37 * カテゴリIDからカテゴリ名を得る
     38 */
     39function db_diary_get_category_name4category_id($category_id)
     40{
     41    $sql = 'SELECT category_name FROM c_diary_category ' .
     42        'WHERE c_diary_category_id = ?';
     43    return db_get_one($sql, array($category_id));
     44}
     45
     46/**
     47 * 日記IDからカテゴリリストを得る
     48 *
     49 * @param int $c_diary_id
     50 * @return array
     51 */
     52function db_diary_category_list4c_diary_id($c_diary_id)
     53{
     54    $sql = 'SELECT c_diary_category_id FROM c_diary_category_diary WHERE c_diary_id = ?';
     55    $category_list = db_get_col($sql, array(intval($c_diary_id)));
     56    $ids = join(',', $category_list);
     57
     58    $sql = 'SELECT c_diary_category_id, category_name FROM c_diary_category' .
     59        ' WHERE c_diary_category_id IN ('.$ids.')';
     60    return db_get_all($sql);
     61}
     62
     63/**
     64 * カテゴリIDから日記を得る
     65 *
     66 * @param int $c_diary_category_id
     67 * @return array
     68 */
     69function db_diary_list4c_diary_category_id($c_member_id, $c_diary_category_id, $u = null)
     70{
     71    $sql = 'SELECT c_diary_id FROM c_diary_category_diary WHERE c_diary_category_id = ?';
     72    $diary_list = db_get_col($sql, array(intval($c_diary_category_id)));
     73    $ids = join(',', $diary_list);
     74
     75    $pf_cond = db_diary_public_flag_condition($c_member_id, $u);
     76    $sql = 'SELECT * FROM c_diary' .
     77        ' WHERE c_diary_id IN ('.$ids.') AND c_member_id = ? ' . $pf_cond . ' ORDER BY r_datetime DESC';
     78    $list = db_get_all($sql, array($c_member_id));
     79
     80    foreach ($list as $key => $c_diary) {
     81        $list[$key]['num_comment'] = db_diary_count_c_diary_comment4c_diary_id($c_diary['c_diary_id']);
     82    }
     83
     84    return array($list, false, false);
     85}
     86
     87/**
     88 * カテゴリを追加する
     89 *
     90 * @param int $c_member_id
     91 * @param int $category_name
     92 */
     93function db_diary_category_insert_category($c_member_id, $category_name)
     94{
     95    $data = array(
     96        'c_member_id' => intval($c_member_id),
     97        'category_name' => $category_name,
     98        'r_datetime' => db_now(),
     99    );
     100    return db_insert('c_diary_category', $data);
     101}
     102
     103/**
     104 * カテゴリを削除する
     105 *
     106 * @param int $c_diary_category_id
     107 */
     108function db_diary_category_delete_category($c_diary_category_id)
     109{
     110    $sql = 'DELETE FROM c_diary_category WHERE c_diary_category_id = ?';
     111    db_query($sql, array($c_diary_category_id));   
     112}
     113/**
     114 * カテゴリと日記を関連づける
     115 *
     116 * @param int $c_diary_id
     117 * @param int $c_diary_category_id
     118 */
     119function db_diary_category_insert_c_diary_category_diary($c_diary_id, $c_diary_category_id)
     120{
     121    $data = array(
     122        'c_diary_id' => intval($c_diary_id),
     123        'c_diary_category_id' => intval($c_diary_category_id),
     124    );
     125    db_insert('c_diary_category_diary', $data);
     126}
     127
     128/**
     129 * カテゴリと日記の関連づけを削除する
     130 */
     131function db_diary_category_delete_c_diary_category_diary($c_diary_id)
     132{
     133    $diary_category_list = db_diary_category_list4c_diary_id($c_diary_id);
     134
     135    $sql = 'DELETE FROM c_diary_category_diary WHERE c_diary_id = ?';
     136    db_query($sql, array($c_diary_id));
     137
     138    foreach($diary_category_list as $value) {
     139            $sql = 'SELECT COUNT(*) FROM c_diary_category_diary'.
     140                ' WHERE c_diary_category_id = ?';
     141        $c_diary_category_id = $value['c_diary_category_id'];
     142        $is_diary = (bool)db_get_one($sql, array(intval($c_diary_category_id)));
     143        if (!$is_diary) {  //カテゴリに関連付いた日記が存在しない
     144            db_diary_category_delete_category($c_diary_category_id);
     145        }
     146    }
     147}
     148
     149/**
    8150 * db_diary_public_flag_condition
    9151 *
    10152 * @param int $c_member_id target c_member_id
     
    208350            $prev = true;
    209351        }
    210352    }
    211     return array($list, $prev, $next);
     353    return array($list, $prev, $next, $total_num);
    212354}
    213355
    214356/**
     
    435577/**
    436578 * あるメンバーの指定された年月日の日記のリストを得る
    437579 */
    438 function p_fh_diary_list_diary_list_date4c_member_id($c_member_id, $year, $month, $day=0, $u = null)
     580function p_fh_diary_list_diary_list_date4c_member_id($c_member_id, $page_size, $page, $year, $month, $day=0 ,$u = null)
    439581{
    440582    if ($day) {
    441583        $s_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month, $day, $year));
     
    446588    }
    447589
    448590    $pf_cond = db_diary_public_flag_condition($c_member_id, $u);
     591    $where = ' WHERE c_member_id = ? AND r_datetime >= ? AND r_datetime < ?';
    449592    $sql = 'SELECT * FROM c_diary' .
    450             ' WHERE c_member_id = ? AND r_datetime >= ? AND r_datetime < ?' . $pf_cond .
     593            $where . $pf_cond .
    451594            ' ORDER BY r_datetime DESC';
    452595    $params = array(intval($c_member_id), $s_date, $e_date);
    453     $list = db_get_all($sql, $params);
     596    $list = db_get_all_limit($sql, $page, $page_size, $params);
    454597
    455598    foreach ($list as $key => $c_diary) {
    456599        $list[$key]['num_comment'] = db_diary_count_c_diary_comment4c_diary_id($c_diary['c_diary_id']);
    457600    }
    458601
    459     return array($list, false, false);
     602    $sql = 'SELECT COUNT(*) FROM c_diary' . $where;
     603    $total_num = db_get_one($sql, $params);
     604
     605    if ($total_num != 0) {
     606        $total_page_num =  ceil($total_num / $page_size);
     607        if ($page >= $total_page_num) {
     608            $next = false;
     609        } else {
     610            $next = true;
     611        }
     612        if ($page <= 1) {
     613            $prev = false;
     614        } else {
     615            $prev = true;
     616        }
     617    }
     618    return array($list , $prev , $next, $total_num);
    460619}
    461620
    462621/**
     
    527686 * 検索ポイントはタイトル、本文
    528687 * 空白(全角半角問わない)でand検索可
    529688 */
    530 function p_h_diary_list_all_search_c_diary4c_diary($keyword, $page_size, $page)
     689function p_h_diary_list_all_search_c_diary4c_diary($keyword, $page_size, $page, $c_member_id = '')
    531690{
     691    $params = array();
     692
    532693    $select = 'SELECT *';
    533694    $from = ' FROM c_diary';
    534     $where = " WHERE public_flag = 'public'";
    535695
     696    //自分の日記だけを対象にする事も出来る
     697    if ($c_member_id) {
     698        $where = ' WHERE c_member_id = ?';
     699        $params[] = intval($c_member_id);
     700    } else {
     701        $where = " WHERE public_flag = 'public'";
     702    }
     703
    536704    //and検索を実装
    537705    //subject,body を検索
    538     $params = array();
    539706    if ($keyword) {
    540707        //全角空白を半角に統一
    541708        $keyword = str_replace(' ', ' ', $keyword);
     
    8391006    $params = array(intval($c_diary_id));
    8401007    $comment_images = db_get_all($sql, $params);
    8411008
     1009    //カテゴリ
     1010    db_diary_category_delete_c_diary_category_diary($c_diary_id);
     1011
    8421012    foreach ($comment_images as $value) {
    8431013        image_data_delete($value['image_filename_1']);
    8441014        image_data_delete($value['image_filename_2']);
  • webapp/lib/db/etc.php

     
    196196    return $calendar;
    197197}
    198198
     199/**
     200 * メッセージページのカレンダー生成
     201 */
     202function db_common_message_monthly_calendar($u, $year, $month, $c_member_id, $box)
     203{
     204    include_once 'Calendar/Month/Weekdays.php';
     205    $Month = new Calendar_Month_Weekdays($year, $month, 0);
     206    $Month->build();
     207
     208    $is_message_list = db_message_is_message_list4date($u, $year, $month, $box);
     209
     210    $calendar = array();
     211    $week = 0;
     212    while ($Day = $Month->fetch()) {
     213        if ($Day->isFirst()) $week++;
     214
     215        if ($Day->isEmpty()) {
     216            $calendar['days'][$week][] = array();
     217        } else {
     218            $day = $Day->thisDay();
     219            $item = array(
     220                'day' => $day,
     221                'is_message' => @in_array($day, $is_message_list),
     222            );
     223            $calendar['days'][$week][] = $item;
     224        }
     225    }
     226
     227    if ($box == 'inbox' || !$box) {
     228        $where = "c_member_id_to = ?".
     229                 " AND is_deleted_to = 0" .
     230                 " AND is_send = 1";
     231    } elseif ($box == 'outbox') {
     232        $where = "c_member_id_from = ?".
     233                 " AND is_deleted_from = 0" .
     234                 " AND is_send = 1";
     235    } else {
     236        return null;
     237    }
     238
     239    // 最初にメッセージを書いた日
     240    $sql = "SELECT r_datetime FROM c_message WHERE $where ORDER BY r_datetime";
     241    $first_datetime = db_get_one($sql, array(intval($u)));
     242
     243    // 前の月、次の月
     244    $prev_month = $Month->prevMonth('timestamp');
     245    $this_month = $Month->thisMonth('timestamp');
     246    $next_month = $Month->nextMonth('timestamp');
     247
     248    $ym = array(
     249        'disp_year'  => $year,
     250        'disp_month' => $month,
     251        'prev_year'  => null,
     252        'prev_month' => null,
     253        'next_year'  => null,
     254        'next_month' => null,
     255    );
     256    if ($first_datetime && strtotime($first_datetime) < $this_month) {
     257        $ym['prev_year'] = date('Y', $prev_month);
     258        $ym['prev_month'] = date('n', $prev_month);
     259    }
     260    if ($next_month < time()) {
     261        $ym['next_year'] = date('Y', $next_month);
     262        $ym['next_month'] = date('n', $next_month);
     263    }
     264    $calendar['ym'] = $ym;
     265
     266    return $calendar;
     267}
     268
    199269//---
    200270
    201271/**
  • webapp/lib/db/deprecated_temporary1.php

     
    99//ranking.php
    1010function p_h_ranking_c_ashiato_ranking($limit = 10)
    1111{
    12     return db_ranking_c_ashiato_ranking($limit = 10);
     12    return db_ranking_c_ashiato_ranking($limit);
    1313}
    1414
    1515function p_h_ranking_c_friend_ranking($limit = 10)
    1616{
    17     return db_ranking_c_friend_ranking($limit = 10);
     17    return db_ranking_c_friend_ranking($limit);
    1818}
    1919
    2020function p_h_ranking_c_commu_member_ranking($limit = 10)
    2121{
    22     return db_ranking_c_commu_member_ranking($limit = 10);
     22    return db_ranking_c_commu_member_ranking($limit);
    2323}
    2424
    2525function p_h_ranking_c_commu_topic_comment_ranking($limit = 10)
    2626{
    27     return db_ranking_c_commu_topic_comment_ranking($limit = 10);
     27    return db_ranking_c_commu_topic_comment_ranking($limit);
    2828}
    2929
    30 
    3130//review.php
    3231
    33 /**
    34  * @copyright 2005-2006 OpenPNE Project
    35  * @license   http://www.php.net/license/3_01.txt PHP License 3.01
    36  */
    37 
    38 
    3932function p_h_home_c_friend_review_list4c_member_id($c_member_id, $limit)
    4033{
    4134        return db_review_c_friend_review_list4c_member_id($c_member_id, $limit);
     
    7366 */
    7467function p_h_review_search_result4keyword_category($keyword, $category_id , $orderby, $page = 1, $page_size = 30)
    7568{
    76         return db_review_search_result4keyword_category($keyword, $category_id , $orderby, $page = 1, $page_size = 30);
     69        return db_review_search_result4keyword_category($keyword, $category_id , $orderby, $page, $page_size);
    7770}
    7871
    7972function p_h_review_list_product_c_review4c_review_id($c_review_id)
     
    8376
    8477function p_h_review_list_product_c_review_list4c_review_id($c_review_id, $page, $page_size=30)
    8578{
    86     return db_review_list_product_c_review_list4c_review_id($c_review_id, $page, $page_size=30);
     79    return db_review_list_product_c_review_list4c_review_id($c_review_id, $page, $page_size);
    8780}
    8881
    8982function p_fh_review_list_product_c_review_list4c_member_id($c_member_id, $page, $page_size=30)
    9083{
    91         return db_review_list_product_c_review_list4c_member_id($c_member_id, $page, $page_size=30);
     84        return db_review_list_product_c_review_list4c_member_id($c_member_id, $page, $page_size);
    9285}
    9386
    9487function p_h_review_add_write_c_review_comment4asin_c_member_id($asin, $c_member_id)
     
    9891
    9992function p_h_review_clip_list_h_review_clip_list4c_member_id($c_member_id, $page, $page_size=30)
    10093{
    101         return db_review_clip_list_h_review_clip_list4c_member_id($c_member_id, $page, $page_size=30);
     94        return db_review_clip_list_h_review_clip_list4c_member_id($c_member_id, $page, $page_size);
    10295}
    10396
    10497function p_c_member_review_c_member_review4c_commu_id($c_commu_id, $page, $page_size=20)
    10598{
    106         return db_review_c_member_review_c_member_review4c_commu_id($c_commu_id, $page, $page_size=20);
     99        return db_review_c_member_review_c_member_review4c_commu_id($c_commu_id, $page, $page_size);
    107100}
    108101
    109102function c_member_review_add_confirm_c_member_review4c_review_id($c_review_id, $c_member_id)
  • webapp/lib/db/message.php

     
    5757}
    5858
    5959/**
    60  * 受信メッセージリストを取得
     60 * 受信メッセージリストを取得(年月日絞りに対応)
    6161 */
    62 function db_message_c_message_received_list4c_member_id4range($c_member_id, $page, $page_size)
     62function db_message_c_message_received_list4c_member_id4range($c_member_id, $page, $page_size, $year = '', $month = '', $day = '')
    6363{
     64    $params = array();
     65    $params[] = intval($c_member_id);
     66
    6467    $sql = "SELECT * FROM c_message";
    6568    $where = "c_member_id_to = ?".
    6669            " AND is_deleted_to = 0" .
    6770            " AND is_send = 1";
     71
     72    //年月日で絞る
     73    if ($year && $month) {
     74        if ($day) {
     75            $s_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month, $day, $year));
     76            $e_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month, $day+1, $year));
     77        } else {
     78            $s_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month, 1, $year));
     79            $e_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month+1, 1, $year));
     80        }
     81        $where .= ' AND r_datetime >= ? AND r_datetime < ?';
     82        $params[] = $s_date;
     83        $params[] = $e_date;
     84    }
     85
    6886    $sql .= " WHERE $where";
    6987    $sql .= " ORDER BY r_datetime DESC";
    70     $params = array(intval($c_member_id));
     88
    7189    $c_message_list = db_get_all_page($sql, $page, $page_size, $params);
    7290
    7391    foreach ($c_message_list as $key => $value) {
     
    92110            $prev = true;
    93111        }
    94112    }
    95     return array($c_message_list , $prev , $next);
     113    return array($c_message_list , $prev , $next, $total_num);
    96114}
    97115
    98116/**
    99117 * 送信メッセージリストを取得
    100118 */
    101 function db_message_c_message_sent_list4c_member_id4range($c_member_id, $page, $page_size)
     119function db_message_c_message_sent_list4c_member_id4range($c_member_id, $page, $page_size, $year = '', $month = '', $day = '')
    102120{
     121    $params = array(intval($c_member_id));
     122
    103123    $sql = "SELECT * FROM c_message";
    104124    $where = "c_member_id_from = ?" .
    105125            " AND is_deleted_from = 0" .
    106126            " AND is_send = 1";
     127
     128
     129    //年月日で絞る
     130    if ($year && $month) {
     131        if ($day) {
     132            $s_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month, $day, $year));
     133            $e_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month, $day+1, $year));
     134        } else {
     135            $s_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month, 1, $year));
     136            $e_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month+1, 1, $year));
     137        }
     138        $where .= ' AND r_datetime >= ? AND r_datetime < ?';
     139        $params[] = $s_date;
     140        $params[] = $e_date;
     141    }
     142
    107143    $sql .= " WHERE $where";
    108144    $sql .= " ORDER BY r_datetime DESC";
    109     $params = array(intval($c_member_id));
    110145    $c_message_list = db_get_all_page($sql, $page, $page_size, $params);
    111146
    112147    foreach ($c_message_list as $key => $value) {
     
    132167        }
    133168    }
    134169
    135     return array($c_message_list , $prev , $next);
     170    return array($c_message_list , $prev , $next, $total_num);
    136171}
    137172
    138173/**
     
    172207        }
    173208    }
    174209
    175     return array($c_message_list, $prev, $next);
     210    return array($c_message_list, $prev, $next, $total_num);
    176211}
    177212
    178213/**
     
    204239    foreach ($c_message_list as $key => $row) {
    205240       $c_message_id[$key] = intval($row['c_message_id']);
    206241    }
    207     array_multisort($c_message_id, SORT_DESC, $c_message_list);
    208     $c_message_list = array_slice($c_message_list, ($page_size * ($page - 1) + 1), $page_size);
     242    @array_multisort($c_message_id, SORT_DESC, $c_message_list);
     243    $c_message_list = array_slice($c_message_list, $page_size * ($page - 1), $page_size);
    209244
    210245    $total_num = $c_message_num_from + $c_message_num_to;
    211246
     
    233268        $c_message_list[$key]['image_filename'] = $c_member['image_filename'];
    234269    }
    235270
    236     return array($c_message_list, $prev, $next);
     271    return array($c_message_list, $prev, $next, $total_num);
    237272}
    238273
    239274/**
     
    597632    return db_update('c_message', $data, $where);
    598633}
    599634
     635
     636//メッセージの次のc_message_idを取得
     637function db_message_get_c_message_next_id4c_message_id($c_member_id, $c_message_id, $box)
     638{
     639    if ($box == 'savebox' || $box == 'trash') {
     640        return null;
     641    } else if ($box == 'outbox'){   //送信箱
     642        $where = " WHERE c_member_id_from = ?";
     643    } else {                        //受信箱
     644        $where = " WHERE c_member_id_to = ?";
     645    }
     646
     647    $sql =  "SELECT c_message_id FROM c_message" .
     648            $where.
     649            " AND is_deleted_to = 0" .
     650            " AND is_send = 1" .
     651            " AND c_message_id > ?" .
     652            " ORDER BY r_datetime";
     653    $params = array(
     654                intval($c_member_id),
     655                intval($c_message_id)
     656              );
     657
     658    return db_get_one($sql, $params);
     659}
     660
     661//メッセージの前のc_message_idを取得
     662function db_message_get_c_message_prev_id4c_message_id($c_member_id, $c_message_id, $box)
     663{
     664    if ($box == 'savebox' || $box == 'trash') {
     665        return null;
     666    } else if ($box == 'outbox'){   //送信箱
     667        $where = " WHERE c_member_id_from = ?";
     668    } else {                        //受信箱
     669        $where = " WHERE c_member_id_to = ?";
     670    }
     671
     672    $sql =  "SELECT c_message_id FROM c_message" .
     673            $where.
     674            " AND is_deleted_to = 0" .
     675            " AND is_send = 1" .
     676            " AND c_message_id < ?" .
     677            " ORDER BY r_datetime DESC";
     678    $params = array(
     679                intval($c_member_id),
     680                intval($c_message_id)
     681              );
     682
     683    return db_get_one($sql, $params);
     684}
     685
     686//メッセージを検索
     687//検索対象:subject,body
     688
     689function db_message_search_c_message($c_member_id, $page, $page_size, $keyword, $box, $target_c_member_id = null)
     690{
     691    $params = array();
     692    $params[] = intval($c_member_id);
     693
     694    if ($box == 'inbox' || !$box) {
     695        $where = "c_member_id_to = ?".
     696                 " AND is_deleted_to = 0" .
     697                 " AND is_send = 1";
     698        if ($target_c_member_id) {
     699            $where .= " AND c_member_id_from = ?";
     700            $params[] = intval($target_c_member_id);
     701        }
     702    } elseif ($box == 'outbox') {
     703        $where = "c_member_id_from = ?".
     704                 " AND is_deleted_from = 0" .
     705                 " AND is_send = 1";
     706        if ($target_c_member_id) {
     707            $where .= " AND c_member_id_to = ?";
     708            $params[] = intval($target_c_member_id);
     709        }
     710    }
     711
     712    $where .= " AND ( subject like ? OR body like ?)";
     713
     714    $params[] = '%'.strval($keyword).'%';
     715    $params[] = '%'.strval($keyword).'%';
     716
     717    $sql = "SELECT * FROM c_message";
     718    $sql .= " WHERE $where";
     719    $sql .= " ORDER BY r_datetime DESC";
     720
     721    $c_message_list = db_get_all_page($sql, $page, $page_size, $params);
     722
     723    foreach ($c_message_list as $key => $value) {
     724        if ($box == 'inbox' || !$box) {
     725            $c_member = db_common_c_member4c_member_id_LIGHT($value['c_member_id_from']);
     726        } else {
     727            $c_member = db_common_c_member4c_member_id_LIGHT($value['c_member_id_to']);
     728        }
     729        $c_message_list[$key]['nickname'] = $c_member['nickname'];
     730        $c_message_list[$key]['image_filename'] = $c_member['image_filename'];
     731    }
     732
     733    $sql = "SELECT COUNT(*) FROM c_message WHERE $where";
     734    $total_num = db_get_one($sql, $params);
     735
     736    if ($total_num != 0) {
     737        $total_page_num =  ceil($total_num / $page_size);
     738        if ($page >= $total_page_num) {
     739            $next = false;
     740        } else {
     741            $next = true;
     742        }
     743        if ($page <= 1) {
     744            $prev = false;
     745        } else {
     746            $prev = true;
     747        }
     748    }
     749    return array($c_message_list , $prev , $next, $total_num);
     750
     751}
     752
     753
     754/**
     755 * 受信メッセージの送信者リストを取得
     756 */
     757function db_message_c_message_sender_list4c_member_id($c_member_id)
     758{
     759    $sql = "SELECT distinct c_member_id_from FROM c_message";
     760    $where = "c_member_id_to = ?".
     761            " AND is_deleted_to = 0" .
     762            " AND is_send = 1";
     763    $sql .= " WHERE $where";
     764    $sql .= " ORDER BY r_datetime DESC";
     765    $params = array(intval($c_member_id));
     766    $c_message_list = db_get_all($sql, $params);
     767
     768    foreach ($c_message_list as $key => $value) {
     769        $c_member = db_common_c_member4c_member_id_LIGHT($value['c_member_id_from']);
     770        $c_message_list[$key]['nickname'] = $c_member['nickname'];
     771    }
     772    return $c_message_list;
     773}
     774
     775/**
     776 * 受信メッセージの送信者リストを取得
     777 */
     778function db_message_c_message_receiver_list4c_member_id($c_member_id)
     779{
     780    $sql = "SELECT distinct c_member_id_to FROM c_message";
     781    $where = "c_member_id_from = ?".
     782            " AND is_deleted_from = 0" .
     783            " AND is_send = 1";
     784    $sql .= " WHERE $where";
     785    $sql .= " ORDER BY r_datetime DESC";
     786    $params = array(intval($c_member_id));
     787    $c_message_list = db_get_all($sql, $params);
     788
     789    foreach ($c_message_list as $key => $value) {
     790        $c_member = db_common_c_member4c_member_id_LIGHT($value['c_member_id_to']);
     791        $c_message_list[$key]['nickname'] = $c_member['nickname'];
     792    }
     793    return $c_message_list;
     794}
     795
     796
     797/**
     798 * メッセージページの「各月のメッセージ」用
     799 *
     800 * メッセージを最初に書いた月からスタートしてみる
     801 */
     802function db_message_month_list4c_member_id($c_member_id, $box)
     803{
     804    if ($box == 'inbox' || !$box) {
     805        $where = "c_member_id_to = ?".
     806                 " AND is_deleted_to = 0" .
     807                 " AND is_send = 1";
     808    } elseif ($box == 'outbox') {
     809        $where = "c_member_id_from = ?".
     810                 " AND is_deleted_from = 0" .
     811                 " AND is_send = 1";
     812    } else {
     813        return null;
     814    }
     815
     816    $sql = "SELECT r_datetime FROM c_message" .
     817        " WHERE $where" .
     818        " ORDER BY r_datetime";
     819
     820    $params = array(intval($c_member_id));
     821    if (!$first_datetime = db_get_one($sql, $params)) {
     822        return array();
     823    }
     824
     825    $start_date = getdate(strtotime($first_datetime));
     826    $end_date =  getdate();
     827
     828    $date = array();
     829    $year = $start_date['year'];
     830    $month = $start_date['mon'];
     831    while (1) {
     832        $date[] =  array(
     833            'year' => $year,
     834            'month' => $month,
     835        );
     836
     837        if ($end_date['year'] <= $year
     838            && $end_date['mon'] <= $month) {
     839            break;
     840        }
     841
     842        $month++;
     843        if ($month > 12) {
     844            $month = 1;
     845            $year++;
     846        }
     847    }
     848    return array_reverse($date);
     849}
     850
     851
     852
     853/**
     854 * 指定された年月にメッセージを送受信した日のリストを返す
     855 */
     856function db_message_is_message_list4date($u, $year, $month, $box)
     857{
     858    include_once 'Date/Calc.php';
     859
     860    if ($box == 'inbox' || !$box) {
     861        $where = "c_member_id_to = ?".
     862                 " AND is_deleted_to = 0" .
     863                 " AND is_send = 1";
     864    } elseif ($box == 'outbox') {
     865        $where = "c_member_id_from = ?".
     866                 " AND is_deleted_from = 0" .
     867                 " AND is_send = 1";
     868    } else {
     869        return null;
     870    }
     871
     872    $sql = 'SELECT DISTINCT DAYOFMONTH(r_datetime) FROM c_message' .
     873           " WHERE $where" .
     874           ' AND is_send=1 AND r_datetime >= ? AND r_datetime < ?';
     875
     876    $date_format = '%Y-%m-%d 00:00:00';
     877    $thismonth = Date_Calc::beginOfMonth($month, $year, $date_format);
     878    $nextmonth = Date_Calc::beginOfNextMonth(0, $month, $year, $date_format);
     879
     880    $params = array(intval($u), $thismonth, $nextmonth);
     881
     882    return db_get_col($sql, $params);
     883}
     884
    600885?>
  • webapp/lib/db/deprecated_temporary2.php

     
    453453        return db_commu_c_commu_member_id_list4c_commu_id($c_commu_id);
    454454}
    455455
    456 /*
    457 function db_commu_insert_c_commu($c_member_id, $name, $c_commu_category_id, $info, $public_flag)
    458 {
    459         return db_commu_insert_c_commu($c_member_id, $name, $c_commu_category_id, $info, $public_flag);
    460 }
    461456
    462 function function db_commu_update_c_commu($c_commu_id,
    463     $name, $c_commu_category_id, $info, $public_flag,
    464     $image_filename = '', $is_send_join_mail = 1,
    465     $is_display_map = null, $map_latitude = null, $map_longitude = null, $map_zoom = null);
    466 {
    467         return function db_commu_update_c_commu($c_commu_id,
    468     $name, $c_commu_category_id, $info, $public_flag,
    469     $image_filename = '', $is_send_join_mail = 1,
    470     $is_display_map = null, $map_latitude = null, $map_longitude = null, $map_zoom = null);
    471    
    472 }
    473 
    474 function db_commu_update_c_commu_image_filename($c_commu_id, $image_filename)
    475 {
    476         return db_commu_update_c_commu_image_filename($c_commu_id, $image_filename);
    477 }
    478 
    479 function db_commu_delete_c_commu_image_filename($c_commu_id)
    480 {
    481         return db_commu_delete_c_commu_image_filename($c_commu_id);
    482 }
    483 
    484 function db_commu_update_c_commu_c_member_id_admin($c_commu_id, $c_member_id)
    485 {
    486         return db_commu_update_c_commu_c_member_id_admin($c_commu_id, $c_member_id);
    487 }
    488 
    489 function db_commu_update_is_regist_join($c_commu_id, $value = 0)
    490 {
    491         return db_commu_update_is_regist_join($c_commu_id, $value = 0);
    492 }
    493 
    494 function db_commu_delete_c_commu_member_confirm($c_commu_member_confirm_id)
    495 {
    496         return db_commu_delete_c_commu_member_confirm($c_commu_member_confirm_id);
    497 }
    498 
    499 function db_commu_insert_c_commu_member($c_commu_member_confirm_id)
    500 {
    501         return db_commu_insert_c_commu_member($c_commu_member_confirm_id);
    502 }
    503 
    504 function db_commu_insert_c_commu_member_confirm($c_commu_id, $c_member_id, $message = '')
    505 {
    506         return db_commu_insert_c_commu_member_confirm($c_commu_id, $c_member_id, $message = '');
    507 }
    508 
    509 function db_commu_insert_c_commu_admin_confirm($c_commu_id, $c_member_id, $message = '')
    510 {
    511         return db_commu_insert_c_commu_admin_confirm($c_commu_id, $c_member_id, $message = '');
    512 }
    513 
    514 function db_commu_delete_c_commu_admin_confirm4id($c_commu_admin_confirm_id)
    515 {
    516         return db_commu_delete_c_commu_admin_confirm4id($c_commu_admin_confirm_id);
    517 }
    518 
    519 function db_commu_delete_c_commu_admin_confirm4c_commu_id($c_commu_id)
    520 {
    521         return db_commu_delete_c_commu_admin_confirm4c_commu_id($c_commu_id);
    522 }
    523 
    524 function db_commu_delete_c_commu_topic($c_commu_topic_id)
    525 {
    526         return db_commu_delete_c_commu_topic($c_commu_topic_id);
    527 }
    528 
    529 function db_commu_insert_c_commu_topic_comment($c_commu_id, $c_commu_topic_id, $c_member_id, $body)
    530 {
    531         return db_commu_insert_c_commu_topic_comment($c_commu_id, $c_commu_topic_id, $c_member_id, $body);
    532 }
    533 */
    534 
    535457function do_c_bbs_insert_c_commu_topic_comment($c_member_id,$target_c_commu_topic_id,$body)
    536458{
    537459        return db_commu_insert_c_commu_topic_comment_2($c_member_id,$target_c_commu_topic_id,$body);
     
    599521        return db_commu_join_c_commu($c_commu_id, $c_member_id);
    600522}
    601523
    602 /*
    603 function db_commu_delete_c_commu_member($c_commu_id, $c_member_id)
    604 {
    605         return db_commu_delete_c_commu_member($c_commu_id, $c_member_id);
    606 }
    607 */
    608 
    609524function do_c_home_update_is_receive_mail($c_commu_id, $c_member_id, $is_receive_mail, $is_receive_mail_pc, $is_receive_message)
    610525{
    611526        return db_commu_update_is_receive_mail($c_commu_id, $c_member_id, $is_receive_mail, $is_receive_mail_pc, $is_receive_message);
    612527}
    613528
    614 /*
    615 
    616 function db_commu_insert_c_commu_admin_invite($c_commu_id, $c_member_id_to)
    617 {
    618         return do_c_home_update_is_receive_mail($c_commu_id, $c_member_id, $is_receive_mail, $is_receive_mail_pc, $is_receive_message);
    619 }
    620 
    621 function db_commu_delete_c_commu_admin_invite($c_commu_admin_invite_id)
    622 {
    623         return do_c_home_update_is_receive_mail($c_commu_id, $c_member_id, $is_receive_mail, $is_receive_mail_pc, $is_receive_message);
    624 }
    625 */
    626529?>
    627  No newline at end of file
  • webapp/lib/util/cache.php

     
    7474 */
    7575function cache_drop_c_member($c_member_id)
    7676{
    77     pne_cache_drop('db_friend_c_friend_list4c_member_id', $c_member_id, 9);  //フレンドリスト
     77    pne_cache_drop('db_friend_c_friend_id_list4c_member_id', $c_member_id, 9);  //フレンドリスト
    7878        pne_cache_drop('db_friend_c_friend_list_random4c_member_id', $c_member_id, 5);
    7979    pne_cache_drop('p_h_home_c_diary_friend_list4c_member_id', $c_member_id, 5);  //最新日記フィード
    8080
  • webapp/lib/util/ktai.php

     
    5050        34  => "あしあとお知らせメール設定を変更しました",
    5151        35  => "日記の公開設定を変更しました",
    5252        36  => "アクセスブロック設定を変更しました",
     53        37  => "このアドレスでは登録できません",
    5354    );
    5455
    5556    return $msg[$msg_id];
  • webapp/modules/pc/do/h_diary_edit_insert_c_diary.php

     
    3030        $tmpfile_1 = $requests['tmpfile_1'];
    3131        $tmpfile_2 = $requests['tmpfile_2'];
    3232        $tmpfile_3 = $requests['tmpfile_3'];
     33        $category = explode(' ', trim($requests['category']));
    3334        // ----------
    3435
    3536        //--- 権限チェック
     
    4344
    4445        $sessid = session_id();
    4546
     47        //カテゴリ登録しなおし
     48        db_diary_category_delete_c_diary_category_diary($target_c_diary_id);
     49        foreach($category as $value) {
     50             if (empty($value)) {
     51                break;
     52            }
     53           $c_category_id = db_diary_get_category_id4category_name($c_diary['c_member_id'], $value);
     54            if (is_null($c_category_id)) {
     55                $c_category_id = db_diary_category_insert_category($c_diary['c_member_id'], $value);
     56            }
     57            db_diary_category_insert_c_diary_category_diary($target_c_diary_id, $c_category_id);
     58        }
     59
    4660        $filename_1 = $filename_2 = $filename_3 = '';
    4761
    4862        if ($tmpfile_1) {
  • webapp/modules/pc/do/h_diary_add_insert_c_diary.php

     
    2929        $tmpfile_1 = $requests['tmpfile_1'];
    3030        $tmpfile_2 = $requests['tmpfile_2'];
    3131        $tmpfile_3 = $requests['tmpfile_3'];
     32        $category = explode(' ', trim($requests['category']));
    3233        // ----------
    3334
    3435        $sessid = session_id();
     
    3637
    3738        $c_diary_id = db_diary_insert_c_diary($c_member_id, $subject, $body, $public_flag);
    3839
     40        foreach($category as $value) {
     41            if (empty($value)) {
     42                break;
     43            }
     44
     45            $c_category_id = db_diary_get_category_id4category_name($c_member_id, $value);
     46            if (is_null($c_category_id)) {
     47                $c_category_id = db_diary_category_insert_category($c_member_id, $value);
     48            }
     49            db_diary_category_insert_c_diary_category_diary($c_diary_id, $c_category_id);
     50        }
     51
    3952        $filename_1 = image_insert_c_image4tmp("d_{$c_diary_id}_1", $tmpfile_1);
    4053        $filename_2 = image_insert_c_image4tmp("d_{$c_diary_id}_2", $tmpfile_2);
    4154        $filename_3 = image_insert_c_image4tmp("d_{$c_diary_id}_3", $tmpfile_3);
  • webapp/modules/pc/do/h_invite_insert_c_invite.php

     
    4343            openpne_redirect('pc', 'page_h_invite', $p);
    4444        }
    4545
     46        if (!db_member_is_limit_domain4mail_address($mail)) {
     47            $msg = "そのアドレスでは登録できません";
     48            $p = array('msg' => $msg);
     49            openpne_redirect('pc', 'page_h_invite', $p);
     50        }
     51
    4652        $session = create_hash();
    4753        $c_member_id_invite = $u;
    4854
  • webapp/modules/pc/do/h_config_1.php

     
    2424        if ($pc_address != $pc_address2) $msg_list[] = "メールアドレスが一致しません";
    2525        if (!db_common_is_mailaddress($pc_address)) $msg_list[] = "メールアドレスを正しく入力してください";
    2626
     27        if (!db_member_is_limit_domain4mail_address($pc_address)) $msg_list[] = "このメールアドレスでは登録できません";
     28
    2729        if ($msg_list) {
    2830            $msg = array_shift($msg_list);
    2931            $p = array('msg' => $msg);
  • webapp/modules/pc/do/h_home_insert_c_schedule.php

     
    1616        // ----------
    1717
    1818        if (!$title) {
    19             $msg = "タイトルを入力してください";
     19            $msg = "予定を入力してください";
    2020            $p = array('w' => $requests['w'], 'msg' => $msg);
    2121            openpne_redirect('pc', 'page_h_home', $p);
    2222        }
  • webapp/modules/pc/do/h_home_search.php

     
    1616        } elseif (!is_null($requests['web_x'])) {
    1717            $q = urlencode($requests['q']);
    1818            client_redirect_absolute('http://www.google.com/search?hl=ja&q='.$q);
     19        } elseif (!is_null($requests['message_x'])) {
     20            $p = array('keyword' => $requests['q'],'box' => 'inbox');
     21            openpne_redirect('pc', 'page_h_message_box', $p);
    1922        } else { // default
    20             $p = array('keyword' => $requests['q']);
     23            $p = array('keyword'=> $requests['q']);
    2124            openpne_redirect('pc', 'page_h_diary_list_all', $p);
    2225        }
    2326    }
  • webapp/modules/pc/do/o_public_invite.php

     
    6060            $p = array('msg' => $msg);
    6161            openpne_redirect('pc', 'page_o_public_invite', $p);
    6262        }
     63        if (!db_member_is_limit_domain4mail_address($pc_address)) {
     64            $msg = 'そのアドレスでは登録できません';
     65            $p = array('msg' => $msg);
     66            openpne_redirect('pc', 'page_o_public_invite', $p);
     67        }
    6368
    6469        $session = create_hash();
    6570
  • webapp/modules/pc/validate/do/h_diary_edit_insert_c_diary.ini

     
    2828[tmpfile_3]
    2929type = "string"
    3030default = ""
     31
     32[category]
     33type = "string"
     34default = ""
     35 No newline at end of file
  • webapp/modules/pc/validate/do/h_diary_add_insert_c_diary.ini

     
    2424[tmpfile_3]
    2525type = "string"
    2626default = ""
     27
     28[category]
     29type = "string"
     30default = ""
     31 No newline at end of file
  • webapp/modules/pc/validate/do/h_home_search.ini

     
    77
    88[web_x]
    99type = "string"
     10
     11[message_x]
     12type = "string"
  • webapp/modules/pc/validate/page/h_diary_add_confirm.ini

     
    1212type = "string"
    1313required = 1
    1414caption = "公開範囲"
     15
     16[category]
     17type = "string"
     18default = ""
     19 No newline at end of file
  • webapp/modules/pc/validate/page/h_diary_edit_confirm.ini

     
    1717type = "string"
    1818required = 1
    1919caption = "公開範囲"
     20
     21[category]
     22type = "string"
     23default = ""
     24 No newline at end of file
  • webapp/modules/pc/validate/page/h_diary_add.ini

     
    1515required = 0
    1616default = ""
    1717caption = "公開範囲"
     18
     19[category]
     20type = "string"
     21default = ""
     22 No newline at end of file
  • webapp/modules/pc/validate/page/h_message_box.ini

     
    22type ="string"
    33default = "inbox"
    44
     5[keyword]
     6type ="string"
     7default = ""
     8
     9[target_c_member_id]
     10type ="int"
     11
    512[ru_page]
    613type = "int"
    714default = 1
     
    1724[trash_page]
    1825type = "int"
    1926default = 1
     27
     28[year]
     29type = "int"
     30
     31[month]
     32type = "int"
     33
     34[day]
     35type = "int"
  • webapp/modules/pc/validate/page/h_diary_edit.ini

     
    1717type = "string"
    1818required = 0
    1919caption = "公開範囲"
     20
     21[category]
     22type = "string"
     23default = ""
     24 No newline at end of file
  • webapp/modules/pc/validate/page/fh_diary_list.ini

     
    2222
    2323[day]
    2424type = "int"
     25
     26[category_id]
     27type = "int"
     28
     29[keyword]
     30type = "string"
  • webapp/modules/pc/page/h_diary_add_confirm.php

     
    2323        $subject = $requests['subject'];
    2424        $body = $requests['body'];
    2525        $public_flag = $requests['public_flag'];
     26        $category = trim($requests['category']);
    2627        // ----------
    2728
    2829        $sessid = session_id();
     
    5152            }
    5253        }
    5354
     55        $category_list = array_unique(explode(" ", rtrim($category)));
     56        if (count($category_list) > 5) {
     57            $_REQUEST['msg'] = 'カテゴリの指定は5個以下にしてください';
     58            openpne_forward('pc', 'page', 'h_diary_add');
     59            exit;
     60        }
     61        foreach ($category_list as $value) {
     62            if(mb_strwidth($value) > 20) {
     63                $_REQUEST['msg'] = 'カテゴリの文字数は半角20文字以内にしてください';
     64                openpne_forward('pc', 'page', 'h_diary_add');
     65                exit;
     66            }
     67        }
     68
    5469        $this->set('inc_navi', fetch_inc_navi('h'));
    5570
    5671        //プロフィール
     
    6681            "tmpfile_1" => $tmpfiles[1],
    6782            "tmpfile_2" => $tmpfiles[2],
    6883            "tmpfile_3" => $tmpfiles[3],
     84            "category" => join(" ", $category_list),
    6985        );
    7086        $this->set("form_val", $form_val);
    7187
     
    7389    }
    7490}
    7591
    76 ?>
     92?>
     93 No newline at end of file
  • webapp/modules/pc/page/h_message.php

     
    5353        $this->set("form_val", $form_val);
    5454        $this->set("jyusin_c_message_id", $jyusin_c_message_id);
    5555
     56        $this->set("next_c_message_id", db_message_get_c_message_next_id4c_message_id($u, $target_c_message_id, $box));
     57        $this->set("prev_c_message_id", db_message_get_c_message_prev_id4c_message_id($u, $target_c_message_id, $box));
     58
     59
    5660        //ボックス判定
    5761        $this->set("box", $box);
    5862
  • webapp/modules/pc/page/h_diary_edit_confirm.php

     
    2222        $subject = $requests['subject'];
    2323        $body = $requests['body'];
    2424        $public_flag = $requests['public_flag'];
     25        $category = trim($requests['category']);
    2526        // ----------
    2627
    2728        $sessid = session_id();
     
    5051            }
    5152        }
    5253
     54        $category_list = array_unique(explode(" ", rtrim($category)));
     55        if (count($category_list) > 5) {
     56            $_REQUEST['msg'] = 'カテゴリの指定は5個以下にしてください';
     57            openpne_forward('pc', 'page', 'h_diary_add');
     58            exit;
     59        }
     60        foreach ($category_list as $value) {
     61            if(mb_strwidth($value) > 20) {
     62                $_REQUEST['msg'] = 'カテゴリの文字数は半角20文字以内にしてください';
     63                openpne_forward('pc', 'page', 'h_diary_add');
     64                exit;
     65            }
     66        }
     67
    5368        $this->set('inc_navi', fetch_inc_navi("h"));
    5469
    5570        //プロフィール
     
    6782            "tmpfile_1" => $tmpfiles[1],
    6883            "tmpfile_2" => $tmpfiles[2],
    6984            "tmpfile_3" => $tmpfiles[3],
     85            "category" => join(" ", $category_list),
    7086        );
    7187        $this->set("form_val", $form_val);
    7288
  • webapp/modules/pc/page/h_invite_confirm.php

     
    2929                $msg = "メールアドレスを正しく入力してください";
    3030            } elseif (p_is_sns_join4mail_address($form_val['mail'])) {
    3131                $msg = "そのアドレスは既に登録済みです";
     32            } elseif (!db_member_is_limit_domain4mail_address($form_val['mail'])) {
     33                $msg = "そのアドレスは登録できません";
    3234            } else {
    3335                if (is_ktai_mail_address($form_val['mail'])) {
    3436                    //<PCKTAI
  • webapp/modules/pc/page/fh_diary_list.php

     
    1717        $year = $requests['year'];
    1818        $month = $requests['month'];
    1919        $day = $requests['day'];
     20        $category_id = $requests['category_id'];
     21        $keyword = $requests['keyword'];
    2022        // ----------
    2123
    2224        if (!$target_c_member_id) {
     
    4446        $this->set('type', $type);
    4547
    4648        $page += $direc;
    47         $page_size = 30;
     49        $page_size = 20;
    4850
    4951        $target_member = db_common_c_member4c_member_id($target_c_member_id);
    5052        $this->set('target_member', $target_member);
    5153        //年月日で一覧表示、日記数に制限なし
    5254        if ($year && $month) {
    53             $list_set = p_fh_diary_list_diary_list_date4c_member_id($target_c_member_id, $year, $month, $day, $u);
     55            $list_set = p_fh_diary_list_diary_list_date4c_member_id($target_c_member_id, $page_size, $page ,$year, $month, $day, $u);
    5456            $rss_list = p_fh_diary_list_c_rss_cache_list_date($target_c_member_id, $year, $month, $day);
     57        } elseif($category_id) {
     58            $year = date('Y');
     59            $month = date('n');
     60            $list_set = db_diary_list4c_diary_category_id($target_c_member_id, $category_id, $u);
     61            $this->set('category_name', db_diary_get_category_name4category_id($category_id));
    5562        } else {
    5663            $year = date('Y');
    5764            $month = date('n');
    5865            $this->set('all', 1);
    5966
    60             $list_set = p_fh_diary_list_diary_list4c_member_id($target_c_member_id, $page_size, $page, $u);
     67            //検索する場合
     68            if ($keyword) {
     69                $list_set = p_h_diary_list_all_search_c_diary4c_diary($keyword, $page_size, $page, $u);
     70            } else {
     71                $list_set = p_fh_diary_list_diary_list4c_member_id($target_c_member_id, $page_size, $page, $u);
     72            }
     73
    6174            $rss_list = p_fh_diary_list_c_rss_cache_list($target_c_member_id, $page_size, $page);
    6275        }
    6376
     
    6881        $this->set('page_size', $page_size);
    6982        $this->set('is_prev', $list_set[1]);
    7083        $this->set('is_next', $list_set[2]);
     84        $this->set("total_num", $list_set[3]);
    7185
    7286        $this->set('diary_list_count', count($list_set[0]));
    7387
     
    87101
    88102        //各月の日記
    89103        $this->set('date_list', p_fh_diary_list_date_list4c_member_id($target_c_member_id));
     104       
     105        if (USE_DIARY_CATEGORY) {
     106                //カテゴリ一覧
     107                $this->set('category_list', db_diary_category_list4c_member_id($target_c_member_id));
     108        }
    90109
     110        //検索ワード
     111        $this->set('keyword', $keyword);
     112        $this->set("url_keyword", urlencode($keyword));
     113
    91114        return 'success';
    92115    }
    93116}
  • webapp/modules/pc/page/fh_diary.php

     
    8989        //各月の日記
    9090        $this->set("date_list", p_fh_diary_list_date_list4c_member_id($target_c_member_id));
    9191
     92        if (USE_DIARY_CATEGORY) {
     93                //カテゴリ一覧
     94                $this->set('category', db_diary_category_list4c_member_id($target_c_member_id));
     95       
     96                //この日記のカテゴリリストを得る
     97                $this->set("category_list", db_diary_category_list4c_diary_id($target_c_diary_id));
     98        }
     99
    92100        return 'success';
    93101    }
    94102}
  • webapp/modules/pc/page/h_diary_add.php

     
    1414        $form_val['subject'] = $requests['subject'];
    1515        $form_val['body'] = $requests['body'];
    1616        $form_val['public_flag'] = $requests['public_flag'];
     17        $form_val['category'] = $requests['category'];
    1718        // ----------
    1819
    1920        $sessid = session_id();
     
    5051        //各月の日記
    5152        $this->set("date_list", p_fh_diary_list_date_list4c_member_id($u));
    5253
     54        if (USE_DIARY_CATEGORY) {
     55                //カテゴリリスト
     56                $this->set("category_list", db_diary_category_list4c_member_id($u));
     57            $this->set("use_diary_category", true);
     58        }
     59
    5360        return 'success';
    5461    }
    5562}
  • webapp/modules/pc/page/h_message_box.php

     
    1616        $s_page = $requests['s_page'];
    1717        $save_page = $requests['save_page'];
    1818        $trash_page = $requests['trash_page'];
     19        $keyword = $requests['keyword'];
     20        $target_c_member_id = $requests['target_c_member_id'];
     21        $year = $requests['year'];
     22        $month = $requests['month'];
     23        $day = $requests['day'];
    1924        // ----------
    2025
    2126        $this->set('inc_navi', fetch_inc_navi("h"));
     
    2934        //ボックス判定
    3035        $this->set("box", $box);
    3136
     37        //送受信絞り
     38        $this->set("target_c_member_id", $target_c_member_id);
     39
     40        //keyword
     41        $this->set("keyword", $keyword);
     42        $this->set("url_keyword", urlencode($keyword));
     43
    3244        switch ($box) {
    3345
    3446        //受信リスト
    3547        case 'inbox':
    3648        default:
    37             list($ru_list,$is_ru_prev,$is_ru_next) = p_h_message_box_c_message_received_list4c_member_id4range($u, $ru_page, $page_size);
     49            //検索
     50            if ($keyword || $target_c_member_id) {
     51                list($ru_list,$is_ru_prev,$is_ru_next, $total_num) = db_message_search_c_message($u, $ru_page, $page_size, $keyword, $box, $target_c_member_id);
     52            } elseif ($year && $month) {
     53            //年月日絞り
     54                list($ru_list,$is_ru_prev,$is_ru_next, $total_num) = db_message_c_message_received_list4c_member_id4range($u, $ru_page, $page_size, $year, $month, $day);
     55            } else {
     56                list($ru_list,$is_ru_prev,$is_ru_next, $total_num) = db_message_c_message_received_list4c_member_id4range($u, $ru_page, $page_size);
     57            }
    3858            $this->set("c_message_ru_list", $ru_list);
     59            //メッセージの送信者リスト
     60            $this->set("c_message_sender_list", db_message_c_message_sender_list4c_member_id($u));
     61
    3962            $this->set("count_c_message_ru_list", count($ru_list));
    4063
    4164            $ru_data = array('ru_page' => $ru_page,'is_ru_prev' => $is_ru_prev,'is_ru_next' => $is_ru_next);
     
    4568
    4669        //送信済みリスト
    4770        case 'outbox':
    48             list($s_list,$is_s_prev,$is_s_next) = p_h_message_box_c_message_sent_list4c_member_id4range($u, $s_page, $page_size);
     71            //検索
     72            if ($keyword || $target_c_member_id) {
     73                list($s_list,$is_s_prev,$is_s_next, $total_num) = db_message_search_c_message($u, $s_page, $page_size, $keyword, $box, $target_c_member_id);
     74            } elseif ($year && $month) {
     75
     76                list($s_list,$is_s_prev,$is_s_next, $total_num) = db_message_c_message_sent_list4c_member_id4range($u, $s_page, $page_size, $year, $month, $day);
     77            } else {
     78                list($s_list,$is_s_prev,$is_s_next, $total_num) = p_h_message_box_c_message_sent_list4c_member_id4range($u, $s_page, $page_size);
     79            }
     80
    4981            $this->set("c_message_s_list", $s_list);
    5082            $this->set("count_c_message_s_list", count($s_list));
     83            //メッセージの宛先リスト
     84            $this->set("c_message_receiver_list", db_message_c_message_receiver_list4c_member_id($u));
    5185
    5286            $s_data = array('s_page' => $s_page,'is_s_prev' => $is_s_prev,'is_s_next' => $is_s_next);
    5387
     
    5690
    5791        //下書き保存リスト
    5892        case 'savebox':
    59             list($save_list,$is_save_prev,$is_save_next) = p_h_message_box_c_message_save_list4c_member_id4range($u, $save_page, $page_size);
     93            list($save_list,$is_save_prev,$is_save_next, $total_num) = p_h_message_box_c_message_save_list4c_member_id4range($u, $save_page, $page_size);
    6094            $this->set("c_message_save_list", $save_list);
    6195            $this->set("count_c_message_save_list", count($save_list));
    6296
     
    67101
    68102        //ごみ箱リスト
    69103        case 'trash':
    70             list($trash_list,$is_trash_prev,$is_trash_next) = p_h_message_box_c_message_trash_list4c_member_id4range($u, $trash_page, $page_size);
     104            list($trash_list,$is_trash_prev,$is_trash_next, $total_num) = p_h_message_box_c_message_trash_list4c_member_id4range($u, $trash_page, $page_size);
    71105            $this->set("c_message_trash_list", $trash_list);
    72106            $this->set("count_c_message_trash_list", count($trash_list));
    73107
     
    77111            break;
    78112        }
    79113
     114        $this->set("date_list", db_message_month_list4c_member_id($u, $box));
     115        $this->set("total_num", $total_num);
     116
     117        if (!$year || !$month) {
     118            $this->set('all', 1);
     119        }
     120        if (!$year) {
     121            $year = date('Y');
     122        }
     123        if (!$month) {
     124            $month = date('n');
     125        }
     126
     127        //メッセージ一覧、カレンダー用変数
     128        $date_val = array(
     129            'year'  => $year,
     130            'month' => $month,
     131            'day'   => $day,
     132        );
     133        $this->set('date_val', $date_val);
     134        //メッセージのカレンダー
     135        $calendar = db_common_message_monthly_calendar($u, $year, $month, $target_c_member_id, $box);
     136        $this->set('calendar', $calendar['days']);
     137        $this->set('ym', $calendar['ym']);
     138
    80139        return 'success';
    81140    }
    82141}
  • webapp/modules/pc/page/h_diary_edit.php

     
    1515        $subject = $requests['subject'];
    1616        $body = $requests['body'];
    1717        $public_flag = $requests['public_flag'];
     18        $category = $requests['category'];
    1819        // ----------
    1920
    2021        $c_diary = db_diary_get_c_diary4id($target_c_diary_id);
     
    7576        //各月の日記
    7677        $this->set("date_list", p_fh_diary_list_date_list4c_member_id($u));
    7778
     79        if (USE_DIARY_CATEGORY) {
     80                //この日記のカテゴリリストを得る
     81                if ($category) {
     82                    $category_list = array();
     83                    foreach(explode(' ', $category) as $value) {
     84                        if (empty($value)) {
     85                            break;
     86                        }
     87                        $category_list[] = array('c_diary_category_id' => 'dummy', 'category_name' => $value);
     88                    }
     89                    $this->set("category", $category_list);
     90                } else {
     91                    $this->set("category", db_diary_category_list4c_diary_id($target_c_diary_id));
     92                }
     93                //ユーザのカテゴリリスト
     94                $this->set("category_list", db_diary_category_list4c_member_id($u));
     95            $this->set("use_diary_category", true);
     96        }
     97
    7898        return 'success';
    7999    }
    80100}
  • webapp/modules/pc/templates/h_diary_add_confirm.tpl

     
    195195<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    196196</tr>
    197197({*********})
     198({if $form_val.category})
    198199<tr>
    199200<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    200201<td class="bg_05" align="left" valign="middle">
    201202
    202203<div class="padding_s">
    203204
     205カテゴリ
     206
     207</div>
     208
     209</td>
     210<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     211<td class="bg_02" align="left" valign="middle">
     212
     213<div class="padding_s">
     214
     215({$form_val.category})
     216
     217</div>
     218
     219</td>
     220<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     221</tr>
     222({*********})
     223<tr>
     224<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     225</tr>
     226({*********})
     227({/if})
     228<tr>
     229<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     230<td class="bg_05" align="left" valign="middle">
     231
     232<div class="padding_s">
    204233公開範囲
    205234
    206235</div>
     
    244273<input type="hidden" name="tmpfile_1" value="({$form_val.tmpfile_1})">
    245274<input type="hidden" name="tmpfile_2" value="({$form_val.tmpfile_2})">
    246275<input type="hidden" name="tmpfile_3" value="({$form_val.tmpfile_3})">
     276<input type="hidden" name="category" value="({$form_val.category})">
    247277<td class="padding_s"><input type="submit" class="submit" value=" 作  成 "></td>
    248278</form>
    249279
     
    251281<input type="hidden" name="subject" value="({$form_val.subject})">
    252282<input type="hidden" name="body" value="({$form_val.body})">
    253283<input type="hidden" name="public_flag" value="({$form_val.public_flag})">
     284<input type="hidden" name="category" value="({$form_val.category})">
    254285<td class="padding_s"><input type="submit" class="submit" value=" 修  正 "></td>
    255286</form>
    256287</tr>
  • webapp/modules/pc/templates/inc_search_box.tpl

     
    1717<input type="text" size="30" name="q" class="text border_01" value="" style="width:180px;">
    1818<input type="image" src="({t_img_url_skin filename=button_search_1})" value="diary" alt="日記" border="0" name="diary" class="button" style="width:62px;height:20px;">
    1919<input type="image" src="({t_img_url_skin filename=button_search_2})" value="community" alt="コミュニティ" border="0" name="community" class="button" style="width:62px;height:20px;">
     20<input type="image" src="({t_img_url_skin filename=button_search_4})" value="message" alt="メッセージ" border="0" name="message" class="button" style="width:62px;height:20px;">
    2021({if $smarty.const.USE_EXTRA_SERVICE})
    2122<input type="image" src="({t_img_url_skin filename=button_search_3})" value="web" alt="web" border="0" name="web" class="button" style="width:62px;height:20px;">
    2223({/if})
  • webapp/modules/pc/templates/h_message.tpl

     
    133133({*ここまで:header*})
    134134({*ここから:body*})
    135135<!-- ここから:主内容 -->
     136
     137<table border="0" cellspacing="0" cellpadding="0" class="border_01" style="width: 504px;">
     138<tr>
     139<td style="width:340px;height:2em;" class="bg_03" align="left">
     140<div class="padding_s">
     141({if $prev_c_message_id})
     142<a href="({t_url m=pc a=page_h_message})&amp;target_c_message_id=({$prev_c_message_id})&amp;({if $box == 'outbox'})box=({$box})({else})jyusin_c_message_id=({$prev_c_message_id})({/if})">前を表示</a>
     143({/if})
     144</div>
     145</td>
     146<td style="width:340px;height:2em;" class="bg_03" align="right">
     147<div class="padding_s">
     148({if $next_c_message_id})
     149<a href="({t_url m=pc a=page_h_message})&amp;target_c_message_id=({$next_c_message_id})&amp;({if $box == 'outbox'})box=({$box})({else})jyusin_c_message_id=({$next_c_message_id})({/if})">次を表示</a>
     150({/if})
     151</div>
     152</td>
     153</tr>
     154</table>
     155
    136156<table border="0" cellspacing="0" cellpadding="0" style="width:504px;">
    137157({*********})
    138158<tr>
  • webapp/modules/pc/templates/h_diary_edit_confirm.tpl

     
    177177<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    178178</tr>
    179179({*********})
     180({if $form_val.category})
    180181<tr>
    181182<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    182183<td class="bg_05" align="left" valign="middle">
    183184
    184185<div class="padding_s">
    185186
     187カテゴリ
     188
     189</div>
     190
     191</td>
     192<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     193<td class="bg_02" align="left" valign="middle">
     194
     195<div class="padding_s">
     196
     197({$form_val.category})
     198
     199</div>
     200
     201</td>
     202<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     203</tr>
     204({*********})
     205<tr>
     206<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     207</tr>
     208({*********})
     209({/if})
     210<tr>
     211<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     212<td class="bg_05" align="left" valign="middle">
     213
     214<div class="padding_s">
     215
    186216公開範囲
    187217
    188218</div>
     
    227257<input type="hidden" name="tmpfile_1" value="({$form_val.tmpfile_1})">
    228258<input type="hidden" name="tmpfile_2" value="({$form_val.tmpfile_2})">
    229259<input type="hidden" name="tmpfile_3" value="({$form_val.tmpfile_3})">
     260<input type="hidden" name="category" value="({$form_val.category})">
    230261<td><input type="submit" class="submit" value=" 決  定 "></td>
    231262</form>
    232263
     
    235266<input type="hidden" name="del_img" value="({$form_val.del_img})">
    236267<input type="hidden" name="subject" value="({$form_val.subject})">
    237268<input type="hidden" name="body" value="({$form_val.body})">
     269<input type="hidden" name="category" value="({$form_val.category})">
    238270<td><input type="submit" class="submit" value=" 修  正 "></td>
    239271</form>
    240272</tr>
  • webapp/modules/pc/templates/fh_diary_list.tpl

     
    248248
    249249({/if})
    250250
     251({if $category_list})
     252
     253<!-- ********************************** -->
     254<!-- ******ここから:カテゴリ一覧****** -->
     255<table border="0" cellspacing="0" cellpadding="0" style="width:165px;margin:0px auto;" class="border_07">
     256<tr>
     257<td style="width:7px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     258<td style="width:149px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     259<td style="width:7px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     260</tr>
     261<tr>
     262<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     263<td class="bg_10" align="center">
     264<!-- *ここから:カテゴリ一覧>内容* -->
     265({*ここから:header*})
     266<!-- ここから:小タイトル -->
     267<table border="0" cellspacing="0" cellpadding="0" style="width:149px;" class="border_01">
     268<tr>
     269<td style="width:36px;" class="bg_06"><img src="({t_img_url_skin filename=content_header_1})" style="width:30px;height:20px;" class="dummy"></td>
     270<td style="width:111px;padding:2px 0px;" class="bg_06"><span class="b_b c_00">カテゴリ一覧</span></td>
     271</tr>
     272</table>
     273<!-- ここまで:小タイトル -->
     274({*ここまで:header*})
     275({*ここから:body*})
     276<!-- ここから:主内容 -->
     277<div align="left" class="bg_02 border_01 padding_ss">
     278({foreach from=$category_list item=category})
     279
     280<div><a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;category_id=({$category.c_diary_category_id})"><img src="./skin/dummy.gif" style="width:14px;height:14px;" class="icon icon_2">({$category.category_name})</a></div>
     281
     282({/foreach})
     283</div>
     284<!-- ここまで:主内容 -->
     285({*ここまで:body*})
     286({*ここから:footer*})
     287<!-- 無し -->
     288({*ここまで:footer*})
     289<!-- *ここまで:カテゴリ一覧>>内容* -->
     290</td>
     291<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     292</tr>
     293<tr>
     294<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     295<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     296<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     297</tr>
     298</table>
     299<!-- ******ここまで:カテゴリ一覧****** -->
     300<!-- ********************************** -->
     301
     302<img src="./skin/dummy.gif" class="v_spacer_l">
     303
     304({/if})
     305
    251306({********************************})
    252307({**ここまで:メインコンテンツ(左)**})
    253308({********************************})
     
    290345<img src="./skin/dummy.gif" class="v_spacer_l">
    291346
    292347<div style="width:490px;padding:30px 10px;margin:0px auto;" class="border_01 bg_03">
     348
    293349({t_form _method=get m=pc a=page_h_diary_add})
    294 <input type="submit" class="submit" value=" 日 記 を 書 く ">
     350&nbsp;&nbsp;&nbsp;<input type="submit" class="submit" value=" 日 記 を 書 く ">
    295351</form>
     352
    296353</div>
     354<img src="./skin/dummy.gif" class="v_spacer_l">
    297355
     356<div style="width:500px;padding:5px;margin:0px auto;text-align:right;" class="border_01 bg_03">
     357
     358({t_form _method=get m=pc a=page_fh_diary_list})
     359キーワード検索:<img src="({t_img_url_skin filename=icon_arrow_2})" class="icon">
     360<input type="text" size="15" name="keyword" class="text border_01" value="({$keyword})">
     361<input type="submit" class="submit" value=" 検 索 ">
     362</form>
     363
     364</div>
    298365<img src="./skin/dummy.gif" class="v_spacer_l">
    299366
    300367</div>
     
    340407<td style="width:486px;padding:2px 0px;" class="bg_06"><span class="b_b c_00">
    341408({$target_member.nickname})({if $type == "f"})さん({/if})の日記
    342409({if !$all})
     410({if !$category})
    343411&nbsp;({$date_val.year})年({$date_val.month})月({if $date_val.day})({$date_val.day})日({/if})
    344412({/if})
     413 ({$category_name})
     414({/if})
    345415</span></td>
    346416</tr>
    347417</table>
     
    363433<div style="padding:4px 3px;">
    364434
    365435({if $is_prev})
    366 <a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;direc=-1&amp;page=({$page})">前を表示</a>
     436<a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;direc=-1&amp;page=({$page})({if $url_keyword})&amp;keyword=({$url_keyword})({/if})({if !$all})({if $date_val.year})&amp;year=({$date_val.year})({/if})({if $date_val.month})&amp;month=({$date_val.month})({/if})({if $date_val.day})&amp;day=({$date_val.day})({/if})({/if})">前を表示</a>
    367437({/if})
     438({$total_num})件中
    368439({$page*$page_size-$page_size+1})件~
    369440({if $page_size > $diary_list_count})
    370441({$diary_list_count+$page*$page_size-$page_size})
     
    373444({/if})
    374445件を表示
    375446({if $is_next})
    376 <a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;direc=1&amp;page=({$page})">次を表示</a>
     447<a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;direc=1&amp;page=({$page})({if $url_keyword})&amp;keyword=({$url_keyword})({/if})({if !$all})({if $date_val.year})&amp;year=({$date_val.year})({/if})({if $date_val.month})&amp;month=({$date_val.month})({/if})({if $date_val.day})&amp;day=({$date_val.day})({/if})({/if})">次を表示</a>
    377448({/if})
    378449
    379450</div>
     
    517588<div style="padding:4px 3px;">
    518589
    519590({if $is_prev})
    520 <a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;direc=-1&amp;page=({$page})">前を表示</a>
     591<a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;direc=-1&amp;page=({$page})({if $url_keyword})&amp;keyword=({$url_keyword})({/if})({if !$all})({if $date_val.year})&amp;year=({$date_val.year})({/if})({if $date_val.month})&amp;month=({$date_val.month})({/if})({if $date_val.day})&amp;day=({$date_val.day})({/if})({/if})">前を表示</a>
    521592({/if})
     593({$total_num})件中
    522594({$page*$page_size-$page_size+1})件~
    523595({if $page_size > $diary_list_count})
    524596({$diary_list_count+$page*$page_size-$page_size})
     
    527599({/if})
    528600件を表示
    529601({if $is_next})
    530 <a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;direc=1&amp;page=({$page})">次を表示</a>
     602<a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;direc=1&amp;page=({$page})({if $url_keyword})&amp;keyword=({$url_keyword})({/if})({if !$all})({if $date_val.year})&amp;year=({$date_val.year})({/if})({if $date_val.month})&amp;month=({$date_val.month})({/if})({if $date_val.day})&amp;day=({$date_val.day})({/if})({/if})">次を表示</a>
    531603({/if})
    532604
    533605</div>
  • webapp/modules/pc/templates/fh_diary.tpl

     
    302302
    303303({/if})
    304304
     305({if $category})
     306
     307<!-- ********************************** -->
     308<!-- ******ここから:カテゴリ一覧****** -->
     309<table border="0" cellspacing="0" cellpadding="0" style="width:165px;margin:0px auto;" class="border_07">
     310<tr>
     311<td style="width:7px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     312<td style="width:149px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     313<td style="width:7px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     314</tr>
     315<tr>
     316<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     317<td class="bg_10" align="center">
     318<!-- *ここから:カテゴリ一覧>内容* -->
     319({*ここから:header*})
     320<!-- ここから:小タイトル -->
     321<table border="0" cellspacing="0" cellpadding="0" style="width:149px;" class="border_01">
     322<tr>
     323<td style="width:36px;" class="bg_06"><img src="({t_img_url_skin filename=content_header_1})" style="width:30px;height:20px;" class="dummy"></td>
     324<td style="width:111px;padding:2px 0px;" class="bg_06"><span class="b_b c_00">カテゴリ一覧</span></td>
     325</tr>
     326</table>
     327<!-- ここまで:小タイトル -->
     328({*ここまで:header*})
     329({*ここから:body*})
     330<!-- ここから:主内容 -->
     331<div align="left" class="bg_02 border_01 padding_ss">
     332({foreach from=$category item=category_item})
     333
     334<div><a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;category_id=({$category_item.c_diary_category_id})"><img src="./skin/dummy.gif" style="width:14px;height:14px;" class="icon icon_2">({$category_item.category_name})</a></div>
     335
     336({/foreach})
     337</div>
     338<!-- ここまで:主内容 -->
     339({*ここまで:body*})
     340({*ここから:footer*})
     341<!-- 無し -->
     342({*ここまで:footer*})
     343<!-- *ここまで:カテゴリ一覧>>内容* -->
     344</td>
     345<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     346</tr>
     347<tr>
     348<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     349<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     350<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     351</tr>
     352</table>
     353<!-- ******ここまで:カテゴリ一覧****** -->
     354<!-- ********************************** -->
     355
     356<img src="./skin/dummy.gif" class="v_spacer_l">
     357
     358({/if})
     359
    305360({********************************})
    306361({**ここまで:メインコンテンツ(左)**})
    307362({********************************})
     
    424479<td style="height:1px;" class="bg_01" colspan="7"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    425480</tr>
    426481({*********})
     482({if $category_list})
     483<tr>
     484<td class="bg_01" align="right"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     485<td class="bg_02" align="right" colspan="3">
     486<div style="padding:4px 3px; font-size:85%;">
     487
     488({foreach from=$category_list item=category})
     489    ({$category.category_name})
     490({/foreach})
     491
     492</div>
     493</td>
     494<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     495</tr>
     496({*********})
     497<tr>
     498<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     499</tr>
     500({*********})
     501({/if})
    427502({if $type == "h"})
    428503<tr>
    429504<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
  • webapp/modules/pc/templates/h_diary_add.tpl

     
    11({$inc_html_header|smarty:nodefaults})
    22<body>
    33({ext_include file="inc_extension_pagelayout_top.tpl"})
     4
     5<script type="text/javascript" src="modules/pc/diary_category_form.js"></script>
     6
    47<table class="mainframe" border="0" cellspacing="0" cellpadding="0">
    58<tr>
    69<td class="container inc_page_header">
     
    252255<img src="./skin/dummy.gif" class="v_spacer_l">
    253256
    254257({/if})
     258({if $category_list})
    255259
     260<!-- ********************************** -->
     261<!-- ******ここから:カテゴリ一覧****** -->
     262<table border="0" cellspacing="0" cellpadding="0" style="width:165px;margin:0px auto;" class="border_07">
     263<tr>
     264<td style="width:7px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     265<td style="width:149px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     266<td style="width:7px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     267</tr>
     268<tr>
     269<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     270<td class="bg_10" align="center">
     271<!-- *ここから:カテゴリ一覧>内容* -->
     272({*ここから:header*})
     273<!-- ここから:小タイトル -->
     274<table border="0" cellspacing="0" cellpadding="0" style="width:149px;" class="border_01">
     275<tr>
     276<td style="width:36px;" class="bg_06"><img src="({t_img_url_skin filename=content_header_1})" style="width:30px;height:20px;" class="dummy"></td>
     277<td style="width:111px;padding:2px 0px;" class="bg_06"><span class="b_b c_00">カテゴリ一覧</span></td>
     278</tr>
     279</table>
     280<!-- ここまで:小タイトル -->
     281({*ここまで:header*})
     282({*ここから:body*})
     283<!-- ここから:主内容 -->
     284<div align="left" class="bg_02 border_01 padding_ss">
     285({foreach from=$category_list item=category})
     286
     287<div><a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;category_id=({$category.c_diary_category_id})"><img src="./skin/dummy.gif" style="width:14px;height:14px;" class="icon icon_2">({$category.category_name})</a></div>
     288
     289({/foreach})
     290</div>
     291<!-- ここまで:主内容 -->
     292({*ここまで:body*})
     293({*ここから:footer*})
     294<!-- 無し -->
     295({*ここまで:footer*})
     296<!-- *ここまで:カテゴリ一覧>>内容* -->
     297</td>
     298<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     299</tr>
     300<tr>
     301<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     302<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     303<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     304</tr>
     305</table>
     306<!-- ******ここまで:カテゴリ一覧****** -->
     307<!-- ********************************** -->
     308
     309<img src="./skin/dummy.gif" class="v_spacer_l">
     310
     311({/if})
     312
    256313({********************************})
    257314({**ここまで:メインコンテンツ(左)**})
    258315({********************************})
     
    418475<td class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    419476</tr>
    420477({*********})
     478({if $use_diary_category})
     479<tr>
     480<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     481<td class="bg_05" align="center" valign="middle">
     482<div style="padding:4px 3px;">
    421483
     484カテゴリ
     485
     486</div>
     487</td>
     488<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     489<td class="bg_02" align="left" valign="middle">
     490<div style="padding:4px 3px;">
     491<input type="text" name="category" id="category" size="40" value="({$form_val.category})">
     492<select onChange="if(selectedIndex){category.value += options[selectedIndex].value + ' '}">
     493<option>カテゴリを選択してください
     494({foreach from=$category_list item=value})
     495<option value="({$value.category_name})">({$value.category_name})
     496({/foreach})
     497</select>
     498</div>
     499</td>
     500<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     501</tr>
     502
     503({*********})
    422504<tr>
     505<td class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     506</tr>
     507({*********})
     508({/if})
     509
     510<tr>
    423511<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    424512<td class="bg_05" align="center" valign="middle">
    425513<div style="padding:4px 3px;">
  • webapp/modules/pc/templates/h_message_box.tpl

     
    101101<!-- ******ここまで:メッセージボックス左メニュー****** -->
    102102<!-- *********************************************** -->
    103103
     104
     105({if $calendar})
    104106<img src="./skin/dummy.gif" class="v_spacer_l">
    105107
     108<!-- ******************************* -->
     109<!-- ******ここから:カレンダー****** -->
     110<table border="0" cellspacing="0" cellpadding="0" style="width:165px;margin:0px auto;" class="border_07">
     111<tr>
     112<td style="width:7px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     113<td style="width:149px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     114<td style="width:7px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     115</tr>
     116<tr>
     117<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     118<td class="bg_10" align="center">
     119<!-- *ここから:カレンダー>内容* -->
     120({*ここから:header*})
     121<!-- ここから:カレンダータイトル -->
     122<table border="0" cellspacing="0" cellpadding="0" style="width:149px;margin:0px auto;">
     123<tr>
     124<td align="center" class="bg_03 padding_s">
     125
     126({strip})
     127({if $ym.prev_month})
     128<span class="b_b">
     129<a href="({t_url m=pc a=page_h_message_box})
     130    &amp;target_c_member_id=({$target_member.c_member_id})
     131    &amp;box=({$box})
     132    &amp;year=({$ym.prev_year})
     133    &amp;month=({$ym.prev_month})">
     134
     135</a>
     136</span>
     137({/if})
     138
     139<span class="b_b">({$date_val.month})月のカレンダー</span>
     140
     141({if $ym.next_month})
     142<span class="b_b">
     143<a href="({t_url m=pc a=page_h_message_box})
     144    &amp;target_c_member_id=({$target_member.c_member_id})
     145    &amp;box=({$box})
     146    &amp;year=({$ym.next_year})
     147    &amp;month=({$ym.next_month})">
     148
     149</a>
     150</span>
     151({/if})
     152({/strip})
     153
     154</td>
     155</tr>
     156</table>
     157<!-- ここまで:カレンダータイトル -->
     158({*ここまで:header*})
     159({*ここから:body*})
     160<!-- ここから:主内容 -->
     161<table border="0" cellspacing="0" cellpadding="0" style="width:149px;margin:0px auto;">
     162({****************})
     163<tr>
     164<td style="width:149px;" class="bg_10" colspan="13"><img src="./skin/dummy.gif" style="width:149px;height:1px;" class="dummy"></td>
     165</tr>
     166({****************})
     167<tr>
     168<td class="bg_09 s_ss padding_ss" align="right"><span class="c_02 s_ss">日</span></td>
     169<td style="width:1px;" class="bg_10"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     170<td class="bg_09 s_ss padding_ss" align="right">月</td>
     171<td style="width:1px;" class="bg_10"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     172<td class="bg_09 s_ss padding_ss" align="right">火</td>
     173<td style="width:1px;" class="bg_10"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     174<td class="bg_09 s_ss padding_ss" align="right">水</td>
     175<td style="width:1px;" class="bg_10"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     176<td class="bg_09 s_ss padding_ss" align="right">木</td>
     177<td style="width:1px;" class="bg_10"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     178<td class="bg_09 s_ss padding_ss" align="right">金</td>
     179<td style="width:1px;" class="bg_10"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     180<td class="bg_09 s_ss padding_ss" align="right"><span class="c_03 s_ss">土</span></td>
     181</tr>
     182({****************})
     183<tr>
     184<td style="width:149px;" class="bg_10" colspan="13"><img src="./skin/dummy.gif" style="width:149px;height:1px;" class="dummy"></td>
     185</tr>
     186({****************})
     187({foreach from=$calendar item=week})
     188<tr>
     189({foreach from=$week item=item name="calendar_days"})
     190<td style="width:({if $smarty.foreach.calendar_days.iteration%7 == 0 || $smarty.foreach.calendar_days.iteration%7 == 1})21({else})20({/if})px;height:18px;" valign="middle" align="right" class="bg_02 s_ss padding_ss">
     191({if $item.day})
     192({if $item.is_message})
     193<a href="({t_url m=pc a=page_h_message_box})&amp;target_c_member_id=({$target_member.c_member_id})&amp;year=({$date_val.year})&amp;month=({$date_val.month})&amp;day=({$item.day})&amp;box=({$box})" class="s_ss">({$item.day})</a>
     194({else})
     195({$item.day})
     196({/if})
     197({else})
     198&nbsp;({/if})
     199</td>
     200({if $smarty.foreach.calendar_days.iteration%7 != 0})
     201<td style="width:1px;" class="bg_10"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     202({/if})
     203({/foreach})
     204</tr>
     205({****************})
     206<tr>
     207<td style="width:149px;" class="bg_10" colspan="13"><img src="./skin/dummy.gif" style="width:149px;height:1px;" class="dummy"></td>
     208</tr>
     209({****************})
     210({/foreach})
     211</table>
     212<!-- ここまで:主内容 -->
     213({*ここまで:body*})
     214({*ここから:footer*})
     215<!-- 無し -->
     216({*ここまで:footer*})
     217<!-- *ここまで:カレンダー>>内容* -->
     218</td>
     219<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     220</tr>
     221<tr>
     222<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     223<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     224<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     225</tr>
     226</table>
     227<!-- ******ここまで:カレンダー****** -->
     228<!-- ****************************** -->
     229
     230<img src="./skin/dummy.gif" class="v_spacer_l">
     231({/if})
     232
     233({if $date_list})
     234<img src="./skin/dummy.gif" class="v_spacer_l">
     235<!-- ********************************** -->
     236<!-- ******ここから:各月のメッセージ一覧****** -->
     237<table border="0" cellspacing="0" cellpadding="0" style="width:165px;margin:0px auto;" class="border_07">
     238<tr>
     239<td style="width:7px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     240<td style="width:149px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     241<td style="width:7px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     242</tr>
     243<tr>
     244<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     245<td class="bg_10" align="center">
     246<!-- *ここから:各月のメッセージ一覧>内容* -->
     247({*ここから:header*})
     248<!-- ここから:小タイトル -->
     249<table border="0" cellspacing="0" cellpadding="0" style="width:149px;" class="border_01">
     250<tr>
     251<td style="width:36px;" class="bg_06"><img src="({t_img_url_skin filename=content_header_1})" style="width:30px;height:20px;" class="dummy"></td>
     252<td style="width:111px;padding:2px 0px;" class="bg_06"><span class="b_b c_00">各月のメッセージ</span></td>
     253</tr>
     254</table>
     255<!-- ここまで:小タイトル -->
     256({*ここまで:header*})
     257({*ここから:body*})
     258<!-- ここから:主内容 -->
     259<div align="left" class="bg_02 border_01 padding_ss">
     260({foreach from=$date_list item=date})
     261
     262<div><a href="({t_url m=pc a=page_h_message_box})&amp;box=({$box})&amp;year=({$date.year})&amp;month=({$date.month})&amp;box=({$box})"><img src="./skin/dummy.gif" style="width:14px;height:14px;" class="icon icon_2">({$date.year})年({$date.month})月の一覧</a></div>
     263
     264({/foreach})
     265</div>
     266<!-- ここまで:主内容 -->
     267({*ここまで:body*})
     268({*ここから:footer*})
     269<!-- 無し -->
     270({*ここまで:footer*})
     271<!-- *ここまで:各月のメッセージ一覧>>内容* -->
     272</td>
     273<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     274</tr>
     275<tr>
     276<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     277<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     278<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     279</tr>
     280</table>
     281<!-- ******ここまで:各月のメッセージ一覧****** -->
     282<!-- ********************************** -->
     283
     284<img src="./skin/dummy.gif" class="v_spacer_l">
     285({/if})
     286
     287<img src="./skin/dummy.gif" class="v_spacer_l">
     288
    106289({********************************})
    107290({**ここまで:メインコンテンツ(左)**})
    108291({********************************})
     
    143326ごみ箱
    144327({/if})
    145328</span></td>
     329<td style="width:486px;padding:2px 0px;" class="bg_06"><span class="b_b c_00">
     330({if !$all})
     331&nbsp;({$date_val.year})年({$date_val.month})月({if $date_val.day})({$date_val.day})日({/if})
     332({/if})
     333</span>
     334</td>
    146335</tr>
    147336</table>
    148337<!-- ここまで:小タイトル -->
     
    158347</div>
    159348<!-- ここまで:主内容>>メッセージ -->
    160349
    161 ({t_form m=pc a=do_h_message_box_delete_message})
    162 <input type="hidden" name="sessid" value="({$PHPSESSID})">
    163 
    164350({if $box == "inbox" || !$box })
    165351
     352 <!-- ここから:主内容>>受信箱>>検索BOX -->
     353({capture name="inbox_search_box"})
     354<table style="width:504px;" border="0" cellspacing="0" cellpadding="0" style="width:auto;margin:0px auto;" class="border_01">
     355({*********})
     356<tr>
     357<td style="width:50%;" class="bg_05" align="center">
     358
     359<div class="padding_s">
     360({t_form _method=get m=pc a=page_h_message_box})
     361<input type="hidden" name="box" value="({$box})">
     362キーワード<img src="({t_img_url_skin filename=icon_arrow_2})" class="icon">
     363<input type="text" size="15" name="keyword" class="text border_01" value="({$keyword})">
     364送信者<img src="({t_img_url_skin filename=icon_arrow_2})" class="icon">
     365<select name="target_c_member_id">
     366<option value="">指定なし</option>
     367({foreach from=$c_message_sender_list item=item})
     368<option ({if $target_c_member_id==$item.c_member_id_from})selected({/if}) value="({$item.c_member_id_from})">({$item.nickname})</option>
     369({/foreach})
     370</select>
     371<input type=submit  class="submit"  value="  検 索  ">
     372</form>
     373</div>
     374
     375</td>
     376</tr>
     377({*********})
     378</table>
     379({/capture})
     380
     381<!-- ここまで:主内容>>受信箱>>検索BOX -->
     382
    166383({if $count_c_message_ru_list})
    167384
    168385<!-- ここから:主内容>>受信箱>>ページ切り替えタブ -->
     
    181398<td class="bg_05" align="right">
    182399
    183400<div class="padding_s">
    184 
     401({capture name="ru_pager"})
    185402({if $ru_data.is_ru_prev})
    186  <a href="({t_url m=pc a=page_h_message_box})&amp;ru_page=({$ru_data.ru_page-1})&amp;box=inbox">前を表示</a>
     403 <a href="({t_url m=pc a=page_h_message_box})&amp;ru_page=({$ru_data.ru_page-1})&amp;box=inbox&amp;keyword=({$url_keyword})&amp;target_c_member_id=({$target_c_member_id})&amp;year=({$date_val.year})&amp;month=({$date_val.month})&amp;day=({$date_val.day})">前を表示</a>
    187404({/if})
     405({$total_num})件中
    188406({$ru_data.ru_page*$page_size-$page_size+1})件~
    189407({if $ru_data.ru_page*$page_size > $count_c_message_ru_list })
    190408({$count_c_message_ru_list+$ru_data.ru_page*$page_size-$page_size })
     
    193411({/if})
    194412件を表示
    195413({if $ru_data.is_ru_next})
    196  <a href="({t_url m=pc a=page_h_message_box})&amp;ru_page=({$ru_data.ru_page+1})&amp;box=inbox">次を表示</a>
     414 <a href="({t_url m=pc a=page_h_message_box})&amp;ru_page=({$ru_data.ru_page+1})&amp;box=inbox&amp;keyword=({$url_keyword})&amp;target_c_member_id=({$target_c_member_id})&amp;year=({$date_val.year})&amp;month=({$date_val.month})&amp;day=({$date_val.day})">次を表示</a>
    197415({/if})
     416({/capture})
     417({$smarty.capture.ru_pager|smarty:nodefaults})
    198418
    199419</div>
    200420
     
    204424</table>
    205425<!-- ここまで:主内容>>受信箱>>ページ切り替えタブ -->
    206426
     427<!-- ここから:主内容>>受信箱>>検索BOX -->
     428
     429({$smarty.capture.inbox_search_box|smarty:nodefaults})
     430
     431<!-- ここまで:主内容>>受信箱>>検索BOX -->
     432
    207433<!-- ここから:主内容>>受信箱>>メール内容リスト -->
    208434<table style="width:504px;" border="0" cellspacing="0" cellpadding="0" style="margin:0px auto;" class="border_01">
    209435({*********})
     
    219445<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    220446</tr>
    221447({*********})
     448
     449({t_form m=pc a=do_h_message_box_delete_message})
     450<input type="hidden" name="sessid" value="({$PHPSESSID})">
     451
    222452({foreach from=$c_message_ru_list item=c_message_ru})
    223453<tr>
    224454<td class="bg_({if $c_message_ru.is_read})02({else})09({/if})" align="center"><img src="({if $c_message_ru.is_hensin})({t_img_url_skin filename=icon_mail_4})({elseif $c_message_ru.is_read})({t_img_url_skin filename=icon_mail_2})({else})({t_img_url_skin filename=icon_mail_1})({/if})" class="icon"></td>
     
    244474
    245475<div class="padding_s">
    246476
    247 ({if $ru_data.is_ru_prev})
    248  <a href="({t_url m=pc a=page_h_message_box})&amp;ru_page=({$ru_data.ru_page-1})&amp;box=inbox">前を表示</a>
    249 ({/if})
    250 ({$ru_data.ru_page*$page_size-$page_size+1})件~
    251 ({if $ru_data.ru_page*$page_size > $count_c_message_ru_list })
    252 ({$count_c_message_ru_list+$ru_data.ru_page*$page_size-$page_size })
    253 ({else})
    254 ({$ru_data.ru_page*$page_size})
    255 ({/if})
    256 件を表示
    257 ({if $ru_data.is_ru_next})
    258  <a href="({t_url m=pc a=page_h_message_box})&amp;ru_page=({$ru_data.ru_page+1})&amp;box=inbox">次を表示</a>
    259 ({/if})
     477({$smarty.capture.ru_pager|smarty:nodefaults})
    260478
    261479</div>
    262480
     
    275493<div class="padding_s">
    276494<input type="hidden" name="box" value="({$box})">
    277495<input type="submit" class="submit" value="削 除">
     496</form>
    278497
    279498</div>
    280499
     
    287506({else})
    288507
    289508<!-- ここから:主内容>>受信箱>>メールナッシング -->
     509
     510<!-- ここから:主内容>>受信箱>>検索BOX -->
     511
     512({$smarty.capture.inbox_search_box|smarty:nodefaults})
     513
     514<!-- ここまで:主内容>>受信箱>>検索BOX -->
     515
    290516<div align="center" style="padding:20px 30px;" class="bg_02 border_01">
    291517
    292518メッセージがありません。
     
    300526
    301527({if $box == "outbox"})
    302528
     529
     530 <!-- ここから:主内容>>送信箱>>検索BOX -->
     531({capture name="outbox_search_box"})
     532<table style="width:504px;" border="0" cellspacing="0" cellpadding="0" style="width:auto;margin:0px auto;" class="border_01">
     533({*********})
     534<tr>
     535<td style="width:50%;" class="bg_05" align="center">
     536
     537<div class="padding_s">
     538({t_form _method=get m=pc a=page_h_message_box})
     539<input type="hidden" name="box" value="({$box})">
     540キーワード<img src="({t_img_url_skin filename=icon_arrow_2})" class="icon">
     541<input type="text" size="15" name="keyword" class="text border_01" value="({$keyword})">
     542宛先<img src="({t_img_url_skin filename=icon_arrow_2})" class="icon">
     543<select name="target_c_member_id">
     544<option value="">指定なし</option>
     545({foreach from=$c_message_receiver_list item=item})
     546<option ({if $target_c_member_id==$item.c_member_id_to})selected({/if}) value="({$item.c_member_id_to})">({$item.nickname})</option>
     547({/foreach})
     548</select>
     549<input type=submit  class="submit"  value="  検 索  ">
     550</form>
     551</div>
     552
     553</td>
     554</tr>
     555({*********})
     556</table>
     557({/capture})
     558
     559<!-- ここまで:主内容>>送信箱>>検索BOX -->
     560
    303561({if $count_c_message_s_list})
    304562
    305563<!-- ここから:主内容>>送信済み箱>>ページ切り替えタブ -->
     
    309567<td style="width:100%;" class="bg_05" align="right">
    310568
    311569<div class="padding_s">
    312 
     570({capture name="s_pager"})
    313571({if $s_data.is_s_prev})
    314  <a href="({t_url m=pc a=page_h_message_box})&amp;s_page=({$s_data.s_page-1})&amp;box=outbox">前を表示</a>
     572 <a href="({t_url m=pc a=page_h_message_box})&amp;s_page=({$s_data.s_page-1})&amp;box=outbox&amp;keyword=({$url_keyword})&amp;target_c_member_id=({$target_c_member_id})&amp;year=({$date_val.year})&amp;month=({$date_val.month})&amp;day=({$date_val.day})">前を表示</a>
    315573({/if})
     574({$total_num})件中
    316575({$s_data.s_page*$page_size-$page_size+1})件~
    317576({if $s_data.s_page*$page_size > $count_c_message_s_list })
    318577({$count_c_message_s_list+$s_data.s_page*$page_size-$page_size })
     
    321580({/if})
    322581件を表示
    323582({if $s_data.is_s_next})
    324  <a href="({t_url m=pc a=page_h_message_box})&amp;s_page=({$s_data.s_page+1})&amp;box=outbox">次を表示</a>
     583 <a href="({t_url m=pc a=page_h_message_box})&amp;s_page=({$s_data.s_page+1})&amp;box=outbox&amp;keyword=({$url_keyword})&amp;target_c_member_id=({$target_c_member_id})&amp;year=({$date_val.year})&amp;month=({$date_val.month})&amp;day=({$date_val.day})">次を表示</a>
    325584({/if})
     585({/capture})
     586({$smarty.capture.s_pager|smarty:nodefaults})
     587
    326588</div>
    327589
    328590</td>
     
    331593</table>
    332594<!-- ここまで:主内容>>送信済み箱>>ページ切り替えタブ -->
    333595
     596<!-- ここから:主内容>>送信箱>>検索BOX -->
     597
     598({$smarty.capture.outbox_search_box|smarty:nodefaults})
     599
     600<!-- ここまで:主内容>>送信箱>>検索BOX -->
     601
     602
    334603<!-- ここから:主内容>>送信済み箱>>メール内容リスト -->
    335604<table style="width:504px;" border="0" cellspacing="0" cellpadding="0" style="margin:0px auto;" class="border_01">
    336605({*********})
     
    346615<td style="height:1px;" class="bg_01" colspan="4"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    347616</tr>
    348617({*********})
     618
     619({t_form m=pc a=do_h_message_box_delete_message})
     620<input type="hidden" name="sessid" value="({$PHPSESSID})">
     621
    349622({foreach from=$c_message_s_list item=c_message_s})
    350623<tr>
    351624<td class="bg_02" align="center"><img src="({t_img_url_skin filename=icon_mail_3})" class="icon"></td>
     
    371644
    372645<div class="padding_s">
    373646
    374 ({if $s_data.is_s_prev})
    375  <a href="({t_url m=pc a=page_h_message_box})&amp;s_page=({$s_data.s_page-1})&amp;box=outbox">前を表示</a>
    376 ({/if})
    377 ({$s_data.s_page*$page_size-$page_size+1})件~
    378 ({if $s_data.s_page*$page_size > $count_c_message_s_list })
    379 ({$count_c_message_s_list+$s_data.s_page*$page_size-$page_size })
    380 ({else})
    381 ({$s_data.s_page*$page_size})
    382 ({/if})
    383 件を表示
    384 ({if $s_data.is_s_next})
    385  <a href="({t_url m=pc a=page_h_message_box})&amp;s_page=({$s_data.s_page+1})&amp;box=outbox">次を表示</a>
    386 ({/if})
     647({$smarty.capture.s_pager|smarty:nodefaults})
     648
    387649</div>
    388650
    389651</td>
     
    401663<div class="padding_s">
    402664<input type="hidden" name="box" value="({$box})">
    403665<input type="submit" class="submit" value="削 除">
    404 
     666</form>
    405667</div>
    406668
    407669</td>
     
    413675({else})
    414676
    415677<!-- ここから:主内容>>送信済み箱>>メールナッシング -->
     678
     679<!-- ここから:主内容>>受信箱>>検索BOX -->
     680
     681({$smarty.capture.outbox_search_box|smarty:nodefaults})
     682
     683<!-- ここまで:主内容>>受信箱>>検索BOX -->
     684
    416685<div align="center" style="padding:20px 30px;" class="bg_02 border_01">
    417686
    418687メッセージがありません。
     
    436705
    437706<div class="padding_s">
    438707
     708({capture name="save_pager"})
    439709({if $save_data.is_save_prev})
    440710 <a href="({t_url m=pc a=page_h_message_box})&amp;save_page=({$save_data.save_page-1})&amp;box=savebox">前を表示</a>
    441711({/if})
    442 ({$save_data.save_page*20-19})件~
    443 ({if $save_data.save_page*20 > $count_c_message_save_list })
    444 ({$count_c_message_save_list+$save_data.save_page*20-20 })
     712({$total_num})件中
     713({$save_data.save_page*$page_size-$page_size+1})件~
     714({if $save_data.save_page*$page_size > $count_c_message_save_list })
     715({$count_c_message_save_list+$save_data.save_page*$page_size-$page_size })
    445716({else})
    446 ({$save_data.save_page*20})
     717({$save_data.save_page*$page_size})
    447718({/if})
    448719件を表示
    449720({if $save_data.is_save_next})
    450721 <a href="({t_url m=pc a=page_h_message_box})&amp;save_page=({$save_data.save_page+1})&amp;box=savebox">次を表示</a>
    451722({/if})
    452 
     723({/capture})
     724({$smarty.capture.save_pager|smarty:nodefaults})
    453725</div>
    454726
    455727</td>
     
    473745<td style="height:1px;" class="bg_01" colspan="4"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    474746</tr>
    475747({*********})
     748
     749({t_form m=pc a=do_h_message_box_delete_message})
     750<input type="hidden" name="sessid" value="({$PHPSESSID})">
     751
    476752({foreach from=$c_message_save_list item=c_message_save})
    477753<tr>
    478754<td class="bg_02" align="center"><img src="({t_img_url_skin filename=icon_mail_1})" class="icon"></td>
     
    498774
    499775<div class="padding_s">
    500776
    501 ({if $save_data.is_save_prev})
    502  <a href="({t_url m=pc a=page_h_message_box})&amp;save_page=({$save_data.save_page-1})&amp;box=savebox">前を表示</a>
    503 ({/if})
    504 ({$save_data.save_page*20-19})件~
    505 ({if $save_data.save_page*20 > $count_c_message_save_list })
    506 ({$count_c_message_save_list+$save_data.save_page*20-20 })
    507 ({else})
    508 ({$save_data.save_page*20})
    509 ({/if})
    510 件を表示
    511 ({if $save_data.is_save_next})
    512  <a href="({t_url m=pc a=page_h_message_box})&amp;save_page=({$save_data.save_page+1})&amp;box=savebox">次を表示</a>
    513 ({/if})
     777({$smarty.capture.save_pager|smarty:nodefaults})
    514778
    515779</div>
    516780
     
    529793<div class="padding_s">
    530794<input type="hidden" name="box" value="savebox">
    531795<input type="submit" class="submit" value="削 除">
     796</form>
    532797
    533798</div>
    534799
     
    575840
    576841<div class="padding_s">
    577842
     843({capture name="trash_pager"})
    578844({if $trash_data.is_trash_prev})
    579845 <a href="({t_url m=pc a=page_h_message_box})&amp;trash_page=({$trash_data.trash_page-1})&amp;box=trash">前を表示</a>
    580846({/if})
    581 ({$trash_data.trash_page*20-19})件~
    582 ({if $trash_data.trash_page*20 > $count_c_message_trash_list })
    583 ({$count_c_message_trash_list+$trash_data.trash_page*20-20 })
     847({$total_num})件中
     848({$trash_data.trash_page*$page_size-$page_size+1})件~
     849({if $trash_data.trash_page*$page_size > $count_c_message_trash_list })
     850({$count_c_message_trash_list+$trash_data.trash_page*$page_size-$page_size })
    584851({else})
    585 ({$trash_data.trash_page*20})
     852({$trash_data.trash_page*$page_size})
    586853({/if})
    587854件を表示
    588855({if $trash_data.is_trash_next})
    589856<a href="({t_url m=pc a=page_h_message_box})&amp;trash_page=({$trash_data.trash_page+1})&amp;box=trash">次を表示</a>
    590857({/if})
    591 
     858({/capture})
     859<nobr>
     860({$smarty.capture.trash_pager|smarty:nodefaults})
     861</nobr>
    592862</div>
    593863
    594864</td>
     
    612882<td style="height:1px;" class="bg_01" colspan="4"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    613883</tr>
    614884({*********})
     885
     886({t_form m=pc a=do_h_message_box_delete_message})
     887<input type="hidden" name="sessid" value="({$PHPSESSID})">
     888
    615889({foreach from=$c_message_trash_list item=c_message_trash})
    616890<tr>
    617891({strip})
     
    649923
    650924<div class="padding_s">
    651925
    652 ({if $trash_data.is_trash_prev})
    653 <a href="({t_url m=pc a=page_h_message_box})&amp;trash_page=({$trash_data.trash_page-1})&amp;box=trash">前を表示</a>
    654 ({/if})
    655 ({$trash_data.trash_page*20-19})件~
    656 ({if $trash_data.trash_page*20 > $count_c_message_trash_list })
    657 ({$count_c_message_trash_list+$trash_data.trash_page*20-20 })
    658 ({else})
    659 ({$trash_data.trash_page*20})
    660 ({/if})
    661 件を表示
    662 ({if $trash_data.is_trash_next})
    663 <a href="({t_url m=pc a=page_h_message_box})&amp;trash_page=({$trash_data.trash_page+1})&amp;box=trash">次を表示</a>
    664 ({/if})
     926({$smarty.capture.trash_pager|smarty:nodefaults})
    665927
    666928</div>
    667929
     
    682944
    683945<input type="submit" class="submit" name="move" value="元に戻す">
    684946<input type="submit" class="submit" name="remove" value="削除">
     947</form>
    685948
    686949</div>
    687950
     
    705968
    706969({/if})
    707970
    708 </form>
    709971<!-- ここまで:主内容 -->
    710972({*ここまで:body*})
    711973({*ここから:footer*})
  • webapp/modules/pc/templates/h_diary_edit.tpl

     
    11({$inc_html_header|smarty:nodefaults})
    22<body>
    33({ext_include file="inc_extension_pagelayout_top.tpl"})
     4
     5<script type="text/javascript" src="modules/pc/diary_category_form.js"></script>
     6
    47<table class="mainframe" border="0" cellspacing="0" cellpadding="0">
    58<tr>
    69<td class="container inc_page_header">
     
    251254<img src="./skin/dummy.gif" class="v_spacer_l">
    252255({/if})
    253256
     257({if $category_list})
     258
     259<!-- ********************************** -->
     260<!-- ******ここから:カテゴリ一覧****** -->
     261<table border="0" cellspacing="0" cellpadding="0" style="width:165px;margin:0px auto;" class="border_07">
     262<tr>
     263<td style="width:7px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     264<td style="width:149px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     265<td style="width:7px;" class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     266</tr>
     267<tr>
     268<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     269<td class="bg_10" align="center">
     270<!-- *ここから:カテゴリ一覧>内容* -->
     271({*ここから:header*})
     272<!-- ここから:小タイトル -->
     273<table border="0" cellspacing="0" cellpadding="0" style="width:149px;" class="border_01">
     274<tr>
     275<td style="width:36px;" class="bg_06"><img src="({t_img_url_skin filename=content_header_1})" style="width:30px;height:20px;" class="dummy"></td>
     276<td style="width:111px;padding:2px 0px;" class="bg_06"><span class="b_b c_00">カテゴリ一覧</span></td>
     277</tr>
     278</table>
     279<!-- ここまで:小タイトル -->
     280({*ここまで:header*})
     281({*ここから:body*})
     282<!-- ここから:主内容 -->
     283<div align="left" class="bg_02 border_01 padding_ss">
     284({foreach from=$category_list item=category_item})
     285
     286<div><a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;category_id=({$category_item.c_diary_category_id})"><img src="./skin/dummy.gif" style="width:14px;height:14px;" class="icon icon_2">({$category_item.category_name})</a></div>
     287
     288({/foreach})
     289</div>
     290<!-- ここまで:主内容 -->
     291({*ここまで:body*})
     292({*ここから:footer*})
     293<!-- 無し -->
     294({*ここまで:footer*})
     295<!-- *ここまで:カテゴリ一覧>>内容* -->
     296</td>
     297<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     298</tr>
     299<tr>
     300<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     301<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     302<td class="bg_10"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     303</tr>
     304</table>
     305<!-- ******ここまで:カテゴリ一覧****** -->
     306<!-- ********************************** -->
     307
     308<img src="./skin/dummy.gif" class="v_spacer_l">
     309
     310({/if})
     311
    254312({********************************})
    255313({**ここまで:メインコンテンツ(左)**})
    256314({********************************})
     
    433491</tr>
    434492({*********})
    435493<tr>
    436 <td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     494<td class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    437495</tr>
    438496({*********})
     497({if $use_diary_category})
     498<tr>
     499<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     500<td class="bg_05" align="center" valign="middle">
     501<div style="padding:4px 3px;">
    439502
     503カテゴリ
    440504
     505</div>
     506</td>
     507<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     508<td class="bg_02" align="left" valign="middle">
     509<div style="padding:4px 3px;">
     510<input type="text" name="category" id="category" size="40" value="({foreach from=$category item=item})({$item.category_name}) ({/foreach})">
     511<select onChange="if(selectedIndex){category.value += options[selectedIndex].value + ' '}">
     512<option>カテゴリを選択してください
     513({foreach from=$category_list item=value})
     514<option value="({$value.category_name})">({$value.category_name})
     515({/foreach})
     516</select>
     517
     518</div>
     519</td>
     520<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     521</tr>
     522({*********})
    441523<tr>
     524<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     525</tr>
     526({*********})
     527({/if})
     528
     529<tr>
    442530<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    443531<td class="bg_05" align="center" valign="middle">
    444532<div style="padding:4px 3px;">
  • webapp/modules/admin/do/send_invites.php

     
    2525        $errors = array();
    2626        $pcs = array();
    2727        $ktais = array();
     28        $limits = array();
    2829
    2930        foreach ($mail_list as $mail) {
    3031            // メールアドレスとして正しくない
     
    3435
    3536            if (p_is_sns_join4mail_address($mail)) { // 登録済み
    3637                $errors[] = $mail;
     38            } elseif (!db_member_is_limit_domain4mail_address($mail)) { // ドメイン制限
     39                $limits[] = $mail;
    3740            } elseif (is_ktai_mail_address($mail)) {
    3841                $ktais[] = $mail;
    3942            } else {
     
    4649            $_REQUEST['error_mails'] = $errors;
    4750            $_REQUEST['pc_mails'] = $pcs;
    4851            $_REQUEST['ktai_mails'] = $ktais;
    49 
     52            $_REQUEST['limit_domain_mails'] = $limits;
    5053            openpne_forward($module_name, 'page', 'send_invites_confirm');
    5154            exit;
    5255
  • webapp/modules/admin/do/csv_member.php

     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7class admin_do_csv_member extends OpenPNE_Action
     8{
     9    function execute($requests)
     10    {
     11        $start_id = $requests['start_id'];
     12        $end_id = $requests['end_id'];
     13       
     14        $member_key_string = $this->get_key_list();
     15        $c_member_list = $this->db_get_c_member_list($start_id,$end_id);
     16        $member_csv_data = $this->create_csv_data($member_key_string,$c_member_list);
     17       
     18        header("Content-Type: application/octet-stream");
     19        header("Content-Disposition: attachment; filename=member.csv");
     20        echo $member_csv_data;
     21        exit;
     22    }
     23   
     24    /**
     25     * ユーザーリスト取得
     26     */
     27    function db_get_c_member_list($start_id,$end_id)
     28    {
     29        $params=array();
     30        $sql = 'SELECT c_member_id FROM c_member ';
     31        $sql .= ' WHERE 1 ' ;
     32        if($start_id!=""){
     33            $sql .= ' AND c_member_id >= ? ';
     34            $params[] = $start_id;
     35        }
     36        if($end_id!=""){
     37            $sql .= ' AND c_member_id <= ? ';
     38            $params[] = $end_id;
     39        }
     40        $sql .= ' ORDER BY c_member_id' ;
     41        $ids = db_get_col($sql,$params);
     42   
     43        $c_member_list = array();
     44        foreach ($ids as $id) {
     45            $tmp_c_member = array();
     46            $_tmp_c_member = db_common_c_member4c_member_id($id, false, false, 'private');
     47           
     48            $tmp_c_member['c_member_id'] = $_tmp_c_member['c_member_id'];
     49            $tmp_c_member['nickname'] = $_tmp_c_member['nickname'];
     50            $tmp_c_member['access_date'] = $_tmp_c_member['access_date'];
     51            $tmp_c_member['r_date'] = $_tmp_c_member['r_date'];
     52            $tmp_c_member['c_member_id_invite'] = $_tmp_c_member['c_member_id_invite'];
     53            $tmp_c_member['image_filename_1'] = $_tmp_c_member['image_filename_1'];
     54            $tmp_c_member['image_filename_2'] = $_tmp_c_member['image_filename_2'];
     55            $tmp_c_member['image_filename_3'] = $_tmp_c_member['image_filename_3'];
     56            $tmp_c_member['birth_year'] = $_tmp_c_member['birth_year'];
     57            $tmp_c_member['birth_month'] = $_tmp_c_member['birth_month'];
     58            $tmp_c_member['birth_day'] = $_tmp_c_member['birth_day'];
     59           
     60            $tmp_profile_list = db_common_c_member_profile_list4c_member_id($id, 'private');
     61            $c_profile_list = db_common_c_profile_list4null();
     62            foreach($c_profile_list as $key=>$tmp_profile ){
     63                if (is_array($tmp_profile_list[$tmp_profile['name']]['value'])){
     64                    foreach ($tmp_profile_list[$tmp_profile['name']]['value'] as $itm){
     65                        $tmp_c_member[$tmp_profile['name']] .= $itm . " ";
     66                    }
     67                } else {
     68                    $tmp_c_member[$tmp_profile['name']] = $tmp_profile_list[$tmp_profile['name']]['value'];
     69                }
     70            }           
     71            $tmp_secure = db_common_c_member_secure4c_member_id($id);
     72            $tmp_c_member['pc_address'] = $tmp_secure['pc_address'];
     73            $tmp_c_member['ktai_address'] = $tmp_secure['ktai_address'];
     74            $tmp_c_member['regist_address'] = $tmp_secure['regist_address'];
     75           
     76            $c_member_list[]=$tmp_c_member;
     77        }
     78   
     79        return $c_member_list;
     80    }
     81   
     82    function get_key_list(){
     83        $c_profile_list = db_common_c_profile_list4null();
     84       
     85        $ley_list[]="メンバーID";
     86        $ley_list[]="ニックネーム";
     87        $ley_list[]="最終ログイン";
     88        $ley_list[]="登録日";
     89        $ley_list[]="招待者ID";
     90        $ley_list[]="画像1";
     91        $ley_list[]="画像2";
     92        $ley_list[]="画像3";
     93        $ley_list[]="誕生年";
     94        $ley_list[]="誕生月";
     95        $ley_list[]="誕生日";
     96        foreach($c_profile_list as $profile){
     97                $ley_list[]= $profile['caption'];
     98        }
     99        $ley_list[]="PCアドレス";
     100        $ley_list[]="携帯アドレス";
     101        $ley_list[]="登録時アドレス";
     102       
     103        return $ley_list;
     104    }
     105   
     106    function create_csv_data($key_string,$value_list){
     107        $csv = "";
     108        foreach($key_string as $each_key){
     109            if($csv != "")$csv .= ",";
     110                $csv .= '"'.mb_convert_encoding($each_key ,"SJIS", "auto").'"';
     111        }
     112        $csv .= "\n";
     113       
     114        foreach($value_list as $key => $value){
     115            $temp = "";
     116            foreach($value as $key2 => $value2){
     117                $value2 = mb_convert_encoding($value2 ,"SJIS", "auto");
     118                if ($value2 != null) $value2 = str_replace('"', '""', $value2);//クォート
     119                if ($value2 != null) $value2 = str_replace("\r","",$value2);//改行コードを変換
     120                $temp .= "\"".$value2."\",";
     121            }
     122            $csv .= $temp."\n";
     123        }
     124        return $csv;
     125    }
     126}
     127
     128?>
  • webapp/modules/admin/do/update_limit_domain.php

    Property changes on: webapp/modules/admin/do/csv_member.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7// ドメイン制限更新
     8class admin_do_update_limit_domain extends OpenPNE_Action
     9{
     10    function execute($requests)
     11    {
     12        $config =& OpenPNE_Config::getInstance();
     13
     14        foreach ($requests as $name => $value) {
     15            if (!$config->is_allowed($name)) continue;
     16
     17            // 配列の場合はカンマ区切りに
     18            if (is_array($value)) {
     19                $value = implode(',', $value);
     20            }
     21
     22            if (is_null(db_admin_c_admin_config4name($name))) {
     23                db_admin_insert_c_admin_config($name, $value);
     24            } else {
     25                db_admin_update_c_admin_config($name, $value);
     26            }
     27        }
     28
     29        admin_client_redirect('limit_domain', 'ドメイン制限を更新しました');
     30    }
     31}
     32
     33?>
  • webapp/modules/admin/lib/db_admin.php

     
    7474
    7575function db_admin_delete_c_profile_option($c_profile_option_id)
    7676{
     77    //function cache削除
     78    pne_cache_drop('db_member_c_profile_list');
     79
    7780    if (!$c_profile_option_id) {
    7881        return false;
    7982    }
     83
    8084    $sql = 'DELETE FROM c_member_profile WHERE c_profile_option_id = ?';
    8185    $params = array(intval($c_profile_option_id));
    8286    db_query($sql, $params);
     
    8993
    9094function db_admin_insert_c_profile_option($c_profile_id, $value, $sort_order)
    9195{
     96    //function cache削除
     97    pne_cache_drop('db_member_c_profile_list');
     98
    9299    $data = array(
    93100        'c_profile_id' => intval($c_profile_id),
    94101        'value' => $value,
     
    99106
    100107function db_admin_update_c_profile_option($c_profile_option_id, $value, $sort_order)
    101108{
     109    //function cache削除
     110    pne_cache_drop('db_member_c_profile_list');
     111
    102112    $data = array('value' => $value);
    103113    $where = array('c_profile_option_id' => intval($c_profile_option_id));
    104114    db_update('c_member_profile', $data, $where);
  • webapp/modules/admin/lib/etc_admin.php

     
    1212    $v['module_name'] = ADMIN_MODULE_NAME;
    1313    $v['ADMIN_INIT_CONFIG'] = ADMIN_INIT_CONFIG;
    1414    $v['auth_type'] = admin_get_auth_type();
     15    $v['CURRENT_ACTION'] = $GLOBALS['__Framework']['current_action'];
    1516
    1617    $inc_smarty = new OpenPNE_Smarty($GLOBALS['SMARTY']);
    1718    $inc_smarty->templates_dir = 'admin/templates';
     
    8485        $url = openpne_gen_url_head('admin', 'page_' . $p, true);
    8586    }
    8687    if (need_ssl_param('admin', 'page_' . $p)) {
     88        if ($tail) {
     89            $tail .= '&';
     90        }
    8791        $tail .= 'ssl_param=1';
    8892    }
    8993
  • webapp/modules/admin/validate/do/update_c_admin_config.ini

     
    100100type = "bool"
    101101default = "0"
    102102
     103[USE_DIARY_CATEGORY]
     104type = "bool"
     105default = "1"
     106
    103107[OPENPNE_USE_CMD_TAG]
    104108type = "bool"
    105109default = "1"
  • webapp/modules/admin/validate/do/insert_c_profile.ini

     
    1111
    1212[info]
    1313type = "string"
    14 required = 0
    1514caption = "説明"
     15default = ""
    1616
    1717[is_required]
    1818type = "string"
  • webapp/modules/admin/validate/do/update_limit_domain.ini

     
     1[LIMIT_DOMAIN1]
     2type = "string"
     3default = ""
     4
     5[LIMIT_DOMAIN2]
     6type = "string"
     7default = ""
     8
     9[LIMIT_DOMAIN3]
     10type = "string"
     11default = ""
     12
     13[LIMIT_DOMAIN4]
     14type = "string"
     15default = ""
     16
     17[LIMIT_DOMAIN5]
     18type = "string"
     19default = ""
  • webapp/modules/admin/validate/page/send_invites_confirm.ini

     
    22type = "string"
    33is_array = "1"
    44
     5[limit_domain_mails]
     6type = "string"
     7is_array = "1"
     8
    59[pc_mails]
    610type = "string"
    711is_array = "1"
  • webapp/modules/admin/page/limit_domain.php

     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7// 登録ドメイン制限
     8class admin_page_limit_domain extends OpenPNE_Action
     9{
     10    function execute($requests)
     11    {
     12        return 'success';
     13    }
     14}
     15
     16?>
  • webapp/modules/admin/page/access_analysis_month.php

     
    2020        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
    2121        $this->set($v);
    2222        $this->set("ktai_flag" ,$ktai_flag);
    23         $this->set("item_str", ($ktai_flag ? "携帯":"PC"));
     23        $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
    2424        $access_analysis_month = p_access_analysis_month_access_analysis_month($ktai_flag);
    2525        $this->set("access_analysis_month", $access_analysis_month);
    2626
  • webapp/modules/admin/templates/inc_header.tpl

     
    6767<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('edit_c_navi')})" title="ナビゲーション変更: ナビゲーションボタンのリンク先、キャプションを変更">ナビゲーション変更</a></li>
    6868<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('edit_c_admin_info')})" title="お知らせ変更・HTML挿入: お知らせ、利用規約変更、HTML挿入">お知らせ変更・HTML挿入</a></li>
    6969<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('edit_c_banner')})" title="バナー管理: トップバナー、サイドバナー追加、任意HTML挿入">バナー管理</a></li>
     70<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('limit_domain')})" title="ドメイン制限: ドメイン制限追加、編集、削除">ドメイン制限</a></li>
    7071</ul>
    7172
    7273({if $ADMIN_INIT_CONFIG})
  • webapp/modules/admin/templates/edit_c_admin_config.tpl

     
    165165</select><br>
    166166<span class="caution">※忍び足機能(ユーザによるあしあとを残すかどうかの設定)を有効にするかどうかを設定します</span></td>
    167167</tr>
     168<tr>
     169<th>日記カテゴリ機能<br>使用設定</th>
     170<td><select name="USE_DIARY_CATEGORY">
     171<option value="1"({if $smarty.const.USE_DIARY_CATEGORY}) selected="selected"({/if})>使用する</option>
     172<option value="0"({if !$smarty.const.USE_DIARY_CATEGORY}) selected="selected"({/if})>使用しない</option>
     173</select><br>
     174<span class="caution">※日記のカテゴリ機能を有効にするかどうかを設定します</span></td>
     175</tr>
    168176
    169177<tr><td colspan="2" style="padding:0;background:#000"><img src="skin/dummy.gif" height="1"></td></tr>
    170178
  • webapp/modules/admin/templates/limit_domain.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3({if $msg})
     4<p class="caution">({$msg})</p>
     5({/if})
     6
     7<form action="./" method="post">
     8<input type="hidden" name="m" value="({$module_name})">
     9<input type="hidden" name="a" value="do_({$hash_tbl->hash('update_limit_domain','do')})">
     10<input type="hidden" name="sessid" value="({$PHPSESSID})">
     11<table>
     12
     13<tr>
     14<th>ドメイン制限1</th>
     15<td><input name="LIMIT_DOMAIN1" type="text" class="text" value="({$smarty.const.LIMIT_DOMAIN1})" size="30"><br>
     16</td>
     17</tr>
     18<tr>
     19<th>ドメイン制限2</th>
     20<td><input name="LIMIT_DOMAIN2" type="text" class="text" value="({$smarty.const.LIMIT_DOMAIN2})" size="30"><br>
     21</td>
     22</tr>
     23<tr>
     24<th>ドメイン制限3</th>
     25<td><input name="LIMIT_DOMAIN3" type="text" class="text" value="({$smarty.const.LIMIT_DOMAIN3})" size="30"><br>
     26</td>
     27</tr>
     28<tr>
     29<th>ドメイン制限4</th>
     30<td><input name="LIMIT_DOMAIN4" type="text" class="text" value="({$smarty.const.LIMIT_DOMAIN4})" size="30"><br>
     31</td>
     32</tr>
     33<tr>
     34<th>ドメイン制限5</th>
     35<td><input name="LIMIT_DOMAIN5" type="text" class="text" value="({$smarty.const.LIMIT_DOMAIN5})" size="30"><br>
     36</td>
     37</tr>
     38
     39<tr><td colspan="2" style="padding:0;background:#000"><img src="skin/dummy.gif" height="1"></td></tr>
     40
     41<tr>
     42<th>&nbsp;</th>
     43<td><input type="submit" class="submit" value=" 更 新 "></td>
     44</tr>
     45</table>
     46</form>
     47
     48({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/send_invites_confirm.tpl

     
    3939</ul>
    4040({/if})
    4141
     42({if $requests.limit_domain_mails})
     43以下のメールアドレスでは登録できないため送信されません。
     44<ul>
     45({foreach from=$requests.limit_domain_mails item=item})
     46<li>({$item})</li>
     47({/foreach})
     48</ul>
     49({/if})
     50
    4251({if !$cannot_send})
    4352送信してもよろしいですか?
    4453({/if})
  • webapp/modules/admin/templates/access_analysis_month.tpl

     
    11({$inc_header|smarty:nodefaults})
    22
    33
    4 <h2>({$item_str})ページ月次集計</h2>
     4<h2>({$item_str})ページ月次集計</h2>
    55
    66<br>
    77<br>
  • webapp/modules/admin/templates/list_c_free_page.tpl

     
    88({if $pager && $pager.total_num > 0})
    99<!-- pager_begin -->
    1010<div class="pager">
    11 ({$pager.total_num}) 人中 ({$pager.start_num}) - ({$pager.end_num})人目を表示しています
     11({$pager.total_num}) 件中 ({$pager.start_num}) - ({$pager.end_num})件目を表示しています
    1212<br>
    1313({if $pager.prev_page})
    1414<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_free_page')})&amp;page=({$pager.prev_page})&amp;page_size=({$pager.page_size})({$cond})">前へ</a>&nbsp;
  • webapp/modules/admin/templates/access_analysis_member.tpl

     
    11({$inc_header|smarty:nodefaults})
    22
    3 <h2>({$item_str})<br>
     3<h2>({$item_str})<br>
    44({if $month_flag})({$ymd|date_format:"%Y年%m月"})({else})({$ymd|date_format:"%Y年%m月%d日"})({/if}) 
    55にアクセスしたメンバー
    66</h2>
  • webapp/modules/admin/templates/list_c_member.tpl

     
    197197<td class="number">({if $item.birth_month})({$item.birth_month})月({else})&nbsp;({/if})</td>
    198198<td class="number">({if $item.birth_day})({$item.birth_day})日({else})&nbsp;({/if})</td>
    199199({foreach from=$c_profile_list item=prof})
    200 <td>({strip})
    201200({if $prof.form_type == "checkbox"})
     201<td title="({$item.profile[$prof.name].value|@t_implode:','})">({strip})
    202202    ({$item.profile[$prof.name].value|@t_implode:","|t_truncate:30})
     203({/strip})</td>
    203204({else})
     205<td>({strip})
    204206    ({$item.profile[$prof.name].value|t_truncate:30})
     207({/strip})</td>
    205208({/if})
    206 ({/strip})</td>
    207209({/foreach})
    208210<td class="idnumber">({$item.c_member_id})</td>
    209211<td>({if $item.secure.pc_address})<a href="mailto:({$item.secure.pc_address|escape:"hexentity"})">({$item.secure.pc_address|t_truncate:"30"|escape:"hexentity"})</a>({else})&nbsp;({/if})</td>
  • webapp/modules/ktai/do/h_pc_send_insert_c_pc_address_pre.php

     
    2828            $errors[] = '携帯アドレスは入力できません';
    2929        } elseif (do_common_c_member4pc_address($pc_address)) {
    3030            $errors[] = '入力したメールアドレスは既に登録されています';
     31        } elseif (!db_member_is_limit_domain4mail_address($pc_address)) {
     32            $errors[] = '入力したメールアドレスでは登録できません';
    3133        }
    3234
    3335        if ($errors) {
  • webapp/modules/ktai/do/h_invite_insert_c_invite.php

     
    3535            $p = array('msg' => 9);
    3636            openpne_redirect('ktai', 'page_h_invite', $p);
    3737        }
     38        if (!db_member_is_limit_domain4mail_address($mail)) {
     39            $p = array('msg' => 37);
     40            openpne_redirect('ktai', 'page_h_invite', $p);
     41        }
    3842
    3943        $session = create_hash();
    4044
  • webapp/modules/ktai/do/h_config_mail_insert_c_ktai_address_pre.php

     
    3838            openpne_redirect('ktai', 'page_h_config_mail', $p);
    3939        }
    4040
     41        if (!db_member_is_limit_domain4mail_address($ktai_address)) {
     42            // このアドレスでは登録できません
     43            $p = array('msg' => 37);
     44            openpne_redirect('ktai', 'page_h_config_mail', $p);
     45        }
     46
    4147        k_do_delete_c_member_ktai_pre4ktai_address($ktai_address);
    4248        k_do_delete_c_ktai_address_pre4ktai_address($ktai_address);
    4349
  • webapp/modules/ktai/validate/page/h_message_box.ini

     
    1818type = "int"
    1919default = 1
    2020
     21[box]
     22type = "string"
     23default = "inbox"
     24
     25[keyword]
     26type = "string"
  • webapp/modules/ktai/validate/page/fh_diary_list.ini

     
    99[page]
    1010type = "int"
    1111default = 1
     12
     13[keyword]
     14type = "string"
  • webapp/modules/ktai/page/h_diary_list_all.php

     
    2626        $this->set('new_diary_list', $result[0]);
    2727        $this->set('is_prev', $result[1]);
    2828        $this->set('is_next', $result[2]);
     29        $this->set('total_num', $result[3]);
     30
    2931        $this->set('c_diary_search_list_count', $result[3]);
    3032
    3133        $pager = array();
  • webapp/modules/ktai/page/h_message.php

     
    3737        $this->set("c_message", $c_message);
    3838        $this->set("com_url", $com_url);
    3939        $this->set("friend_url", $friend_url);
     40       
     41        //送信箱
     42        if ($c_message['c_member_id_from'] == $u) {
     43            $box = 'outbox';
     44        }
    4045
     46        $this->set("next_c_message_id", db_message_get_c_message_next_id4c_message_id($u, $target_c_message_id, $box));
     47        $this->set("prev_c_message_id", db_message_get_c_message_prev_id4c_message_id($u, $target_c_message_id, $box));
     48
    4149        return 'success';
    4250    }
    4351}
  • webapp/modules/ktai/page/h_message_box.php

     
    1616        $page_r = $requests['page_r'];
    1717        $direc_s = $requests['direc_s'];
    1818        $page_s = $requests['page_s'];
     19        $box = $requests['box'];
     20        $keyword = $requests['keyword'];
    1921        // ----------
    2022
    2123        if (!$target_c_member_id) $target_c_member_id = $u;
    2224
    2325        // 1ページ当たりに表示するメッセージ数
    24         $page_size = 5;
     26        $page_size = 10;
    2527
    26         $page_r += $direc_r;
    27         $page_s += $direc_s;
     28        $this->set("box", $box);
     29        $this->set('keyword', $keyword);
    2830
    29         $list_r = k_p_h_message_box_c_message_received_list4c_member_id4range($u, $page_size, $page_r);
    30         $this->set("c_message_received_list", $list_r[0]);
    31         $this->set("page_r", $page_r);
    32         $this->set("is_prev_r", $list_r[1]);
    33         $this->set("is_next_r", $list_r[2]);
    34         $this->set("count_messages_received", $list_r[3]);
     31        if ($box == 'outbox') {
     32            $page_s += $direc_s;
     33            if (!$keyword) {
     34                $list_s = k_p_h_message_box_c_message_sent_list4c_member_id4range($u, $page_size, $page_s);
     35            } else {
     36                $list_s = db_message_search_c_message($u, $page_s, $page_size, $keyword, $box);
     37            }
    3538
    36         $list_s = k_p_h_message_box_c_message_sent_list4c_member_id4range($u, $page_size, $page_s);
    37         $this->set("c_message_sent_list", $list_s[0]);
    38         $this->set("page_s", $page_s);
    39         $this->set("is_prev_s", $list_s[1]);
    40         $this->set("is_next_s", $list_s[2]);
    41         $this->set("count_messages_sent", $list_s[3]);
     39            $this->set("c_message_sent_list", $list_s[0]);
     40            $this->set("page_s", $page_s);
     41            $this->set("is_prev_s", $list_s[1]);
     42            $this->set("is_next_s", $list_s[2]);
     43            $this->set("count_messages_sent", $list_s[3]);
     44            $this->set("total_num", $list_s[3]);
    4245
     46            $pager = array();
     47            $pager['start'] = $page_size * ($page_s - 1) + 1;
     48            if (($pager['end'] = $page_size * $page_s) > $list_s[3]) {
     49                $pager['end'] = $list_s[3];
     50            }
     51            $this->set('pager', $pager);
     52        } else {
     53            $page_r += $direc_r;
     54
     55            if (!$keyword) {
     56                $list_r = k_p_h_message_box_c_message_received_list4c_member_id4range($u, $page_size, $page_r);
     57            } else {
     58                $list_r = db_message_search_c_message($u, $page_r, $page_size, $keyword, $box);
     59            }
     60
     61            $this->set("c_message_received_list", $list_r[0]);
     62            $this->set("page_r", $page_r);
     63            $this->set("is_prev_r", $list_r[1]);
     64            $this->set("is_next_r", $list_r[2]);
     65            $this->set("count_messages_received", $list_r[3]);
     66            $this->set("total_num", $list_r[3]);
     67
     68            $pager = array();
     69            $pager['start'] = $page_size * ($page_r - 1) + 1;
     70            if (($pager['end'] = $page_size * $page_r) > $list_r[3]) {
     71                $pager['end'] = $list_r[3];
     72            }
     73            $this->set('pager', $pager);
     74        }
     75
    4376        return 'success';
    4477    }
    4578}
  • webapp/modules/ktai/page/fh_diary_list.php

     
    1414        $target_c_member_id = $requests['target_c_member_id'];
    1515        $direc = $requests['direc'];
    1616        $page = $requests['page'];
     17        $keyword = $requests['keyword'];
    1718        // ----------
    1819
    1920        if (!$target_c_member_id) $target_c_member_id = $u;
     
    3839        $page_size = 10;
    3940        $page += $direc;
    4041        //ターゲットの詳細な日記リスト
    41         $list = p_fh_diary_list_diary_list4c_member_id($target_c_member_id, $page_size, $page, $u);
     42        //検索する場合(自分の日記のみ)
     43        if ($keyword) {
     44            $list = p_h_diary_list_all_search_c_diary4c_diary($keyword, $page_size, $page, $u);
     45        } else {
     46            $list = p_fh_diary_list_diary_list4c_member_id($target_c_member_id, $page_size, $page, $u);
     47        }
    4248
    4349        $this->set("target_diary_list", $list[0]);
    4450        $this->set("page", $page);
    4551        $this->set("is_prev", $list[1]);
    4652        $this->set("is_next", $list[2]);
     53        $this->set("total_num", $list[3]);
    4754
     55        $pager = array();
     56        $pager['start'] = $page_size * ($page - 1) + 1;
     57        if (($pager['end'] = $page_size * $page) > $list[3]) {
     58            $pager['end'] = $list[3];
     59        }
     60        $this->set('pager', $pager);
     61
    4862        //f or h
    4963        $this->set("INC_NAVI_type", k_p_fh_common_get_type($target_c_member_id, $u));
    5064
    5165        //あしあとをつける
    5266        db_ashiato_insert_c_ashiato($target_c_member_id, $u);
    5367
     68        //検索ワード
     69        $this->set('keyword', $keyword);
     70
    5471        return 'success';
    5572    }
    5673}
  • webapp/modules/ktai/templates/h_home.tpl

     
    4747◆<a href="({t_url m=ktai a=page_h_message_box})&amp;({$tail})">メッセージ</a><br>
    4848◆<a href="({t_url m=ktai a=page_h_ranking})&amp;({$tail})">ランキング</a><br>
    4949◆<a href="({t_url m=ktai a=page_fh_intro})&amp;({$tail})">紹介文</a><br>
     50◆メッセージBOX<br>
     51∟<a href="({t_url m=ktai a=page_h_message_box})&amp;box=inbox&amp;({$tail})">受信箱</a><br>
     52∟<a href="({t_url m=ktai a=page_h_message_box})&amp;box=outbox&amp;({$tail})">送信箱</a><br>
    5053◆<a href="({t_url m=ktai a=page_h_ashiato})&amp;({$tail})">あしあと</a><br>
    5154<hr>
    5255<a name="news">新着リスト</a>
  • webapp/modules/ktai/templates/h_diary_list_all.tpl

     
    22
    33<center><font color="orange">({if $keyword})日記検索結果({else})最新日記({/if})</font></center>
    44<hr>
     5<a href="#search" accesskey="1">1.検索</a>
     6<br><br>
    57
    68({if $keyword})
    79「<font color="orange">({$keyword})</font>」の検索結果(({$c_diary_search_list_count|default:"0"}))<br>
    810<br>
    911({/if})
    1012
    11 ({foreach from=$new_diary_list item=item})
    12 ({$item.r_datetime|date_format:"%m/%d"})(({$item.c_member.nickname}))<br>
    13 <a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$item.c_diary_id})&amp;({$tail})">({$item.subject|t_truncate:36:".."})</a>(({$item.comment_count}))<br>
    14 ({/foreach})
    15 <br>
    16 
     13({capture name="pager"})
    1714({if $is_prev || $is_next})
    1815({if $is_prev})
    1916<a href="({t_url m=ktai a=page_h_diary_list_all})&amp;keyword=({$keyword|to_sjis|escape:"url"})&amp;page=({$page})&amp;direc=-1&amp;({$tail})">前へ</a>&nbsp;
     
    2522({/if})
    2623
    2724({if $c_diary_search_list_count})
     25({$total_num})件中
    2826({$pager.start})件~({$pager.end})件を表示<br>
    2927<br>
    3028({/if})
     29({/capture})
     30({$smarty.capture.pager|smarty:nodefaults})
    3131
     32
     33({foreach from=$new_diary_list item=item})
     34({$item.r_datetime|date_format:"%m/%d"})(({$item.c_member.nickname}))<br>
     35<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$item.c_diary_id})&amp;({$tail})">({$item.subject|t_truncate:36:".."})</a>(({$item.comment_count}))<br>
     36({/foreach})
     37<br>
     38
     39({$smarty.capture.pager|smarty:nodefaults})
     40
     41<a name="search"></a>
    3242({t_form _method=get m=ktai a=page_h_diary_list_all})
    3343<input type="hidden" name="ksid" value="({$PHPSESSID})">
    3444<input type="text" name="keyword" value="({$keyword})">
  • webapp/modules/ktai/templates/h_message.tpl

     
    22
    33メッセージBOX<br>
    44<hr>
    5 
     5({if $prev_c_message_id})
     6<a href="({t_url m=ktai a=page_h_message})&amp;target_c_message_id=({$prev_c_message_id})&amp;({$tail})">前を表示</a>
     7({/if})
     8({if $next_c_message_id})
     9<a href="({t_url m=ktai a=page_h_message})&amp;target_c_message_id=({$next_c_message_id})&amp;({$tail})">次を表示</a>
     10({/if})
     11<br>
    612({$c_message.r_datetime|date_format:"%y/%m/%d %H:%M"})<br>
    713({if $c_message.c_member_id_to==$u})<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_message.c_member_id_from})&amp;({$tail})">({$c_message.c_member_nickname_from})</a>
    814({else})({$c_message.c_member_nickname_from})
  • webapp/modules/ktai/templates/h_message_box.tpl

     
    11({$inc_ktai_header|smarty:nodefaults})
    22
    3 <center><font color="orange">メッセージBOX</font></center>
     3<center><font color="orange">メッセージBOX(({if $box != 'outbox'})受信箱({else})送信箱({/if}))</font></center>
    44<hr>
     5<a href="#search" accesskey="1">1.検索</a>
     6<br><br>
     7
    58<a href="({t_url m=ktai a=page_h_message_send})&amp;({$tail})">メッセージを書く</a><br>
     9
     10
     11({if $box != 'outbox' })
    612<br>
    7 [受信メッセージ(({$count_messages_received}))]<br>
    8 ({if $count_messages_received})
     13[受信メッセージ(({if $total_num})({$total_num})({else})0({/if}))]<br>
     14
     15({capture name="pager"})
     16({if $is_prev_r || $is_next_r})
     17<br>
     18({if $is_prev_r})<a href="({t_url m=ktai a=page_h_message_box})&amp;box=inbox&amp;page_r=({$page_r-1})({if $keyword})&amp;keyword=({$keyword})({/if})&amp;({$tail})">前へ</a> ({/if})
     19({if $is_next_r})<a href="({t_url m=ktai a=page_h_message_box})&amp;box=inbox&amp;page_r=({$page_r+1})({if $keyword})&amp;keyword=({$keyword})({/if})&amp;({$tail})">次へ</a>({/if})
     20<br>
     21({$total_num})件中
     22({$pager.start})件~({$pager.end})件を表示<br>
     23<br>
     24({/if})
     25({/capture})
     26({$smarty.capture.pager|smarty:nodefaults})
     27
     28({if $total_num})
    929({foreach from=$c_message_received_list item=c_message_received})
    1030<tr>
    1131({$c_message_received.r_datetime|date_format:"%y/%m/%d"})-({$c_message_received.nickname|default:"&nbsp;"})さん<br>
    1232<a href="({t_url m=ktai a=page_h_message})&amp;target_c_message_id=({$c_message_received.c_message_id})&amp;({$tail})">({$c_message_received.subject|default:"&nbsp;"})</a><br>
    1333({/foreach})
    1434({else})
    15 メッセージはありません
     35メッセージはありません<br><br>
    1636({/if})
     37
     38({$smarty.capture.pager|smarty:nodefaults})
     39
     40({else})
     41
    1742<br>
    18 ({if $is_prev_r || $is_next_r})
     43[送信済メッセージ(({if $total_num})({$total_num})({else})0({/if}))]<br>
     44
     45({capture name="pager"})
     46({if $is_prev_s || $is_next_s})
    1947<br>
    20 ({if $is_prev_r})<a href="({t_url m=ktai a=page_h_message_box})&amp;page_r=({$page_r-1})&amp;({$tail})">前へ</a> ({/if})
    21 ({if $is_next_r})<a href="({t_url m=ktai a=page_h_message_box})&amp;page_r=({$page_r+1})&amp;({$tail})">次へ</a>({/if})
     48({if $is_prev_s})<a href="({t_url m=ktai a=page_h_message_box})&amp;box=outbox&amp;page_s=({$page_s-1})({if $keyword})&amp;keyword=({$keyword})({/if})&amp;({$tail})">前へ</a> ({/if})
     49({if $is_next_s})<a href="({t_url m=ktai a=page_h_message_box})&amp;box=outbox&amp;page_s=({$page_s+1})({if $keyword})&amp;keyword=({$keyword})({/if})&amp;({$tail})">次へ</a>({/if})
    2250<br>
     51({$total_num})件中
     52({$pager.start})件~({$pager.end})件を表示<br>
     53<br>
    2354({/if})
     55({/capture})
     56({$smarty.capture.pager|smarty:nodefaults})
    2457
    2558
    26 <br>
    27 [送信済メッセージ(({$count_messages_sent}))]<br>
    28 ({if $count_messages_sent})
     59({if $total_num})
    2960({foreach from=$c_message_sent_list item=c_message_sent})
    3061({$c_message_sent.r_datetime|date_format:"%y/%m/%d"})-({$c_message_sent.nickname|default:"&nbsp;"})さん<br>
    3162<a href="({t_url m=ktai a=page_h_message})&amp;target_c_message_id=({$c_message_sent.c_message_id})&amp;({$tail})">({$c_message_sent.subject|default:"&nbsp;"})</a><br>
    3263({/foreach})
    3364({else})
    34 メッセージはありません
     65メッセージはありません<br><br>
    3566({/if})
    36 <br>
    37 ({if $is_prev_s || $is_next_s})
    38 <br>
    39 ({if $is_prev_s})<a href="({t_url m=ktai a=page_h_message_box})&amp;page_s=({$page_s-1})&amp;({$tail})">前へ</a> ({/if})
    40 ({if $is_next_s})<a href="({t_url m=ktai a=page_h_message_box})&amp;page_s=({$page_s+1})&amp;({$tail})">次へ</a>({/if})
    41 <br>
     67
     68({$smarty.capture.pager|smarty:nodefaults})
     69
    4270({/if})
    4371
     72<a href="({t_url m=ktai a=page_h_message_send})&amp;({$tail})">メッセージを書く</a><br><br>
     73
     74<a name="search"></a>
     75({t_form _method=get m=ktai a=page_h_message_box})
     76<input type="hidden" name="ksid" value="({$PHPSESSID})">
     77<input type="hidden" name="box" value="({$box})">
     78<input type="text" name="keyword" value="({$keyword})">
     79<input type="submit" value="検索">
     80</form>
     81
     82<hr>
     83({if $box != 'outbox'})
     84<a href="({t_url m=ktai a=page_h_message_box})&amp;box=outbox&amp;({$tail})">送信箱</a>
     85({else})
     86<a href="({t_url m=ktai a=page_h_message_box})&amp;box=inbox&amp;({$tail})">受信箱</a>
     87({/if})
    4488<br>
    45 <a href="({t_url m=ktai a=page_h_message_send})&amp;({$tail})">メッセージを書く</a><br>
    46 <hr>
    47 
    4889({$inc_ktai_footer|smarty:nodefaults})
    49  No newline at end of file
  • webapp/modules/ktai/templates/fh_diary_list.tpl

     
    11({$inc_ktai_header|smarty:nodefaults})
    22
    33<center><font color="orange">({$target_c_member.nickname}) さんの日記リスト</font></center>
    4 <hr><br>
    5 ({foreach from=$target_diary_list item=target_diary})
    6 ({$target_diary.r_date|date_format:"%y/%m/%d"})-<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;({$tail})">({$target_diary.subject})</a>(({$target_diary.num_comment}))<br>
    7 ({/foreach})
     4<hr>
     5({if $INC_NAVI_type=="h"})
     6<a href="#search" accesskey="1">1.検索</a>
    87<br>
     8({/if})
     9({capture name="pager"})
     10<br>
    911({if $is_prev || $is_next})
     12({if $is_prev})<a href="({t_url m=ktai a=page_fh_diary_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;page=({$page-1})({if $keyword})&amp;keyword=({$keyword})({/if})&amp;({$tail})">前へ</a> ({/if})
     13({if $is_next})<a href="({t_url m=ktai a=page_fh_diary_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;page=({$page+1})({if $keyword})&amp;keyword=({$keyword})({/if})&amp;({$tail})">次へ</a>({/if})
     14({if $pager})
    1015<br>
    11 ({if $is_prev})<a href="({t_url m=ktai a=page_fh_diary_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;page=({$page-1})&amp;({$tail})">前へ</a> ({/if})
    12 ({if $is_next})<a href="({t_url m=ktai a=page_fh_diary_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;page=({$page+1})&amp;({$tail})">次へ</a>({/if})
     16({$total_num})件中
     17({$pager.start})件~({$pager.end})件を表示<br>
     18<br>
     19({/if})
     20({/if})
     21({/capture})
     22({$smarty.capture.pager|smarty:nodefaults})
    1323
     24({foreach from=$target_diary_list item=target_diary})
     25({$target_diary.r_date|date_format:"%y/%m/%d"})-<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;({$tail})">({$target_diary.subject})</a>(({$target_diary.num_comment}))<br>
     26({/foreach})
     27({$smarty.capture.pager|smarty:nodefaults})
     28
     29({if $INC_NAVI_type=="h"})
     30<a name="search"></a>
     31({t_form _method=get m=ktai a=page_fh_diary_list})
     32<input type="hidden" name="ksid" value="({$PHPSESSID})">
     33<input type="text" name="keyword" value="({$keyword})">
     34<input type="submit" value="検索">
     35</form>
    1436({/if})
    15 
    16 <br>
    1737<hr>
    1838({if $INC_NAVI_type=="h"})
    1939<a href="({t_url m=ktai a=page_h_diary_edit})&amp;({$tail})">日記を書く</a><br>
  • webapp/version.php

     
    1 <?php define('OPENPNE_VERSION', '2.5.4'); ?>
     1<?php define('OPENPNE_VERSION', '2.5.5'); ?>