ここの情報は古いです。ご理解頂いた上でお取り扱いください。
File OpenPNE_2_5_1_to_2_5_2.patch, 66.1 KB (added by takanashi, 16 years ago) |
|
-
|
|
|
10 | 10 | { |
11 | 11 | $u = $GLOBALS['AUTH']->uid(); |
12 | 12 | $sessid = session_id(); |
13 | | biz_deleteShisetsuIhige($requests['id'], $requests['filenihe']); |
| 13 | biz_deleteShisetsuIhige($requests['id'], $requests['filename']); |
14 | 14 | |
15 | 15 | $p = array('id' => $requests['id']); |
16 | 16 | openpne_redirect('biz', 'page_s_edit_shisetsu', $p); |
-
|
|
|
11 | 11 | $u = $GLOBALS['AUTH']->uid(); |
12 | 12 | $sessid = session_id(); |
13 | 13 | |
| 14 | |
| 15 | // start_timeが指定されていない場合 |
14 | 16 | if (empty($requests['start_time'])) { |
15 | | $begin_time = date("H:00:00"); |
| 17 | $begin_time_str = date("H:00:00"); |
16 | 18 | } else { |
17 | | $begin_time = $requests['start_time'].':00:00'; |
| 19 | // start_timeが指定されている場合 |
| 20 | $begin_time_str = $requests['start_time'].':00:00'; |
18 | 21 | } |
19 | 22 | |
20 | | $term = date("i", $begin_time) + $requests['finish_time']; |
21 | | $finish_time = date("H:i:00", strtotime(date("Ymd H:".$term.":s", strtotime($begin_time)))); |
| 23 | $begin_time = strtotime($begin_time_str); |
| 24 | $begin_time_english = date("H:i d M Y", $begin_time); |
22 | 25 | |
| 26 | $finish_time = strtotime($begin_time_english . " +" . $requests['finish_time'] . " minute"); |
| 27 | $finish_time_str = date("H:i:00", $finish_time); |
| 28 | |
23 | 29 | //終了時間と開始時間が変 |
24 | | if (strtotime($finish_time) < strtotime($begin_time)) { |
| 30 | if (date("H", $finish_time) < date("H", $begin_time)) { |
25 | 31 | $p = array('msg' => '日をまたがる施設予約はできません'); |
26 | 32 | openpne_redirect('biz', 'page_s_list', $p); |
27 | 33 | } |
… |
… |
|
32 | 38 | $m = date("m", strtotime($start_date)); |
33 | 39 | $d = date("d", strtotime($start_date)); |
34 | 40 | |
35 | | if (!biz_isBatting($requests['shisetsu_id'], $y, $m, $d, $begin_time, $finish_time)) { |
| 41 | if (!biz_isBatting($requests['shisetsu_id'], $y, $m, $d, $begin_time_str, $finish_time_str)) { |
36 | 42 | $p = array('msg' => '施設予約がバッティングしたため、登録ができませんでした'); |
37 | 43 | openpne_redirect('biz', 'page_s_list', $p); |
38 | | |
39 | 44 | } |
40 | 45 | |
41 | 46 | //($shisetsu_id, $member_id, $date, $begin_time, $finish_time) |
42 | | biz_addShisetsuSchedule($requests['shisetsu_id'], $u, $requests['start_date'], $begin_time, $finish_time); |
| 47 | biz_addShisetsuSchedule($requests['shisetsu_id'], $u, $requests['start_date'], $begin_time_str, $finish_time_str); |
43 | 48 | |
44 | 49 | $p = array( |
45 | 50 | 'msg' => '施設予定を追加しました', |
-
|
|
|
993 | 993 | 'is_check' => 0, |
994 | 994 | 'writer_id' => $writer_id, |
995 | 995 | 'sort_order' => $sort_order, |
996 | | 'r_datetime' => date("Y-m-d H:m"), |
| 996 | 'r_datetime' => date("Y-m-d H:i"), |
997 | 997 | ); |
998 | 998 | return db_insert('biz_todo', $data); |
999 | 999 | } |
… |
… |
|
1014 | 1014 | intval($member_id), |
1015 | 1015 | $memo, |
1016 | 1016 | intval($writer_id), |
1017 | | date("Y-m-d H:m"), |
| 1017 | date("Y-m-d H:i"), |
1018 | 1018 | $target, |
1019 | 1019 | ); |
1020 | 1020 | |
-
|
|
|
140 | 140 | */ |
141 | 141 | function db_bookmark_member_list($c_member_id, $limit = 0) |
142 | 142 | { |
| 143 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 144 | |
| 145 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 146 | $is_recurred = true; |
| 147 | $funcargs = func_get_args(); |
| 148 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 149 | } |
| 150 | |
| 151 | $is_recurred = false; |
| 152 | |
143 | 153 | $sql = 'SELECT c_member_id_to AS c_member_id FROM c_bookmark' . |
144 | 154 | ' WHERE c_member_id_from = ? ORDER BY RAND()'; |
145 | 155 | $params = array(intval($c_member_id)); |
… |
… |
|
180 | 190 | function db_bookmark_insert_c_bookmark($c_member_id_from, $c_member_id_to) |
181 | 191 | { |
182 | 192 | //function cacheの削除 |
183 | | pne_cache_drop('db_bookmark_member_list', $c_member_id_from, 9); |
| 193 | cache_drop_c_bookmark($c_member_id_from); |
184 | 194 | |
185 | 195 | $data = array( |
186 | 196 | 'c_member_id_from' => intval($c_member_id_from), |
… |
… |
|
196 | 206 | function db_bookmark_delete_c_bookmark($c_member_id_from, $c_member_id_to) |
197 | 207 | { |
198 | 208 | //function cacheの削除 |
199 | | pne_cache_drop('db_bookmark_member_list', $c_member_id_from, 9); |
| 209 | cache_drop_c_bookmark($c_member_from); |
200 | 210 | |
201 | 211 | $sql = 'DELETE FROM c_bookmark' . |
202 | 212 | ' WHERE c_member_id_from = ? AND c_member_id_to = ?'; |
-
|
|
|
15 | 15 | */ |
16 | 16 | function db_member_c_member4c_member_id($c_member_id, $is_secure = false, $with_profile = false, $public_flag = 'public') |
17 | 17 | { |
| 18 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 19 | |
| 20 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 21 | $is_recurred = true; |
| 22 | $funcargs = func_get_args(); |
| 23 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 24 | } |
| 25 | |
| 26 | $is_recurred = false; |
| 27 | |
18 | 28 | $sql = 'SELECT * FROM c_member WHERE c_member_id = ?'; |
19 | 29 | $params = array(intval($c_member_id)); |
20 | 30 | if (!$c_member = db_get_row($sql, $params)) |
… |
… |
|
411 | 421 | |
412 | 422 | function db_member_birth4c_member_id($month, $day, $c_member_id) |
413 | 423 | { |
| 424 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 425 | |
| 426 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 427 | $is_recurred = true; |
| 428 | $funcargs = func_get_args(); |
| 429 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 430 | } |
| 431 | |
| 432 | $is_recurred = false; |
| 433 | |
| 434 | |
414 | 435 | $sql = "SELECT c_member_id_to FROM c_friend WHERE c_member_id_from = ?"; |
415 | 436 | $params = array(intval($c_member_id)); |
416 | 437 | $ids = db_get_col($sql, $params); |
… |
… |
|
453 | 474 | |
454 | 475 | function db_member_c_profile_list() |
455 | 476 | { |
| 477 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 478 | |
| 479 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 480 | $is_recurred = true; |
| 481 | $funcargs = func_get_args(); |
| 482 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 483 | } |
| 484 | |
| 485 | $is_recurred = false; |
| 486 | |
456 | 487 | $list = db_member_c_profile_list4null(); |
457 | 488 | |
458 | 489 | $profile_list = array(); |
… |
… |
|
785 | 816 | function db_member_config_prof_new($c_member_id, $prof_list) |
786 | 817 | { |
787 | 818 | //function cacheの削除 |
788 | | pne_cache_drop('db_common_c_member4c_member_id', $c_member_id); |
789 | | pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'friend'); |
790 | | pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'public'); |
| 819 | cache_drop_c_member_profile($c_member_id); |
791 | 820 | |
792 | 821 | $data = array( |
793 | 822 | 'nickname' => $prof_list['nickname'], |
… |
… |
|
818 | 847 | function db_member_config_image_new($c_member_id, $image_filename, $img_num) |
819 | 848 | { |
820 | 849 | //function cacheの削除 |
821 | | pne_cache_drop('db_common_c_member4c_member_id', $c_member_id); |
822 | | pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'friend'); |
823 | | pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'public'); |
| 850 | cache_drop_c_member_profile($c_member_id); |
824 | 851 | |
825 | 852 | $data = array('image_filename_'.intval($img_num) => $image_filename); |
826 | 853 | $where = array('c_member_id' => intval($c_member_id)); |
… |
… |
|
833 | 860 | function db_member_delete_c_member_image_new($c_member_id, $img_num) |
834 | 861 | { |
835 | 862 | //function cacheの削除 |
836 | | pne_cache_drop('db_common_c_member4c_member_id', $c_member_id); |
837 | | pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'friend'); |
838 | | pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'public'); |
| 863 | cache_drop_c_member_profile($c_member_id); |
839 | 864 | |
840 | 865 | $sql = 'UPDATE c_member SET'; |
841 | 866 | if ($img_num == 1) { |
… |
… |
|
856 | 881 | function db_member_change_c_member_main_image($c_member_id, $img_num) |
857 | 882 | { |
858 | 883 | //function cacheの削除 |
859 | | pne_cache_drop('db_common_c_member4c_member_id', $c_member_id); |
860 | | pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'friend'); |
861 | | pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'public'); |
| 884 | cache_drop_c_member_profile($c_member_id); |
862 | 885 | |
863 | 886 | $sql = 'UPDATE c_member SET image_filename = image_filename_'.intval($img_num). |
864 | 887 | ' WHERE c_member_id = ?'; |
… |
… |
|
872 | 895 | function db_member_update_c_member_image($c_member_id, $image_filename, $img_num) |
873 | 896 | { |
874 | 897 | //function cacheの削除 |
875 | | pne_cache_drop('db_common_c_member4c_member_id', $c_member_id); |
876 | | pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'friend'); |
877 | | pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'public'); |
| 898 | cache_drop_c_member_profile($c_member_id); |
878 | 899 | |
879 | 900 | $data = array( |
880 | 901 | 'image_filename' => $image_filename, |
… |
… |
|
904 | 925 | $c_member_id = db_insert('c_member', $data); |
905 | 926 | |
906 | 927 | //function cacheの削除 |
907 | | pne_cache_drop('db_common_c_member4c_member_id', $c_member_id); |
908 | | pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'friend'); |
909 | | pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'public'); |
| 928 | cache_drop_c_member_profile($c_member_id); |
910 | 929 | |
911 | 930 | $data = array( |
912 | 931 | 'c_member_id' => intval($c_member_id), |
… |
… |
|
1220 | 1239 | function db_member_update_c_member_profile($c_member_id, $c_member_profile_list) |
1221 | 1240 | { |
1222 | 1241 | //function cache削除 |
1223 | | pne_cache_drop('db_common_c_profile_list'); |
| 1242 | cache_drop_c_member_profile($c_member_id); |
1224 | 1243 | |
1225 | 1244 | foreach ($c_member_profile_list as $item) { |
1226 | 1245 | $sql = 'DELETE FROM c_member_profile' . |
… |
… |
|
1243 | 1262 | function db_member_insert_c_member_profile($c_member_id, $c_profile_id, $c_profile_option_id, $value, $public_flag) |
1244 | 1263 | { |
1245 | 1264 | //function cache削除 |
1246 | | pne_cache_drop('db_common_c_profile_list'); |
| 1265 | cache_drop_c_member_profile($c_member_id); |
1247 | 1266 | |
1248 | 1267 | $data = array( |
1249 | 1268 | 'c_member_id' => intval($c_member_id), |
-
|
|
|
187 | 187 | */ |
188 | 188 | function db_friend_c_friend_comment4c_member_id($c_member_id, $limit = 5) |
189 | 189 | { |
| 190 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 191 | |
| 192 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 193 | $is_recurred = true; |
| 194 | $funcargs = func_get_args(); |
| 195 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 196 | } |
| 197 | |
| 198 | $is_recurred = false; |
| 199 | |
190 | 200 | $sql = "SELECT c_member_id_from AS c_member_id, intro FROM c_friend" . |
191 | 201 | " WHERE c_member_id_to = ? AND intro <> ''" . |
192 | 202 | " ORDER BY r_datetime_intro DESC"; |
… |
… |
|
222 | 232 | */ |
223 | 233 | function db_friend_c_friend_list4c_member_id($c_member_id, $limit = 0) |
224 | 234 | { |
| 235 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 236 | |
| 237 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 238 | $is_recurred = true; |
| 239 | $funcargs = func_get_args(); |
| 240 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 241 | } |
| 242 | |
| 243 | $is_recurred = false; |
| 244 | |
225 | 245 | $sql = 'SELECT c_member_id_to AS c_member_id FROM c_friend' . |
226 | 246 | ' WHERE c_member_id_from = ? ORDER BY RAND()'; |
227 | 247 | $params = array(intval($c_member_id)); |
… |
… |
|
298 | 318 | |
299 | 319 | function db_friend_c_friend_intro_list4c_member_id($c_member_id, $limit) |
300 | 320 | { |
| 321 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 322 | |
| 323 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 324 | $is_recurred = true; |
| 325 | $funcargs = func_get_args(); |
| 326 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 327 | } |
| 328 | |
| 329 | $is_recurred = false; |
| 330 | |
301 | 331 | $sql = 'SELECT * FROM c_friend' . |
302 | 332 | ' WHERE c_member_id_to = ? AND intro <> \'\' ORDER BY RAND()'; |
303 | 333 | $params = array(intval($c_member_id)); |
… |
… |
|
417 | 447 | */ |
418 | 448 | function db_friend_c_friend_list_random4c_member_id($c_member_id, $limit) |
419 | 449 | { |
| 450 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 451 | |
| 452 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 453 | $is_recurred = true; |
| 454 | $funcargs = func_get_args(); |
| 455 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 456 | } |
| 457 | |
| 458 | $is_recurred = false; |
| 459 | |
420 | 460 | $sql = "SELECT cf.* , cm.nickname"; |
421 | 461 | $sql .= " FROM c_friend AS cf, c_member AS cm"; |
422 | 462 | $sql .= " WHERE cf.c_member_id_from = ?" . |
… |
… |
|
665 | 705 | function db_friend_update_c_friend_intro($c_member_id_from, $c_member_id_to, $intro) |
666 | 706 | { |
667 | 707 | //function cacheを削除 |
668 | | pne_cache_drop('p_h_home_c_friend_intro_list4c_member_id', $c_member_id_to, 5); |
669 | | pne_cache_drop('p_f_home_c_friend_comment4c_member_id', $c_member_id_to); |
| 708 | cache_drop_c_friend_intro($c_member_id_to); |
670 | 709 | |
671 | 710 | $data = array( |
672 | 711 | 'intro' => $intro, |
-
|
|
|
59 | 59 | */ |
60 | 60 | function db_diary_get_c_diary_list4c_member_id($target_c_member_id, $count = 10, $u = null, $force = null) |
61 | 61 | { |
| 62 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 63 | |
| 64 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 65 | $is_recurred = true; |
| 66 | $funcargs = func_get_args(); |
| 67 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 68 | } |
| 69 | |
| 70 | $is_recurred = false; |
| 71 | |
62 | 72 | $pf_cond = db_diary_public_flag_condition($target_c_member_id, $u, $force); |
63 | 73 | $sql = 'SELECT * FROM c_diary WHERE c_member_id = ?' . $pf_cond . |
64 | 74 | ' ORDER BY r_datetime DESC'; |
… |
… |
|
281 | 291 | */ |
282 | 292 | function p_h_home_c_diary_friend_list4c_member_id($c_member_id, $limit) |
283 | 293 | { |
| 294 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 295 | |
| 296 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 297 | $is_recurred = true; |
| 298 | $funcargs = func_get_args(); |
| 299 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 300 | } |
| 301 | |
| 302 | $is_recurred = false; |
| 303 | |
284 | 304 | $friends = db_friend_c_member_id_list($c_member_id, true); |
285 | 305 | $ids = implode(',', array_map('intval', $friends)); |
286 | 306 | |
… |
… |
|
309 | 329 | */ |
310 | 330 | function p_h_home_c_diary_my_comment_list4c_member_id($c_member_id, $limit) |
311 | 331 | { |
| 332 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 333 | |
| 334 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 335 | $is_recurred = true; |
| 336 | $funcargs = func_get_args(); |
| 337 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 338 | } |
| 339 | |
| 340 | $is_recurred = false; |
| 341 | |
312 | 342 | $date = date('Y-m-d 00:00:00', strtotime('-15 days')); |
313 | 343 | |
314 | 344 | $blocked = db_member_access_block_list4c_member_id_to($c_member_id); |
… |
… |
|
382 | 412 | $list[$key] += db_common_c_member4c_member_id_LIGHT($value['c_member_id']); |
383 | 413 | } |
384 | 414 | |
385 | | $sql = 'SELECT COUNT(*)' . |
| 415 | $sql = 'SELECT COUNT(DISTINCT d.c_diary_id)' . |
386 | 416 | ' FROM c_diary AS d' . |
387 | 417 | ' INNER JOIN c_diary_comment AS dc USING (c_diary_id)' . |
388 | 418 | ', c_diary_comment AS mydc' . |
-
|
|
|
428 | 428 | function db_common_delete_c_commu($c_commu_id) |
429 | 429 | { |
430 | 430 | //function cacheの削除 |
431 | | pne_cache_drop('p_c_home_c_commu4c_commu_id', $c_commu_id); |
| 431 | cache_drop_c_commu($c_commu_id); |
432 | 432 | |
433 | 433 | $single = array(intval($c_commu_id)); |
434 | 434 | |
-
|
|
|
31 | 31 | */ |
32 | 32 | function db_commu_c_commu4c_commu_id2($c_commu_id) |
33 | 33 | { |
| 34 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 35 | |
| 36 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 37 | $is_recurred = true; |
| 38 | $funcargs = func_get_args(); |
| 39 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 40 | } |
| 41 | |
| 42 | $is_recurred = false; |
| 43 | |
34 | 44 | if ($c_commu = _db_c_commu4c_commu_id($c_commu_id)) { |
35 | 45 | $c_commu['member_count'] = _db_count_c_commu_member_list4c_commu_id($c_commu_id); |
36 | 46 | } |
… |
… |
|
42 | 52 | */ |
43 | 53 | function db_commu_c_commu4c_commu_id_k($c_commu_id) |
44 | 54 | { |
| 55 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 56 | |
| 57 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 58 | $is_recurred = true; |
| 59 | $funcargs = func_get_args(); |
| 60 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 61 | } |
| 62 | |
| 63 | $is_recurred = false; |
| 64 | |
45 | 65 | if ($c_commu = _db_c_commu4c_commu_id($c_commu_id)) { |
46 | 66 | $c_commu['count_member'] = _db_count_c_commu_member_list4c_commu_id($c_commu_id); |
47 | 67 | } |
… |
… |
|
411 | 431 | */ |
412 | 432 | function db_commu_c_commu_member_list4c_commu_id($c_commu_id ,$limit = 9) |
413 | 433 | { |
| 434 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 435 | |
| 436 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 437 | $is_recurred = true; |
| 438 | $funcargs = func_get_args(); |
| 439 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 440 | } |
| 441 | |
| 442 | $is_recurred = false; |
414 | 443 | $sql = 'SELECT c_member.* FROM c_member, c_commu_member' . |
415 | 444 | ' WHERE c_member.c_member_id = c_commu_member.c_member_id' . |
416 | 445 | ' AND c_commu_id = ? ORDER BY RAND()'; |
… |
… |
|
425 | 454 | |
426 | 455 | function db_commu_new_topic_comment4c_commu_id($c_commu_id, $limit, $event_flag = 0) |
427 | 456 | { |
| 457 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 458 | |
| 459 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 460 | $is_recurred = true; |
| 461 | $funcargs = func_get_args(); |
| 462 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 463 | } |
| 464 | |
| 465 | $is_recurred = false; |
| 466 | |
428 | 467 | $sql = "SELECT cct.c_commu_topic_id , cct.name, MAX(cctc.r_datetime) as r_datetime , cct.c_commu_id " . |
429 | 468 | " , cctc.image_filename1, cctc.image_filename2, cctc.image_filename3 " . |
430 | 469 | " FROM c_commu_topic_comment as cctc , c_commu_topic as cct" . |
… |
… |
|
515 | 554 | |
516 | 555 | function db_commu_c_commu_list4c_member_id_2($c_member_id, $limit = 9) |
517 | 556 | { |
| 557 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 558 | |
| 559 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 560 | $is_recurred = true; |
| 561 | $funcargs = func_get_args(); |
| 562 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 563 | } |
| 564 | |
| 565 | $is_recurred = false; |
| 566 | |
518 | 567 | $sql = "SELECT c_commu.c_commu_id, c_commu.image_filename, c_commu.name" . |
519 | 568 | " FROM c_commu ,c_commu_member " . |
520 | 569 | " WHERE c_commu_member.c_member_id = ?". |
… |
… |
|
746 | 795 | */ |
747 | 796 | function db_commu_c_commu_list4c_member_id_3($c_member_id, $limit) |
748 | 797 | { |
| 798 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 799 | |
| 800 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 801 | $is_recurred = true; |
| 802 | $funcargs = func_get_args(); |
| 803 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 804 | } |
| 805 | |
| 806 | $is_recurred = false; |
| 807 | |
749 | 808 | $sql = "SELECT c.* FROM c_commu_member AS cm, c_commu AS c"; |
750 | 809 | $sql .= " WHERE cm.c_member_id=?"; |
751 | 810 | $sql .= " AND c.c_commu_id=cm.c_commu_id"; |
… |
… |
|
1005 | 1064 | |
1006 | 1065 | function db_commu_c_commu_list_lastupdate4c_member_id($c_member_id, $limit) |
1007 | 1066 | { |
| 1067 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 1068 | |
| 1069 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 1070 | $is_recurred = true; |
| 1071 | $funcargs = func_get_args(); |
| 1072 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 1073 | } |
| 1074 | |
| 1075 | $is_recurred = false; |
| 1076 | |
1008 | 1077 | $sql = 'SELECT DISTINCT c.* FROM c_commu_member AS cm, c_commu AS c' . |
1009 | 1078 | ' WHERE cm.c_member_id = ? AND c.c_commu_id = cm.c_commu_id' . |
1010 | 1079 | ' ORDER BY RAND()'; |
… |
… |
|
1214 | 1283 | */ |
1215 | 1284 | function db_commu_c_commu_member_list_random4c_commu_id($c_commu_id, $limit) |
1216 | 1285 | { |
| 1286 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 1287 | |
| 1288 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 1289 | $is_recurred = true; |
| 1290 | $funcargs = func_get_args(); |
| 1291 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 1292 | } |
| 1293 | |
| 1294 | $is_recurred = false; |
| 1295 | |
1217 | 1296 | $sql = "SELECT cm.c_member_id, cm.nickname "; |
1218 | 1297 | $sql .= "FROM c_member AS cm , c_commu_member AS ccm "; |
1219 | 1298 | $sql .= "WHERE ccm.c_commu_id = ?" . |
-
|
|
|
131 | 131 | |
132 | 132 | function p_c_member_list_c_members4c_commu_id($c_commu_id, $page_size, $page) |
133 | 133 | { |
134 | | return db_commu_c_members4c_commu_id($c_member_id, $c_commu_id); |
| 134 | return db_commu_c_members4c_commu_id($c_commu_id, $page_size,$page); |
135 | 135 | } |
136 | 136 | |
137 | 137 | function p_f_home_c_commu_list4c_member_id($c_member_id, $limit = 9) |
… |
… |
|
164 | 164 | return db_commu_c_commu_topic_comment_list4c_member_id($c_member_id, $limit); |
165 | 165 | } |
166 | 166 | |
167 | | function p_h_com_comment_list_c_commu_topic_comment_list4c_member_id($c_member_id, $limit,$page) |
| 167 | function p_h_com_comment_list_c_commu_topic_comment_list4c_member_id($c_member_id, $limit, $page) |
168 | 168 | { |
169 | 169 | return db_commu_c_commu_topic_comment_list4c_member_id_2($c_member_id, $limit,$page); |
170 | 170 | } |
… |
… |
|
194 | 194 | return db_commu_c_commu_topic_comment4c_commu_topic_comment_id($c_commu_topic_comment_id); |
195 | 195 | } |
196 | 196 | |
197 | | /* |
198 | | function db_common_commu_status($u, $target_c_commu_id) |
199 | | { |
200 | | return db_common_commu_status($u, $target_c_commu_id); |
201 | | } |
202 | | */ |
203 | 197 | function _db_is_c_commu_member_confirm($c_member_id, $c_commu_id) |
204 | 198 | { |
205 | 199 | return db_commu_is_c_commu_member_confirm($c_member_id, $c_commu_id); |
… |
… |
|
294 | 288 | return db_commu_c_friend_list_random4c_member_id4c_commu_id($c_member_id, $c_commu_id, $limit); |
295 | 289 | } |
296 | 290 | |
297 | | |
298 | 291 | function k_p_h_home_c_commu_topic_comment_list4c_member_id($c_member_id, $page_size, $page) |
299 | 292 | { |
300 | 293 | return db_commu_c_commu_topic_comment_list4c_member_id_3($c_member_id, $page_size, $page); |
-
|
|
|
17 | 17 | */ |
18 | 18 | function fetch_inc_navi($type, $target_id = null) |
19 | 19 | { |
| 20 | static $is_recurred = false; //再帰処理中かどうかの判定フラグ |
| 21 | |
| 22 | if (!$is_recurred) { //function cacheのために再帰処理を行う |
| 23 | $is_recurred = true; |
| 24 | $funcargs = func_get_args(); |
| 25 | return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs); |
| 26 | } |
| 27 | |
| 28 | $is_recurred = false; |
| 29 | |
20 | 30 | $inc_smarty = new OpenPNE_Smarty($GLOBALS['SMARTY']); |
21 | 31 | $inc_smarty->templates_dir = 'pc/templates'; |
22 | 32 | $inc_smarty->assign('PHPSESSID', md5(session_id())); |
-
|
|
|
52 | 52 | } |
53 | 53 | } |
54 | 54 | |
| 55 | /*** |
| 56 | * 再帰的に関数をコールする pne_cache_call |
| 57 | */ |
| 58 | function pne_cache_recursive_call($lifetime, $function, $funcarg) |
| 59 | { |
| 60 | $backtrace = debug_backtrace(); |
| 61 | |
| 62 | if (OPENPNE_USE_FUNCTION_CACHE) { |
| 63 | array_unshift($funcarg, $function); |
| 64 | $cache =& get_cache_lite_function(); |
| 65 | $cache->setOption('lifetime', intval($lifetime)); |
| 66 | return call_user_func_array(array(&$cache, 'call'), $funcarg); |
| 67 | } else { |
| 68 | return call_user_func_array($function, $funcarg); |
| 69 | } |
| 70 | } |
| 71 | |
55 | 72 | //--- |
56 | 73 | |
57 | 74 | /** |
… |
… |
|
59 | 76 | */ |
60 | 77 | function cache_drop_c_member($c_member_id) |
61 | 78 | { |
62 | | pne_cache_drop('p_f_home_c_friend_list4c_member_id', $c_member_id, 9); |
63 | | pne_cache_drop('p_h_home_c_diary_friend_list4c_member_id', $c_member_id, 5); |
| 79 | pne_cache_drop('db_friend_c_friend_list4c_member_id', $c_member_id, 9); //フレンドリスト |
| 80 | pne_cache_drop('db_friend_c_friend_list_random4c_member_id', $c_member_id, 5); |
| 81 | pne_cache_drop('p_h_home_c_diary_friend_list4c_member_id', $c_member_id, 5); //最新日記フィード |
64 | 82 | |
| 83 | //誕生日フィード |
65 | 84 | include_once 'Calendar/Week.php'; |
66 | 85 | |
67 | 86 | $Week = new Calendar_Week(date('Y'), date('m'), date('d'), 0); |
… |
… |
|
69 | 88 | while ($Day = $Week->fetch()) { |
70 | 89 | $m = $Day->thisMonth(); |
71 | 90 | $d = $Day->thisDay(); |
72 | | pne_cache_drop('p_h_home_birth4c_member_id', $m, $d, $c_member_id); |
| 91 | pne_cache_drop('db_member_birth4c_member_id', $m, $d, $c_member_id); |
73 | 92 | } |
| 93 | |
| 94 | cache_drop_c_friend_intro($c_member_id); //紹介文 |
74 | 95 | } |
75 | 96 | |
76 | | |
77 | 97 | /** |
78 | 98 | * コミュニティ情報取得関連のfunction cacheを削除する |
79 | 99 | */ |
80 | 100 | function cache_drop_c_commu($c_commu_id) |
81 | 101 | { |
82 | | pne_cache_drop('p_c_home_c_commu_member_list4c_commu_id', $c_commu_id, 9); |
83 | | pne_cache_drop('p_c_home_c_commu4c_commu_id', $c_commu_id); |
| 102 | pne_cache_drop('db_commu_c_commu4c_commu_id_k',$c_commu_id); |
| 103 | pne_cache_drop('db_commu_c_commu_member_list_random4c_commu_id', $c_commu_id, 5); |
| 104 | pne_cache_drop('db_commu_c_commu_member_list4c_commu_id', $c_commu_id, 9); |
| 105 | pne_cache_drop('db_commu_c_commu4c_commu_id2', $c_commu_id); |
84 | 106 | |
85 | | $c_commu_topic_list = p_c_home_new_topic_comment4c_commu_id($c_commu_id, 7); |
86 | | $c_commu_event_list = p_c_home_new_topic_comment4c_commu_id($c_commu_id, 7, 1); |
| 107 | $c_commu_topic_list = db_commu_new_topic_comment4c_commu_id($c_commu_id, 7); |
| 108 | $c_commu_event_list = db_commu_new_topic_comment4c_commu_id($c_commu_id, 7, 1); |
87 | 109 | $c_commu_bbs_list = array_merge($c_commu_topic_list, $c_commu_event_list); |
88 | 110 | |
89 | 111 | foreach ($c_commu_bbs_list as $c_commu_topic_id) |
… |
… |
|
106 | 128 | */ |
107 | 129 | function cache_drop_c_commu_list4c_member_id($c_member_id) |
108 | 130 | { |
109 | | pne_cache_drop('p_h_home_c_commu_list4c_member_id', $c_member_id, 9); |
110 | | pne_cache_drop('p_f_home_c_commu_list4c_member_id', $c_member_id, 9); |
| 131 | pne_cache_drop('db_commu_c_commu_list_lastupdate4c_member_id', $c_member_id, 5); |
| 132 | pne_cache_drop('db_commu_c_commu_list4c_member_id_3', $c_member_id, 9); |
| 133 | pne_cache_drop('db_commu_c_commu_list4c_member_id_2', $c_member_id, 9); |
111 | 134 | } |
112 | 135 | |
| 136 | |
| 137 | /** |
| 138 | * 紹介文取得のfunction cacheを削除する |
| 139 | */ |
| 140 | function cache_drop_c_friend_intro($c_member_id) |
| 141 | { |
| 142 | pne_cache_drop('db_friend_c_friend_intro_list4c_member_id', $c_member_id, 5); |
| 143 | pne_cache_drop('db_friend_c_friend_comment4c_member_id', $c_member_id); |
| 144 | } |
| 145 | |
| 146 | /** |
| 147 | * プロフィール取得のfunction cacheを削除する |
| 148 | */ |
| 149 | function cache_drop_c_member_profile($c_member_id) |
| 150 | { |
| 151 | pne_cache_drop(db_member_c_member4c_member_id, $c_member_id); |
| 152 | pne_cache_drop('db_member_c_profile_list'); |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * お気に入り関連のfunction cacheを削除する |
| 157 | */ |
| 158 | function cache_drop_c_bookmark($c_member_id) |
| 159 | { |
| 160 | pne_cache_drop('db_bookmark_member_list', $c_member_id, 9); |
| 161 | } |
113 | 162 | ?> |
-
|
|
|
38 | 38 | $validator->addRequests($_REQUEST); |
39 | 39 | } |
40 | 40 | $validator->addRules($this->_getValidateRules()); |
41 | | if ($validator->validate()) { |
| 41 | if (!$validator->validate()) { |
42 | 42 | $errors = $validator->getErrors(); |
43 | 43 | } |
44 | 44 | |
-
|
|
|
15 | 15 | { |
16 | 16 | $u = $GLOBALS['AUTH']->uid(); |
17 | 17 | |
18 | | $inc_navi = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'fetch_inc_navi', 'h'); |
| 18 | $inc_navi = fetch_inc_navi('h'); |
19 | 19 | $this->set('inc_navi', $inc_navi); |
20 | 20 | |
21 | 21 | /// infomation /// |
… |
… |
|
49 | 49 | /// 左側 /// |
50 | 50 | |
51 | 51 | // メンバ情報 |
52 | | $c_member = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_common_c_member4c_member_id', $u); |
| 52 | $c_member = db_common_c_member4c_member_id($u); |
53 | 53 | $this->set('c_member', $c_member); |
54 | 54 | // フレンドリスト |
55 | | $c_friend_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_f_home_c_friend_list4c_member_id', $u, 9); |
| 55 | $c_friend_list = p_f_home_c_friend_list4c_member_id($u, 9); |
56 | 56 | $this->set('c_friend_list', $c_friend_list); |
57 | 57 | $this->set('c_friend_count', db_friend_count_friends($u)); |
58 | 58 | // 参加コミュニティ |
59 | | $c_commu_user_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_c_commu_list4c_member_id', $u, 9); |
| 59 | $c_commu_user_list = p_h_home_c_commu_list4c_member_id($u, 9); |
60 | 60 | $this->set('c_commu_user_list', $c_commu_user_list); |
61 | 61 | $this->set('fh_com_count_user', p_common_count_c_commu4c_member_id($u)); |
62 | 62 | |
63 | 63 | /// 最新情報 /// |
64 | 64 | |
65 | 65 | // フレンド最新日記 |
66 | | $c_diary_friend_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_c_diary_friend_list4c_member_id', $u, 5); |
| 66 | $c_diary_friend_list = p_h_home_c_diary_friend_list4c_member_id($u, 5); |
67 | 67 | $this->set('c_diary_friend_list', $c_diary_friend_list); |
68 | 68 | // フレンド最新blog |
69 | 69 | $this->set('c_rss_cache_list', p_h_diary_list_friend_c_rss_cache_list($u, 5)); |
70 | 70 | // 日記コメント記入履歴 |
71 | | $c_diary_my_comment_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_c_diary_my_comment_list4c_member_id', $u, 5); |
| 71 | $c_diary_my_comment_list = p_h_home_c_diary_my_comment_list4c_member_id($u, 5); |
72 | 72 | $this->set('c_diary_my_comment_list', $c_diary_my_comment_list); |
73 | 73 | // 参加コミュニティの新着書き込み |
74 | 74 | $this->set('c_commu_topic_comment_list', p_h_home_c_commu_topic_comment_list4c_member_id($u, 5)); |
… |
… |
|
78 | 78 | /// 自分の情報 /// |
79 | 79 | |
80 | 80 | // 日記 |
81 | | $c_diary_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_diary_get_c_diary_list4c_member_id', $u, 5); |
| 81 | $c_diary_list = db_diary_get_c_diary_list4c_member_id($u, 5); |
82 | 82 | $this->set('c_diary_list', $c_diary_list); |
83 | 83 | // 外部blog |
84 | 84 | $this->set('c_blog_list', p_h_home_h_blog_list_friend4c_member_id($u, 5, 1)); |
… |
… |
|
88 | 88 | /// その他 /// |
89 | 89 | |
90 | 90 | // 紹介文 |
91 | | $c_friend_intro_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_c_friend_intro_list4c_member_id', $u, 5); |
| 91 | $c_friend_intro_list = p_h_home_c_friend_intro_list4c_member_id($u, 5); |
92 | 92 | $this->set('c_friend_intro_list', $c_friend_intro_list); |
93 | 93 | |
94 | 94 | // 今日の日付、曜日 |
… |
… |
|
113 | 113 | $this->set('bookmark_blog_list', db_bookmark_blog_list($u, 5)); |
114 | 114 | |
115 | 115 | //お気に入りのメンバ |
116 | | $bookmark_member_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_bookmark_member_list', $u, 9); |
| 116 | $bookmark_member_list = db_bookmark_member_list($u, 9); |
117 | 117 | $this->set('bookmark_member_list', $bookmark_member_list); |
118 | 118 | $this->set('bookmark_count', db_bookmark_count($u)); |
119 | 119 | } |
… |
… |
|
142 | 142 | $y = $Day->thisYear(); |
143 | 143 | $m = $Day->thisMonth(); |
144 | 144 | $d = $Day->thisDay(); |
145 | | $birth = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_birth4c_member_id', $m, $d, $u); |
| 145 | $birth = p_h_home_birth4c_member_id($m, $d, $u); |
146 | 146 | $item = array( |
147 | 147 | 'year'=> $y, |
148 | 148 | 'month'=>$m, |
-
|
|
|
11 | 11 | $u = $GLOBALS['AUTH']->uid(); |
12 | 12 | $c_commu_id = $requests['target_c_commu_id']; |
13 | 13 | |
14 | | $c_commu = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_c_home_c_commu4c_commu_id', $c_commu_id); |
| 14 | $c_commu = p_c_home_c_commu4c_commu_id($c_commu_id); |
15 | 15 | //コミュニティの存在の有無 |
16 | 16 | if (!$c_commu) { |
17 | 17 | openpne_redirect('pc', 'page_h_err_c_home'); |
18 | 18 | } |
19 | 19 | |
20 | | $inc_navi = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'fetch_inc_navi', 'c', $c_commu_id); |
| 20 | $inc_navi = fetch_inc_navi('c', $c_commu_id); |
21 | 21 | $this->set('inc_navi', $inc_navi); |
22 | 22 | |
23 | 23 | $this->set('c_commu', $c_commu); |
… |
… |
|
30 | 30 | $this->set('is_receive_message', db_commu_is_receive_message($c_commu_id, $u)); |
31 | 31 | |
32 | 32 | //コミュニティメンバー |
33 | | $c_commu_member_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_c_home_c_commu_member_list4c_commu_id', $c_commu_id, 9); |
| 33 | $c_commu_member_list = p_c_home_c_commu_member_list4c_commu_id($c_commu_id, 9); |
34 | 34 | $this->set('c_commu_member_list', $c_commu_member_list); |
35 | 35 | |
36 | 36 | //非公開コミュニティに管理者から招待されたかどうか |
37 | 37 | $this->set('admin_invite', db_c_commu4c_admin_invite_id($c_commu_id, $u)); |
38 | 38 | |
39 | 39 | //参加コミュニティの新着トピック書き込み |
40 | | $new_topic_comment = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_c_home_new_topic_comment4c_commu_id', $c_commu_id, 7); |
| 40 | $new_topic_comment = p_c_home_new_topic_comment4c_commu_id($c_commu_id, 7); |
41 | 41 | $this->set('new_topic_comment', $new_topic_comment); |
42 | 42 | //参加コミュニティの新着イベント書き込み |
43 | | $new_topic_comment_event = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_c_home_new_topic_comment4c_commu_id', $c_commu_id, 7, 1); |
| 43 | $new_topic_comment_event = p_c_home_new_topic_comment4c_commu_id($c_commu_id, 7, 1); |
44 | 44 | $this->set('new_topic_comment_event', $new_topic_comment_event); |
45 | 45 | //参加コミュニティの新着おすすめレビュー |
46 | 46 | $this->set('new_commu_review', p_c_home_new_commu_review4c_commu_id($c_commu_id, 7)); |
-
|
|
|
33 | 33 | db_ashiato_insert_c_ashiato($target_c_member_id, $u); |
34 | 34 | |
35 | 35 | $this->set('is_h_prof', 0); |
36 | | $inc_navi = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'fetch_inc_navi', 'f', $target_c_member_id); |
| 36 | $inc_navi = fetch_inc_navi('f', $target_c_member_id); |
37 | 37 | $this->set('inc_navi', $inc_navi); |
38 | 38 | |
39 | 39 | $is_friend = db_friend_is_friend($u, $target_c_member_id); |
40 | 40 | if ($is_friend) { |
41 | | $target_c_member = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_common_c_member_with_profile', $target_c_member_id, 'friend'); |
| 41 | $target_c_member = db_common_c_member_with_profile($target_c_member_id, 'friend'); |
42 | 42 | // 自分が書いた紹介文 |
43 | 43 | $this->set('my_friend_intro', p_f_home_c_friend_intro($u, $target_c_member_id)); |
44 | 44 | } else { |
45 | | $target_c_member = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_common_c_member_with_profile', $target_c_member_id, 'public'); |
| 45 | $target_c_member = db_common_c_member_with_profile($target_c_member_id, 'public'); |
46 | 46 | // 友達の友達 |
47 | 47 | $this->set('friend_path', p_f_home_friend_path4c_member_ids($u, $target_c_member_id)); |
48 | 48 | } |
49 | 49 | |
50 | 50 | $this->set('is_friend', $is_friend); |
51 | | $c_member = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_common_c_member4c_member_id', $u); |
| 51 | $c_member = db_common_c_member4c_member_id($u); |
52 | 52 | $this->set('c_member', $c_member); |
53 | | $c_diary_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_diary_get_c_diary_list4c_member_id', $target_c_member_id, 5, $u); |
| 53 | $c_diary_list = db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, $u); |
54 | 54 | $this->set('c_diary_list', $c_diary_list); |
55 | 55 | |
56 | 56 | // --- f_home, h_prof 共通処理 |
… |
… |
|
64 | 64 | |
65 | 65 | $this->set('c_rss_cache_list', p_f_home_c_rss_cache_list4c_member_id($target_c_member_id, 5)); |
66 | 66 | |
67 | | $c_friend_comment_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_f_home_c_friend_comment4c_member_id', $target_c_member_id); |
| 67 | $c_friend_comment_list = p_f_home_c_friend_comment4c_member_id($target_c_member_id); |
68 | 68 | $this->set('c_friend_comment_list', $c_friend_comment_list); |
69 | | $c_friend_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_f_home_c_friend_list4c_member_id', $target_c_member_id, 9); |
| 69 | $c_friend_list = p_f_home_c_friend_list4c_member_id($target_c_member_id, 9); |
70 | 70 | $this->set('c_friend_list', $c_friend_list); |
71 | 71 | $this->set('c_friend_count', db_friend_count_friends($target_c_member_id)); |
72 | 72 | $this->set('user_count', p_common_count_c_commu4c_member_id($target_c_member_id)); |
73 | | $c_commu_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_f_home_c_commu_list4c_member_id', $target_c_member_id, 9); |
| 73 | $c_commu_list = p_f_home_c_commu_list4c_member_id($target_c_member_id, 9); |
74 | 74 | $this->set('c_commu_list', $c_commu_list); |
75 | 75 | $this->set('c_review_list', db_review_c_review_list4member($target_c_member_id, 5)); |
76 | 76 | |
77 | | $profile_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_common_c_profile_list'); |
| 77 | $profile_list = db_common_c_profile_list(); |
78 | 78 | $this->set('profile_list', $profile_list); |
79 | 79 | |
80 | 80 | // 誕生日まであと何日? |
-
|
|
|
237 | 237 | ({*********}) |
238 | 238 | <tr> |
239 | 239 | <td align="left" valign="top" colspan="6" class="bg_02"> |
| 240 | |
240 | 241 | <div class="padding_w_m"> |
241 | 242 | |
242 | | ({if $c_message.image_filename_1}) |
243 | | <a href="({t_img_url filename=$c_message.image_filename_1})" target="_blank"> |
244 | | <img src="({t_img_url filename=$c_message.image_filename_1 w=120 h=120})"></a> |
245 | | ({/if}) |
246 | | |
247 | | ({if $c_message.image_filename_2}) |
248 | | <a href="({t_img_url filename=$c_message.image_filename_2})" target="_blank"> |
249 | | <img src="({t_img_url filename=$c_message.image_filename_2 w=120 h=120})"></a> |
250 | | ({/if}) |
251 | | |
252 | | ({if $c_message.image_filename_3}) |
253 | | <a href="({t_img_url filename=$c_message.image_filename_3})" target="_blank"> |
254 | | <img src="({t_img_url filename=$c_message.image_filename_3 w=120 h=120})"></a> |
255 | | ({/if}) |
256 | 243 | ({if $c_message.image_filename_1||$c_message.image_filename_2||$c_message.image_filename_3}) |
| 244 | ({if $c_message.image_filename_1})<span class="padding_s"><a href="({t_img_url filename=$c_message.image_filename_1})" target="_blank"><img src="({t_img_url filename=$c_message.image_filename_1 w=120 h=120})"></a></span>({/if}) |
| 245 | ({if $c_message.image_filename_2})<span class="padding_s"><a href="({t_img_url filename=$c_message.image_filename_2})" target="_blank"><img src="({t_img_url filename=$c_message.image_filename_2 w=120 h=120})"></a></span>({/if}) |
| 246 | ({if $c_message.image_filename_3})<span class="padding_s"><a href="({t_img_url filename=$c_message.image_filename_3})" target="_blank"><img src="({t_img_url filename=$c_message.image_filename_3 w=120 h=120})"></a></span>({/if}) |
257 | 247 | <br><br> |
258 | 248 | ({/if}) |
259 | 249 | |
-
|
|
|
109 | 109 | <td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
110 | 110 | <td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
111 | 111 | <td style="width:531px;height:50px;" class="bg_02" align="left" valign="middle"> |
112 | | <div class="padding_s lh_120"> |
| 112 | |
113 | 113 | ({if $c_topic.image_filename1||$c_topic.image_filename2||$c_topic.image_filename3}) |
114 | | ({if $c_topic.image_filename1})<a href="({t_img_url filename=$c_topic.image_filename1})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename1 w=120 h=120})"></a>({/if}) |
115 | | ({if $c_topic.image_filename2})<a href="({t_img_url filename=$c_topic.image_filename2})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename2 w=120 h=120})"></a>({/if}) |
116 | | ({if $c_topic.image_filename3})<a href="({t_img_url filename=$c_topic.image_filename3})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename3 w=120 h=120})"></a>({/if}) |
117 | | <br> |
| 114 | <div class="padding_s"> |
| 115 | ({if $c_topic.image_filename1})<span class="padding_s"><a href="({t_img_url filename=$c_topic.image_filename1})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename1 w=120 h=120})"></a></span>({/if}) |
| 116 | ({if $c_topic.image_filename2})<span class="padding_s"><a href="({t_img_url filename=$c_topic.image_filename2})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename2 w=120 h=120})"></a></span>({/if}) |
| 117 | ({if $c_topic.image_filename3})<span class="padding_s"><a href="({t_img_url filename=$c_topic.image_filename3})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename3 w=120 h=120})"></a></span>({/if}) |
| 118 | </div> |
118 | 119 | ({/if}) |
| 120 | |
| 121 | <div class="padding_s lh_120"> |
119 | 122 | ({$c_topic.body|nl2br|t_url2cmd|t_cmd}) |
| 123 | </div> |
120 | 124 | |
121 | | </div> |
122 | 125 | </td> |
123 | 126 | <td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
124 | 127 | </tr> |
… |
… |
|
245 | 248 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
246 | 249 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
247 | 250 | <td class="bg_02" align="left" valign="middle"> |
248 | | <div class="padding_s lh_120"> |
249 | 251 | |
250 | | ({if $item.image_filename1||$item.image_filename2||$item.image_filename3}) |
251 | | ({if $item.image_filename1})<a href="({t_img_url filename=$item.image_filename1})" target="_blank"><img src="({t_img_url filename=$item.image_filename1 w=120 h=120})"></a>({/if}) |
252 | | ({if $item.image_filename2})<a href="({t_img_url filename=$item.image_filename2})" target="_blank"><img src="({t_img_url filename=$item.image_filename2 w=120 h=120})"></a>({/if}) |
253 | | ({if $item.image_filename3})<a href="({t_img_url filename=$item.image_filename3})" target="_blank"><img src="({t_img_url filename=$item.image_filename3 w=120 h=120})"></a>({/if}) |
254 | | <br> |
| 252 | ({if $item.image_filename1 || $item.image_filename2 || $item.image_filename3}) |
| 253 | <div class="padding_s"> |
| 254 | ({if $item.image_filename1})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename1})" target="_blank"><img src="({t_img_url filename=$item.image_filename1 w=120 h=120})"></a></span>({/if}) |
| 255 | ({if $item.image_filename2})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename2})" target="_blank"><img src="({t_img_url filename=$item.image_filename2 w=120 h=120})"></a></span>({/if}) |
| 256 | ({if $item.image_filename3})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename3})" target="_blank"><img src="({t_img_url filename=$item.image_filename3 w=120 h=120})"></a></span>({/if}) |
| 257 | </div> |
255 | 258 | ({/if}) |
| 259 | |
| 260 | <div class="padding_s lh_120"> |
256 | 261 | ({$item.body|nl2br|t_url2cmd|t_cmd}) |
| 262 | </div> |
257 | 263 | |
258 | | </div> |
259 | 264 | </td> |
260 | 265 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
261 | 266 | </tr> |
-
|
|
|
248 | 248 | <td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
249 | 249 | <td style="width:521px;" class="bg_02" align="left" valign="middle"> |
250 | 250 | |
| 251 | ({if $item.image_filename1 || $item.image_filename2 || $item.image_filename3}) |
| 252 | <div class="padding_s"> |
| 253 | ({if $item.image_filename1})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename1})" target="_blank"><img src="({t_img_url filename=$item.image_filename1 w=120 h=120})"></a></span>({/if}) |
| 254 | ({if $item.image_filename2})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename2})" target="_blank"><img src="({t_img_url filename=$item.image_filename2 w=120 h=120})"></a></span>({/if}) |
| 255 | ({if $item.image_filename3})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename3})" target="_blank"><img src="({t_img_url filename=$item.image_filename3 w=120 h=120})"></a></span>({/if}) |
| 256 | </div> |
| 257 | ({/if}) |
| 258 | |
251 | 259 | <div class="padding_s lh_120"> |
252 | | |
253 | | ({if $item.image_filename1})<a href="({t_img_url filename=$item.image_filename1})" target="_blank"><img src="({t_img_url filename=$item.image_filename1 w=120 h=120})"></a>({/if}) |
254 | | ({if $item.image_filename2})<a href="({t_img_url filename=$item.image_filename2})" target="_blank"><img src="({t_img_url filename=$item.image_filename2 w=120 h=120})"></a>({/if}) |
255 | | ({if $item.image_filename3})<a href="({t_img_url filename=$item.image_filename3})" target="_blank"><img src="({t_img_url filename=$item.image_filename3 w=120 h=120})"></a>({/if}) |
256 | | <br> |
257 | 260 | ({$item.body|nl2br}) |
258 | 261 | |
259 | 262 | </div> |
-
|
|
|
69 | 69 | </td> |
70 | 70 | <td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
71 | 71 | <td style="width:468px;" class="bg_02" align="left" valign="middle"> |
72 | | <div style="padding:10px;"> |
73 | 72 | |
| 73 | <div class="padding_s lh_120"> |
| 74 | |
74 | 75 | <a href="({t_url m=pc a=page_f_home})&target_c_member_id=({$c_member.c_member_id})">({$c_member.nickname})</a><br> |
75 | | ({if $c_commu_topic_comment.image_filename1})<img src="({t_img_url filename=$c_commu_topic_comment.image_filename1 w=120 h=120})">({/if}) |
76 | | ({if $c_commu_topic_comment.image_filename2})<img src="({t_img_url filename=$c_commu_topic_comment.image_filename2 w=120 h=120})">({/if}) |
77 | | ({if $c_commu_topic_comment.image_filename3})<img src="({t_img_url filename=$c_commu_topic_comment.image_filename3 w=120 h=120})">({/if}) |
78 | | <br> |
79 | | ({$c_commu_topic_comment.body|nl2br})<br> |
80 | 76 | |
81 | 77 | </div> |
| 78 | |
| 79 | ({if $c_commu_topic_comment.image_filename1 || $c_commu_topic_comment.image_filename2 || $c_commu_topic_comment.image_filename3 }) |
| 80 | <div class="padding_s"> |
| 81 | ({if $c_commu_topic_comment.image_filename1})<span class="padding_s"><img src="({t_img_url filename=$c_commu_topic_comment.image_filename1 w=120 h=120})"></span>({/if}) |
| 82 | ({if $c_commu_topic_comment.image_filename2})<span class="padding_s"><img src="({t_img_url filename=$c_commu_topic_comment.image_filename2 w=120 h=120})"></span>({/if}) |
| 83 | ({if $c_commu_topic_comment.image_filename3})<span class="padding_s"><img src="({t_img_url filename=$c_commu_topic_comment.image_filename3 w=120 h=120})"></span>({/if}) |
| 84 | </div> |
| 85 | ({/if}) |
| 86 | |
| 87 | <div class="padding_s lh_120"> |
| 88 | |
| 89 | ({$c_commu_topic_comment.body|nl2br}) |
| 90 | |
| 91 | </div> |
| 92 | |
82 | 93 | </td> |
83 | 94 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
84 | 95 | </tr> |
-
|
|
|
85 | 85 | ({if $c_topic.image_filename1||$c_topic.image_filename2||$c_topic.image_filename3}) |
86 | 86 | <tr> |
87 | 87 | <td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
88 | | <td style="width:110px;" class="bg_03" align="center" valign="top" rowspan="({if $is_c_event_admin})21({else})19({/if})"> |
| 88 | <td style="width:110px;" class="bg_03" align="center" valign="top" rowspan="({if $is_c_event_admin})19({else})17({/if})"> |
89 | 89 | |
90 | 90 | <div class="padding_s"> |
91 | 91 | |
… |
… |
|
97 | 97 | <td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
98 | 98 | <td class="bg_02" align="left" valign="middle" colspan="3"> |
99 | 99 | |
100 | | <div style="padding:8px;"> |
| 100 | <div class="padding_s"> |
101 | 101 | |
102 | | ({if $c_topic.image_filename1})<a href="({t_img_url filename=$c_topic.image_filename1})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename1 w=120 h=120})"></a>({/if}) |
103 | | ({if $c_topic.image_filename2})<a href="({t_img_url filename=$c_topic.image_filename2})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename2 w=120 h=120})"></a>({/if}) |
104 | | ({if $c_topic.image_filename3})<a href="({t_img_url filename=$c_topic.image_filename3})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename3 w=120 h=120})"></a>({/if}) |
| 102 | ({if $c_topic.image_filename1})<span class="padding_s"><a href="({t_img_url filename=$c_topic.image_filename1})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename1 w=120 h=120})"></a></span>({/if}) |
| 103 | ({if $c_topic.image_filename2})<span class="padding_s"><a href="({t_img_url filename=$c_topic.image_filename2})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename2 w=120 h=120})"></a></span>({/if}) |
| 104 | ({if $c_topic.image_filename3})<span class="padding_s"><a href="({t_img_url filename=$c_topic.image_filename3})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename3 w=120 h=120})"></a></span>({/if}) |
105 | 105 | |
106 | 106 | </div> |
107 | 107 | |
… |
… |
|
407 | 407 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
408 | 408 | </tr> |
409 | 409 | ({*********}) |
| 410 | ({if $is_c_event_admin}) |
410 | 411 | <tr> |
411 | 412 | <td style="height:1px;" class="bg_01"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
412 | 413 | <td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
413 | 414 | </tr> |
414 | 415 | ({*********}) |
415 | | ({if $is_c_event_admin}) |
416 | 416 | <tr> |
417 | 417 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
418 | 418 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
… |
… |
|
474 | 474 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
475 | 475 | </tr> |
476 | 476 | ({*********}) |
477 | | ({/if}) |
478 | 477 | <tr> |
479 | 478 | <td style="height:1px;" class="bg_01" colspan="7"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
480 | 479 | </tr> |
481 | 480 | ({*********}) |
| 481 | ({else}) |
| 482 | <tr> |
| 483 | <td style="height:1px;" class="bg_01" colspan="7"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
| 484 | </tr> |
| 485 | ({*********}) |
| 486 | ({/if}) |
482 | 487 | </table> |
483 | 488 | <!-- ここまで:主内容 --> |
484 | 489 | ({*ここまで:body*}) |
… |
… |
|
598 | 603 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
599 | 604 | <td class="bg_02" align="left" valign="middle"> |
600 | 605 | |
| 606 | ({if $item.image_filename1 || $item.image_filename2 || $item.image_filename3}) |
601 | 607 | <div class="padding_s lh_120"> |
| 608 | ({if $item.image_filename1})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename1})" target="_blank"><img src="({t_img_url filename=$item.image_filename1 w=120 h=120})"></a></span>({/if}) |
| 609 | ({if $item.image_filename2})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename2})" target="_blank"><img src="({t_img_url filename=$item.image_filename2 w=120 h=120})"></a></span>({/if}) |
| 610 | ({if $item.image_filename3})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename3})" target="_blank"><img src="({t_img_url filename=$item.image_filename3 w=120 h=120})"></a></span>({/if}) |
| 611 | </div> |
| 612 | ({/if}) |
602 | 613 | |
603 | | ({if $item.image_filename1 || $item.image_filename2 || $item.image_filename3}) |
604 | | ({if $item.image_filename1})<a href="({t_img_url filename=$item.image_filename1})" target="_blank"><img src="({t_img_url filename=$item.image_filename1 w=120 h=120})"></a>({/if}) |
605 | | ({if $item.image_filename2})<a href="({t_img_url filename=$item.image_filename2})" target="_blank"><img src="({t_img_url filename=$item.image_filename2 w=120 h=120})"></a>({/if}) |
606 | | ({if $item.image_filename3})<a href="({t_img_url filename=$item.image_filename3})" target="_blank"><img src="({t_img_url filename=$item.image_filename3 w=120 h=120})"></a>({/if}) |
607 | | <br> |
608 | | ({/if}) |
| 614 | <div class="padding_s lh_120"> |
609 | 615 | ({$item.body|nl2br|t_url2cmd|t_cmd}) |
610 | | |
611 | 616 | </div> |
612 | 617 | |
613 | 618 | </td> |
-
|
|
|
351 | 351 | <!-- ここから:主内容 --> |
352 | 352 | ({if $diary_list_count >= $page_size }) |
353 | 353 | <!-- ここから:主内容>>件数表示終わり --> |
354 | | <table border="0" cellspacing="0" cellpadding="0" style="width:526px;" class="border_01"> |
| 354 | <table border="0" cellspacing="0" cellpadding="0" style="width:524px;" class="border_01"> |
355 | 355 | ({*********}) |
356 | 356 | <tr> |
357 | 357 | <td style="width:524px;height:1px;" class="bg_01" colspan="3"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
… |
… |
|
452 | 452 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
453 | 453 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
454 | 454 | <td class="bg_02" align="left" valign="middle"> |
455 | | <div style="padding:4px 3px;"> |
456 | 455 | |
457 | | ({if $item.image_filename_1}) |
458 | | <a href="({t_img_url filename=$item.image_filename_1})" target="_blank"> |
459 | | <img src="({t_img_url filename=$item.image_filename_1 w=120 h=120})"></a> |
460 | | ({/if}) |
461 | | ({if $item.image_filename_2}) |
462 | | <a href="({t_img_url filename=$item.image_filename_2})" target="_blank"> |
463 | | <img src="({t_img_url filename=$item.image_filename_2 w=120 h=120})"></a> |
464 | | ({/if}) |
465 | | ({if $item.image_filename_3}) |
466 | | <a href="({t_img_url filename=$item.image_filename_3})" target="_blank"> |
467 | | <img src="({t_img_url filename=$item.image_filename_3 w=120 h=120})"></a> |
468 | | ({/if}) |
| 456 | <div style="padding:4px 3px;" class="lh_120"> |
| 457 | |
469 | 458 | ({if $item.image_filename_1||$item.image_filename_2||$item.image_filename_3}) |
470 | | <br> |
| 459 | <div> |
| 460 | ({if $item.image_filename_1})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename_1})" target="_blank"><img src="({t_img_url filename=$item.image_filename_1 w=120 h=120})"></a></span>({/if}) |
| 461 | ({if $item.image_filename_2})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename_2})" target="_blank"><img src="({t_img_url filename=$item.image_filename_2 w=120 h=120})"></a></span>({/if}) |
| 462 | ({if $item.image_filename_3})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename_3})" target="_blank"><img src="({t_img_url filename=$item.image_filename_3 w=120 h=120})"></a></span>({/if}) |
| 463 | </div> |
471 | 464 | ({/if}) |
472 | 465 | |
473 | 466 | ({$item.body|t_truncate:"120"}) |
474 | 467 | |
475 | 468 | </div> |
| 469 | |
476 | 470 | </td> |
477 | 471 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
478 | 472 | </tr> |
… |
… |
|
511 | 505 | <!-- ここまで:主内容>>日記表示 --> |
512 | 506 | ({if $diary_list_count >= $page_size }) |
513 | 507 | <!-- ここから:主内容>>件数表示終わり --> |
514 | | <table border="0" cellspacing="0" cellpadding="0" style="width:526px;" class="border_01"> |
| 508 | <table border="0" cellspacing="0" cellpadding="0" style="width:524px;" class="border_01"> |
515 | 509 | ({*********}) |
516 | 510 | <tr> |
517 | | <td style="width:524px;height:1px;" class="bg_01" colspan="3"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
| 511 | <td style="width:522px;height:1px;" class="bg_01" colspan="3"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
518 | 512 | </tr> |
519 | 513 | ({*********}) |
520 | 514 | <tr> |
521 | 515 | <td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
522 | | <td style="width:522px;" class="bg_06" align="right" valign="middle"> |
| 516 | <td style="width:520px;" class="bg_06" align="right" valign="middle"> |
523 | 517 | <div style="padding:4px 3px;"> |
524 | 518 | |
525 | 519 | ({if $is_prev}) |
… |
… |
|
542 | 536 | </tr> |
543 | 537 | ({*********}) |
544 | 538 | <tr> |
545 | | <td style="width:524px;height:1px;" class="bg_01" colspan="3"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
| 539 | <td style="width:522px;height:1px;" class="bg_01" colspan="3"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
546 | 540 | </tr> |
547 | 541 | ({*********}) |
548 | 542 | </table> |
… |
… |
|
584 | 578 | <!-- *ここから:Blog一覧>内容* --> |
585 | 579 | ({*ここから:header*}) |
586 | 580 | <!-- ここから:小タイトル --> |
587 | | <table border="0" cellspacing="0" cellpadding="0" style="width:526px;" class="border_01"> |
| 581 | <table border="0" cellspacing="0" cellpadding="0" style="width:524px;" class="border_01"> |
588 | 582 | <tr> |
589 | 583 | <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> |
590 | | <td style="width:488px;padding:2px 0px;" class="bg_06"><span class="b_b c_00"> |
| 584 | <td style="width:486px;padding:2px 0px;" class="bg_06"><span class="b_b c_00"> |
591 | 585 | <a name="blog"> |
592 | 586 | ({if !$all}) |
593 | 587 | ({$target_member.nickname})({if $type == "f"})さん({/if})({$date_val.year})年({$date_val.month})月({if $date_val.day})({$date_val.day})日({/if})のBlog |
-
|
|
|
400 | 400 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
401 | 401 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
402 | 402 | <td class="bg_02" align="left" valign="middle"> |
| 403 | |
403 | 404 | <div style="padding:4px 3px;"> |
404 | 405 | |
405 | | ({if $target_diary.image_filename_1}) |
406 | | <a href="({t_img_url filename=$target_diary.image_filename_1})" target="_blank"> |
407 | | <img src="({t_img_url filename=$target_diary.image_filename_1 w=120 h=120})"></a> |
| 406 | ({if $target_diary.image_filename_1 || $target_diary.image_filename_2 || $target_diary.image_filename_3}) |
| 407 | <div> |
| 408 | ({if $target_diary.image_filename_1})<span class="padding_s"><a href="({t_img_url filename=$target_diary.image_filename_1})" target="_blank"><img src="({t_img_url filename=$target_diary.image_filename_1 w=120 h=120})"></a></span>({/if}) |
| 409 | ({if $target_diary.image_filename_2})<span class="padding_s"><a href="({t_img_url filename=$target_diary.image_filename_2})" target="_blank"><img src="({t_img_url filename=$target_diary.image_filename_2 w=120 h=120})"></a></span>({/if}) |
| 410 | ({if $target_diary.image_filename_3})<span class="padding_s"><a href="({t_img_url filename=$target_diary.image_filename_3})" target="_blank"><img src="({t_img_url filename=$target_diary.image_filename_3 w=120 h=120})"></a></span>({/if}) |
| 411 | </div> |
408 | 412 | ({/if}) |
409 | 413 | |
410 | | ({if $target_diary.image_filename_2}) |
411 | | <a href="({t_img_url filename=$target_diary.image_filename_2})" target="_blank"> |
412 | | <img src="({t_img_url filename=$target_diary.image_filename_2 w=120 h=120})"></a> |
413 | | ({/if}) |
414 | | |
415 | | ({if $target_diary.image_filename_3}) |
416 | | <a href="({t_img_url filename=$target_diary.image_filename_3})" target="_blank"> |
417 | | <img src="({t_img_url filename=$target_diary.image_filename_3 w=120 h=120})"></a> |
418 | | ({/if}) |
419 | | |
420 | 414 | <div class="lh_120" id="DOM_fh_diary_body"> |
421 | 415 | ({$target_diary.body|nl2br|t_url2cmd|t_cmd}) |
422 | 416 | </div> |
… |
… |
|
554 | 548 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
555 | 549 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
556 | 550 | <td class="bg_02" align="left" valign="middle"> |
| 551 | |
557 | 552 | <div style="padding:4px 3px;" class="lh_120 DOM_fh_diary_comment_body"> |
558 | 553 | |
559 | | ({if $item.image_filename_1||$item.image_filename_2||$item.image_filename_3}) |
560 | | ({if $item.image_filename_1})<a href="({t_img_url filename=$item.image_filename_1})" target="_blank"><img src="({t_img_url filename=$item.image_filename_1 w=120 h=120})"></a>({/if}) |
561 | | ({if $item.image_filename_2})<a href="({t_img_url filename=$item.image_filename_2})" target="_blank"><img src="({t_img_url filename=$item.image_filename_2 w=120 h=120})"></a>({/if}) |
562 | | ({if $item.image_filename_3})<a href="({t_img_url filename=$item.image_filename_3})" target="_blank"><img src="({t_img_url filename=$item.image_filename_3 w=120 h=120})"></a>({/if}) |
| 554 | ({if $item.image_filename_1 || $item.image_filename_2 || $item.image_filename_3}) |
| 555 | |
| 556 | ({if $item.image_filename_1})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename_1})" target="_blank"><img src="({t_img_url filename=$item.image_filename_1 w=120 h=120})"></a></span>({/if}) |
| 557 | ({if $item.image_filename_2})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename_2})" target="_blank"><img src="({t_img_url filename=$item.image_filename_2 w=120 h=120})"></a></span>({/if}) |
| 558 | ({if $item.image_filename_3})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename_3})" target="_blank"><img src="({t_img_url filename=$item.image_filename_3 w=120 h=120})"></a></span>({/if}) |
563 | 559 | <br> |
564 | 560 | ({/if}) |
565 | 561 | |
566 | 562 | ({$item.body|nl2br|t_url2cmd|t_cmd}) |
567 | 563 | |
568 | 564 | </div> |
| 565 | |
569 | 566 | </td> |
570 | 567 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
571 | 568 | </tr> |
… |
… |
|
582 | 579 | ({*ここから:footer*}) |
583 | 580 | ({if $type == "h"}) |
584 | 581 | <!-- ここから:削除 --> |
585 | | <table border="0" cellspacing="0" cellpadding="0" style="width:526px;" class="border_01"> |
| 582 | <table border="0" cellspacing="0" cellpadding="0" style="width:524px;" class="border_01"> |
586 | 583 | ({*********}) |
587 | 584 | <tr> |
588 | 585 | <td style="height:1px;" class="bg_01" colspan="3"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
-
|
|
|
281 | 281 | <td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
282 | 282 | <td class="bg_03" align="center" valign="middle" colspan="3"> |
283 | 283 | |
284 | | <div class="padding_w_m"> |
| 284 | <div class="padding_w_m" align="center"> |
285 | 285 | |
286 | | <div align="center" style="text-align:center;"> |
| 286 | <table border="0" cellspacing="0" cellpadding="0"> |
| 287 | <tr> |
| 288 | <td align="right" style="padding-right:6px;"> |
287 | 289 | <input type="submit" class="submit" value=" 確認画面 "> |
| 290 | </td> |
| 291 | <td align="left" style="padding-left:6px;"> |
288 | 292 | <input name="save" type="submit" class="submit" value=" 下書き保存 "> |
289 | | </div> |
| 293 | </td> |
| 294 | </table> |
290 | 295 | |
291 | 296 | </div> |
292 | 297 | |
-
|
|
|
248 | 248 | <td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td> |
249 | 249 | <td style="width:521px;" class="bg_02" align="left" valign="middle"> |
250 | 250 | |
| 251 | ({if $item.image_filename1 || $item.image_filename2 || $item.image_filename3}) |
| 252 | <div class="padding_s"> |
| 253 | ({if $item.image_filename1})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename1})" target="_blank"><img src="({t_img_url filename=$item.image_filename1 w=120 h=120})"></a></span>({/if}) |
| 254 | ({if $item.image_filename2})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename2})" target="_blank"><img src="({t_img_url filename=$item.image_filename2 w=120 h=120})"></a></span>({/if}) |
| 255 | ({if $item.image_filename3})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename3})" target="_blank"><img src="({t_img_url filename=$item.image_filename3 w=120 h=120})"></a></span>({/if}) |
| 256 | </div> |
| 257 | ({/if}) |
| 258 | |
251 | 259 | <div class="padding_s lh_120"> |
252 | 260 | |
253 | | ({if $item.image_filename1})<a href="({t_img_url filename=$item.image_filename1})" target="_blank"><img src="({t_img_url filename=$item.image_filename1 w=120 h=120})"></a>({/if}) |
254 | | ({if $item.image_filename2})<a href="({t_img_url filename=$item.image_filename2})" target="_blank"><img src="({t_img_url filename=$item.image_filename2 w=120 h=120})"></a>({/if}) |
255 | | ({if $item.image_filename3})<a href="({t_img_url filename=$item.image_filename3})" target="_blank"><img src="({t_img_url filename=$item.image_filename3 w=120 h=120})"></a>({/if}) |
256 | | <br> |
257 | 261 | ({$item.body|nl2br}) |
258 | 262 | |
259 | 263 | </div> |
-
|
|
|
1 | | <?php define('OPENPNE_VERSION', '2.5.1'); ?> |
| 1 | <?php define('OPENPNE_VERSION', '2.5.2'); ?> |
Download in other formats: