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

ChangeLog_develop: OpenPNE_2_5_3_to_2_5_4.patch

File OpenPNE_2_5_3_to_2_5_4.patch, 228.4 KB (added by takanashi, 11 years ago)

2.5.4への差分

  • setup/sql/update/update02-for2.5.3-alter_table_biz_shisetsu_add_info.sql

     
     1ALTER TABLE `biz_shisetsu` ADD `info` TEXT NOT NULL;
     2 No newline at end of file
  • setup/sql/update/update04-for2.5.4-create_table_c_free_page.sql

     
     1CREATE TABLE c_free_page (
     2  c_free_page_id bigint(20) NOT NULL auto_increment,
     3  body text NOT NULL,
     4  PRIMARY KEY  (c_free_page_id)
     5) TYPE=MyISAM;
  • setup/sql/update/update03-for2.5.4-alter_table_c_profile.sql

     
     1ALTER TABLE c_profile ADD COLUMN info text NOT NULL after caption;
     2ALTER TABLE c_profile MODIFY form_type enum('text','textlong','textarea','select','checkbox','radio') NOT NULL default 'text';
  • setup/sql/update/update02-for2.3.3-alter_table_biz_shisetsu_add_info.sql

     
    1 ALTER TABLE `biz_shisetsu` ADD `info` TEXT NOT NULL;
    2  No newline at end of file
  • setup/sql/install/option-pnebiz-mysql40.sql

     
    6262  PRIMARY KEY  (`biz_shisetsu_schedule_id`)
    6363) TYPE=MyISAM ;
    6464
    65 CREATE TABLE `biz_state` (
    66   `biz_state_id` int(11) NOT NULL auto_increment,
    67   `member_id` int(11) NOT NULL,
    68   `state` text,
    69   PRIMARY KEY  (`biz_state_id`)
    70 ) TYPE=MyISAM ;
    7165
    7266CREATE TABLE `biz_todo` (
    7367  `biz_todo_id` int(11) NOT NULL auto_increment,
  • setup/sql/install/option-pnebiz-mysql41.sql

     
    6262  PRIMARY KEY  (`biz_shisetsu_schedule_id`)
    6363) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
    6464
    65 CREATE TABLE `biz_state` (
    66   `biz_state_id` int(11) NOT NULL auto_increment,
    67   `member_id` int(11) NOT NULL,
    68   `state` text,
    69   PRIMARY KEY  (`biz_state_id`)
    70 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
    7165
    7266CREATE TABLE `biz_todo` (
    7367  `biz_todo_id` int(11) NOT NULL auto_increment,
  • setup/sql/upgrade/upgrade-2.2to2.4-mysql40.sql

     
    124124ADD `caption` varchar(100)  NOT NULL,
    125125ADD `symbol` TEXT NOT NULL;
    126126
     127SELECT @t1:=value FROM c_admin_config WHERE name = 'SKIN_BG_11';
     128SELECT @t2:=value FROM c_admin_config WHERE name = 'SKIN_BG_12';
     129SELECT @t3:=value FROM c_admin_config WHERE name = 'SKIN_BG_13';
     130UPDATE c_sns_config SET `bg_11` = @t1 WHERE c_sns_config_id=1;
     131UPDATE c_sns_config SET `bg_12` = @t2 WHERE c_sns_config_id=1;
     132UPDATE c_sns_config SET `bg_13` = @t3 WHERE c_sns_config_id=1;
     133
    127134UPDATE `c_sns_config` SET
    128 bg_11 = 'C1C6CF',bg_12 = 'FFFFFF',bg_13 = 'E9EAF0',caption = '戻す',symbol='E9EAF0'
     135caption = '戻す',symbol='E9EAF0'
    129136WHERE c_sns_config_id=1;
    130137
    131138INSERT INTO `c_sns_config` VALUES
     
    178185UPDATE c_diary INNER JOIN c_member USING (c_member_id) SET c_diary.public_flag = c_member.public_flag_diary ;
    179186
    180187-- update15
    181 INSERT INTO `c_admin_config` values (NULL,'OPENPNE_ENABLE_ROLLOVER',0);
    182  No newline at end of file
     188INSERT INTO `c_admin_config` values (NULL,'OPENPNE_ENABLE_ROLLOVER',0);
     189
     190INSERT INTO `c_admin_config` values (NULL,'OPENPNE_USE_FLASH_LIST',0);
  • setup/sql/upgrade/upgrade-2.2to2.4-mysql41.sql

     
    125125ADD `symbol` TEXT NOT NULL;
    126126
    127127UPDATE `c_sns_config` SET
    128 bg_11 = 'C1C6CF',bg_12 = 'FFFFFF',bg_13 = 'E9EAF0',caption = '戻す',symbol='E9EAF0'
     128caption = '戻す',symbol='E9EAF0'
    129129WHERE c_sns_config_id=1;
    130130
     131
     132UPDATE c_sns_config SET `bg_11` = (SELECT value FROM `c_admin_config` WHERE name = 'SKIN_BG_11') WHERE  c_sns_config_id=1;
     133UPDATE c_sns_config SET `bg_12` = (SELECT value FROM `c_admin_config` WHERE name = 'SKIN_BG_12') WHERE  c_sns_config_id=1;
     134UPDATE c_sns_config SET `bg_13` = (SELECT value FROM `c_admin_config` WHERE name = 'SKIN_BG_13') WHERE  c_sns_config_id=1;
     135
    131136INSERT INTO `c_sns_config` VALUES
    132137(2,'red',    'FFFFFF','DCAA9D','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','DCAA9D','FFFFFF','FFFFFF','FFFFFF','FFFFFF','DCAA9D','FFFFFF','FFFFFF','DCAA9D','FFFFFF','DCAA9D','DCAA9D','FFFFFF','FFFFFF','DCAA9D','E5A6A6','FFFFFF','FAE1DB','赤','E66161'),
    133138(3,'yellow', 'FFFFFF','E9DC90','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','E9DC90','FFFFFF','FFFFFF','FFFFFF','FFFFFF','E9DC90','FFFFFF','FFFFFF','E9DC90','FFFFFF','E9DC90','E9DC90','FFFFFF','FFFFFF','E9DC90','F2D299','FFFFFF','FFF9D6','黄色','FFDE1E'),
     
    178183UPDATE c_diary INNER JOIN c_member USING (c_member_id) SET c_diary.public_flag = c_member.public_flag_diary ;
    179184
    180185-- update15
    181 INSERT INTO `c_admin_config` values (NULL,'OPENPNE_ENABLE_ROLLOVER',0);
    182  No newline at end of file
     186INSERT INTO `c_admin_config` values (NULL,'OPENPNE_ENABLE_ROLLOVER',0);
     187
     188INSERT INTO `c_admin_config` values (NULL,'OPENPNE_USE_FLASH_LIST',0);
  • setup/config/config.php.sample-img

     
    4343// 画像変換後のJPEGのQUALITY値
    4444define('OPENPNE_IMG_JPEG_QUALITY', 75);
    4545
    46 // ImageMagickを使う(ただし、GDも必要)
    47 //define('USE_IMAGEMAGICK', true);
     46// ImageMagick使用設定
     47// 0: off ... ImageMagickを使わない
     48// 1: on  ... GIFのみImageMagickを使う
     49// 2: on  ... JEPG,PNG,GIFにImageMagickを使う(ただし、GDも必要)
     50define('USE_IMAGEMAGICK', 0);
    4851
    4952// ImageMagick の convertコマンドのパス
    5053//define('IMGMAGICK_APP', '/usr/bin/convert');
  • public_html/img.php

     
    3535    'jpeg_quality' => OPENPNE_IMG_JPEG_QUALITY,
    3636);
    3737
    38 if (defined('USE_IMAGEMAGICK') && USE_IMAGEMAGICK) {
     38if (defined('USE_IMAGEMAGICK')) {
     39    switch (USE_IMAGEMAGICK) {
     40        case 0:
     41        $use_IM = false;
     42        break;
     43        case 1:
     44        $pieces = explode('.', $_GET['filename']);
     45        $source_format = OpenPNE_Img::check_format(array_pop($pieces));
     46        $use_IM = ($source_format == 'gif');
     47        break;
     48        case 2:
     49        $use_IM = true;
     50        break;
     51        default:
     52        exit;
     53    }
     54} else {
     55        $use_IM = false;
     56}
     57
     58if ($use_IM) {
    3959    require_once 'OpenPNE/Img/ImageMagick.php';
    4060    $img =& new OpenPNE_Img_ImageMagick($options);
    4161} else {
  • webapp_biz/modules/biz/do/h_home_insert_biz_state.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 class biz_do_h_home_insert_biz_state extends OpenPNE_Action
    8 {
    9     function execute($requests)
    10     {
    11         $u = $GLOBALS['AUTH']->uid();
    12 
    13         // --- リクエスト変数
    14         $state = $request['state'];
    15         $member_id = $request['member_id'];
    16         // ----------
    17 
    18         biz_changeState($member_id, $state);
    19 
    20         $p = array();
    21         openpne_redirect('pc', 'page_h_home', $p);
    22     }
    23 }
    24 
    25 ?>
  • webapp_biz/modules/biz/lib/mysql_functions.php

     
    11391139    biz_deleteImage($filename);
    11401140}
    11411141
    1142 function biz_insertState($member_id, $state)
    1143 {
    1144     $data = array(
    1145         'member_id' => intval($member_id),
    1146         'state' => $state,
    1147     );
    1148     return db_insert('biz_state', $data);
    1149 }
    1150 
    1151 function biz_changeState($member_id, $new)
    1152 {
    1153     $state = biz_getState($member_id);
    1154 
    1155     if (!$state) {
    1156         //新規作成
    1157         $result = biz_insertState($member_id, $new);
    1158     } else {
    1159         $sql = 'UPDATE `biz_state` SET `state` = ? WHERE `member_id` = ?';
    1160         $params = array($new, intval($member_id));
    1161         $result = db_query($sql, $params);
    1162     }
    1163 
    1164     return $result;
    1165 }
    1166 
    11671142function biz_changeNickname($member_id, $new)
    11681143{
    11691144    $sql = 'UPDATE `c_member` SET `nickname` = ? WHERE `c_member_id` = ?';
     
    12151190    client_redirect_absolute($url);
    12161191}
    12171192
     1193//------------------------------
     1194//mail
     1195
     1196/**
     1197 * スケジュール通知メールを送信する
     1198 */
     1199function biz_do_common_send_schedule_mail()
     1200{
     1201    $y = date("Y");
     1202    $m = date("m");
     1203    $d = date("d");
     1204    $c_schedule_list = biz_getDateSchedule($y, $m, $d);
     1205
     1206    $send_list = array();
     1207    foreach ($c_schedule_list as $schedule_id) {
     1208        $value = biz_getScheduleInfo($schedule_id);
     1209        $c_member_id = $value['c_member_id'];
     1210        $send_list[$c_member_id][] = $value;
     1211    }
     1212
     1213    foreach ($send_list as $key => $value) {
     1214        $c_member_secure = db_common_c_member_secure4c_member_id($key);
     1215        $pc_address = $c_member_secure['pc_address'];
     1216
     1217        $params = array(
     1218            "c_member" => db_common_c_member4c_member_id_LIGHT($key),
     1219            "c_schedule_list" => $value,
     1220        );
     1221        var_dump($pc_address, $params);
     1222        fetch_send_mail($pc_address, 'm_pc_schedule_mail', $params);
     1223    }
     1224}
    12181225?>
  • webapp_biz/modules/biz/validate/do/h_home_insert_biz_state.ini

     
    1 [state]
    2 type = "string"
    3 
    4 [member_id]
    5 type = "int"
  • webapp_biz/modules/ktai/templates/f_home.tpl

     
    1717({$c_siteadmin|smarty:nodefaults})
    1818<hr>
    1919({/if})
    20 
    21 ◆<a href="({t_url m=ktai_biz a=page_fh_calendar_week})&amp;target_id=({$target_c_member.c_member_id})&amp;({$tail})">週間カレンダー</a><br><br>
    22 
    2320({if $target_c_member.image_filename})
    2421★<a href="({t_url m=ktai a=page_f_show_image})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">写真を見る</a><br>
    2522<br>
     
    2926現在、({$WORD_FRIEND_HALF})承認待ちです<br>
    3027<br>
    3128({/if})
    32 
    33 <a href="({t_url m=ktai a=page_f_message_send})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">メッセージを送る</a><br>
    34 <a href="({t_url m=ktai a=do_f_bookmark_add_insert_c_bookmark})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">お気に入りに追加</a><br>
    35 ({if $relation.friend})
    36 <a href="({t_url m=ktai a=page_f_intro_edit})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">紹介文を書く</a><br>
    37 ({/if})
    38 <br>
    39 
    40 ({if $relation.friend==0})
    41 ({if $relation.wait==0})
    42 <a href="({t_url m=ktai a=page_f_link_request})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">({$WORD_MY_FRIEND_HALF})に加える</a><br>
    43 <br>
    44 ({/if})
    45 ({/if})
    46 
    47 ({if $c_diary_list})
    48 ◆日記<br>
    49 ({foreach from=$c_diary_list item=c_diary})
    50 ({$c_diary.r_date|date_format:"%y/%m/%d"})-<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$c_diary.c_diary_id})&amp;({$tail})">({$c_diary.subject})</a>(({$c_diary.comment_count}))<br>
    51 ({/foreach})
    52 <a href="({t_url m=ktai a=page_fh_diary_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">→もっと読む</a><br>
    53 <br>
    54 ({/if})
    55 ◆({$WORD_FRIEND_HALF})リスト<br>
    56 ({foreach from=$c_friend_list item=c_friend})
    57 <a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_friend.c_member_id_to})&amp;({$tail})">({$c_friend.nickname})</a>(({$c_friend.count_friend}))<br>
    58 ({/foreach})
    59 <a href="({t_url m=ktai a=page_fh_friend_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">→すべて表示</a><br>
    60 <a href="({t_url m=ktai a=page_fh_intro})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">紹介文を見る</a><br>
    61 <br>
    62 ◆参加コミュニティ<br>
    63 ({foreach from=$c_commu_list item=c_commu})
    64 <a href="({t_url m=ktai a=page_c_home})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">({$c_commu.name})</a>(({$c_commu.count_members}))<br>
    65 ({/foreach})
    66 <a href="({t_url m=ktai a=page_fh_com_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">→すべて表示</a><br>
    67 <br>
    68 [プロフィール]<br>
     29<a href="#menu" accesskey="1">1.メニュー</a>({if ($relation.friend||$target_c_member.public_flag_diary=="public")&&$c_diary_list})|<a href="#news" accesskey="2">2.新着リスト</a>({/if})|<a href="#intro" accesskey="3">3.プロフィール</a>
     30<hr>
    6931({strip})
    70 ({capture name="nick"})
    71 ニックネーム:({$target_c_member.nickname})<br>
    72 ({/capture})
    7332({capture name="birth"})
    7433({if $target_c_member.age !== NULL})年齢:({$target_c_member.age})歳<br>({/if})
    7534誕生日:({$target_c_member.birth_month})月({$target_c_member.birth_day})日<br>
     
    10059({$smarty.capture.birth|smarty:nodefaults})
    10160({/if})
    10261
    103 ({if $item.value})
     62({if $item.value && $item.form_type != 'textarea'})
    10463({$item.caption}):
    10564
    106 ({if $item.form_type == 'textarea'})
    107     <br>({$item.value|nl2br})
    108 ({elseif $item.form_type == 'checkbox'})
     65({if $item.form_type == 'checkbox'})
    10966    ({$item.value|@t_implode:", "})
    11067({else})
    11168    ({$item.value})
     
    12683({if !$_cnt_nick})({$smarty.capture.nick|smarty:nodefaults})({/if})
    12784({if !$_cnt_birth})({$smarty.capture.birth|smarty:nodefaults})({/if})
    12885({/if})
    129 
    13086({/strip})
    13187
    13288<hr>
     89<a name="menu">メニュー</a>
     90<br>
     91◆<a href="({t_url m=ktai_biz a=page_fh_calendar_week})&amp;target_id=({$target_c_member.c_member_id})&amp;({$tail})">週間カレンダー</a><br>
     92◆<a href="({t_url m=ktai a=page_f_message_send})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">メッセージを送る</a><br>
     93◆<a href="({t_url m=ktai a=do_f_bookmark_add_insert_c_bookmark})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">お気に入りに追加</a><br>
     94◆紹介文<br>
     95({if $relation.friend})
     96├<a href="({t_url m=ktai a=page_f_intro_edit})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">書く</a><br>
     97({/if})
     98└<a href="({t_url m=ktai a=page_fh_intro})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">読む</a><br>
     99({if $relation.friend==0})
     100({if $relation.wait==0})
     101◆<a href="({t_url m=ktai a=page_f_link_request})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">({$WORD_MY_FRIEND_HALF})に加える</a><br>
     102({/if})
     103({/if})
    133104
    134 ({$inc_ktai_footer|smarty:nodefaults})
     105<hr>
     106<a name="news">新着リスト</a>
     107<br>
     108({if $c_diary_list})
     109<font color="green">[日記]</font><br>
     110({foreach from=$c_diary_list item=c_diary})
     111 ({$c_diary.r_date|date_format:"%y/%m/%d"})-<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$c_diary.c_diary_id})&amp;({$tail})">({$c_diary.subject})</a>(({$c_diary.comment_count}))<br>
     112({/foreach})
     113<a href="({t_url m=ktai a=page_fh_diary_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">→もっと読む</a><br>
     114<a href="#top">→このページの先頭へ戻る</a>
     115<hr>
     116({/if})
     117<font color="green">[({$WORD_FRIEND_HALF})リスト]</font><br>
     118({foreach from=$c_friend_list item=c_friend})
     119 <a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_friend.c_member_id_to})&amp;({$tail})">({$c_friend.nickname})</a>(({$c_friend.count_friend}))<br>
     120({/foreach})
     121<a href="({t_url m=ktai a=page_fh_friend_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">→すべて表示</a><br>
     122<a href="({t_url m=ktai a=page_fh_intro})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">紹介文を見る</a><br>
     123<a href="#top">→このページの先頭へ戻る</a>
     124<hr>
     125<font color="green">[参加コミュニティ]</font><br>
     126({foreach from=$c_commu_list item=c_commu})
     127 <a href="({t_url m=ktai a=page_c_home})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">({$c_commu.name})</a>(({$c_commu.count_members}))<br>
     128({/foreach})
     129<a href="({t_url m=ktai a=page_fh_com_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">→すべて表示</a><br>
     130<a href="#top">→このページの先頭へ戻る</a>
     131
     132<hr>
     133<a name="intro">プロフィール</a>
     134<br>
     135({foreach from=$target_c_member.profile key=key item=item})
     136({if $item.form_type == 'textarea'})
     137<font color="green">[({$item.caption})]</font><br>
     138({$item.value|nl2br})
     139({/if})
     140({/foreach})
     141<hr>
     142
     143({$inc_ktai_footer|smarty:nodefaults})
     144 No newline at end of file
  • webapp_biz/modules/ktai/templates/h_home.tpl

     
    3737<br>
    3838({/if})
    3939
    40 ◆<a href="({t_url m=ktai_biz a=page_fh_calendar_week})&amp;({$tail})">週間カレンダー</a><br><br>
    41 
    42 ◆<a href="({t_url m=ktai a=page_h_message_box})&amp;({$tail})">メッセージBOX</a><br>
     40<a href="#news" accesskey="1">1.新着リスト</a>| <a href="#config" accesskey="2">2.設定変更</a>
     41<hr>
     42◆<a href="({t_url m=ktai_biz a=page_fh_calendar_week})&amp;({$tail})">週間カレンダー</a><br>
     43◆日記<br>
     44├<a href="({t_url m=ktai a=page_h_diary_edit})&amp;({$tail})">書く</a>|<a href="mailto:({$blog_address})">メール投稿</a><br>
     45└読む[<a href="({t_url m=ktai a=page_fh_diary_list})&amp;({$tail})">自分</a>|<a href="({t_url m=ktai a=page_h_diary_list_friend})&amp;({$tail})">友達</a>|<a href="({t_url m=ktai a=page_h_diary_list_all})&amp;({$tail})">全体</a>]<br>
     46◆<a ({if $c_friend_count})href="({t_url m=ktai a=page_fh_friend_list})&amp;({$tail})" ({/if})name="menu">({$WORD_FRIEND_HALF})</a>(({$c_friend_count}))[({if $smarty.const.IS_USER_INVITE && ($smarty.const.OPENPNE_REGIST_FROM != $smarty.const.OPENPNE_REGIST_FROM_NONE)})<a href="({t_url m=ktai a=page_h_invite})&amp;({$tail})">誘う</a>|({/if})<a href="({t_url m=ktai a=page_h_friend_find_all})&amp;({$tail})">探す</a>]<br>
     47◆<a ({if $fh_com_count_user})href="({t_url m=ktai a=page_fh_com_list})&amp;({$tail})"({/if})>コミュニティ</a>(({$fh_com_count_user}))[<a href="({t_url m=ktai a=page_h_com_find_all})&amp;({$tail})">探す</a>|<a href="({t_url m=ktai a=page_h_com_add})&amp;({$tail})">作る</a>]<br>
     48◆<a href="({t_url m=ktai a=page_h_message_box})&amp;({$tail})">メッセージ</a><br>
     49◆<a href="({t_url m=ktai a=page_h_ranking})&amp;({$tail})">ランキング</a><br>
     50◆<a href="({t_url m=ktai a=page_fh_intro})&amp;({$tail})">紹介文</a><br>
    4351◆<a href="({t_url m=ktai a=page_h_ashiato})&amp;({$tail})">あしあと</a><br>
    44 ◆<a href="({t_url m=ktai a=page_h_confirm_list})&amp;({$tail})">承認待ちリスト</a><br>
    45 ◆<a href="({t_url m=ktai a=page_fh_diary_list})&amp;({$tail})">my日記</a><br>
    46 <a href="({t_url m=ktai a=page_h_diary_edit})&amp;({$tail})">→日記を書く</a><br>
    47 ◆<a href="({t_url m=ktai a=page_h_diary_list_all})&amp;({$tail})">最新日記</a><br>
    48 ◆<a href="({t_url m=ktai a=page_h_bookmark_list})&amp;({$tail})">お気に入り</a><br>
    49 ◆<a href="({t_url m=ktai a=page_h_ranking})&amp;({$tail})">ランキング</a><br>
    50 ◆<a href="({t_url m=ktai a=page_fh_intro})&amp;({$tail})">紹介文</a><br>
    51 <br>
    52 
     52<hr>
     53<a name="news">新着リスト</a>
    5354({if $c_diary_friend_list})
    5455<font color="green">[({$WORD_FRIEND_HALF})最新日記]</font><br>
    5556({foreach from=$c_diary_friend_list item=item})
    5657({$item.r_date|date_format:"%m/%d"})(({$item.nickname|t_truncate:17:""}))<br>
    57 <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:20:".."})</a>(({$item.count_comments}))({if $item.image_filename_1 || $item.image_filename_2 || $item.image_filename_3})({/if})<br>
     58 <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:20:".."})</a>(({$item.count_comments}))({if $item.image_filename_1 || $item.image_filename_2 || $item.image_filename_3})({/if})<br>
    5859({/foreach})
    5960<a href="({t_url m=ktai a=page_h_diary_list_friend})&amp;({$tail})">→もっと見る</a><br>
    60 
    61 <br>
     61<a href="#top">→このページの先頭へ戻る</a>
     62<hr>
    6263({/if})
    6364
    6465({if $c_diary_my_comment_list})
    6566<font color="green">[日記コメント記入履歴]</font><br>
    6667({foreach from=$c_diary_my_comment_list item=item})
    6768({$item.r_datetime|date_format:"%m/%d"})(({$item.nickname|t_truncate:17:""}))<br>
    68 <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:20:".."})</a>(({$item.num_comment}))({if $item.image_filename_1 || $item.image_filename_2 || $item.image_filename_3})({/if})<br>
     69 <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:20:".."})</a>(({$item.num_comment}))({if $item.image_filename_1 || $item.image_filename_2 || $item.image_filename_3})({/if})<br>
    6970({/foreach})
    7071<a href="({t_url m=ktai a=page_h_diary_comment_list})&amp;({$tail})">→もっと見る</a><br>
    71 <br>
     72<a href="#top">→このページの先頭へ戻る</a>
     73<hr>
    7274({/if})
    7375
    7476({if $c_commu_topic_list})
    7577<font color="green">[コミュニティ最新書き込み]</font><br>
    7678({foreach from=$c_commu_topic_list item=item})
    7779({$item.r_datetime|date_format:"%m/%d"})(({$item.c_commu_name|t_truncate:17:""}))<br>
    78 <a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$item.c_commu_topic_id})&amp;({$tail})">({$item.c_commu_topic_name|t_truncate:19:".."})</a>(({$item.number}))({if $item.image_filename})({/if})<br>
     80 <a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$item.c_commu_topic_id})&amp;({$tail})">({$item.c_commu_topic_name|t_truncate:19:".."})</a>(({$item.number}))({if $item.image_filename})({/if})<br>
    7981({/foreach})
    8082<a href="({t_url m=ktai a=page_h_com_comment_list})&amp;({$tail})">→もっと見る</a><br>
    81 <br>
     83<a href="#top">→このページの先頭へ戻る</a>
     84<hr>
    8285({/if})
    8386
     87({if $c_commu_list})
    8488<font color="green">[参加コミュニティ({if $count_commu})(({$count_commu}))({/if})]</font><br>
    85 ({if $c_commu_list})
    8689({foreach from=$c_commu_list item=commu})
    87 <a href="({t_url m=ktai a=page_c_home})&amp;target_c_commu_id=({$commu.c_commu_id})&amp;({$tail})">({$commu.name})</a>(({$commu.count_members}))<br>
     90 <a href="({t_url m=ktai a=page_c_home})&amp;target_c_commu_id=({$commu.c_commu_id})&amp;({$tail})">({$commu.name})</a>(({$commu.count_members}))<br>
    8891({/foreach})
    8992<a href="({t_url m=ktai a=page_fh_com_list})&amp;({$tail})">→もっと見る</a><br>
    90 ({else})
    91 参加していません<br>
     93<a href="#top">→このページの先頭へ戻る</a>
     94<hr>
    9295({/if})
    93 <br>
    94 <a href="({t_url m=ktai a=page_h_com_find_all})&amp;({$tail})">→コミュニティ検索</a><br>
    95 <br>
    9696({if $c_friend_list})
    9797<font color="green">[({$WORD_MY_FRIEND_HALF})リスト]</font><br>
    9898({foreach from=$c_friend_list item=friend})
    99 <a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$friend.c_member_id_to})&amp;({$tail})">({$friend.nickname})</a>(({$friend.count_friend}))<br>
     99 <a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$friend.c_member_id_to})&amp;({$tail})">({$friend.nickname})</a>(({$friend.count_friend}))<br>
    100100({/foreach})
    101101<a href="({t_url m=ktai a=page_fh_friend_list})&amp;({$tail})">→もっと見る</a><br>
    102102<a href="({t_url m=ktai a=page_h_manage_friend})&amp;({$tail})">→({$WORD_MY_FRIEND_HALF})管理</a><br>
     103<a href="#top">→このページの先頭へ戻る</a><br>
    103104({/if})
    104 <br>
    105 <a href="({t_url m=ktai a=page_h_friend_find_all})&amp;({$tail})">メンバー検索</a><br>
     105
    106106<hr>
    107 ({if $smarty.const.IS_USER_INVITE && ($smarty.const.OPENPNE_REGIST_FROM != $smarty.const.OPENPNE_REGIST_FROM_NONE)})
    108 <a href="({t_url m=ktai a=page_h_invite})&amp;({$tail})">友人を招待</a><br>
     107<a name="config">■設定変更</a>
    109108<br>
    110 ({/if})
    111 <a href="({t_url m=ktai a=page_h_config_prof})&amp;({$tail})">プロフィール変更</a><br>
    112 <a href="({t_url m=ktai a=page_h_config_image})&amp;({$tail})">プロフィール写真変更</a><br>
    113 <a href="({t_url m=ktai a=page_h_config})&amp;({$tail})">設定変更</a><br>
    114 <br>
     109├<a href="({t_url m=ktai a=page_h_config_prof})&amp;({$tail})">プロフィール</a><br>
     110├<a href="({t_url m=ktai a=page_h_config_image})&amp;({$tail})">写真</a><br>
     111└<a href="({t_url m=ktai a=page_h_config})&amp;({$tail})">その他</a><br>
    115112
     113<hr>
    116114<a href="({t_url m=ktai a=page_o_sns_kiyaku})">利用規約</a><br>
    117115<a href="({t_url m=ktai a=page_o_sns_privacy})">プライバシーポリシー</a><br>
     116<hr>
     117<a href="#news" accesskey="1">1.新着リスト</a>| <a href="#config" accesskey="2">2.設定変更</a>|
    118118
    119119({$inc_ktai_footer|smarty:nodefaults})
  • webapp_biz/templates/mail/m_pc_schedule_mail.tpl

     
     1【({$SNS_NAME})】({$smarty.now|date_format:"%m/%d"})予定のお知らせ通知
     2({$c_member.nickname}) さん、おはようございます。
     3
     4({$SNS_NAME})からのお知らせです。
     5カレンダーに追加された予定当日になりましたので、お知らせいたします。
     6今日の予定は以下になっています。
     7
     8({foreach from=$c_schedule_list item=item})
     9件名:({$item.title})
     10({/foreach})
     11
     12以下のURLをクリックして詳細をご確認ください。
     13お知らせメールの通知設定は予定作成時に変更可能です。
     14
     15({t_url_mail m=biz a=page_fh_biz_schedule_calendar})
     16
     17なお登録メールアドレスの変更などは設定変更画面からおこなってください。
     18
     19({$SNS_NAME})ログインページ↓
     20({$OPENPNE_URL})
     21
     22
     23({$inc_signature})
     24 No newline at end of file
  • bin/tool_send_schedule_mail.php

     
    77require_once './config.inc.php';
    88require_once OPENPNE_WEBAPP_DIR . '/init.inc';
    99
    10 do_common_send_schedule_mail();
     10if (USE_BIZ_DIR) {
     11    require_once OPENPNE_MODULES_BIZ_DIR . '/biz/init.inc';
     12    biz_do_common_send_schedule_mail();
     13} else {
     14    do_common_send_schedule_mail();
     15}
    1116
    1217?>
  • config.php.sample

     
    281281// 画像変換後のJPEGのQUALITY値
    282282define('OPENPNE_IMG_JPEG_QUALITY', 75);
    283283
    284 // ImageMagickを使う(ただし、GDも必要)
    285 define('USE_IMAGEMAGICK', false);
     284// ImageMagick使用設定
     285// 0: off ... ImageMagickを使わない
     286// 1: on  ... GIFのみImageMagickを使う
     287// 2: on  ... JEPG,PNG,GIFにImageMagickを使う(ただし、GDも必要)
     288define('USE_IMAGEMAGICK', 0);
    286289
    287290// ImageMagick の convertコマンドのパス
    288291define('IMGMAGICK_APP', '/usr/bin/convert');
  • webapp/lib/OpenPNE/Config.php

     
    3737            'AFFILIATE_TAG',
    3838            'UNUSED_MAILS',
    3939            'DISPLAY_OPENPNE_INFO',
     40            'USE_EXTRA_SERVICE',
     41
    4042        );
    4143    }
    4244
  • webapp/lib/db/member.php

     
    259259        $sql .= " WHERE c_profile_id = ? AND public_flag = 'public'";
    260260        $params = array(intval($value['c_profile_id']));
    261261
    262         if ($value['form_type'] == "text" || $value['form_type'] == 'textarea') {
     262        if ($value['form_type'] == "text" || $value['form_type'] == "textlong" || $value['form_type'] == 'textarea') {
    263263            $sql .= " AND value LIKE ?";
    264264            $params[] = '%'.$value['value'].'%';
    265265        } elseif (is_array($value['c_profile_option_id'])) {
     
    724724
    725725        switch ($c_profile['form_type']) {
    726726        case 'text':
     727        case 'textlong':
    727728        case 'textarea':
    728729            $value = $v;
    729730            $c_profile_option_id = 0;
  • webapp/lib/db/api.php

     
    5050    return $token;
    5151}
    5252
     53function get_api_sessionid($c_member_id)
     54{
     55    if (!$c_member_id) {
     56        return;
     57    }
     58    // Session
     59    $api_token = OPENPNE_API_TOKEN;
     60    $c_member_token = db_api_get_member_token($c_member_id);
     61    $datetime=date("YmdHis");
     62    $api_session_id = md5($api_token . $c_member_id . $c_member_token . $datetime)."&mid=".$c_member_id."&dt=".$datetime;
     63    return $api_session_id;
     64}
     65
    5366?>
  • webapp/modules/pc/do/h_config_prof.php

     
    3131
    3232        // 値の整合性をチェック(DB)
    3333        $c_member_profile_list = do_config_prof_check_profile($validator->getParams(), $_REQUEST['public_flag']);
    34 
    3534        // 必須項目チェック
    3635        $profile_list = db_common_c_profile_list4null();
    3736        foreach ($profile_list as $profile) {
     
    130129                );
    131130                switch ($profile['form_type']) {
    132131                case 'text':
     132                case 'textlong':
    133133                case 'textarea':
    134134                    $rule['type'] = $profile['val_type'];
    135135                    $rule['regexp'] = $profile['val_regexp'];
  • webapp/modules/pc/do/o_regist_prof.php

     
    231231                );
    232232                switch ($profile['form_type']) {
    233233                case 'text':
     234                case 'textlong':
    234235                case 'textarea':
    235236                    $rule['type'] = $profile['val_type'];
    236237                    $rule['regexp'] = $profile['val_regexp'];
  • webapp/modules/pc/validate/page/h_free_page.ini

     
     1[c_free_page_id]
     2type = "int"
     3required = 1
  • webapp/modules/pc/page/h_home.php

     
    118118            $this->set('bookmark_count', db_bookmark_count($u));
    119119        }
    120120
     121        // API用セッションID
     122        $this->set('api_session_id', get_api_sessionid($u));
     123
    121124        // アクセス日時を記録
    122125        p_common_do_access($u);
    123126
  • webapp/modules/pc/page/h_err_free_page.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 pc_page_h_err_free_page extends OpenPNE_Action
     8{
     9    function execute($requests)
     10    {
     11        $u = $GLOBALS['AUTH']->uid();
     12
     13        $this->set('inc_navi', fetch_inc_navi('h'));
     14        return 'success';
     15    }
     16}
     17
     18?>
  • webapp/modules/pc/page/h_free_page.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
     7require_once OPENPNE_MODULES_DIR . '/admin/lib/db_admin.php';
     8
     9class pc_page_h_free_page extends OpenPNE_Action
     10{
     11    function execute($requests)
     12    {
     13        $u = $GLOBALS['AUTH']->uid();
     14
     15        $c_free_page = db_admin_get_c_free_page_one($requests['c_free_page_id']);
     16        //フリーページが存在しない
     17        if (!$c_free_page) {
     18            $p = array('msg' => "指定されたフリーページは存在しません");
     19            openpne_redirect('pc', 'page_h_err_free_page', $p);
     20        }
     21
     22
     23        $this->set('inc_navi', fetch_inc_navi('h'));
     24        $this->set("c_free_page", $c_free_page);
     25        return 'success';
     26    }
     27}
     28
     29?>
  • webapp/modules/pc/templates/h_config_prof.tpl

     
    235235({strip})
    236236({if $profile.form_type == 'text'})
    237237    <input type="text" size="30" name="profile[({$profile.name})]" value="({$c_member.profile[$profile.name].value})">
     238({elseif $profile.form_type == 'textlong'})
     239    <input type="text" size="60" name="profile[({$profile.name})]" value="({$c_member.profile[$profile.name].value})">
    238240({elseif $profile.form_type == 'textarea'})
    239241    <textarea name="profile[({$profile.name})]" rows="6" cols="50">({$c_member.profile[$profile.name].value})</textarea>
    240242({elseif $profile.form_type == 'select'})
     
    269271    ({if $_cnt % 3 != 0})</tr>({/if})
    270272    </table>
    271273({/if})
     274({if $profile.info})
     275<br><span class="caution">({$profile.info})</span>
     276({/if})
    272277({/strip})
    273278
    274279</div>
  • 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({if $smarty.const.USE_EXTRA_SERVICE})
    2021<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;">
     22({/if})
    2123</td>
    2224</tr>
    2325</table>
  • webapp/modules/pc/templates/h_search.tpl

     
    141141    <input type="checkbox" name="profile[({$profile.name})][]" value="({$item.c_profile_option_id})">({$item.value})
    142142    ({/foreach})
    143143    *})
    144 ({elseif $profile.form_type == 'text' || $profile.form_type == 'textarea'})
     144({elseif $profile.form_type == 'text' || $profile.form_type == 'textlong' || $profile.form_type == 'textarea'})
    145145    <input name="profile[({$profile.name})]" size="30" type="text">
    146146({/if})
    147147
  • webapp/modules/pc/templates/inc_f_home_h_prof.tpl

     
    936936<td class="border_01 bg_02 padding_s" style="width:332px;border-top:none;">
    937937
    938938({if $item.form_type == 'textarea'})
    939     ({$item.value|t_url2a|nl2br})
     939    ({$item.value|nl2br|t_url2cmd|t_cmd})
    940940({elseif $item.form_type == 'checkbox'})
    941941    ({$item.value|@t_implode:", "})
    942942({else})
  • webapp/modules/pc/templates/h_err_free_page.tpl

     
     1({$inc_html_header|smarty:nodefaults})
     2<body>
     3({ext_include file="inc_extension_pagelayout_top.tpl"})
     4<table class="mainframe" border="0" cellspacing="0" cellpadding="0">
     5<tr>
     6<td class="container inc_page_header">
     7({$inc_page_header|smarty:nodefaults})
     8</td>
     9</tr>
     10<tr>
     11<td class="container inc_navi">
     12({$inc_navi|smarty:nodefaults})
     13</td>
     14</tr>
     15<tr>
     16<td class="container main_content">
     17<table class="container" border="0" cellspacing="0" cellpadding="0">({*BEGIN:container*})
     18<tr>
     19<td class="full_content" align="center">
     20({***************************})
     21({**ここから:メインコンテンツ**})
     22({***************************})
     23
     24({ext_include file="inc_alert_box.tpl"})({* エラーメッセージコンテナ *})
     25<br>
     26({***************************})
     27({**ここまで:メインコンテンツ**})
     28({***************************})
     29</td>
     30</tr>
     31</table>({*END:container*})
     32</td>
     33</tr>
     34<tr>
     35<td class="container inc_page_footer">
     36({$inc_page_footer|smarty:nodefaults})
     37</td>
     38</tr>
     39</table>
     40({ext_include file="inc_extension_pagelayout_bottom.tpl"})
     41</body>
     42</html>
     43
  • webapp/modules/pc/templates/h_free_page.tpl

     
     1({$inc_html_header|smarty:nodefaults})
     2<body>
     3({ext_include file="inc_extension_pagelayout_top.tpl"})
     4<table class="mainframe" border="0" cellspacing="0" cellpadding="0">
     5<tr>
     6<td class="container inc_page_header">
     7({$inc_page_header|smarty:nodefaults})
     8</td>
     9</tr>
     10<tr>
     11<td class="container inc_navi">
     12({$inc_navi|smarty:nodefaults})
     13</td>
     14</tr>
     15<tr>
     16<td class="container main_content">
     17<table class="container" border="0" cellspacing="0" cellpadding="0">({*BEGIN:container*})
     18<tr>
     19<td class="full_content" align="center">
     20({***************************})
     21({**ここから:メインコンテンツ**})
     22({***************************})
     23
     24<img src="./skin/dummy.gif" class="v_spacer_l">
     25
     26<!-- ****************************** -->
     27<!-- ******ここから:拡張ページ****** -->
     28<table border="0" cellspacing="0" cellpadding="0" style="width:650px;margin:0px auto;" class="border_07">
     29<tr>
     30<td style="width:7px;" class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     31<td style="width:636px;" class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     32<td style="width:7px;" class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     33</tr>
     34<tr>
     35<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     36<td class="bg_01" align="center">
     37<!-- *ここから:拡張ページ>内容* -->
     38({*ここから:body*})
     39<!-- ここから:主内容 -->
     40<table border="0" cellspacing="0" cellpadding="0" style="width:636px;margin:0px auto;">
     41<tr>
     42<td style="width:636px;height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     43</tr>
     44<tr>
     45<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     46<td style="width:634px;" class="bg_03" align="left" valign="middle">
     47
     48<div style="padding:10px 90px;" class="bg_02">
     49({$c_free_page.body|smarty:nodefaults|nl2br})<br>
     50</div>
     51
     52</td>
     53<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     54</tr>
     55<tr>
     56<td style="width:636px;height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     57</tr>
     58</table>
     59<!-- ここまで:主内容 -->
     60({*ここまで:body*})
     61<!-- *ここまで:拡張ページ>>内容* -->
     62</td>
     63<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     64</tr>
     65<tr>
     66<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     67<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     68<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
     69</tr>
     70</table>
     71<!-- ******ここまで:拡張ページ****** -->
     72<!-- ****************************** -->
     73
     74<img src="./skin/dummy.gif" class="v_spacer_l">
     75<img src="./skin/dummy.gif" class="v_spacer_l">
     76
     77({***************************})
     78({**ここまで:メインコンテンツ**})
     79({***************************})
     80</td>
     81</tr>
     82</table>({*END:container*})
     83</td>
     84</tr>
     85<tr>
     86<td class="container inc_page_footer">
     87({$inc_page_footer|smarty:nodefaults})
     88</td>
     89</tr>
     90</table>
     91({ext_include file="inc_extension_pagelayout_bottom.tpl"})
     92</body>
     93</html>
     94
  • webapp/modules/pc/templates/o_regist_prof.tpl

     
    226226({strip})
    227227({if $profile.form_type == 'text'})
    228228    <input type="text" size="30" name="profile[({$profile.name})]" value="({$profs.profile[$profile.name]})">
     229({elseif $profile.form_type == 'textlong'})
     230    <input type="text" size="60" name="profile[({$profile.name})]" value="({$profs.profile[$profile.name]})">
    229231({elseif $profile.form_type == 'textarea'})
    230232    <textarea name="profile[({$profile.name})]" rows="6" cols="50">({$profs.profile[$profile.name]})</textarea>
    231233({elseif $profile.form_type == 'select'})
     
    260262    ({if $_cnt % 3 != 0})</tr>({/if})
    261263    </table>
    262264({/if})
     265({if $profile.info})
     266<br><span class="caution">({$profile.info})</span>
     267({/if})
    263268({/strip})
    264269
    265270</div>
  • webapp/modules/pc/templates/h_calendar.tpl

     
    5353<table border="0" cellspacing="0" cellpadding="0" style="width:670px;" class="border_01">
    5454<tr>
    5555<td style="width:468px;padding:2px 0px;" class="bg_05">
     56({if $smarty.const.USE_EXTRA_SERVICE})
    5657&nbsp;<img src="({t_img_url_skin filename=icon_weather_FC})" class="icon">
    5758<a href="({$weather_url})" target="_blank">天気予報を見る</a>
    58 
     59({/if})
    5960&nbsp;<img src="({t_img_url_skin filename=icon_schedule})" class="icon">
    6061<a href="({t_url m=pc a=page_h_schedule_add})">予定を追加</a>&nbsp;
    6162
  • webapp/modules/admin/do/insert_c_free_page.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_do_insert_c_free_page extends OpenPNE_Action
     9{
     10    function execute($requests)
     11    {
     12        db_admin_insert_c_free_page($requests['body']);
     13
     14        admin_client_redirect('list_c_free_page', 'フリーページを追加しました');
     15    }
     16}
     17
     18?>
  • webapp/modules/admin/do/update_c_free_page.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_do_update_c_free_page extends OpenPNE_Action
     9{
     10    function execute($requests)
     11    {
     12        db_admin_update_c_free_page($requests['c_free_page_id'], $requests['body']);
     13
     14        admin_client_redirect('list_c_free_page', 'フリーページを編集しました');
     15    }
     16}
     17
     18?>
  • webapp/modules/admin/do/insert_c_profile.php

     
    2121        db_admin_insert_c_profile(
    2222            $requests['name'],
    2323            $requests['caption'],
     24            $requests['info'],
    2425            $requests['is_required'],
    2526            $requests['public_flag_edit'],
    2627            $requests['public_flag_default'],
  • webapp/modules/admin/do/delete_c_free_page.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_do_delete_c_free_page extends OpenPNE_Action
     9{
     10    function execute($requests)
     11    {
     12        db_admin_delete_c_free_page($requests['c_free_page_id']);
     13
     14        admin_client_redirect('list_c_free_page', 'フリーページを削除しました');
     15    }
     16}
     17
     18?>
  • webapp/modules/admin/do/update_c_profile.php

     
    2424        db_admin_update_c_profile($requests['c_profile_id'],
    2525            $requests['name'],
    2626            $requests['caption'],
     27            $requests['info'],
    2728            $requests['is_required'],
    2829            $requests['public_flag_edit'],
    2930            $requests['public_flag_default'],
  • webapp/modules/admin/lib/db_admin.php

     
    7474
    7575function db_admin_delete_c_profile_option($c_profile_option_id)
    7676{
    77     if (!$c_profile_option_id) return false;
    78 
     77    if (!$c_profile_option_id) {
     78        return false;
     79    }
    7980    $sql = 'DELETE FROM c_member_profile WHERE c_profile_option_id = ?';
    8081    $params = array(intval($c_profile_option_id));
    8182    db_query($sql, $params);
     
    147148function db_admin_insert_c_profile(
    148149    $name
    149150    , $caption
     151    , $info
    150152    , $is_required
    151153    , $public_flag_edit
    152154    , $public_flag_default
     
    164166    $data = array(
    165167        'name' => $name,
    166168        'caption' => $caption,
     169        'info' => $info,
    167170        'is_required' => (bool)$is_required,
    168171        'public_flag_edit' => (bool)$public_flag_edit,
    169172        'public_flag_default' => $public_flag_default,
     
    183186function db_admin_update_c_profile($c_profile_id
    184187    , $name
    185188    , $caption
     189    , $info
    186190    , $is_required
    187191    , $public_flag_edit
    188192    , $public_flag_default
     
    200204    $data = array(
    201205        'name' => $name,
    202206        'caption' => $caption,
     207        'info' => $info,
    203208        'is_required' => (bool)$is_required,
    204209        'public_flag_edit' => (bool)$public_flag_edit,
    205210        'public_flag_default' => $public_flag_default,
     
    696701
    697702function db_access_analysis_c_admin_user_id4username($username)
    698703{
    699         $sql = "SELECT c_admin_user_id FROM c_admin_user" .
    700                 " WHERE username = ?";
    701         $params = array($username);
    702         return db_get_one($sql,$params);
     704    $sql = "SELECT c_admin_user_id FROM c_admin_user" .
     705        " WHERE username = ?";
     706    $params = array($username);
     707    return db_get_one($sql,$params);
    703708}
    704709
    705 function p_access_analysis_month_access_analysis_month($ktai_flag){
    706         $sql = "SELECT concat(left(r_datetime, 7), '-01') as ym, count(*) as count" .
    707                         " FROM c_access_log " .
    708                         " where ktai_flag = ?" .
    709                         " group by ym";
    710         $params = array(intval($ktai_flag));                   
    711         $list = db_get_all($sql,$params);
    712         return $list;
     710function p_access_analysis_month_access_analysis_month($ktai_flag)
     711{
     712    $sql = "SELECT concat(left(r_datetime, 7), '-01') as ym, count(*) as count" .
     713            " FROM c_access_log " .
     714            " where ktai_flag = ?" .
     715            " group by ym";
     716    $params = array(intval($ktai_flag));           
     717    $list = db_get_all($sql,$params);
     718    return $list;
    713719}
    714720
    715721
    716 function p_access_analysis_day_access_analysis_day($ym, $ktai_flag){
    717         $sql = "SELECT left(r_datetime,10) as ymd , count(*) as count" .
    718                         " FROM c_access_log " .
    719                         " where left(r_datetime, 7) = ?" .
    720                         " and ktai_flag = ? " .
    721                         " group by ymd";                       
    722         $params = array(intval(substr($ym,0,7)),intval($ktai_flag));
    723         $list = db_get_all($sql,$params);
    724        
    725         $year = substr($ym, 0, 4);
    726         $month = substr($ym, 5,2);
    727        
    728         $return = array();
    729         $days_num = date("t", mktime (0,0,0,$month,1,$year));
    730         for($i=1 ; $i<=$days_num; $i++){
    731                 $date = substr($ym,0,8) . substr("00".$i, -2, 2);
     722function p_access_analysis_day_access_analysis_day($ym, $ktai_flag)
     723{
     724    $sql = "SELECT left(r_datetime,10) as ymd , count(*) as count" .
     725            " FROM c_access_log " .
     726            " where left(r_datetime, 7) = ?" .
     727            " and ktai_flag = ? " .
     728            " group by ymd";           
     729    $params = array(intval(substr($ym,0,7)),intval($ktai_flag));
     730    $list = db_get_all($sql,$params);
     731   
     732    $year = substr($ym, 0, 4);
     733    $month = substr($ym, 5,2);
     734   
     735    $return = array();
     736    $days_num = date("t", mktime (0,0,0,$month,1,$year));
     737    for($i=1 ; $i<=$days_num; $i++) {
     738        $date = substr($ym,0,8) . substr("00".$i, -2, 2);
    732739
    733                 $count = 0;
    734                 foreach($list as $value){
    735                         if($value['ymd'] == $date) $count = $value['count'];
    736                 }
    737                 $return[] = array("ymd"=>$date, "count"=>$count);
    738         }
    739         return $return;
     740        $count = 0;
     741        foreach($list as $value) {
     742            if ($value['ymd'] == $date) {
     743                $count = $value['count'];
     744            }
     745        }
     746        $return[] = array("ymd"=>$date, "count"=>$count);
     747    }
     748    return $return;
    740749}
    741750
    742 function get_page_name($ktai_flag, $orderby=1){
    743         if($orderby==1) $orderby_str = " order by page_name asc";
    744         elseif($orderby==-1) $orderby_str = " order by page_name desc";
    745 
    746         $sql = "select distinct page_name from c_access_log " .
    747                         " where ktai_flag = ? " .
    748                         $orderby_str;
    749         $params = array(intval($ktai_flag));
    750         return db_get_col($sql,$params);
     751function get_page_name($ktai_flag, $orderby=1)
     752{
     753    if ($orderby == 1) {
     754        $orderby_str = " order by page_name asc";
     755    } elseif ($orderby == -1) {
     756        $orderby_str = " order by page_name desc";
     757    }
     758    $sql = "select distinct page_name from c_access_log " .
     759            " where ktai_flag = ? " .
     760            $orderby_str;
     761    $params = array(intval($ktai_flag));
     762    return db_get_col($sql,$params);
    751763}
    752764
    753 function p_access_analysis_page_access_analysis_page4ym($ymd, $month_flag, $ktai_flag, $orderby){
     765function p_access_analysis_page_access_analysis_page4ym($ymd, $month_flag, $ktai_flag, $orderby)
     766{
    754767
     768    if ($orderby == 1) {
     769        $orderby_str = " order by page_name asc";
     770    } elseif ($orderby == -1) {
     771        $orderby_str = " order by page_name desc";
     772    } elseif ($orderby == 2) {
     773        $orderby_str = " order by count asc";
     774    } elseif ($orderby == -2) {
     775        $orderby_str = " order by count desc";
     776    }
     777    $sql = "select page_name , count(*) as count from c_access_log where ktai_flag = ? ";
     778    $params = array(intval($ktai_flag));
     779    if ($month_flag) {
     780        $sql .= " and left(r_datetime, 7) = ? ";
     781        array_push($params,substr($ymd,0,7));
     782    } else {
     783        $sql .= " and left(r_datetime,10) = ? ";
     784        array_push($params,$ymd);
     785    }
     786    $sql .= " group by page_name ".    $orderby_str;
     787    $list = db_get_all($sql,$params);
    755788
    756         if($orderby==1) $orderby_str = " order by page_name asc";
    757         elseif($orderby==-1) $orderby_str = " order by page_name desc";
    758         elseif($orderby==2) $orderby_str = " order by count asc";
    759         elseif($orderby==-2) $orderby_str = " order by count desc";
     789    $sum = 0;
     790    $return = array();
     791    if (abs($orderby) == 1) {
     792        $page_name = get_page_name($ktai_flag, $orderby);
     793        foreach($page_name as $name) {
     794            $count = 0;
     795            foreach($list as $value) {
     796                if ($value['page_name'] == $name) $count = $value['count'];
     797            }
    760798
    761         $sql = "select page_name , count(*) as count from c_access_log where ktai_flag = ? ";
    762         $params = array(intval($ktai_flag));
    763         if($month_flag){
    764                 $sql .= " and left(r_datetime, 7) = ? ";
    765                 array_push($params,substr($ymd,0,7));
    766         } else {
    767                 $sql .= " and left(r_datetime,10) = ? ";
    768                 array_push($params,$ymd);
    769         }
    770         $sql .= " group by page_name ". $orderby_str;
    771         $list = db_get_all($sql,$params);
     799                list($is_target_c_member_id,$is_target_c_commu_id,$is_target_c_topic_id,$is_target_c_diary_id,$is_c_member_id) = get_is_show($name);
    772800
    773         $sum = 0;
    774         $return = array();
    775         if(abs($orderby)==1){
    776                 $page_name = get_page_name($ktai_flag, $orderby);
    777                 foreach($page_name as $name){
    778                         $count = 0;
    779                         foreach($list as $value){
    780                                 if($value['page_name'] == $name) $count = $value['count'];
    781                         }
     801            $return[] = array("page_name"=>$name, "count"=> $count, "is_target_c_member_id"=> $is_target_c_member_id, "is_target_c_commu_id"=> $is_target_c_commu_id, "is_target_c_topic_id"=> $is_target_c_topic_id, "is_target_c_diary_id"=> $is_target_c_diary_id, "is_c_member_id"=> $is_c_member_id);
     802            $sum += $count;
     803        }
     804    } elseif (abs($orderby) == 2) {
     805        $page_name = get_page_name($ktai_flag);
    782806
    783                                 list($is_target_c_member_id,$is_target_c_commu_id,$is_target_c_topic_id,$is_target_c_diary_id,$is_c_member_id) = get_is_show($name);
     807        $t_page_name = $page_name;
    784808
    785                         $return[] = array("page_name"=>$name, "count"=> $count, "is_target_c_member_id"=> $is_target_c_member_id, "is_target_c_commu_id"=> $is_target_c_commu_id, "is_target_c_topic_id"=> $is_target_c_topic_id, "is_target_c_diary_id"=> $is_target_c_diary_id, "is_c_member_id"=> $is_c_member_id);
    786                         $sum += $count;
    787                 }
    788         }
    789         elseif(abs($orderby)==2){
    790                 $page_name = get_page_name($ktai_flag);
     809        //アクセスがゼロのページを取得する
     810        foreach($page_name as $key=>$name) {
     811            foreach($list as $value) {
     812                if ($value['page_name'] == $name) {
     813                    unset($page_name[$key]);//$listに含まれるページネームを削除
     814                }
     815            }
     816        }
    791817
    792                 $t_page_name = $page_name;
     818        foreach($page_name as $key=>$name) {
     819            $page_name[$key] = array("page_name"=>$name, "count"=>0);
     820        }
    793821
    794                 //アクセスがゼロのページを取得する
    795                 foreach($page_name as $key=>$name){
    796                         foreach($list as $value){
    797                                 if($value['page_name']==$name) unset($page_name[$key]);//$listに含まれるページネームを削除
    798                         }
    799                 }
     822        if ($orderby == 2) {
     823            $return = array_merge($page_name , $list);
     824        } elseif ($orderby == -2) {
     825            $return = array_merge($list, $page_name);
     826        }
     827        foreach($list as $value) {
     828            $sum += $value['count'];
     829        }
    800830
    801                 foreach($page_name as $key=>$name){
    802                         $page_name[$key] = array("page_name"=>$name, "count"=>0);
    803                 }
     831        foreach($return as $value) {
    804832
    805        
    806                 if($orderby==2) $return = array_merge($page_name , $list);
    807                 elseif($orderby==-2) $return = array_merge($list, $page_name);
     833            list($is_target_c_member_id,$is_target_c_commu_id,$is_target_c_topic_id,$is_target_c_diary_id,$is_c_member_id) = get_is_show($value['page_name']);
    808834
    809                 foreach($list as $value){
    810                         $sum += $value['count'];
    811                 }
     835            $value['is_target_c_member_id'] = $is_target_c_member_id;
     836            $value['is_target_c_commu_id'] = $is_target_c_commu_id;
     837            $value['is_target_c_topic_id'] = $is_target_c_topic_id;
     838            $value['is_target_c_diary_id'] = $is_target_c_diary_id;
     839            $value['is_c_member_id'] = $is_c_member_id;
     840            $t_return[] = $value;
    812841
    813                 foreach($return as $value){
     842        }
    814843
    815                         list($is_target_c_member_id,$is_target_c_commu_id,$is_target_c_topic_id,$is_target_c_diary_id,$is_c_member_id) = get_is_show($value['page_name']);
     844        $return = $t_return;
    816845
    817                         $value['is_target_c_member_id'] = $is_target_c_member_id;
    818                         $value['is_target_c_commu_id'] = $is_target_c_commu_id;
    819                         $value['is_target_c_topic_id'] = $is_target_c_topic_id;
    820                         $value['is_target_c_diary_id'] = $is_target_c_diary_id;
    821                         $value['is_c_member_id'] = $is_c_member_id;
    822                         $t_return[] = $value;
    823 
    824                 }
    825 
    826                 $return = $t_return;
    827 
    828         }
    829        
    830         return array($return, $sum);
     846    }
     847   
     848    return array($return, $sum);
    831849}
    832850
    833851
     
    836854 *
    837855 */
    838856function p_access_analysis_target_commu_target_commu4ym_page_name
    839 ($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1){
    840        
     857($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1)
     858{
     859   
    841860    $start = ($page - 1) * $page_size;
    842        
    843         if($orderby==1) $orderby_str = " order by target_c_commu_id asc";
    844         elseif($orderby==-1) $orderby_str = " order by target_c_commu_id desc";
    845         elseif($orderby==2) $orderby_str = " order by count asc";
    846         elseif($orderby==-2) $orderby_str = " order by count desc";
    847        
    848         $sql = "select target_c_commu_id , count(*) as count from c_access_log  where ktai_flag = ? ";
    849         $params = array(intval($ktai_flag));
    850         if($month_flag){
    851                 $sql .= " and left(r_datetime, 7) = ? ";
    852                 array_push($params,substr($ymd,0,7));
    853         } else {
    854                 $sql .= " and left(r_datetime,10) = ? ";
    855                 array_push($params,$ymd);
    856         }
    857         if($page_name!="all"){
    858                 $sql .= " and page_name = ? ";
    859                 array_push($params,$page_name);
    860         }
    861         $sql .= " and target_c_commu_id <> 0 ";
    862         $sql .= " group by target_c_commu_id " .$orderby_str." limit $start, $page_size";
    863         $list = db_get_all($sql,$params);
     861   
     862    if ($orderby == 1) {
     863        $orderby_str = " order by target_c_commu_id asc";
     864    } elseif ($orderby == -1) {
     865        $orderby_str = " order by target_c_commu_id desc";
     866    } elseif ($orderby == 2) {
     867        $orderby_str = " order by count asc";
     868    } elseif ($orderby == -2) {
     869        $orderby_str = " order by count desc";
     870    }
     871   
     872    $sql = "select target_c_commu_id , count(*) as count from c_access_log  where ktai_flag = ? ";
     873    $params = array(intval($ktai_flag));
     874    if ($month_flag) {
     875            $sql .= " and left(r_datetime, 7) = ? ";
     876            array_push($params,substr($ymd,0,7));
     877    } else {
     878            $sql .= " and left(r_datetime,10) = ? ";
     879            array_push($params,$ymd);
     880    }
     881    if ($page_name!="all") {
     882            $sql .= " and page_name = ? ";
     883            array_push($params,$page_name);
     884    }
     885    $sql .= " and target_c_commu_id <> 0 ";
     886    $sql .= " group by target_c_commu_id " .$orderby_str." limit $start, $page_size";
     887    $list = db_get_all($sql,$params);
    864888
    865         $return = array();
    866         $sum = 0;
    867         foreach($list as $key => $value){
    868                 if($value['target_c_commu_id']){
    869                         $c_commu = _db_c_commu4c_commu_id($value['target_c_commu_id']);
    870                         $return[] = array_merge($value, $c_commu);
    871                         $sum += $value['count'];
    872                 }
    873         }
     889    $return = array();
     890    $sum = 0;
     891    foreach($list as $key => $value) {
     892        if ($value['target_c_commu_id']) {
     893            $c_commu = _db_c_commu4c_commu_id($value['target_c_commu_id']);
     894            $return[] = array_merge($value, $c_commu);
     895            $sum += $value['count'];
     896        }
     897    }
    874898
    875         $sql =   "select count(*) from c_access_log  where ktai_flag = ? ";
    876         $params = array(intval($ktai_flag));
    877         if($month_flag){
    878                 $sql .= " and left(r_datetime, 7) = ? ";
    879                 array_push($params,substr($ymd,0,7));
    880         } else {
    881                 $sql .= " and left(r_datetime,10) = ? ";
    882                 array_push($params,$ymd);
    883         }
    884         if($page_name!="all"){
    885                 $sql .= " and page_name = ? ";
    886                 array_push($params,$page_name);
    887         }
    888         $sql .= " and target_c_commu_id <> 0 ";
    889         $sql .= " group by target_c_commu_id ";
    890         $result = db_get_all($sql,$params);
    891         $total_num = count($result);
     899    $sql =   "select count(*) from c_access_log  where ktai_flag = ? ";
     900    $params = array(intval($ktai_flag));
     901    if ($month_flag) {
     902        $sql .= " and left(r_datetime, 7) = ? ";
     903        array_push($params,substr($ymd,0,7));
     904    } else {
     905        $sql .= " and left(r_datetime,10) = ? ";
     906        array_push($params,$ymd);
     907    }
     908    if ($page_name!="all") {
     909        $sql .= " and page_name = ? ";
     910        array_push($params,$page_name);
     911    }
     912    $sql .= " and target_c_commu_id <> 0 ";
     913    $sql .= " group by target_c_commu_id ";
     914    $result = db_get_all($sql,$params);
     915    $total_num = count($result);
    892916
    893         if($total_num != 0){
    894                 $total_page_num =  ceil($total_num / $page_size);
    895                 if($page >= $total_page_num){
    896                         $next = false;
    897                 }else{
    898                         $next = true;
    899                 }
    900                 if($page <= 1){
    901                         $prev = false;
    902                 }else{
    903                         $prev = true;
    904                 }
    905         }
    906         $start_num = ($page - 1) * $page_size + 1 ;
    907         $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
     917    if ($total_num != 0) {
     918        $total_page_num =  ceil($total_num / $page_size);
     919        if ($page >= $total_page_num) {
     920            $next = false;
     921        }else{
     922            $next = true;
     923        }
     924        if ($page <= 1) {
     925            $prev = false;
     926        }else{
     927            $prev = true;
     928        }
     929    }
     930    $start_num = ($page - 1) * $page_size + 1 ;
     931    $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
    908932
    909         return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
     933    return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
    910934}
    911935
    912936function p_access_analysis_target_topic_target_topic4ym_page_name
    913 ($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1){
    914        
     937($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1)
     938{
    915939    $start = ($page - 1) * $page_size;
    916        
    917         if($orderby==1) $orderby_str = " order by target_c_commu_topic_id asc";
    918         elseif($orderby==-1) $orderby_str = " order by target_c_commu_topic_id desc";
    919         elseif($orderby==2) $orderby_str = " order by count asc";
    920         elseif($orderby==-2) $orderby_str = " order by count desc";
     940   
     941    if ($orderby == 1) {
     942        $orderby_str = " order by target_c_commu_topic_id asc";
     943    } elseif ($orderby == -1) {
     944        $orderby_str = " order by target_c_commu_topic_id desc";
     945    } elseif ($orderby == 2) {
     946        $orderby_str = " order by count asc";
     947    } elseif ($orderby == -2) {
     948        $orderby_str = " order by count desc";
     949    }
     950    $where =" where ktai_flag = ? ";
     951    $params = array(intval($ktai_flag));
     952    if ($month_flag) {
     953            $where .= " and left(r_datetime, 7) = ? ";
     954            array_push($params,substr($ymd,0,7));
     955    } else {
     956            $where .= " and left(r_datetime,10) = ? ";
     957            array_push($params,$ymd);
     958    }
     959    if ($page_name!="all") {
     960            $where .= " and page_name = ? ";
     961            array_push($params,$page_name);
     962    }
     963    $sql = "select target_c_commu_topic_id , count(*) as count from c_access_log ";
     964    $sql .= $where." group by target_c_commu_topic_id " .$orderby_str." limit $start, $page_size";
     965    $list = db_get_all($sql,$params);
     966    $sql = "select count(*) from c_access_log ";
     967    $sql .= $where ." group by target_c_commu_topic_id ";
     968    $result = db_get_all($sql,$params);
     969    $total_num = count($result);
    921970
    922         $where =" where ktai_flag = ? ";
    923         $params = array(intval($ktai_flag));
    924         if($month_flag){
    925                 $where .= " and left(r_datetime, 7) = ? ";
    926                 array_push($params,substr($ymd,0,7));
    927         } else {
    928                 $where .= " and left(r_datetime,10) = ? ";
    929                 array_push($params,$ymd);
    930         }
    931         if($page_name!="all"){
    932                 $where .= " and page_name = ? ";
    933                 array_push($params,$page_name);
    934         }
    935         $sql = "select target_c_commu_topic_id , count(*) as count from c_access_log ";
    936         $sql .= $where." group by target_c_commu_topic_id " .$orderby_str." limit $start, $page_size";
    937         $list = db_get_all($sql,$params);
    938         $sql = "select count(*) from c_access_log ";
    939         $sql .= $where ." group by target_c_commu_topic_id ";
    940         $result = db_get_all($sql,$params);
    941         $total_num = count($result);
     971    $return = array();
     972    $sum = 0;
     973    foreach ($list as $key => $value) {
     974        if ($value['target_c_commu_topic_id']) {
     975            $c_commu_topic = c_topic_detail_c_topic4c_commu_topic_id($value['target_c_commu_topic_id']);
     976            $c_commu_topic['topic_name'] = $c_commu_topic['name'];
     977            $c_commu = _db_c_commu4c_commu_id($c_commu_topic['c_commu_id']);
     978            $c_commu_topic['commu_name'] = $c_commu['name'];
     979            $return[] = array_merge($value, $c_commu_topic);
     980            $sum += $value['count'];
     981        }
     982    }
    942983
    943         $return = array();
    944         $sum = 0;
    945         foreach($list as $key => $value){
    946                 if($value['target_c_commu_topic_id']){
    947                         $c_commu_topic = c_topic_detail_c_topic4c_commu_topic_id($value['target_c_commu_topic_id']);
    948                         $c_commu_topic['topic_name'] = $c_commu_topic['name'];
    949                         $c_commu = _db_c_commu4c_commu_id($c_commu_topic['c_commu_id']);
    950                         $c_commu_topic['commu_name'] = $c_commu['name'];
    951                         $return[] = array_merge($value, $c_commu_topic);
    952                         $sum += $value['count'];
    953                 }
    954         }
     984    if ($total_num != 0) {
     985        $total_page_num =  ceil($total_num / $page_size);
     986        if ($page >= $total_page_num) {
     987            $next = false;
     988        } else {
     989            $next = true;
     990        }
     991        if ($page <= 1) {
     992            $prev = false;
     993        } else {
     994            $prev = true;
     995        }
     996    }
     997    $start_num = ($page - 1) * $page_size + 1 ;
     998    $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
    955999
    956         if($total_num != 0){
    957                 $total_page_num =  ceil($total_num / $page_size);
    958                 if($page >= $total_page_num){
    959                         $next = false;
    960                 }else{
    961                         $next = true;
    962                 }
    963                 if($page <= 1){
    964                         $prev = false;
    965                 }else{
    966                         $prev = true;
    967                 }
    968         }
    969         $start_num = ($page - 1) * $page_size + 1 ;
    970         $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
    971 
    972         return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
     1000    return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);
    9731001}
    9741002
    9751003function p_access_analysis_target_diary_target_diary4ym_page_name
    976 ($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1){
    977        
     1004($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1)
     1005{
     1006   
    9781007    $start = ($page - 1) * $page_size;
    979        
    980         if($orderby==1) $orderby_str = " order by target_c_diary_id asc";
    981         elseif($orderby==-1) $orderby_str = " order by target_c_diary_id desc";
    982         elseif($orderby==2) $orderby_str = " order by count asc";
    983         elseif($orderby==-2) $orderby_str = " order by count desc";
    984        
    985         $sql = "select target_c_diary_id , count(*) as count from c_access_log where ktai_flag = ? ";
    986         $params = array(intval($ktai_flag));
    987         if($month_flag){
    988                 $sql .= " and left(r_datetime, 7) = ? ";
    989                 array_push($params,substr($ymd,0,7));
    990         } else {
    991                 $sql .= " and left(r_datetime,10) = ? ";
    992                 array_push($params,$ymd);
    993         }
    994         if($page_name!="all"){
    995                 $sql .= " and page_name = ? ";
    996                 array_push($params,$page_name);
    997         }
    998         $sql .= " and target_c_diary_id <> 0 ";
    999         $sql .= " group by target_c_diary_id " . $orderby_str. " limit $start, $page_size";
    1000 //print $sql;
    1001         $list = db_get_all($sql,$params);
    1002 //print_r($list);
     1008   
     1009    if ($orderby == 1) {
     1010        $orderby_str = " order by target_c_diary_id asc";
     1011    } elseif ($orderby == -1) {
     1012        $orderby_str = " order by target_c_diary_id desc";
     1013    } elseif ($orderby == 2) {
     1014        $orderby_str = " order by count asc";
     1015    } elseif ($orderby == -2) {
     1016        $orderby_str = " order by count desc";
     1017    }
     1018   
     1019    $sql = "select target_c_diary_id , count(*) as count from c_access_log where ktai_flag = ? ";
     1020    $params = array(intval($ktai_flag));
     1021    if ($month_flag) {
     1022        $sql .= " and left(r_datetime, 7) = ? ";
     1023        array_push($params,substr($ymd,0,7));
     1024    } else {
     1025        $sql .= " and left(r_datetime,10) = ? ";
     1026        array_push($params,$ymd);
     1027    }
     1028    if ($page_name!="all") {
     1029        $sql .= " and page_name = ? ";
     1030        array_push($params,$page_name);
     1031    }
     1032    $sql .= " and target_c_diary_id <> 0 ";
     1033    $sql .= " group by target_c_diary_id " . $orderby_str. " limit $start, $page_size";
     1034    $list = db_get_all($sql,$params);
    10031035
    1004         $return = array();
    1005         $sum = 0;
    1006         foreach($list as $key => $value){
    1007                 if($value['target_c_diary_id']){
    1008                         $c_diary = db_diary_get_c_diary4id($value['target_c_diary_id']);
    1009                         $c_member = db_common_c_member4c_member_id($c_diary['c_member_id']);
    1010                         $c_diary['nickname'] = $c_member['nickname'];
    1011                         $return[] = array_merge($value, $c_diary);
    1012                         $sum += $value['count'];
    1013                 }
    1014         }
     1036    $return = array();
     1037    $sum = 0;
     1038    foreach ($list as $key => $value) {
     1039        if ($value['target_c_diary_id']) {
     1040            $c_diary = db_diary_get_c_diary4id($value['target_c_diary_id']);
     1041            $c_member = db_common_c_member4c_member_id($c_diary['c_member_id']);
     1042            $c_diary['nickname'] = $c_member['nickname'];
     1043            $return[] = array_merge($value, $c_diary);
     1044            $sum += $value['count'];
     1045        }
     1046    }
    10151047
    1016         $sql =   "select count(*) from c_access_log where ktai_flag = ? ";
    1017         $params = array(intval($ktai_flag));
    1018         if($month_flag){
    1019                 $sql .= " and left(r_datetime, 7) = ? ";
    1020                 array_push($params,substr($ymd,0,7));
    1021         } else {
    1022                 $sql .= " and left(r_datetime,10) = ? ";
    1023                 array_push($params,$ymd);
    1024         }
    1025         $sql .= " and target_c_diary_id <> 0 ";
    1026         $sql .= " group by target_c_diary_id ";
    1027         $result = db_get_all($sql,$params);
    1028         $total_num = count($result);
     1048    $sql =   "select count(*) from c_access_log where ktai_flag = ? ";
     1049    $params = array(intval($ktai_flag));
     1050    if ($month_flag) {
     1051            $sql .= " and left(r_datetime, 7) = ? ";
     1052            array_push($params,substr($ymd,0,7));
     1053    } else {
     1054            $sql .= " and left(r_datetime,10) = ? ";
     1055            array_push($params,$ymd);
     1056    }
     1057    $sql .= " and target_c_diary_id <> 0 ";
     1058    $sql .= " group by target_c_diary_id ";
     1059    $result = db_get_all($sql,$params);
     1060    $total_num = count($result);
    10291061
    1030         if($total_num != 0){
    1031                 $total_page_num =  ceil($total_num / $page_size);
    1032                 if($page >= $total_page_num){
    1033                         $next = false;
    1034                 }else{
    1035                         $next = true;
    1036                 }
    1037                 if($page <= 1){
    1038                         $prev = false;
    1039                 }else{
    1040                         $prev = true;
    1041                 }
    1042         }
    1043         $start_num = ($page - 1) * $page_size + 1 ;
    1044         $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
     1062    if ($total_num != 0) {
     1063        $total_page_num =  ceil($total_num / $page_size);
     1064        if ($page >= $total_page_num) {
     1065            $next = false;
     1066        }else{
     1067            $next = true;
     1068        }
     1069        if ($page <= 1) {
     1070            $prev = false;
     1071        }else{
     1072            $prev = true;
     1073        }
     1074    }
     1075    $start_num = ($page - 1) * $page_size + 1 ;
     1076    $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
    10451077
    1046         return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
     1078    return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
    10471079}
    10481080
    10491081function p_access_analysis_member_access_member4ym_page_name
    1050 ($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1){
    1051        
     1082($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1)
     1083{
    10521084    $start = ($page - 1) * $page_size;
    1053        
    1054         if($orderby==1) $orderby_str = " order by target_c_member_id asc";
    1055         elseif($orderby==-1) $orderby_str = " order by target_c_member_id desc";
    1056         elseif($orderby==2) $orderby_str = " order by count asc";
    1057         elseif($orderby==-2) $orderby_str = " order by count desc";
    1058        
    1059         $where =" where ktai_flag = ? ";
    1060         $params = array(intval($ktai_flag));
    1061         if($month_flag){
    1062                 $where .= " and left(r_datetime, 7) = ? ";
    1063                 array_push($params,substr($ymd,0,7));
    1064         } else {
    1065                 $where .= " and left(r_datetime,10) = ? ";
    1066                 array_push($params,$ymd);
    1067         }
    1068         if($page_name!="all"){
    1069                 $where .= " and page_name = ? ";
    1070                 array_push($params,$page_name);
    1071         }
     1085   
     1086    if ($orderby == 1) {
     1087        $orderby_str = " order by target_c_member_id asc";
     1088    } elseif ($orderby == -1) {
     1089        $orderby_str = " order by target_c_member_id desc";
     1090    } elseif ($orderby == 2) {
     1091        $orderby_str = " order by count asc";
     1092    } elseif ($orderby == -2) {
     1093        $orderby_str = " order by count desc";
     1094    }
     1095   
     1096    $where =" where ktai_flag = ? ";
     1097    $params = array(intval($ktai_flag));
     1098    if ($month_flag) {
     1099        $where .= " and left(r_datetime, 7) = ? ";
     1100        array_push($params,substr($ymd,0,7));
     1101    } else {
     1102        $where .= " and left(r_datetime,10) = ? ";
     1103        array_push($params,$ymd);
     1104    }
     1105    if ($page_name!="all") {
     1106        $where .= " and page_name = ? ";
     1107        array_push($params,$page_name);
     1108    }
    10721109
    1073         $sql = "select c_member_id , count(*) as count from c_access_log";
    1074         $sql .= $where." group by c_member_id $orderby_str limit $start, $page_size";
    1075         $list = db_get_all($sql,$params);
    1076         $sql = "select count(*) from c_access_log ";
    1077         $sql .= $where ." group by c_member_id ";
    1078         $result = db_get_all($sql,$params);
    1079         $total_num = count($result);
     1110    $sql = "select c_member_id , count(*) as count from c_access_log";
     1111    $sql .= $where." group by c_member_id $orderby_str limit $start, $page_size";
     1112    $list = db_get_all($sql,$params);
     1113    $sql = "select count(*) from c_access_log ";
     1114    $sql .=    $where ." group by c_member_id ";
     1115    $result = db_get_all($sql,$params);
     1116    $total_num = count($result);
    10801117
    1081         $return = array();
    1082         $sum = 0;
    1083         foreach($list as $key => $value){
    1084                 if($value['c_member_id']){
    1085                         $c_member = _db_c_member4c_member_id($value['c_member_id']);
    1086                         $return[] = array_merge($value, $c_member);
    1087                         $sum += $value['count'];
    1088                 }
    1089         }
     1118    $return = array();
     1119    $sum = 0;
     1120    foreach($list as $key => $value) {
     1121        if ($value['c_member_id']) {
     1122            $c_member = _db_c_member4c_member_id($value['c_member_id']);
     1123            $return[] = array_merge($value, $c_member);
     1124            $sum += $value['count'];
     1125        }
     1126    }
    10901127
    10911128
    1092         if($total_num != 0){
    1093                 $total_page_num =  ceil($total_num / $page_size);
    1094                 if($page >= $total_page_num){
    1095                         $next = false;
    1096                 }else{
    1097                         $next = true;
    1098                 }
    1099                 if($page <= 1){
    1100                         $prev = false;
    1101                 }else{
    1102                         $prev = true;
    1103                 }
    1104         }
    1105         $start_num = ($page - 1) * $page_size + 1 ;
    1106         $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
    1107         return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
     1129    if ($total_num != 0) {
     1130        $total_page_num =  ceil($total_num / $page_size);
     1131        if ($page >= $total_page_num) {
     1132            $next = false;
     1133        }else{
     1134            $next = true;
     1135        }
     1136        if ($page <= 1) {
     1137            $prev = false;
     1138        }else{
     1139            $prev = true;
     1140        }
     1141    }
     1142    $start_num = ($page - 1) * $page_size + 1 ;
     1143    $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
     1144    return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
    11081145}
    11091146
    11101147function p_access_analysis_target_member_access_member4ym_page_name
    1111 ($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1){
    1112        
     1148($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1)
     1149{
    11131150    $start = ($page - 1) * $page_size;
    1114        
    1115         if($orderby==1) $orderby_str = " order by target_c_member_id asc";
    1116         elseif($orderby==-1) $orderby_str = " order by target_c_member_id desc";
    1117         elseif($orderby==2) $orderby_str = " order by count asc";
    1118         elseif($orderby==-2) $orderby_str = " order by count desc";
    1119        
    1120         $where =" where ktai_flag = ? ";
    1121         $params = array(intval($ktai_flag));
    1122         if($month_flag){
     1151   
     1152    if ($orderby == 1) {
     1153        $orderby_str = " order by target_c_member_id asc";
     1154    } elseif ($orderby == -1) {
     1155        $orderby_str = " order by target_c_member_id desc";
     1156    } elseif ($orderby == 2) {
     1157        $orderby_str = " order by count asc";
     1158    } elseif ($orderby == -2) {
     1159        $orderby_str = " order by count desc";
     1160    }
     1161    $where =" where ktai_flag = ? ";
     1162    $params = array(intval($ktai_flag));
     1163        if ($month_flag) {
    11231164                $where .= " and left(r_datetime, 7) = ? ";
    11241165                array_push($params,substr($ymd,0,7));
    11251166        } else {
    11261167                $where .= " and left(r_datetime,10) = ? ";
    11271168                array_push($params,$ymd);
    11281169        }
    1129         if($page_name!="all"){
     1170        if ($page_name!="all") {
    11301171                $where .= " and page_name = ? ";
    11311172                array_push($params,$page_name);
    11321173        }
    1133         $sql = "select target_c_member_id , count(*) as count from c_access_log ";
    1134         $sql .= $where;
    1135         $sql .= " AND target_c_member_id <> 0 ";
    1136         $sql .= " group by target_c_member_id " . $orderby_str. " limit $start, $page_size";
     1174    $sql = "select target_c_member_id , count(*) as count from c_access_log ";
     1175    $sql .= $where;
     1176    $sql .= " AND target_c_member_id <> 0 ";
     1177    $sql .= " group by target_c_member_id " . $orderby_str. " limit $start, $page_size";
    11371178
    1138         $list = db_get_all($sql,$params);
     1179    $list = db_get_all($sql,$params);
    11391180
    1140         $return = array();
    1141         $sum = 0;
    1142         foreach($list as $key => $value){
    1143                 if($value['target_c_member_id']){
    1144                         $c_member = db_common_c_member4c_member_id($value['target_c_member_id']);
    1145                         $return[] = array_merge($value, $c_member);
    1146                         $sum += $value['count'];
    1147                 }
    1148         }
     1181    $return = array();
     1182    $sum = 0;
     1183    foreach($list as $key => $value) {
     1184        if ($value['target_c_member_id']) {
     1185            $c_member = db_common_c_member4c_member_id($value['target_c_member_id']);
     1186            $return[] = array_merge($value, $c_member);
     1187            $sum += $value['count'];
     1188        }
     1189    }
    11491190
    1150         $where =" where ktai_flag = ? ";
    1151         $params = array(intval($ktai_flag));
    1152         if($month_flag){
     1191    $where =" where ktai_flag = ? ";
     1192    $params = array(intval($ktai_flag));
     1193        if ($month_flag) {
    11531194                $where .= " and left(r_datetime, 7) = ? ";
    11541195                array_push($params,substr($ymd,0,7));
    11551196        } else {
    11561197                $where .= " and left(r_datetime,10) = ? ";
    11571198                array_push($params,$ymd);
    11581199        }
    1159         if($page_name!="all"){
     1200        if ($page_name != "all") {
    11601201                $where .= " and page_name = ? ";
    11611202                array_push($params,$page_name);
    11621203        }
    1163         $sql = "select count(*) from c_access_log " ;
    1164         $sql .= $where;
    1165         $sql .= " AND target_c_member_id <> 0 ";
    1166         $sql .= " group by target_c_member_id ";
    1167        
    1168         $result = db_get_all($sql,$params);
    1169         $total_num = count($result);
     1204    $sql = "select count(*) from c_access_log " ;
     1205    $sql .= $where;
     1206    $sql .= " AND target_c_member_id <> 0 ";
     1207    $sql .= " group by target_c_member_id ";
     1208   
     1209    $result = db_get_all($sql,$params);
     1210    $total_num = count($result);
    11701211
    1171         if($total_num != 0){
    1172                 $total_page_num =  ceil($total_num / $page_size);
    1173                 if($page >= $total_page_num){
    1174                         $next = false;
    1175                 }else{
    1176                         $next = true;
    1177                 }
    1178                 if($page <= 1){
    1179                         $prev = false;
    1180                 }else{
    1181                         $prev = true;
    1182                 }
    1183         }
    1184         $start_num = ($page - 1) * $page_size + 1 ;
    1185         $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
     1212    if ($total_num != 0) {
     1213        $total_page_num =  ceil($total_num / $page_size);
     1214        if ($page >= $total_page_num) {
     1215            $next = false;
     1216        } else {
     1217            $next = true;
     1218        }
     1219        if ($page <= 1) {
     1220            $prev = false;
     1221        } else {
     1222            $prev = true;
     1223        }
     1224    }
     1225    $start_num = ($page - 1) * $page_size + 1 ;
     1226    $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
    11861227
    1187         return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
     1228    return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);
    11881229}
    11891230
     1231function get_is_show($name)
     1232{
     1233    //必要のない詳細ボタンを消す
     1234    switch($name) {
     1235    case "h_home":
     1236        $is_target_c_member_id = 0;
     1237        $is_target_c_commu_id = 0;
     1238        $is_target_c_topic_id = 0;
     1239        $is_target_c_diary_id = 0;
     1240        $is_c_member_id = 1;
     1241        break;
    11901242
    1191 function get_is_show($name){
    1192         //必要のない詳細ボタンを消す
    1193         switch($name){
     1243    case "fh_friend_list":
     1244        $is_target_c_member_id = 0;
     1245        $is_target_c_commu_id = 0;
     1246        $is_target_c_topic_id = 0;
     1247        $is_target_c_diary_id = 0;
     1248        $is_c_member_id = 1;
     1249        break;
    11941250
    1195                 case "h_home":
    1196                 {
    1197                         $is_target_c_member_id = 0;
    1198                         $is_target_c_commu_id = 0;
    1199                         $is_target_c_topic_id = 0;
    1200                         $is_target_c_diary_id = 0;
    1201                         $is_c_member_id = 1;
    1202                 }
    1203                 break;
     1251    case "h_message":
     1252        $is_target_c_member_id = 0;
     1253        $is_target_c_commu_id = 0;
     1254        $is_target_c_topic_id = 0;
     1255        $is_target_c_diary_id = 0;
     1256        $is_c_member_id = 1;
     1257        break;
    12041258
     1259    case "fh_diary_list":
     1260        $is_target_c_member_id = 0;
     1261        $is_target_c_commu_id = 0;
     1262        $is_target_c_topic_id = 0;
     1263        $is_target_c_diary_id = 0;
     1264        $is_c_member_id = 1;
     1265        break;
    12051266
    1206                 case "fh_friend_list":
    1207                 {
    1208                         $is_target_c_member_id = 0;
    1209                         $is_target_c_commu_id = 0;
    1210                         $is_target_c_topic_id = 0;
    1211                         $is_target_c_diary_id = 0;
    1212                         $is_c_member_id = 1;
    1213                 }
    1214                 break;
     1267    case "h_message_box":
     1268        $is_target_c_member_id = 0;
     1269        $is_target_c_commu_id = 0;
     1270        $is_target_c_topic_id = 0;
     1271        $is_target_c_diary_id = 0;
     1272        $is_c_member_id = 1;
     1273        break;
    12151274
    1216                 case "h_message":
    1217                 {
    1218                         $is_target_c_member_id = 0;
    1219                         $is_target_c_commu_id = 0;
    1220                         $is_target_c_topic_id = 0;
    1221                         $is_target_c_diary_id = 0;
    1222                         $is_c_member_id = 1;
    1223                 }
    1224                 break;
     1275    case "f_home":
     1276        $is_target_c_member_id = 1;
     1277        $is_target_c_commu_id = 0;
     1278        $is_target_c_topic_id = 0;
     1279        $is_target_c_diary_id = 0;
     1280        $is_c_member_id = 1;
     1281        break;
    12251282
    1226                 case "fh_diary_list":
    1227                 {
    1228                         $is_target_c_member_id = 0;
    1229                         $is_target_c_commu_id = 0;
    1230                         $is_target_c_topic_id = 0;
    1231                         $is_target_c_diary_id = 0;
    1232                         $is_c_member_id = 1;
    1233                 }
    1234                 break;
     1283    case "h_com_find_all":
     1284        $is_target_c_member_id = 0;
     1285        $is_target_c_commu_id = 0;
     1286        $is_target_c_topic_id = 0;
     1287        $is_target_c_diary_id = 0;
     1288        $is_c_member_id = 1;
     1289        break;
    12351290
    1236                 case "h_message_box":
    1237                 {
    1238                         $is_target_c_member_id = 0;
    1239                         $is_target_c_commu_id = 0;
    1240                         $is_target_c_topic_id = 0;
    1241                         $is_target_c_diary_id = 0;
    1242                         $is_c_member_id = 1;
    1243                 }
    1244                 break;
     1291    case "reply_message":
     1292        $is_target_c_member_id = 0;
     1293        $is_target_c_commu_id = 0;
     1294        $is_target_c_topic_id = 0;
     1295        $is_target_c_diary_id = 0;
     1296        $is_c_member_id = 1;
     1297        break;
    12451298
    1246                 case "f_home":
    1247                 {
    1248                         $is_target_c_member_id = 1;
    1249                         $is_target_c_commu_id = 0;
    1250                         $is_target_c_topic_id = 0;
    1251                         $is_target_c_diary_id = 0;
    1252                         $is_c_member_id = 1;
    1253                 }
    1254                 break;
     1299    case "f_message_send":
     1300        $is_target_c_member_id = 0;
     1301        $is_target_c_commu_id = 0;
     1302        $is_target_c_topic_id = 0;
     1303        $is_target_c_diary_id = 0;
     1304        $is_c_member_id = 1;
     1305        break;
    12551306
     1307    case "f_message_send":
     1308        $is_target_c_member_id = 0;
     1309        $is_target_c_commu_id = 0;
     1310        $is_target_c_topic_id = 0;
     1311        $is_target_c_diary_id = 0;
     1312        $is_c_member_id = 1;
     1313        break;
     1314   
     1315    case "h_diary_list_all":
     1316        $is_target_c_member_id = 0;
     1317        $is_target_c_commu_id = 0;
     1318        $is_target_c_topic_id = 0;
     1319        $is_target_c_diary_id = 0;
     1320        $is_c_member_id = 1;
     1321        break;
    12561322
    1257                 case "h_com_find_all":
    1258                 {
    1259                         $is_target_c_member_id = 0;
    1260                         $is_target_c_commu_id = 0;
    1261                         $is_target_c_topic_id = 0;
    1262                         $is_target_c_diary_id = 0;
    1263                         $is_c_member_id = 1;
    1264                 }
    1265                 break;
     1323    case "h_search":
     1324        $is_target_c_member_id = 0;
     1325        $is_target_c_commu_id = 0;
     1326        $is_target_c_topic_id = 0;
     1327        $is_target_c_diary_id = 0;
     1328        $is_c_member_id = 1;
     1329        break;
    12661330
     1331    case "f_message_send_confirm":
     1332        $is_target_c_member_id = 1;
     1333        $is_target_c_commu_id = 0;
     1334        $is_target_c_topic_id = 0;
     1335        $is_target_c_diary_id = 0;
     1336        $is_c_member_id = 1;
     1337        break;
    12671338
    1268                 case "reply_message":
    1269                 {
    1270                         $is_target_c_member_id = 0;
    1271                         $is_target_c_commu_id = 0;
    1272                         $is_target_c_topic_id = 0;
    1273                         $is_target_c_diary_id = 0;
    1274                         $is_c_member_id = 1;
    1275                 }
    1276                 break;
     1339    default:
     1340        $is_target_c_member_id = 1;
     1341        $is_target_c_commu_id = 1;
     1342        $is_target_c_topic_id = 1;
     1343        $is_target_c_diary_id = 1;
     1344        $is_c_member_id = 1;
     1345        break;
     1346    }
    12771347
     1348    return array($is_target_c_member_id,$is_target_c_commu_id,$is_target_c_topic_id,$is_target_c_diary_id,$is_c_member_id);
    12781349
    1279                 case "f_message_send":
    1280                 {
    1281                         $is_target_c_member_id = 0;
    1282                         $is_target_c_commu_id = 0;
    1283                         $is_target_c_topic_id = 0;
    1284                         $is_target_c_diary_id = 0;
    1285                         $is_c_member_id = 1;
    1286                 }
    1287                 break;
    1288 
    1289                 case "f_message_send":
    1290                 {
    1291                         $is_target_c_member_id = 0;
    1292                         $is_target_c_commu_id = 0;
    1293                         $is_target_c_topic_id = 0;
    1294                         $is_target_c_diary_id = 0;
    1295                         $is_c_member_id = 1;
    1296                 }
    1297                 break;
    1298 
    1299 
    1300                 case "h_diary_list_all":
    1301                 {
    1302                         $is_target_c_member_id = 0;
    1303                         $is_target_c_commu_id = 0;
    1304                         $is_target_c_topic_id = 0;
    1305                         $is_target_c_diary_id = 0;
    1306                         $is_c_member_id = 1;
    1307                 }
    1308                 break;
    1309 
    1310 
    1311                 case "h_search":
    1312                 {
    1313                         $is_target_c_member_id = 0;
    1314                         $is_target_c_commu_id = 0;
    1315                         $is_target_c_topic_id = 0;
    1316                         $is_target_c_diary_id = 0;
    1317                         $is_c_member_id = 1;
    1318                 }
    1319                 break;
    1320 
    1321 
    1322                 case "f_message_send_confirm":
    1323                 {
    1324                         $is_target_c_member_id = 1;
    1325                         $is_target_c_commu_id = 0;
    1326                         $is_target_c_topic_id = 0;
    1327                         $is_target_c_diary_id = 0;
    1328                         $is_c_member_id = 1;
    1329                 }
    1330                 break;
    1331 
    1332 
    1333 
    1334                 default:
    1335                 {
    1336                         $is_target_c_member_id = 1;
    1337                         $is_target_c_commu_id = 1;
    1338                         $is_target_c_topic_id = 1;
    1339                         $is_target_c_diary_id = 1;
    1340                         $is_c_member_id = 1;
    1341                 }
    1342         }
    1343 
    1344         return array($is_target_c_member_id,$is_target_c_commu_id,$is_target_c_topic_id,$is_target_c_diary_id,$is_c_member_id);
    1345 
    13461350}
    13471351
    13481352/**
     
    13521356[引数]
    13531357適時追加していく
    13541358
    1355 $s_access_date  最終ログイン時刻 開始年月日
    1356 $e_access_date  最終ログイン時刻 終了年月日
     1359$s_access_date    最終ログイン時刻 開始年月日
     1360$e_access_date    最終ログイン時刻 終了年月日
    13571361
    13581362[返り値]
    13591363c_member_list
     
    13651369    $page = intval($page);
    13661370    $page_size = intval($page_size);
    13671371
    1368         $limit = "";
     1372    $limit = "";
    13691373
    1370         //page_sizeが0の時は全て表示(pagerなし)
    1371         if($page_size != 0){
     1374    //page_sizeが0の時は全て表示(pagerなし)
     1375    if ($page_size != 0) {
     1376        $limit = " LIMIT ".($page_size*($page-1)).",$page_size";
     1377    }
     1378    $where = " WHERE 1 ";
    13721379
    1373                 $limit = " LIMIT ".($page_size*($page-1)).",$page_size";
     1380    //指定された条件で絞っていく
     1381    if ($s_access_date != "") {
     1382        $where = $where . " and access_date >= ?";
     1383        $params = array($s_access_date);
     1384    }
    13741385
    1375         }
     1386    if ($e_access_date != "") {
     1387        $where = $where . " and access_date < ?";
     1388        $params = array($e_access_date);
     1389    }
    13761390
    1377         $where = " WHERE 1 ";
    1378 
    1379 
    1380         //指定された条件で絞っていく
    1381         if($s_access_date != ""){
    1382                 $where = $where . " and access_date >= ?";
    1383                 $params = array($s_access_date);
    1384         }
    1385 
    1386         if($e_access_date != ""){
    1387                 $where = $where . " and access_date < ?";
    1388                 $params = array($e_access_date);
    1389         }
    1390 
    13911391    $select = "SELECT * FROM c_member";
    1392         $order = " order by c_member_id";
     1392    $order = " order by c_member_id";
    13931393
    13941394    $sql = $select . $where . $order . $limit;
    13951395    $list = db_get_all_limit($sql, 0, $limit, $params);
    1396        
     1396   
    13971397    $sql = "select count(*) from c_member".$where;
    13981398
    13991399    $total_num = db_get_one($sql, $params);
    14001400   
    1401        if($total_num != 0 && $page_size != 0){
    1402            $total_page_num =  ceil($total_num / $page_size);
    1403            if($page >= $total_page_num){
    1404                $next = false;
    1405            }else{
    1406                $next = true;
    1407            }
    1408              
    1409            if($page <= 1){
    1410                $prev = false;
    1411            }else{
    1412                $prev = true;
    1413            }
    1414        }
     1401    if ($total_num != 0 && $page_size != 0) {
     1402        $total_page_num =  ceil($total_num / $page_size);
     1403        if ($page >= $total_page_num) {
     1404            $next = false;
     1405        } else {
     1406            $next = true;
     1407        }
     1408        if ($page <= 1) {
     1409            $prev = false;
     1410        } else {
     1411            $prev = true;
     1412        }
     1413    }
    14151414
    1416    
    1417         return array($list , $prev , $next, $total_num);
     1415    return array($list , $prev , $next, $total_num);
    14181416}
    14191417
    1420 function _db_c_member4c_member_id($c_member_id) {
    1421         $sql = "SELECT * FROM c_member WHERE c_member_id= ? ";
     1418function _db_c_member4c_member_id($c_member_id)
     1419{
     1420    $sql = "SELECT * FROM c_member WHERE c_member_id= ? ";
    14221421        $params = array(intval($c_member_id));
    1423         return db_get_row($sql,$params);
     1422    return db_get_row($sql,$params);
    14241423}
    14251424
    14261425/**
    14271426 * 男と女の人数を取得
    14281427 */
    1429 function get_analysis_sex(){
    1430         $sql = "select count(*) from c_member where sex = '男'";
    1431         $analysis_sex['male'] = get_one4db($sql);
    1432         $sql = "select count(*) from c_member where sex = '女'";
    1433         $analysis_sex['female'] = get_one4db($sql);
    1434        
    1435         return $analysis_sex;
    1436        
     1428function get_analysis_sex()
     1429{
     1430    $sql = "select count(*) from c_member where sex = '男'";
     1431    $analysis_sex['male'] = get_one4db($sql);
     1432    $sql = "select count(*) from c_member where sex = '女'";
     1433    $analysis_sex['female'] = get_one4db($sql);
     1434   
     1435    return $analysis_sex;
     1436   
    14371437}
    14381438
    14391439/**
    14401440 * 世代の人数を取得
    14411441 */
    1442 function get_analysis_generation(){
    1443        
    1444         $analysis_generation = array(
    1445                         '0?9' => 0,
    1446                         '10?19' => 0,
    1447                         '20?29' => 0,
    1448                         '30?39' => 0,
    1449                         '40?49' => 0,
    1450                         '50?59' => 0,
    1451                         '60?69' => 0,
    1452                         '70?79' => 0,
    1453                         '80?' =>0
    1454         );
    1455        
    1456         $sql = "select ((year(curdate()) - birth_year)- (RIGHT(CURDATE(),5)<concat(birth_month,'-',birth_day))) as age from c_member;";
    1457         $lst = db_get_all($sql);
     1442function get_analysis_generation()
     1443{
     1444    $analysis_generation = array(
     1445            '0~9' => 0,
     1446            '10~19' => 0,
     1447            '20~29' => 0,
     1448            '30~39' => 0,
     1449            '40~49' => 0,
     1450            '50~59' => 0,
     1451            '60~69' => 0,
     1452            '70~79' => 0,
     1453            '80~' =>0
     1454    );
     1455   
     1456    $sql = "select ((year(curdate()) - birth_year)- (RIGHT(CURDATE(),5)<concat(birth_month,'-',birth_day))) as age from c_member;";
     1457    $lst = db_get_all($sql);
    14581458
    1459         $temp = array_keys($analysis_generation);
    1460         foreach($lst as $value){
    1461                 $key = (int)($value['age'] / 10);
    1462                 if($key > count($analysis_generation)-1)
    1463                         $analysis_generation[$temp[count($analysis_generation)-1]]++;
    1464                 else
    1465                         $analysis_generation[$temp[$key]]++;
    1466         }
     1459    $temp = array_keys($analysis_generation);
     1460    foreach($lst as $value) {
     1461        $key = (int)($value['age'] / 10);
     1462        if ($key > count($analysis_generation)-1) {
     1463            $analysis_generation[$temp[count($analysis_generation)-1]]++;
     1464        } else {
     1465            $analysis_generation[$temp[$key]]++;
     1466        }
     1467    }
    14671468
    1468         return $analysis_generation;
    1469        
     1469    return $analysis_generation;
     1470   
    14701471}
    14711472
    14721473/**
    14731474 * 地域別の人数を取得
    14741475 */
    1475 function get_analysis_region(){
    1476         $pref = p_regist_prof_c_profile_pref_list4null();
    1477         $sql = "select pre_addr_c_profile_pref_id as pref_id from c_member";
    1478         $lst = get_array_list4db($sql);
     1476function get_analysis_region()
     1477{
     1478    $pref = p_regist_prof_c_profile_pref_list4null();
     1479    $sql = "select pre_addr_c_profile_pref_id as pref_id from c_member";
     1480    $lst = get_array_list4db($sql);
    14791481
    1480         foreach($pref as $value){
    1481                 $analysis_region[$value] = 0;   
    1482         }
     1482    foreach($pref as $value) {
     1483        $analysis_region[$value] = 0;   
     1484    }
    14831485
    1484         foreach ($lst as $value){
    1485                 if($value['pref_id'] == 0)
    1486                         $analysis_region['その他']++;
    1487                 else
    1488                         $analysis_region[$pref[$value['pref_id']]]++;
    1489         }
     1486    foreach ($lst as $value) {
     1487        if ($value['pref_id'] == 0) {
     1488            $analysis_region['その他']++;
     1489        } else {
     1490            $analysis_region[$pref[$value['pref_id']]]++;
     1491        }
     1492    }
    14901493
    1491         return $analysis_region;
    1492        
     1494    return $analysis_region;
     1495   
    14931496}
    14941497
     1498function get_analysis_date_month($year = "", $month = "")
     1499{
     1500    $sql = "select date_format(r_date,'%Y-%m') from c_member order by r_date";
     1501    $start_date = db_get_one($sql);
    14951502
    1496 function get_analysis_date_month($year = "", $month = ""){
    1497         $sql = "select date_format(r_date,'%Y-%m') from c_member order by r_date";
    1498         $start_date = db_get_one($sql);
    1499 
    1500         $i = 0;
    1501         list($y, $m) = split("-",$start_date);
    1502         do{
    1503                 $date = date("Y-m", mktime (0,0,0,$m+$i++,1,$y));
    1504                 $analysis_date_month[$date] = 0;
    1505         }while($date < date("Y-m"));   
    1506        
    1507         $sql = "select date_format(r_date,'%Y-%m') as d from c_member";
    1508         $lst = db_get_all($sql);
    1509         foreach ($lst as $value){
    1510                 $analysis_date_month[$value['d']]++;
    1511         }
    1512         return $analysis_date_month;
     1503    $i = 0;
     1504    list($y, $m) = split("-",$start_date);
     1505    do{
     1506        $date = date("Y-m", mktime (0,0,0,$m+$i++,1,$y));
     1507        $analysis_date_month[$date] = 0;
     1508    }while($date < date("Y-m"));   
     1509   
     1510    $sql = "select date_format(r_date,'%Y-%m') as d from c_member";
     1511    $lst = db_get_all($sql);
     1512    foreach ($lst as $value) {
     1513        $analysis_date_month[$value['d']]++;
     1514    }
     1515    return $analysis_date_month;
    15131516}
    15141517
    1515 function get_analysis_date_day_d($date=""){
    1516         if($date=="") $date = date("Y-m-d");
    1517         return $date;
     1518function get_analysis_date_day_d($date="")
     1519{
     1520    if ($date == "") {
     1521       $date = date("Y-m-d");
     1522    }
     1523    return $date;
    15181524}
    15191525
    15201526
    1521 function get_analysis_date_day($date=""){
    1522         if($date=="") $date = date("Y-m");
     1527function get_analysis_date_day($date="")
     1528{
     1529    if ($date == "") {
     1530        $date = date("Y-m");
     1531    }
     1532    //一ヶ月の日数
     1533    $day_num = date("t");
    15231534
    1524         //一ヶ月の日数
    1525         $day_num = date("t");
     1535    for($i=1 ; $i<=$day_num; $i++) {
     1536        //一桁の数を二桁にする
     1537        if ($i < 10) {
     1538            $i = "0".$i;
     1539        }
     1540        $analysis_date_day[$i] = 0;
     1541    }
    15261542
    1527         for($i=1 ; $i<=$day_num; $i++){
    1528                 //一桁の数を二桁にする
    1529                 if($i < 10){
    1530                         $i = "0".$i;
    1531                 }
    1532                 $analysis_date_day[$i] = 0;
    1533         }
     1543   
     1544    $sql = "select date_format(r_date,'%d') as d from c_member where date_format(r_date,'%Y-%m') = ?";
     1545    $params = array($date);
     1546    $lst = db_get_all($sql,$params);
    15341547
    1535        
    1536         $sql = "select date_format(r_date,'%d') as d from c_member where date_format(r_date,'%Y-%m') = ?";
    1537         $params = array($date);
    1538         $lst = db_get_all($sql,$params);
    1539 
    1540         foreach($lst as $value){
    1541                 $analysis_date_day[$value['d']]++;
    1542         }
    1543        
    1544         return $analysis_date_day;
     1548    foreach($lst as $value) {
     1549        $analysis_date_day[$value['d']]++;
     1550    }
     1551   
     1552    return $analysis_date_day;
    15451553}
    15461554
    1547 function p_access_analysis_select_profile_list(){
    1548         $sql = "SELECT * " .
    1549                         " FROM c_profile " .
    1550                         " where form_type = 'select' ";
    1551                        
    1552         $list = db_get_all($sql);
    1553         return $list;
     1555function p_access_analysis_select_profile_list()
     1556{
     1557    $sql = "SELECT * " .
     1558            " FROM c_profile " .
     1559            " where form_type = 'select' ";
     1560           
     1561    $list = db_get_all($sql);
     1562    return $list;
    15541563}
    15551564
    15561565/**
    15571566 * 指定されたIDのプロフィールの人数別一覧を作成
    15581567 */
    1559 function get_analysis_profile($c_profile_id){
    1560         $sql = "select count(*) as count,value,c_profile.caption from c_member_profile " .
    1561                 " LEFT JOIN c_profile ON c_profile.c_profile_id = c_member_profile.c_profile_id " .
    1562                 " WHERE c_member_profile.c_profile_id = ? GROUP BY value ";
    1563         $params = array(intval($c_profile_id));
    1564         $analysis_profile = db_get_all($sql,$params);
    1565        
    1566         return $analysis_profile;
     1568function get_analysis_profile($c_profile_id)
     1569{
     1570    $sql = "select count(*) as count,value,c_profile.caption from c_member_profile " .
     1571        " LEFT JOIN c_profile ON c_profile.c_profile_id = c_member_profile.c_profile_id " .
     1572        " WHERE c_member_profile.c_profile_id = ? GROUP BY value ";
     1573    $params = array(intval($c_profile_id));
     1574    $analysis_profile = db_get_all($sql,$params);
     1575   
     1576    return $analysis_profile;
    15671577}
    15681578
    1569 function get_analysis_count_profile_all($c_profile_id){
    1570         $sql = "select count(*) as count from c_member_profile " .
    1571                 " WHERE c_profile_id = ? ";
    1572         $params = array(intval($c_profile_id));
    1573         $analysis_profile = db_get_one($sql,$params);
    1574        
    1575         return $analysis_profile;
     1579function get_analysis_count_profile_all($c_profile_id)
     1580{
     1581    $sql = "select count(*) as count from c_member_profile " .
     1582        " WHERE c_profile_id = ? ";
     1583    $params = array(intval($c_profile_id));
     1584    $analysis_profile = db_get_one($sql,$params);
     1585   
     1586    return $analysis_profile;
    15761587}
    15771588
    1578 function analysis_profile4c_profile_id($c_profile_id){
    1579         $sql = "SELECT * FROM c_profile" .
    1580                         " WHERE c_profile_id = ? ";
    1581         $params = array(intval($c_profile_id));
    1582         $profile = db_get_row($sql,$params);
    1583        
    1584         return $profile;
     1589function analysis_profile4c_profile_id($c_profile_id)
     1590{
     1591    $sql = "SELECT * FROM c_profile" .
     1592            " WHERE c_profile_id = ? ";
     1593    $params = array(intval($c_profile_id));
     1594    $profile = db_get_row($sql,$params);
     1595   
     1596    return $profile;
    15851597}
    1586 function monitor_diary_list($keyword,$page_size,$page){
     1598function monitor_diary_list($keyword,$page_size,$page)
     1599{
    15871600
    15881601    $page = intval($page);
    15891602    $page_size = intval($page_size);
    15901603   
    15911604    $where = " where 1 ";
    15921605
    1593     if($keyword){
     1606    if ($keyword) {
    15941607        //全角空白を半角に統一
    15951608        $keyword = str_replace(" ", " ", $keyword);
    15961609        $keyword_list = explode(" ", $keyword);
    15971610           
    1598         for($i=0;$i < count($keyword_list);$i++){
     1611        for($i=0;$i < count($keyword_list);$i++) {
    15991612            $keyword = check_search_word( $keyword_list[$i] );
    16001613               
    16011614            $where .= " and (c_diary.subject like ? ";
     
    16291642    return array($list , $prev , $next, $total_num,$total_page_num); 
    16301643}
    16311644
    1632 function monitor_diary_comment_list($keyword,$page_size,$page){
     1645function monitor_diary_comment_list($keyword,$page_size,$page)
     1646{
    16331647
    16341648    $page = intval($page);
    16351649    $page_size = intval($page_size);
    16361650   
    16371651    $where = " where 1 ";
    16381652
    1639     if($keyword){
     1653    if ($keyword) {
    16401654        //全角空白を半角に統一
    16411655        $keyword = str_replace(" ", " ", $keyword);
    16421656        $keyword_list = explode(" ", $keyword);
    16431657           
    1644         for($i=0;$i < count($keyword_list);$i++){
     1658        for($i=0;$i < count($keyword_list);$i++) {
    16451659            $keyword = check_search_word( $keyword_list[$i] );
    16461660               
    16471661            $where .= " and (c_diary_comment.body like ? ) ";
     
    16751689}
    16761690
    16771691
    1678 function monitor_topic_comment_list($keyword,$page_size,$page){
     1692function monitor_topic_comment_list($keyword,$page_size,$page)
     1693{
    16791694
    16801695    $page = intval($page);
    16811696    $page_size = intval($page_size);
    16821697   
    16831698    $where = " where 1 ";
    16841699
    1685     if($keyword){
     1700    if ($keyword) {
    16861701        $keyword = str_replace("?@", " ", $keyword);
    16871702        $keyword_list = explode(" ", $keyword);
    16881703           
    1689         for($i=0;$i < count($keyword_list);$i++){
     1704        for($i=0;$i < count($keyword_list);$i++) {
    16901705            $keyword = check_search_word( $keyword_list[$i] );
    16911706               
    16921707            $where .= " AND (ctc.body like ? )";
     
    17221737    return array($list , $prev , $next, $total_num,$total_page_num); 
    17231738}
    17241739
    1725 
    1726 function monitor_topic_list($keyword,$page_size,$page){
    1727 
     1740function monitor_topic_list($keyword,$page_size,$page)
     1741{
    17281742    $page = intval($page);
    17291743    $page_size = intval($page_size);
    17301744   
    17311745    $where = " where 1 ";
    17321746
    1733     if($keyword){
     1747    if ($keyword) {
    17341748        $keyword = str_replace("?@", " ", $keyword);
    17351749        $keyword_list = explode(" ", $keyword);
    17361750           
    1737         for($i=0;$i < count($keyword_list);$i++){
     1751        for($i=0;$i < count($keyword_list);$i++) {
    17381752            $keyword = check_search_word( $keyword_list[$i] );
    17391753               
    17401754            $where .= " AND (ctc.body like ? ";
     
    17741788    return array($list , $prev , $next, $total_num,$total_page_num); 
    17751789}
    17761790
    1777 function _db_count_c_commu_topic_comments4c_commu_topic_id($c_commu_topic_id){
     1791function _db_count_c_commu_topic_comments4c_commu_topic_id($c_commu_topic_id)
     1792{
    17781793    $sql = "SELECT count(*) FROM c_commu_topic_comment" .
    17791794        " WHERE c_commu_topic_id = ? AND number > 0";
    17801795    $params = array($c_commu_topic_id);
    17811796    return db_get_one($sql, $params);
    17821797}
     1798//フリーページを追加
     1799function db_admin_insert_c_free_page($body)
     1800{
     1801    $data = array(
     1802        'body' => strval($body),
     1803    );
     1804    return db_insert('c_free_page', $data);
     1805}
     1806
     1807//フリーページを編集
     1808function db_admin_update_c_free_page($c_free_page_id, $body)
     1809{
     1810    $data = array(
     1811        'body' => strval($body),
     1812    );
     1813    $where = array('c_free_page_id' => intval($c_free_page_id));
     1814    return db_update('c_free_page', $data, $where);
     1815}
     1816
     1817//フリーページを削除
     1818function db_admin_delete_c_free_page($c_free_page_id)
     1819{
     1820    $sql = "DELETE FROM c_free_page WHERE c_free_page_id = ?";
     1821    $params = array(intval($c_free_page_id));
     1822    return db_query($sql, $params);
     1823}
     1824
     1825
     1826//フリーページを全て取得(ページャー付き)
     1827function db_admin_get_c_free_page_all($page, $page_size, &$pager)
     1828{
     1829    $sql = 'SELECT * FROM c_free_page ORDER BY c_free_page_id DESC';
     1830
     1831    $list = db_get_all_page($sql, $page, $page_size, $params);
     1832
     1833    $sql = 'SELECT count(*) FROM c_free_page';
     1834    $total_num = db_get_one($sql, $params);
     1835    $pager = admin_make_pager($page, $page_size, $total_num);
     1836
     1837    return $list;
     1838}
     1839
     1840//フリーページを一つ取得
     1841function db_admin_get_c_free_page_one($c_free_page_id)
     1842{
     1843    $sql = 'SELECT * FROM c_free_page WHERE c_free_page_id = ?';
     1844    $params = array(intval($c_free_page_id));
     1845
     1846    return db_get_row($sql, $params);
     1847}
     1848
    17831849?>
  • webapp/modules/admin/validate/do/insert_c_free_page.ini

     
     1[body]
     2type = "string"
     3default = ""
  • webapp/modules/admin/validate/do/update_c_admin_config.ini

     
    124124type = "string"
    125125default = ""
    126126
     127[USE_EXTRA_SERVICE]
     128type = "bool"
     129default = "1"
     130
    127131[OPENPNE_ENABLE_ROLLOVER]
    128132type = "bool"
    129133default = "0"
  • webapp/modules/admin/validate/do/update_c_free_page.ini

     
     1[c_free_page_id]
     2type = "int"
     3required = 1
     4
     5[body]
     6type = "string"
     7default = ""
  • webapp/modules/admin/validate/do/csv_member.ini

     
     1[start_id]
     2type = "int"
     3default = ""
     4
     5[end_id]
     6type = "int"
     7default = ""
  • webapp/modules/admin/validate/do/insert_c_profile.ini

    Property changes on: webapp/modules/admin/validate/do/csv_member.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
    99required = 1
    1010caption = "項目名"
    1111
     12[info]
     13type = "string"
     14required = 0
     15caption = "説明"
     16
    1217[is_required]
    1318type = "string"
    1419default = 0
  • webapp/modules/admin/validate/do/delete_c_free_page.ini

     
     1[c_free_page_id]
     2type = "int"
     3required = 1
  • webapp/modules/admin/validate/do/update_c_profile.ini

     
    1313required = 1
    1414caption = "項目名"
    1515
     16[info]
     17type = "string"
     18required = 0
     19caption = "説明"
     20
    1621[is_required]
    1722type = "string"
    1823default = 0
  • webapp/modules/admin/validate/page/access_analysis_target_member.ini

     
     1[ktai_flag]
     2type = "int"
     3required = 1
     4
     5[ymd]
     6type = "string"
     7
     8[month_flag]
     9type = "string"
     10
     11[page_name]
     12type = "string"
     13
     14[page]
     15type = "string"
     16default = 1
     17
     18[direc]
     19type = "string"
     20
     21[orderby]
     22type = "string"
     23default = 1
     24
     25[orderby1]
     26type = "string"
     27
     28[orderby2]
     29type = "string"
     30
  • webapp/modules/admin/validate/page/user_analysis_profile.ini

    Property changes on: webapp/modules/admin/validate/page/access_analysis_target_member.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[target_c_profile_id]
     2type = "int"
     3required = 1
     4
  • webapp/modules/admin/validate/page/access_analysis_target_topic.ini

    Property changes on: webapp/modules/admin/validate/page/user_analysis_profile.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[ktai_flag]
     2type = "int"
     3required = 1
     4
     5[ymd]
     6type = "string"
     7
     8[month_flag]
     9type = "string"
     10
     11[page_name]
     12type = "string"
     13
     14[page]
     15type = "string"
     16default = 1
     17
     18[direc]
     19type = "string"
     20
     21[orderby]
     22type = "string"
     23default = 1
     24
     25[orderby1]
     26type = "string"
     27
     28[orderby2]
     29type = "string"
  • webapp/modules/admin/validate/page/access_analysis_month.ini

    Property changes on: webapp/modules/admin/validate/page/access_analysis_target_topic.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[ktai_flag]
     2type = "int"
     3required = 1
  • webapp/modules/admin/validate/page/list_c_free_page.ini

    Property changes on: webapp/modules/admin/validate/page/access_analysis_month.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[page]
     2type = "int"
     3default = 1
     4
     5[page_size]
     6type = "int"
     7default = 20
  • webapp/modules/admin/validate/page/access_analysis_target_commu.ini

     
     1[ktai_flag]
     2type = "int"
     3required = 1
     4
     5[ymd]
     6type = "string"
     7
     8[month_flag]
     9type = "string"
     10
     11[page_name]
     12type = "string"
     13
     14[page]
     15type = "string"
     16default = 1
     17
     18[direc]
     19type = "string"
     20
     21[orderby]
     22type = "string"
     23default = 1
     24
     25[orderby1]
     26type = "string"
     27
     28[orderby2]
     29type = "string"
  • webapp/modules/admin/validate/page/update_c_free_page.ini

    Property changes on: webapp/modules/admin/validate/page/access_analysis_target_commu.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[c_free_page_id]
     2type = "int"
     3required = 1
  • webapp/modules/admin/validate/page/access_analysis_member.ini

     
     1[ktai_flag]
     2type = "int"
     3required = 1
     4
     5[ymd]
     6type = "string"
     7
     8[month_flag]
     9type = "string"
     10
     11[page_name]
     12type = "string"
     13
     14[page]
     15type = "string"
     16default = 1
     17
     18[direc]
     19type = "string"
     20
     21[orderby]
     22type = "string"
     23default = 1
     24
     25[orderby1]
     26type = "string"
     27
     28[orderby2]
     29type = "string"
  • webapp/modules/admin/validate/page/access_analysis_day.ini

    Property changes on: webapp/modules/admin/validate/page/access_analysis_member.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[ktai_flag]
     2type = "int"
     3required = 1
     4
     5[ymd]
     6type = "string"
     7
  • webapp/modules/admin/validate/page/access_analysis_target_diary.ini

    Property changes on: webapp/modules/admin/validate/page/access_analysis_day.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[ktai_flag]
     2type = "int"
     3required = 1
     4
     5[ymd]
     6type = "string"
     7
     8[month_flag]
     9type = "string"
     10
     11[page_name]
     12type = "string"
     13
     14[page]
     15type = "string"
     16default = 1
     17
     18[direc]
     19type = "string"
     20
     21[orderby]
     22type = "string"
     23default = 1
     24
     25[orderby1]
     26type = "string"
     27
     28[orderby2]
     29type = "string"
  • webapp/modules/admin/validate/page/user_analysis_date_day.ini

    Property changes on: webapp/modules/admin/validate/page/access_analysis_target_diary.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[date]
     2type = "string"
     3
  • webapp/modules/admin/validate/page/delete_c_free_page_confirm.ini

    Property changes on: webapp/modules/admin/validate/page/user_analysis_date_day.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[c_free_page_id]
     2type = "int"
     3required = 1
  • webapp/modules/admin/validate/page/access_analysis_page.ini

     
     1[ktai_flag]
     2type = "int"
     3required = 1
     4
     5[ymd]
     6type = "string"
     7
     8[month_flag]
     9type = "string"
     10
     11[page_name]
     12type = "string"
     13
     14[page]
     15type = "string"
     16default = 1
     17
     18[direc]
     19type = "string"
     20
     21[orderby]
     22type = "string"
     23default = 1
     24
     25[orderby1]
     26type = "string"
     27
     28[orderby2]
     29type = "string"
  • webapp/modules/admin/page/access_analysis_page.php

    Property changes on: webapp/modules/admin/validate/page/access_analysis_page.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
    88{
    99    function execute($requests)
    1010    {
    11         //----------リクエスト変数-------------//
    12         $ktai_flag = $requests['ktai_flag'];
    13         $ymd = $requests['ymd'];
    14         $month_flag = $requests['month_flag'];
    15         $orderby = $requests['orderby'];
    16         $orderby1 = $requests['orderby1'];
    17         $orderby2 = $requests['orderby2'];
    18         //----------リクエスト変数-------------//
     11        //----------リクエスト変数-------------//
     12        $ktai_flag = $requests['ktai_flag'];
     13        $ymd = $requests['ymd'];
     14        $month_flag = $requests['month_flag'];
     15        $orderby = $requests['orderby'];
     16        $orderby1 = $requests['orderby1'];
     17        $orderby2 = $requests['orderby2'];
     18        //----------リクエスト変数-------------//
    1919
    20     $v = array();
     20        $v = array();
    2121
    22     $v['SNS_NAME'] = SNS_NAME;
    23     $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
    24     $this->set($v);
     22        $v['SNS_NAME'] = SNS_NAME;
     23        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     24        $this->set($v);
    2525
    26         if($orderby1)   $orderby = $orderby1;
    27         elseif($orderby2)       $orderby = $orderby2;
     26        if ($orderby1) {
     27            $orderby = $orderby1;
     28        } elseif($orderby2) {
     29            $orderby = $orderby2;
     30        }
    2831
     32        $this->set("ktai_flag" ,$ktai_flag);
     33        $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
     34        $this->set("ymd", $ymd);
     35        $this->set("month_flag", $month_flag);
     36       
     37        if ($orderby1) {
     38            $orderby1 *= -1;
     39        } else {
     40            $orderby1 = -1;
     41        }
    2942
    30         $this->set("ktai_flag" ,$ktai_flag);
    31         $this->set("item_str", ($ktai_flag ? "携帯":"PC"));
    32         $this->set("ymd", $ymd);
    33         $this->set("month_flag", $month_flag);
    34        
    35         if($orderby1) $orderby1 *= -1;
    36         else    $orderby1 = -1;
     43        if ($orderby2) {
     44            $orderby2 *= -1;
     45        } else {
     46            $orderby2 = 2;
     47        }
    3748
    38         if($orderby2) $orderby2 *= -1;
    39         else    $orderby2 = 2;
     49        $this->set("orderby", $orderby);
     50        $this->set("orderby1", $orderby1);
     51        $this->set("orderby2", $orderby2);
    4052
    41         $this->set("orderby", $orderby);
    42         $this->set("orderby1", $orderby1);
    43         $this->set("orderby2", $orderby2);
    44 
    45         list($access_analysis_month_page, $sum)
    46                 = p_access_analysis_page_access_analysis_page4ym($ymd, $month_flag, $ktai_flag, $orderby);
    47         $this->set("access_analysis_month_page", $access_analysis_month_page);
    48         $this->set("sum", $sum);
    49        
    50         //-------------ここまで元ソース---------------//
    51 
    52 
     53        list($access_analysis_month_page, $sum)
     54                = p_access_analysis_page_access_analysis_page4ym($ymd, $month_flag, $ktai_flag, $orderby);
     55        $this->set("access_analysis_month_page", $access_analysis_month_page);
     56        $this->set("sum", $sum);
     57       
    5358        return 'success';
    5459    }
    5560}
  • webapp/modules/admin/page/access_analysis_target_member.php

     
    88{
    99    function execute($requests)
    1010    {
    11         //----------リクエスト変数-------------//
    12         $ktai_flag = $requests['ktai_flag'];
    13         $ymd = $requests['ymd'];
    14         $month_flag = $requests['month_flag'];
    15         $page_name = $requests['page_name'];
    16         $page = $requests['page'];
    17         $direc = $requests['direc'];
    18         $orderby = $requests['orderby'];
    19         $orderby1 = $requests['orderby1'];
    20         $orderby2 = $requests['orderby2'];
    21         //----------リクエスト変数-------------//
    22        
    23     $v = array();
     11        //----------リクエスト変数-------------//
     12        $ktai_flag = $requests['ktai_flag'];
     13        $ymd = $requests['ymd'];
     14        $month_flag = $requests['month_flag'];
     15        $page_name = $requests['page_name'];
     16        $page = $requests['page'];
     17        $direc = $requests['direc'];
     18        $orderby = $requests['orderby'];
     19        $orderby1 = $requests['orderby1'];
     20        $orderby2 = $requests['orderby2'];
     21        //----------リクエスト変数-------------//
     22       
     23        $v = array();
    2424
    25     $v['SNS_NAME'] = SNS_NAME;
    26     $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
    27     $this->set($v);
     25        $v['SNS_NAME'] = SNS_NAME;
     26        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     27        $this->set($v);
    2828
     29        $page_size = 10;
     30        $page += $direc;
     31        if ($orderby1) {
     32            $orderby = $orderby1;
     33        } else if ($orderby2) {
     34            $orderby = $orderby2;
     35        }
     36        $this->set("ktai_flag" ,$ktai_flag);
     37        $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
     38        $this->set("ymd", $ymd);
     39        $this->set("month_flag", $month_flag);
     40        $this->set("page_name", $page_name);
     41        if ($orderby1) {
     42            $orderby1 *= -1;
     43        } else {
     44            $orderby1 = -1;
     45        }
     46        if ($orderby2) {
     47            $orderby2 *= -1;
     48        } else {
     49            $orderby2 = 2;
     50        }
    2951
    30         //-------------ここから元ソース---------------//
    31         $page_size = 10;
    32         $page += $direc;
    33         if($orderby1)   $orderby = $orderby1;
    34         elseif($orderby2)       $orderby = $orderby2;
    35        
     52        $this->set("orderby", $orderby);
     53        $this->set("orderby1", $orderby1);
     54        $this->set("orderby2", $orderby2);
    3655
    37         $this->set("ktai_flag" ,$ktai_flag);
    38         $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
    39         $this->set("ymd", $ymd);
    40         $this->set("month_flag", $month_flag);
    41         $this->set("page_name", $page_name);
    42         if($orderby1) $orderby1 *= -1;
    43         else    $orderby1 = -1;
     56        list($target_member, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
     57                = p_access_analysis_target_member_access_member4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
     58        $this->set("target_member", $target_member);
     59        $this->set("sum", $sum);
     60        $this->set("is_prev", $is_prev);
     61        $this->set("is_next", $is_next);
     62        $this->set("page", $page);
     63        $this->set("total_num",$total_num);
     64        $this->set('start_num', $start_num);
     65        $this->set('end_num', $end_num);
    4466
    45         if($orderby2) $orderby2 *= -1;
    46         else    $orderby2 = 2;
    47 
    48         $this->set("orderby", $orderby);
    49         $this->set("orderby1", $orderby1);
    50         $this->set("orderby2", $orderby2);
    51 
    52         list($target_member, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
    53                 = p_access_analysis_target_member_access_member4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
    54         $this->set("target_member", $target_member);
    55         $this->set("sum", $sum);
    56         $this->set("is_prev", $is_prev);
    57         $this->set("is_next", $is_next);
    58         $this->set("page", $page);
    59         $this->set("total_num",$total_num);
    60         $this->set('start_num', $start_num);
    61         $this->set('end_num', $end_num);
    62        
    63         //-------------ここまで元ソース---------------//
    64 
    65 
    6667        return 'success';
    6768    }
    6869}
  • webapp/modules/admin/page/user_analysis_profile.php

     
    66    function execute($requests)
    77    {
    88
    9         //----------リクエスト変数-------------//
    10         $target_c_profile_id = $requests['target_c_profile_id'];
    11         //----------リクエスト変数-------------//
     9        //----------リクエスト変数-------------//
     10        $target_c_profile_id = $requests['target_c_profile_id'];
     11        //----------リクエスト変数-------------//
    1212
    13     $v['SNS_NAME'] = SNS_NAME;
    14     $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
    15     $this->set($v);
    16        
    17         //-------------ここから元ソース---------------//
    18         $analysis_profile = get_analysis_profile($target_c_profile_id);
    19         $this->set("analysis_profile", $analysis_profile);
    20         $this->set("count_profile_all", get_analysis_count_profile_all($target_c_profile_id));
    21        
    22        
    23         $profile_list = analysis_profile4c_profile_id($target_c_profile_id);
    24         $this->set("profile_caption", $profile_list['caption']);
    25         //-------------ここまで元ソース---------------//
     13        $v['SNS_NAME'] = SNS_NAME;
     14        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     15        $this->set($v);
     16       
     17        $analysis_profile = get_analysis_profile($target_c_profile_id);
     18        $this->set("analysis_profile", $analysis_profile);
     19        $this->set("count_profile_all", get_analysis_count_profile_all($target_c_profile_id));
     20       
     21        $profile_list = analysis_profile4c_profile_id($target_c_profile_id);
     22        $this->set("profile_caption", $profile_list['caption']);
    2623
    2724        return 'success';
    2825    }
  • webapp/modules/admin/page/insert_c_free_page.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_insert_c_free_page extends OpenPNE_Action
     9{
     10    function execute($requests)
     11    {
     12        return 'success';
     13    }
     14}
     15
     16?>
  • webapp/modules/admin/page/send_messages_search.php

     
    1414        $profile_list = db_common_c_profile_list();
    1515        $profile_value_list = array();
    1616        foreach ($cond_list as $key=>$each_cond) {
    17             if (($key == "s_year") || ($key == "e_year"))continue;
    18 
     17            if (($key == "s_year") || ($key == "e_year")) {
     18                continue;
     19            }
    1920            $c_profile_option = db_c_profile_option4c_profile_option_id($each_cond);
    2021            $profile_value_list[$key]['value'] = $c_profile_option['value'];
    2122            $profile_value_list[$key]['caption'] = $profile_list[$key]['caption'];
  • webapp/modules/admin/page/access_analysis_target_topic.php

     
    88{
    99    function execute($requests)
    1010    {
     11        //----------リクエスト変数-------------//
     12        $ktai_flag = $requests['ktai_flag'];
     13        $ymd = $requests['ymd'];
     14        $month_flag = $requests['month_flag'];
     15        $page_name = $requests['page_name'];
     16        $page = $requests['page'];
     17        $direc = $requests['direc'];
     18        $orderby = $requests['orderby'];
     19        $orderby1 = $requests['orderby1'];
     20        $orderby2 = $requests['orderby2'];
     21        //----------リクエスト変数-------------//
     22       
     23        $page_size = 10;
     24        $page += $direc;
     25        if ($orderby1) {
     26            $orderby = $orderby1;
     27        } elseif ($orderby2) {
     28            $orderby = $orderby2;
     29        }
     30        $this->set("ktai_flag" ,$ktai_flag);
     31        $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
     32        $this->set("ymd", $ymd);
     33        $this->set("month_flag", $month_flag);
     34        $this->set("page_name", $page_name);
     35        if ($orderby1) {
     36            $orderby1 *= -1;
     37        } else {
     38            $orderby1 = -1;
     39        }
     40        if ($orderby2) {
     41            $orderby2 *= -1;
     42        } else {
     43            $orderby2 = 2;
     44        }
    1145
    12         //----------リクエスト変数-------------//
    13         $ktai_flag = $requests['ktai_flag'];
    14         $ymd = $requests['ymd'];
    15         $month_flag = $requests['month_flag'];
    16         $page_name = $requests['page_name'];
    17         $page = $requests['page'];
    18         $direc = $requests['direc'];
    19         $orderby = $requests['orderby'];
    20         $orderby1 = $requests['orderby1'];
    21         $orderby2 = $requests['orderby2'];
    22         //----------リクエスト変数-------------//
    23        
    24         $page_size = 10;
    25         $page += $direc;
    26         if($orderby1)   $orderby = $orderby1;
    27         elseif($orderby2)       $orderby = $orderby2;
    28        
     46        $this->set("orderby", $orderby);
     47        $this->set("orderby1", $orderby1);
     48        $this->set("orderby2", $orderby2);
    2949
    30         $this->set("ktai_flag" ,$ktai_flag);
    31         $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
    32         $this->set("ymd", $ymd);
    33         $this->set("month_flag", $month_flag);
    34         $this->set("page_name", $page_name);
    35         if($orderby1) $orderby1 *= -1;
    36         else    $orderby1 = -1;
     50        list($target_topic, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
     51            = p_access_analysis_target_topic_target_topic4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
     52        $this->set("target_topic", $target_topic);
     53        $this->set("sum", $sum);
     54        $this->set("is_prev", $is_prev);
     55        $this->set("is_next", $is_next);
     56        $this->set("page", $page);
     57        $this->set("total_num",$total_num);
     58        $this->set('start_num', $start_num);
     59        $this->set('end_num', $end_num);
    3760
    38         if($orderby2) $orderby2 *= -1;
    39         else    $orderby2 = 2;
    40 
    41         $this->set("orderby", $orderby);
    42         $this->set("orderby1", $orderby1);
    43         $this->set("orderby2", $orderby2);
    44 
    45         list($target_topic, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
    46                 = p_access_analysis_target_topic_target_topic4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
    47         $this->set("target_topic", $target_topic);
    48         $this->set("sum", $sum);
    49         $this->set("is_prev", $is_prev);
    50         $this->set("is_next", $is_next);
    51         $this->set("page", $page);
    52         $this->set("total_num",$total_num);
    53         $this->set('start_num', $start_num);
    54         $this->set('end_num', $end_num);
    55 
    56         //-------------ここまで元ソース---------------//
    57 
    5861        $v = array();
    5962
    6063        $v['SNS_NAME'] = SNS_NAME;
     
    6467        return 'success';
    6568    }
    6669}
    67 
    6870?>
  • webapp/modules/admin/page/access_analysis_month.php

     
    1010{
    1111    function execute($requests)
    1212    {
    13                 //----------リクエスト変数-------------//
    14                 $ktai_flag = $requests['ktai_flag'];
    15                 //----------リクエスト変数-------------//
     13        //----------リクエスト変数-------------//
     14        $ktai_flag = $requests['ktai_flag'];
     15        //----------リクエスト変数-------------//
    1616
    1717        $v = array();
    1818
    1919        $v['SNS_NAME'] = SNS_NAME;
    2020        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
    2121        $this->set($v);
     22        $this->set("ktai_flag" ,$ktai_flag);
     23        $this->set("item_str", ($ktai_flag ? "携帯":"PC"));
     24        $access_analysis_month = p_access_analysis_month_access_analysis_month($ktai_flag);
     25        $this->set("access_analysis_month", $access_analysis_month);
    2226
    23                 $this->set("ktai_flag" ,$ktai_flag);
    24                 $this->set("item_str", ($ktai_flag ? "携帯":"PC"));
    25 
    26                 $access_analysis_month = p_access_analysis_month_access_analysis_month($ktai_flag);
    27                 $this->set("access_analysis_month", $access_analysis_month);
    28 
    29                 //アクティブユーザー数
    30                 $s_access_date = date("Y-m-d H:i:s" , strtotime ("-1 week") );
    31                 $list = p_member_edit_c_member_list(100,1,$s_access_date);
    32                 $this->set("active_num", $list[3]);
    33        
    34                 $nowtime = date("Y-m") . "-01";
    35                 $this->set("nowtime", $nowtime);
    36 
     27        //アクティブユーザー数
     28        $s_access_date = date("Y-m-d H:i:s" , strtotime ("-1 week") );
     29        $list = p_member_edit_c_member_list(100,1,$s_access_date);
     30        $this->set("active_num", $list[3]);
     31        $nowtime = date("Y-m") . "-01";
     32        $this->set("nowtime", $nowtime);
    3733        return 'success';
    3834    }
    3935}
    4036
    41 ?>
    42  No newline at end of file
     37?>
  • webapp/modules/admin/page/access_analysis_target_commu.php

     
    66
    77class admin_page_access_analysis_target_commu extends OpenPNE_Action
    88{
    9         function execute($requests)
    10         {
     9    function execute($requests)
     10    {
    1111
    12         //----------リクエスト変数-------------//
    13         $ktai_flag = $requests['ktai_flag'];
    14         $ymd = $requests['ymd'];
    15         $month_flag = $requests['month_flag'];
    16         $page_name = $requests['page_name'];
    17         $page = $requests['page'];
    18         $direc = $requests['direc'];
    19         $orderby = $requests['orderby'];
    20         $orderby1 = $requests['orderby1'];
    21         $orderby2 = $requests['orderby2'];
    22         //----------リクエスト変数-------------//
    23        
    24         $page_size = 10;
    25         $page += $direc;
    26         if($orderby1)   $orderby = $orderby1;
    27         elseif($orderby2)       $orderby = $orderby2;
    28        
     12        //----------リクエスト変数-------------//
     13        $ktai_flag = $requests['ktai_flag'];
     14        $ymd = $requests['ymd'];
     15        $month_flag = $requests['month_flag'];
     16        $page_name = $requests['page_name'];
     17        $page = $requests['page'];
     18        $direc = $requests['direc'];
     19        $orderby = $requests['orderby'];
     20        $orderby1 = $requests['orderby1'];
     21        $orderby2 = $requests['orderby2'];
     22        //----------リクエスト変数-------------//
     23       
     24        $page_size = 10;
     25        $page += $direc;
     26        if ($orderby1) {
     27            $orderby = $orderby1;
     28        } elseif ($orderby2) {
     29            $orderby = $orderby2;
     30        }
     31        $this->set("ktai_flag" ,$ktai_flag);
     32        $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
     33        $this->set("ymd", $ymd);
     34        $this->set("month_flag", $month_flag);
     35        $this->set("page_name", $page_name);
     36        if ($orderby1) {
     37            $orderby1 *= -1;
     38        } else {
     39            $orderby1 = -1;
     40        }
     41        if ($orderby2) {
     42            $orderby2 *= -1;
     43        } else {
     44            $orderby2 = 2;
     45        }
     46        $this->set("orderby", $orderby);
     47        $this->set("orderby1", $orderby1);
     48        $this->set("orderby2", $orderby2);
    2949
    30         $this->set("ktai_flag" ,$ktai_flag);
    31         $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
    32         $this->set("ymd", $ymd);
    33         $this->set("month_flag", $month_flag);
    34         $this->set("page_name", $page_name);
    35         if($orderby1) $orderby1 *= -1;
    36         else    $orderby1 = -1;
    37 
    38         if($orderby2) $orderby2 *= -1;
    39         else    $orderby2 = 2;
    40 
    41         $this->set("orderby", $orderby);
    42         $this->set("orderby1", $orderby1);
    43         $this->set("orderby2", $orderby2);
    44 
    45         list($target_commu, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
    46                 = p_access_analysis_target_commu_target_commu4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
    47         $this->set("target_commu", $target_commu);
    48         $this->set("sum", $sum);
    49         $this->set("is_prev", $is_prev);
    50         $this->set("is_next", $is_next);
    51         $this->set("page", $page);
    52         $this->set("total_num",$total_num);
    53         $this->set('start_num', $start_num);
    54         $this->set('end_num', $end_num);
    55        
    56         //-------------ここまで元ソース---------------//
    57 
     50        list($target_commu, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
     51                = p_access_analysis_target_commu_target_commu4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
     52        $this->set("target_commu", $target_commu);
     53        $this->set("sum", $sum);
     54        $this->set("is_prev", $is_prev);
     55        $this->set("is_next", $is_next);
     56        $this->set("page", $page);
     57        $this->set("total_num",$total_num);
     58        $this->set('start_num', $start_num);
     59        $this->set('end_num', $end_num);
     60       
    5861        $v = array();
    5962
    6063        $v['SNS_NAME'] = SNS_NAME;
  • webapp/modules/admin/page/list_c_free_page.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_list_c_free_page extends OpenPNE_Action
     9{
     10    function execute($requests)
     11    {
     12        $pager = array();
     13        $list  = db_admin_get_c_free_page_all($requests['page'], $requests['page_size'], &$pager);
     14
     15        $this->set("pager", $pager);
     16        $this->set("c_free_page_list", $list);
     17        return 'success';
     18    }
     19}
     20
     21?>
  • webapp/modules/admin/page/update_c_free_page.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_update_c_free_page extends OpenPNE_Action
     9{
     10    function execute($requests)
     11    {
     12        $this->set("c_free_page", db_admin_get_c_free_page_one($requests['c_free_page_id']));
     13        return 'success';
     14    }
     15}
     16
     17?>
  • webapp/modules/admin/page/user_analysis_date_month.php

     
    88{
    99    function execute($requests)
    1010    {
    11         //----------リクエスト変数-------------//
    12         $month = $requests['month'];
    13         //----------リクエスト変数-------------//
     11        //----------リクエスト変数-------------//
     12        $month = $requests['month'];
     13        //----------リクエスト変数-------------//
    1414
    1515        $v = array();
    1616
    1717        $v['SNS_NAME'] = SNS_NAME;
    1818        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
    1919        $this->set($v);
    20         $analysis_date_month = get_analysis_date_month();
    21         $this->set("analysis_date_month", get_analysis_date_month("",$month));
    22         $this->set("analysis_date_month_sum", array_sum($analysis_date_month));
     20        $analysis_date_month = get_analysis_date_month();
     21        $this->set("analysis_date_month", get_analysis_date_month("",$month));
     22        $this->set("analysis_date_month_sum", array_sum($analysis_date_month));
    2323
    2424        return 'success';
    2525    }
  • webapp/modules/admin/page/access_analysis_member.php

     
    88{
    99    function execute($requests)
    1010    {
    11         //----------リクエスト変数-------------//
    12         $ktai_flag = $requests['ktai_flag'];
    13         $ymd = $requests['ymd'];
    14         $month_flag = $requests['month_flag'];
    15         $page_name = $requests['page_name'];
    16         $page = $requests['page'];
    17         $direc = $requests['direc'];
    18         $orderby = $requests['orderby'];
    19         $orderby1 = $requests['orderby1'];
    20         $orderby2 = $requests['orderby2'];
    21         //----------リクエスト変数-------------//
     11        //----------リクエスト変数-------------//
     12        $ktai_flag = $requests['ktai_flag'];
     13        $ymd = $requests['ymd'];
     14        $month_flag = $requests['month_flag'];
     15        $page_name = $requests['page_name'];
     16        $page = $requests['page'];
     17        $direc = $requests['direc'];
     18        $orderby = $requests['orderby'];
     19        $orderby1 = $requests['orderby1'];
     20        $orderby2 = $requests['orderby2'];
     21        //----------リクエスト変数-------------//
    2222
    2323        $v = array();
    2424
     
    2626        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
    2727        $this->set($v);
    2828
    29         $page_size = 10;
    30         $page += $direc;
    31         if($orderby1)   $orderby = $orderby1;
    32         elseif($orderby2)       $orderby = $orderby2;
    33        
    34         $this->set("ktai_flag" ,$ktai_flag);
    35         $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
    36         $this->set("ymd", $ymd);
    37         $this->set("month_flag", $month_flag);
    38         $this->set("page_name", $page_name);
    39         if($orderby1) $orderby1 *= -1;
    40         else    $orderby1 = -1;
     29        $page_size = 10;
     30        $page += $direc;
     31        if ($orderby1) {
     32            $orderby = $orderby1;
     33        } elseif ($orderby2) {
     34            $orderby = $orderby2;
     35        }
     36        $this->set("ktai_flag" ,$ktai_flag);
     37        $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
     38        $this->set("ymd", $ymd);
     39        $this->set("month_flag", $month_flag);
     40        $this->set("page_name", $page_name);
     41        if ($orderby1) {
     42            $orderby1 *= -1;
     43        } else {
     44            $orderby1 = -1;
     45        }
     46        if ($orderby2) {
     47            $orderby2 *= -1;
     48        } else {
     49            $orderby2 = 2;
     50        }
     51        $this->set("orderby", $orderby);
     52        $this->set("orderby1", $orderby1);
     53        $this->set("orderby2", $orderby2);
    4154
    42         if($orderby2) $orderby2 *= -1;
    43         else    $orderby2 = 2;
     55        list($access_member, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
     56                = p_access_analysis_member_access_member4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
     57        $this->set("access_member", $access_member);
     58        $this->set("sum", $sum);
     59        $this->set("is_prev", $is_prev);
     60        $this->set("is_next", $is_next);
     61        $this->set("page", $page);
     62        $this->set("total_num",$total_num);
     63        $this->set('start_num', $start_num);
     64        $this->set('end_num', $end_num);
    4465
    45         $this->set("orderby", $orderby);
    46         $this->set("orderby1", $orderby1);
    47         $this->set("orderby2", $orderby2);
    48 
    49         list($access_member, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
    50                 = p_access_analysis_member_access_member4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
    51         $this->set("access_member", $access_member);
    52         $this->set("sum", $sum);
    53         $this->set("is_prev", $is_prev);
    54         $this->set("is_next", $is_next);
    55         $this->set("page", $page);
    56         $this->set("total_num",$total_num);
    57         $this->set('start_num', $start_num);
    58         $this->set('end_num', $end_num);
    59 
    6066        return 'success';
    6167    }
    6268}
  • webapp/modules/admin/page/user_analysis_generation.php

     
    88{
    99    function execute($requests)
    1010    {
    11         //----------リクエスト変数-------------//
     11        //----------リクエスト変数-------------//
    1212
    1313        $v = array();
    1414
    1515        $v['SNS_NAME'] = SNS_NAME;
    1616        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
    1717        $this->set($v);
    18         $analysis_generation = get_analysis_generation();
    19         $this->set("analysis_generation", $analysis_generation);
    20         $this->set("analysis_generation_sum", array_sum($analysis_generation));
     18        $analysis_generation = get_analysis_generation();
     19        $this->set("analysis_generation", $analysis_generation);
     20        $this->set("analysis_generation_sum", array_sum($analysis_generation));
    2121
    2222        return 'success';
    2323    }
  • webapp/modules/admin/page/access_analysis_day.php

     
    88{
    99    function execute($requests)
    1010    {
    11         //----------リクエスト変数-------------//
    12         $ktai_flag = $requests['ktai_flag'];
    13         $ymd = $requests['ymd'];
    14         //----------リクエスト変数-------------//
    15        
    16         $this->set("inc_header" ,analysis_fetch_inc_header("TOP>>".SNS_NAME."管理ページ"));
    17         $this->set("inc_footer" ,analysis_fetch_inc_footer());
    18         $this->set('SNS_NAME', SNS_NAME);
    19        
    20         //-------------ここから元ソース---------------//
    21         $this->set("ktai_flag" ,$ktai_flag);
    22         $this->set("item_str", ($ktai_flag ? "携帯":"PC"));
     11        //----------リクエスト変数-------------//
     12        $ktai_flag = $requests['ktai_flag'];
     13        $ymd = $requests['ymd'];
     14        //----------リクエスト変数-------------//
     15       
     16        $this->set("inc_header" ,admin_fetch_inc_header("TOP>>".SNS_NAME."管理ページ"));
     17        $this->set("inc_footer" ,admin_fetch_inc_footer());
     18        $this->set('SNS_NAME', SNS_NAME);
     19       
     20        $this->set("ktai_flag" ,$ktai_flag);
     21        $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
    2322
    24         $access_analysis_day = p_access_analysis_day_access_analysis_day($ymd, $ktai_flag);
    25         $this->set("access_analysis_day", $access_analysis_day);
    26        
    27         //-------------ここまで元ソース---------------//
    28 
     23        $access_analysis_day = p_access_analysis_day_access_analysis_day($ymd, $ktai_flag);
     24        $this->set("access_analysis_day", $access_analysis_day);
     25       
    2926        return 'success';
    3027    }
    3128}
  • webapp/modules/admin/page/access_analysis_target_diary.php

     
    88{
    99    function execute($requests)
    1010    {
    11                 //----------リクエスト変数-------------//
    12                 $ktai_flag = $requests['ktai_flag'];
    13                 $ymd = $requests['ymd'];
    14                 $month_flag = $requests['month_flag'];
    15                 $page_name = $requests['page_name'];
    16                 $page = $requests['page'];
    17                 $direc = $requests['direc'];
    18                 $orderby = $requests['orderby'];
    19                 $orderby1 = $requests['orderby1'];
    20                 $orderby2 = $requests['orderby2'];
    21                 //----------リクエスト変数-------------//
    22                 $this->set("inc_header" ,analysis_fetch_inc_header("TOP>>".SNS_NAME."管理ページ"));
    23                 $this->set("inc_footer" ,analysis_fetch_inc_footer());
    24                 $this->set('SNS_NAME', SNS_NAME);
     11        //----------リクエスト変数-------------//
     12        $ktai_flag = $requests['ktai_flag'];
     13        $ymd = $requests['ymd'];
     14        $month_flag = $requests['month_flag'];
     15        $page_name = $requests['page_name'];
     16        $page = $requests['page'];
     17        $direc = $requests['direc'];
     18        $orderby = $requests['orderby'];
     19        $orderby1 = $requests['orderby1'];
     20        $orderby2 = $requests['orderby2'];
     21        //----------リクエスト変数-------------//
     22        $this->set("inc_header" ,admin_fetch_inc_header("TOP>>".SNS_NAME."管理ページ"));
     23        $this->set("inc_footer" ,admin_fetch_inc_footer());
     24        $this->set('SNS_NAME', SNS_NAME);
    2525
    2626        $v = array();
    27 
    2827        $v['SNS_NAME'] = SNS_NAME;
    2928        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
    3029        $this->set($v);
    3130
    32                 //-------------ここから元ソース---------------//
    33                 $page_size = 10;
    34                 $page += $direc;
    35                 if($orderby1)   $orderby = $orderby1;
    36                 elseif($orderby2)       $orderby = $orderby2;
    37        
     31        $page_size = 10;
     32        $page += $direc;
     33        if ($orderby1) {
     34            $orderby = $orderby1;
     35        } elseif ($orderby2) {
     36            $orderby = $orderby2;
     37        }
     38        $this->set("ktai_flag" ,$ktai_flag);
     39        $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
     40        $this->set("ymd", $ymd);
     41        $this->set("month_flag", $month_flag);
     42        $this->set("page_name", $page_name);
     43        if ($orderby1) {
     44            $orderby1 *= -1;
     45        } else {
     46            $orderby1 = -1;
     47        }
     48        if ($orderby2) {
     49            $orderby2 *= -1;
     50        } else {
     51            $orderby2 = 2;
     52        }
     53        $this->set("orderby", $orderby);
     54        $this->set("orderby1", $orderby1);
     55        $this->set("orderby2", $orderby2);
    3856
    39                 $this->set("ktai_flag" ,$ktai_flag);
    40                 $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
    41                 $this->set("ymd", $ymd);
    42                 $this->set("month_flag", $month_flag);
    43                 $this->set("page_name", $page_name);
    44                 if($orderby1) $orderby1 *= -1;
    45                 else    $orderby1 = -1;
     57        list($target_diary, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
     58            = p_access_analysis_target_diary_target_diary4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
     59        $this->set("target_diary", $target_diary);
     60        $this->set("sum", $sum);
     61        $this->set("is_prev", $is_prev);
     62        $this->set("is_next", $is_next);
     63        $this->set("page", $page);
     64        $this->set("total_num",$total_num);
     65        $this->set('start_num', $start_num);
     66        $this->set('end_num', $end_num);
    4667
    47                 if($orderby2) $orderby2 *= -1;
    48                 else    $orderby2 = 2;
    49 
    50                 $this->set("orderby", $orderby);
    51                 $this->set("orderby1", $orderby1);
    52                 $this->set("orderby2", $orderby2);
    53 
    54                 list($target_diary, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
    55                         = p_access_analysis_target_diary_target_diary4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
    56                 $this->set("target_diary", $target_diary);
    57                 $this->set("sum", $sum);
    58                 $this->set("is_prev", $is_prev);
    59                 $this->set("is_next", $is_next);
    60                 $this->set("page", $page);
    61                 $this->set("total_num",$total_num);
    62                 $this->set('start_num', $start_num);
    63                 $this->set('end_num', $end_num);
    64 
    65         //-------------ここまで元ソース---------------//
    66 
    6768        return 'success';
    6869    }
    6970}
    7071
    7172
    72 ?>
    73  No newline at end of file
     73?>
  • webapp/modules/admin/page/user_analysis_date_day.php

     
    88{
    99    function execute($requests)
    1010    {
    11         //----------リクエスト変数-------------//
    12     $date = $requests['date'];
    13     $v['SNS_NAME'] = SNS_NAME;
    14     $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
    15     $this->set($v);
     11        //----------リクエスト変数-------------//
     12        $date = $requests['date'];
     13        $v['SNS_NAME'] = SNS_NAME;
     14        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     15        $this->set($v);
    1616
    17         $analysis_date_day = get_analysis_date_day($date);
    18         $this->set("date", get_analysis_date_day_d($date));
    19         $this->set("analysis_date_day", $analysis_date_day);
    20         $this->set("analysis_date_day_sum", array_sum($analysis_date_day));
    21        
     17        $analysis_date_day = get_analysis_date_day($date);
     18        $this->set("date", get_analysis_date_day_d($date));
     19        $this->set("analysis_date_day", $analysis_date_day);
     20        $this->set("analysis_date_day_sum", array_sum($analysis_date_day));
     21       
    2222        return 'success';
    2323    }
    2424}
  • webapp/modules/admin/page/delete_c_free_page_confirm.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_delete_c_free_page_confirm extends OpenPNE_Action
     9{
     10    function execute($requests)
     11    {
     12        $this->set("c_free_page", db_admin_get_c_free_page_one($requests['c_free_page_id']));
     13        return 'success';
     14    }
     15}
     16
     17?>
  • webapp/modules/admin/page/user_analysis.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 class admin_page_user_analysis extends OpenPNE_Action
    8 {
    9     function execute($requests)
    10     {
    11         //----------リクエスト変数-------------//
    12 
    13         $v = array();
    14 
    15         $v['SNS_NAME'] = SNS_NAME;
    16         $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
    17         $this->set($v);
    18 
    19         return 'success';
    20     }
    21 }
    22 
    23 ?>
  • webapp/modules/admin/templates/inc_header.tpl

     
    3333({/if})
    3434<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('send_invites')})" title="SNS招待メール送信: 複数のメールアドレス宛に招待メールを送信">SNS招待メール送信</a></li>
    3535<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_image')})" title="画像リスト・管理: SNSに登録されている画像の一覧、登録、削除">画像リスト・管理</a></li>
    36 <li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('diary_list')})">日記管理</a></li>
    37 <li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('diary_comment_list')})">日記コメント管理</a></li>
    38 <li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('topic_list')})">トピック・イベント管理</a></li>
    39 <li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('topic_comment_list')})">トピック・イベントのコメント管理</a></li>
     36<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('diary_list')})" title="日記管理">日記管理</a></li>
     37<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('diary_comment_list')})" title="日記コメント管理">日記コメント管理</a></li>
     38<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('topic_list')})" title="トピック・イベント管理">トピック・イベント管理</a></li>
     39<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('topic_comment_list')})" title="トピック・イベントのコメント管理">トピック・イベントのコメント管理</a></li>
    4040<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('delete_kakikomi')})" title="書き込み管理: 日記、コミュニティ、コミュニティトピックの強制削除">書き込み削除</a></li>
    4141<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('manage_c_commu')})" title="初期コミュニティ管理: 新規登録時に参加させるコミュニティの設定">初期コミュニティ管理</a></li>
    42 <li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('user_analysis_generation')})">世代別ユーザー表示</a></li>
    43 <li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('user_analysis_date_month')})">登録日別ユーザー表示(月次集計)</a></li>
    44 <li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('user_analysis_date_day')})">登録日別ユーザー表示(日次集計)</a></li>
     42</ul>
     43
     44<p>SNS統計情報</p>
     45
     46<ul>
     47<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('user_analysis_generation')})" title="世代別ユーザー表示">世代別ユーザー表示</a></li>
     48<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('user_analysis_date_month')})" title="登録日別ユーザー表示(月次集計)">登録日別ユーザー表示(月次集計)</a></li>
     49<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('user_analysis_date_day')})" title="登録日別ユーザー表示(日次集計)">登録日別ユーザー表示(日次集計)</a></li>
    4550({foreach from=$profile_list item=item})
    4651<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('user_analysis_profile')})&target_c_profile_id=({$item.c_profile_id})">({$item.caption})別ユーザー表示</a></li>
    4752({/foreach})
     53
     54({if $smarty.const.LOG_C_ACCESS_LOG})
     55<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_month')})&ktai_flag=0" title="PCページ(月次集計)">PCページ月次集計</a></li>
     56<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_month')})&ktai_flag=1" title="携帯ページ(月次集計)">携帯ページ月次集計</a></li>
     57({/if})
     58<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('csv_download')})">CSVダウンロード</a></li>
     59
    4860</ul>
    4961({/if})
    5062
     
    6678</ul>
    6779({/if})
    6880
     81<ul>
     82<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_free_page')})" title="フリーページ一覧: フリーページの追加、編集、削除">フリーページ管理</a></li>
     83</ul>
     84
    6985<p>管理ページ設定</p>
    7086<ul>
    7187({if $auth_type == 'all'})
  • webapp/modules/admin/templates/edit_c_admin_config.tpl

     
    242242({/literal})
    243243</td>
    244244</tr>
     245<tr><td colspan="2" style="padding:0;background:#000"><img src="skin/dummy.gif" height="1"></td></tr>
    245246
     247<tr>
     248<th>Yahoo天気/Googleの使用欄</th>
     249<td>
     250<input name="USE_EXTRA_SERVICE" type="radio" value="0"({if !$smarty.const.USE_EXTRA_SERVICE}) checked="checked"({/if})>使用しない<br>
     251<input name="USE_EXTRA_SERVICE" type="radio" value="1"({if $smarty.const.USE_EXTRA_SERVICE}) checked="checked"({/if})>使用する<br>
     252</td>
     253</tr>
     254
    246255<tr><td colspan="2" style="padding:0;background:#000"><img src="skin/dummy.gif" height="1"></td></tr>
    247256
    248 
    249257<tr>
    250258<th>&nbsp;</th>
    251259<td><input type="submit" class="submit" value="設定変更"></td>
  • webapp/modules/admin/templates/access_analysis_page.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3<h2>({$item_str})<br>
     4({if $month_flag})({$ymd|date_format:"%Y年%m月分"})({else})({$ymd|date_format:"%Y年%m月%d日分"})({/if}) 
     5ページ毎の集計</h2>
     6
     7<br><br>
     8
     9
     10<table border="1" cellspacing="0" cellpadding="3">
     11<th><a href="?m=admin&a=page_access_analysis_page&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&orderby1=({$orderby1})">ページ</a></th>
     12<th><a href="?m=admin&a=page_access_analysis_page&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&orderby2=({$orderby2})">アクセス数</a></th>
     13<th>アクセスされた<br>メンバー<br>(target_c_member_id)</td>
     14<th>アクセスされた<br>コミュニティ<br>(target_c_commu_id)</td>
     15<th>アクセスされた<br>トピック<br>(target_c_topic_id)</td>
     16<th>アクセスされた<br>日記<br>(target_c_diary_id)</td>
     17<th>アクセスした<br>メンバー<br>(c_member_id)</td>
     18
     19({foreach from=$access_analysis_month_page item=item})
     20<tr>
     21<td>({$item.page_name})</td>
     22<td>({$item.count})</td>
     23({if $item.is_target_c_member_id == 1})
     24<td><a href="?m=admin&a=page_access_analysis_target_member&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$item.page_name})">詳細</a></td>
     25({else})
     26<td><br></td>
     27({/if})
     28
     29({if $item.is_target_c_commu_id == 1})
     30<td><a href="?m=admin&a=page_access_analysis_target_commu&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$item.page_name})">詳細</a></td>
     31({else})
     32<td><br></td>
     33({/if})
     34
     35({if $item.is_target_c_topic_id == 1})
     36<td><a href="?m=admin&a=page_access_analysis_target_topic&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$item.page_name})">詳細</a></td>
     37({else})
     38<td><br></td>
     39({/if})
     40
     41({if $item.is_target_c_diary_id == 1})
     42<td><a href="?m=admin&a=page_access_analysis_target_diary&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$item.page_name})">詳細</a></td>
     43({else})
     44<td><br></td>
     45({/if})
     46
     47({if $item.is_c_member_id == 1})
     48<td><a href="?m=admin&a=page_access_analysis_member&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$item.page_name})">詳細</a></td>
     49</tr>
     50({else})
     51<td><br></td>
     52({/if})
     53({/foreach})
     54
     55<tr>
     56<td>合計</td>
     57<td>({$sum})</td>
     58<td><a href="?m=admin&a=page_access_analysis_target_member&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=all">詳細</a></td>
     59<td><a href="?m=admin&a=page_access_analysis_target_commu&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=all">詳細</a></td>
     60<td><a href="?m=admin&a=page_access_analysis_target_topic&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=all">詳細</a></td>
     61<td><a href="?m=admin&a=page_access_analysis_target_diary&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=all">詳細</a></td>
     62<td><a href="?m=admin&a=page_access_analysis_member&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=all">詳細</a></td>
     63</table>
     64
     65<br><br>
     66({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/access_analysis_target_member.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3<h2>({$item_str}) ユーザー別アクセス数表示
     4<br>
     5({if $month_flag})({$ymd|date_format:"%Y年%m月分"})({else})({$ymd|date_format:"%Y年%m月%d日分"})({/if}) 
     6</h2>
     7<br>
     8[({$page_name})]
     9<br>
     10
     11<br>
     12({if $is_prev})<a href="?m=admin&a=page_access_analysis_target_member&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby=({$orderby})&direc=-1&page=({$page})"><前を表示</a> ({/if})
     13&nbsp;&nbsp;({$start_num})件~({$end_num})件を表示&nbsp;&nbsp;
     14({if $is_next})<a href="?m=admin&a=page_access_analysis_target_member&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby=({$orderby})&direc=1&page=({$page})">次を表示></a>({/if})
     15<br>
     16<table border="1" cellspacing="0" cellpadding="5">
     17<th><a href="?m=admin&a=page_access_analysis_target_member&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby1=({$orderby1})">ID</a></th>
     18<th>ニックネーム</th>
     19<th><a href="?m=admin&a=page_access_analysis_target_member&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby2=({$orderby2})">アクセス数</a></th>
     20
     21({foreach from=$target_member item=item})
     22<tr>
     23<td>({$item.target_c_member_id})</td>
     24<td>({$item.nickname})</td>
     25<td>({$item.count})</td>
     26</tr>
     27
     28({/foreach})
     29
     30<tr>
     31<td colspan="2">合計</td>
     32<td>({$sum})</td>
     33</tr>
     34
     35</table>
     36<br><br>
     37
     38
     39
     40({$inc_page_footer})
  • webapp/modules/admin/templates/user_analysis_profile.tpl

     
     1({$inc_header|smarty:nodefaults})
     2({$inc_user_analysis_navi|smarty:nodefaults})
     3<br>
     4
     5<b>({$profile_caption})</b>
     6
     7<br><br>
     8<table width="300" border="1" cellpadding="5" cellspacing="0">
     9({foreach from=$analysis_profile item=item})
     10<tr>
     11        <td width="100">({$item.value})</td>
     12        <td>({$item.count})人</td>
     13</tr>
     14({/foreach})
     15<tr>
     16        <td width="100">合計</td>
     17        <td>({$count_profile_all})人</td>
     18</tr>
     19</table>
     20({$inc_footer|smarty:nodefaults})
     21 No newline at end of file
  • webapp/modules/admin/templates/insert_c_free_page.tpl

     
     1({$inc_header|smarty:nodefaults})
     2<h2>フリーページ追加</h2>
     3
     4<form action="./" method="post">
     5<input type="hidden" name="m" value="({$module_name})">
     6<input type="hidden" name="a" value="do_({$hash_tbl->hash('insert_c_free_page','do')})">
     7<input type="hidden" name="sessid" value="({$PHPSESSID})">
     8<textarea name="body" cols="({$cols|default:60})" rows="({$rows|default:10})"></textarea><br>
     9<input type="submit" class="submit" value="追加">
     10</form><br>
     11
     12<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_free_page')})">戻る</a>
     13({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/access_analysis_target_topic.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3<h2>({$item_str}) トピック別アクセス数表示<br>
     4({if $month_flag})({$ymd|date_format:"%Y年%m月分"})({else})({$ymd|date_format:"%Y年%m月%d日分"})({/if}) 
     5</h2>
     6<br>
     7[({$page_name})]
     8
     9<br>
     10
     11({if $is_prev})<a href="?m=admin&a=page_access_analysis_target_topic&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby=({$orderby})&direc=-1&page=({$page})"><前を表示</a> ({/if})
     12&nbsp;&nbsp;({$start_num})件~({$end_num})件を表示&nbsp;&nbsp;
     13({if $is_next})<a href="?m=admin&a=page_access_analysis_target_topic&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby=({$orderby})&direc=1&page=({$page})">次を表示></a>({/if})
     14<br>
     15<table border="1" cellspacing="0" cellpadding="5">
     16<th><a href="?m=admin&a=page_access_analysis_target_topic&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby1=({$orderby1})">ID</a></th>
     17<th>トピック名</th>
     18<th>コミュニティ名</th>
     19<th><a href="?m=admin&a=page_access_analysis_target_topic&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby2=({$orderby2})">アクセス数</a></th>
     20
     21({foreach from=$target_topic item=item})
     22<tr>
     23<td>({$item.target_c_commu_topic_id})</td>
     24<td>({$item.topic_name})</td>
     25<td>({$item.commu_name})</td>
     26<td>({$item.count})</td>
     27</tr>
     28
     29({/foreach})
     30
     31<tr>
     32<td colspan="3">合計</td>
     33<td>({$sum})</td>
     34</tr>
     35
     36</table>
     37<br><br>
     38
     39
     40
     41({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/access_analysis_month.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3
     4<h2>({$item_str})版ページ月次集計</h2>
     5
     6<br>
     7<br>
     8<b>アクセスユーザ数</b><font size=1 color=red>(PC+携帯の7日以内のログインユーザ数)</font><br>
     9({$active_num}) 人<br>
     10<br>
     11<br>
     12今月最もアクセスのあった<br>
     13<a href="?m=admin&a=page_access_analysis_target_diary&ktai_flag=({if $item_str=='PC'})0({else})1({/if})&ymd=({$nowtime})&month_flag=1&page_name=all&orderby2=-2">日記</a>
     14<a href="?m=admin&a=page_access_analysis_target_member&ktai_flag=({if $item_str=='PC'})0({else})1({/if})&ymd=({$nowtime})&month_flag=1&page_name=all&orderby2=-2">ユーザー</a>
     15<a href="?m=admin&a=page_access_analysis_target_commu&ktai_flag=({if $item_str=='PC'})0({else})1({/if})&ymd=({$nowtime})&month_flag=1&page_name=all&orderby2=-2">コミュニティ</a>
     16<a href="?m=admin&a=page_access_analysis_target_topic&ktai_flag=({if $item_str=='PC'})0({else})1({/if})&ymd=({$nowtime})&month_flag=1&page_name=all&orderby2=-2">トピック</a>
     17<br><br>
     18今月最もアクセスをした<br>
     19<a href="?m=admin&a=page_access_analysis_member&ktai_flag=({if $item_str=='PC'})0({else})1({/if})&ymd=({$nowtime})&month_flag=1&page_name=all&orderby2=-2">ユーザー</a>
     20
     21<br>
     22<br>
     23
     24<table>
     25({foreach from=$access_analysis_month item=item})
     26
     27<tr>
     28<td>
     29({$item.ym|date_format:"%Y年%m月"})
     30</td>
     31<td>
     32<a href="?m=admin&a=page_access_analysis_page&ymd=({$item.ym})&month_flag=1&ktai_flag=({$ktai_flag})">
     33({$item.count})
     34</a>
     35</td>
     36<td>
     37<a href="?m=admin&a=page_access_analysis_day&ymd=({$item.ym})&ktai_flag=({$ktai_flag})">日次集計</a>
     38</td>
     39
     40</tr>
     41({/foreach})
     42</table>
     43
     44({$inc_footer|smarty:nodefaults})
     45 No newline at end of file
  • webapp/modules/admin/templates/access_analysis_target_commu.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3<h2>({$item_str}) コミュニティ別アクセス数表示<br>
     4({if $month_flag})({$ymd|date_format:"%Y年%m月分"})({else})({$ymd|date_format:"%Y年%m月%d日分"})({/if}) 
     5</h2>
     6<br>
     7[({$page_name})]
     8
     9<br><br>
     10
     11({if $is_prev})<a href="?m=admin&a=page_access_analysis_target_commu&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby=({$orderby})&direc=-1&page=({$page})"><前を表示</a> ({/if})
     12&nbsp;&nbsp;({$start_num})件~({$end_num})件を表示&nbsp;&nbsp;
     13({if $is_next})<a href="?m=admin&a=page_access_analysis_target_commu&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby=({$orderby})&direc=1&page=({$page})">次を表示></a>({/if})
     14<br>
     15<table border="1" cellspacing="0" cellpadding="5">
     16<th><a href="?m=admin&a=page_access_analysis_target_commu&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby1=({$orderby1})">ID</a></th>
     17<th>コミュニティ名</th>
     18<th><a href="?m=admin&a=page_access_analysis_target_commu&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby2=({$orderby2})">アクセス数</a></th>
     19
     20({foreach from=$target_commu item=item})
     21<tr>
     22<td>({$item.target_c_commu_id})</td>
     23<td>({$item.name})</td>
     24<td>({$item.count})</td>
     25</tr>
     26
     27({/foreach})
     28
     29<tr>
     30<td colspan="2">合計</td>
     31<td>({$sum})</td>
     32</tr>
     33
     34</table>
     35<br><br>
     36
     37
     38({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/list_c_free_page.tpl

     
     1({$inc_header|smarty:nodefaults})
     2<h2>フリーページ管理</h2>
     3({if $msg})
     4<p class="caution">({$msg})</p>
     5({/if})
     6<p>★<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('insert_c_free_page')})">フリーページ追加</a></p>
     7
     8({if $pager && $pager.total_num > 0})
     9<!-- pager_begin -->
     10<div class="pager">
     11({$pager.total_num}) 人中 ({$pager.start_num}) - ({$pager.end_num})人目を表示しています
     12<br>
     13({if $pager.prev_page})
     14<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;
     15({/if})
     16({foreach from=$pager.disp_pages item=i})
     17({if $i == $pager.page})
     18&nbsp;<strong>({$i})</strong>&nbsp;
     19({else})
     20<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_free_page')})&amp;page=({$i})&amp;page_size=({$pager.page_size})({$cond})">&nbsp;({$i})&nbsp;</a>
     21({/if})
     22({/foreach})
     23({if $pager.next_page})
     24&nbsp;<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_free_page')})&amp;page=({$pager.next_page})&amp;page_size=({$pager.page_size})({$cond})">次へ</a>
     25({/if})
     26</div>
     27<!-- pager_end -->
     28({/if})
     29
     30<table>
     31<tr>
     32<th>ID</th>
     33<th colspan=2>操作</th>
     34</tr>
     35({foreach from=$c_free_page_list item=item})
     36({if $item})
     37<tr>
     38<td><a href="({t_url _absolute=1 m=pc a=page_h_free_page})&amp;c_free_page_id=({$item.c_free_page_id})" target="_blank">({$item.c_free_page_id})</a></td>
     39<td><a href='?m=({$module_name})&amp;a=page_({$hash_tbl->hash('update_c_free_page','page')})&amp;c_free_page_id=({$item.c_free_page_id})'>編集</a></td>
     40<td><a href='?m=({$module_name})&amp;a=page_({$hash_tbl->hash('delete_c_free_page_confirm','page')})&amp;c_free_page_id=({$item.c_free_page_id})'>削除</a></td>
     41</tr>
     42({/if})
     43({foreachelse})
     44<tr>
     45<td colspan="3">フリーページが登録されていません</td>
     46</tr>
     47({/foreach})
     48</table>
     49
     50({if $pager && $pager.total_num > 0})
     51<!-- pager_begin -->
     52<div class="pager">
     53({$pager.total_num}) 人中 ({$pager.start_num}) - ({$pager.end_num})人目を表示しています
     54<br>
     55({if $pager.prev_page})
     56<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;
     57({/if})
     58({foreach from=$pager.disp_pages item=i})
     59({if $i == $pager.page})
     60&nbsp;<strong>({$i})</strong>&nbsp;
     61({else})
     62<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_free_page')})&amp;page=({$i})&amp;page_size=({$pager.page_size})({$cond})">&nbsp;({$i})&nbsp;</a>
     63({/if})
     64({/foreach})
     65({if $pager.next_page})
     66&nbsp;<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_free_page')})&amp;page=({$pager.next_page})&amp;page_size=({$pager.page_size})({$cond})">次へ</a>
     67({/if})
     68</div>
     69<!-- pager_end -->
     70({/if})
     71
     72({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/update_c_free_page.tpl

     
     1({$inc_header|smarty:nodefaults})
     2<h2>フリーページ編集</h2>
     3
     4<form action="./" method="post">
     5<input type="hidden" name="m" value="({$module_name})">
     6<input type="hidden" name="a" value="do_({$hash_tbl->hash('update_c_free_page','do')})">
     7<input type="hidden" name="sessid" value="({$PHPSESSID})">
     8<input type="hidden" name="c_free_page_id" value="({$c_free_page.c_free_page_id})">
     9<textarea name="body" cols="({$cols|default:60})" rows="({$rows|default:10})">({$c_free_page.body})</textarea><br>
     10<input type="submit" class="submit" value="編集">
     11</form><br>
     12
     13<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_free_page')})">戻る</a>
     14({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/csv_download.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3<h2>CSVダウンロード</h2>
     4({if $msg})
     5<div class="caution">({$msg})</div>
     6({/if})
     7<br>
     8
     9
     10<div class="caution">※全件ダウンロードすると処理が重くなり、サーバーに負荷がかかる場合があります。</div>
     11<br>
     12
     13
     14メンバー情報CSV <a href="?m=({$module_name})&a=do_({$hash_tbl->hash('csv_member','do')})&sessid=({$PHPSESSID})">全件ダウンロード</a><br>
     15<br>
     16
     17<form  action="./" method="get">
     18<input type="hidden" name="m" value="({$module_name})">
     19<input type="hidden" name="a" value="do_({$hash_tbl->hash('csv_member','do')})">
     20<input type="hidden" name="sessid" value="({$PHPSESSID})">
     21メンバーIDを指定してダウンロード<br>
     22<input type="text" name="start_id" value="" size="5"> ~ <input type="text" name="end_id" value="" size="5">
     23<input type="submit" value="ダウンロード">
     24</form>
     25
     26({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/user_analysis_date_month.tpl

     
     1({$inc_header|smarty:nodefaults})
     2<br>
     3
     4<h2>登録日別ユーザー表示(月次集計)</h2>
     5
     6<br><br>
     7<table width="300" border="1" cellpadding="5" cellspacing="0">
     8<tr>
     9<th>
     10
     11</th>
     12<th>
     13人数
     14</th>
     15</tr>
     16({foreach from=$analysis_date_month key=key item=item})
     17<tr>
     18        ({if $key eq "合計"})
     19        <td width="100">({$key})</td>   
     20        ({else})
     21        <td width="100"><a href="?m=admin&a=page_user_analysis_date_day&date=({$key})">({$key})</a></td>       
     22        ({/if})
     23        <td>({$item})人</td>
     24</tr>
     25({/foreach})
     26<tr>
     27        <td width="100">合計</td>
     28        <td>({$analysis_date_month_sum})人</td>
     29</tr>
     30</table>
     31({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/insert_c_profile.tpl

     
    6262<label><input type="radio" name="disp_search" value="0">表示しない</label></td>
    6363</tr>
    6464<tr>
     65<th>説明</th>
     66<td><input type="text" name="info" size="30"></td>
     67</tr>
     68<tr>
    6569<th>フォームタイプ</th>
    6670<td><select name="form_type">
    6771<option value="text" selected="selected">テキスト</option>
     72<option value="textlong">テキスト(長)</option>
    6873<option value="textarea">テキスト(複数行)</option>
    6974<option value="select">単一選択(プルダウン)</option>
    7075<option value="radio">単一選択(ラジオボタン)</option>
     
    7378</tr>
    7479<tr>
    7580<td colspan="2" class="caution" style="background-color:#ddd;color:#000;padding-left:1em;">以下の項目はフォームタイプが<br>
    76 「テキスト」、「テキスト(複数行)」の場合のみ有効です。</td>
     81「テキスト」、「テキスト(長)」、「テキスト(複数行)」の場合のみ有効です。</td>
    7782</tr>
    7883<tr>
    7984<th>入力値タイプ</th>
  • webapp/modules/admin/templates/access_analysis_member.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3<h2>({$item_str})版<br>
     4({if $month_flag})({$ymd|date_format:"%Y年%m月"})({else})({$ymd|date_format:"%Y年%m月%d日"})({/if}) 
     5にアクセスしたメンバー
     6</h2>
     7<br>
     8[({$page_name})]
     9
     10<br><br>
     11
     12({if $is_prev})<a href="?m=admin&a=page_access_analysis_member&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby=({$orderby})&direc=-1&page=({$page})"><前を表示</a> ({/if})
     13&nbsp;&nbsp;({$start_num})件~({$end_num})件を表示&nbsp;&nbsp;
     14({if $is_next})<a href="?m=admin&a=page_access_analysis_member&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby=({$orderby})&direc=1&page=({$page})">次を表示></a>({/if})
     15<br>
     16<table border="1" cellspacing="0" cellpadding="5">
     17<th><a href="?m=admin&a=page_access_analysis_member&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby1=({$orderby1})">ID</a></th>
     18<th>ニックネーム</th>
     19<th><a href="?m=admin&a=page_access_analysis_member&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby2=({$orderby2})">アクセス数</a></th>
     20
     21({foreach from=$access_member item=item})
     22<tr>
     23<td>({$item.c_member_id})</td>
     24<td>({$item.nickname})</td>
     25<td>({$item.count})</td>
     26</tr>
     27
     28({/foreach})
     29
     30<tr>
     31<td colspan="2">合計</td>
     32<td>({$sum})</td>
     33</tr>
     34
     35</table>
     36<br><br>
     37
     38
     39
     40({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/user_analysis_generation.tpl

     
     1({$inc_header|smarty:nodefaults})
     2<br>
     3
     4<h2>世代別ユーザー表示</h2>
     5
     6<br><br>
     7<table width="300" border="1" cellpadding="5" cellspacing="0">
     8<tr>
     9<th>
     10年齢
     11</th>
     12<th>
     13人数
     14</th>
     15</tr>
     16({foreach from=$analysis_generation key=key item=item})
     17<tr>
     18        <td width="100">({$key})</td>
     19        <td>({$item})人</td>
     20</tr>
     21({/foreach})
     22<tr>
     23        <td width="100">合計</td>
     24        <td>({$analysis_generation_sum})人</td>
     25</tr>
     26</table>
     27({$inc_footer|smarty:nodefaults})
     28 No newline at end of file
  • webapp/modules/admin/templates/access_analysis_day.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3<h2>({$item_str}) 日次ページビュー集計</h2>
     4<br>
     5
     6<table>
     7({foreach from=$access_analysis_day item=item})
     8<tr>
     9
     10<td>
     11({$item.ymd|date_format:"%d日"})
     12</td>
     13
     14<td>
     15<a href="?m=admin&a=page_access_analysis_page&ymd=({$item.ymd})&month_flag=0&ktai_flag=({$ktai_flag})">({$item.count})</a>
     16</td>
     17
     18</tr>
     19({/foreach})
     20</table>
     21({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/access_analysis_target_diary.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3<h2>({$item_str}) 日記別アクセス数表示<br>
     4({if $month_flag})({$ymd|date_format:"%Y年%m月分"})({else})({$ymd|date_format:"%Y年%m月%d日分"})({/if})
     5</h2>
     6<br>
     7({$page_name})
     8
     9<br><br>
     10
     11({if $is_prev})<a href="?m=admin&a=page_access_analysis_target_diary&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby=({$orderby})&direc=-1&page=({$page})"><前を表示</a> ({/if})
     12&nbsp;&nbsp;({$start_num})件~({$end_num})件を表示&nbsp;&nbsp;
     13({if $is_next})<a href="?m=admin&a=page_access_analysis_target_diary&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby=({$orderby})&direc=1&page=({$page})">次を表示></a>({/if})
     14<br>
     15<table border="1" cellspacing="0" cellpadding="5">
     16<th><a href="?m=admin&a=page_access_analysis_target_diary&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby1=({$orderby1})">ID</a></th>
     17<th>タイトル</th>
     18<th>ニックネーム</th>
     19<th><a href="?m=admin&a=page_access_analysis_target_diary&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby2=({$orderby2})">アクセス数</a></th>
     20
     21({foreach from=$target_diary item=item})
     22<tr>
     23<td>({$item.target_c_diary_id})</td>
     24<td>({$item.subject})</td>
     25<td>({$item.nickname})</td>
     26<td>({$item.count})</td>
     27</tr>
     28
     29({/foreach})
     30
     31<tr>
     32<td colspan="3">合計</td>
     33<td>({$sum})</td>
     34</tr>
     35
     36</table>
     37<br><br>
     38
     39
     40
     41({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/update_c_profile.tpl

     
    6363<label><input type="radio" name="disp_search" value="0"({if !$c_profile.disp_search}) checked="checked"({/if})>表示しない</label></td>
    6464</tr>
    6565<tr>
     66<th>説明</th>
     67<td><input type="text" name="info" value="({$c_profile.info})" size="30"></td>
     68</tr>
     69<tr>
    6670<th>フォームタイプ</th>
    6771<td><select name="form_type">
    6872<option value="text"({if $c_profile.form_type == 'text'}) selected="selected"({/if})>テキスト</option>
     73<option value="textlong"({if $c_profile.form_type == 'textlong'}) selected="selected"({/if})>テキスト(長)</option>
    6974<option value="textarea"({if $c_profile.form_type == 'textarea'}) selected="selected"({/if})>テキスト(複数行)</option>
    7075<option value="select"({if $c_profile.form_type == 'select'}) selected="selected"({/if})>単一選択(プルダウン)</option>
    7176<option value="radio"({if $c_profile.form_type == 'radio'}) selected="selected"({/if})>単一選択(ラジオボタン)</option>
     
    7479</tr>
    7580<tr>
    7681<td colspan="2" class="caution" style="background-color:#ddd;color:#000;padding-left:1em;">以下の項目はフォームタイプが<br>
    77 「テキスト」、「テキスト(複数行)」の場合のみ有効です。</td>
     82「テキスト」、「テキスト(長)」、「テキスト(複数行)」の場合のみ有効です。</td>
    7883</tr>
    7984<tr>
    8085<th>入力値タイプ</th>
  • webapp/modules/admin/templates/edit_c_profile.tpl

     
    118118<td style="text-align:center">({if $item.is_required})○({else})×({/if})</td>
    119119<td style="text-align:center">({if $item.public_flag_edit})○({else})×({/if})</td>
    120120<td>({if $item.public_flag_default == 'private'})公開しない({elseif $item.public_flag_default == 'friend'})({$smarty.const.WORD_MY_FRIEND})まで公開({else})全員に公開({/if})</td>
    121 <td>({if $item.form_type == 'text'})テキスト({elseif $item.form_type == 'textarea'})テキスト(複数行)({elseif $item.form_type == 'select'})単一選択(プルダウン)({elseif $item.form_type == 'radio'})単一選択(ラジオボタン)({elseif $item.form_type == 'checkbox'})複数選択(チェックボックス)({/if})</td>
     121<td>({if $item.form_type == 'text'})テキスト({elseif $item.form_type == 'textlong'})テキスト(長)({elseif $item.form_type == 'textarea'})テキスト(複数行)({elseif $item.form_type == 'select'})単一選択(プルダウン)({elseif $item.form_type == 'radio'})単一選択(ラジオボタン)({elseif $item.form_type == 'checkbox'})複数選択(チェックボックス)({/if})</td>
    122122<td class="number">({$item.sort_order})</td>
    123123<td>({if $item.form_type == 'select' || $item.form_type == 'checkbox' || $item.form_type == 'radio'})<a href="#opt_({$item.name})">一覧</a>({else})&nbsp;({/if})</td>
    124124<td style="text-align:center">({if $item.disp_regist})○({else})×({/if})</td>
  • webapp/modules/admin/templates/user_analysis_date_day.tpl

     
     1({$inc_header|smarty:nodefaults})
     2<br>
     3
     4<h2>登録日別ユーザー表示(日次集計)</h2>
     5
     6<br><br>
     7({$date})
     8<table width="300" border="1" cellpadding="5" cellspacing="0">
     9<tr>
     10<th>
     11
     12</th>
     13<th>
     14人数
     15</th>
     16</tr>
     17({foreach from=$analysis_date_day key=key item=item})
     18<tr>
     19        <td width="100">({$key})</td>
     20        <td>({$item})人</td>
     21</tr>
     22({/foreach})
     23<tr>
     24        <td width="100">合計</td>
     25        <td>({$analysis_date_day_sum})人</td>
     26</tr>
     27</table>
     28({$inc_footer|smarty:nodefaults})
     29 No newline at end of file
  • webapp/modules/admin/templates/delete_c_free_page_confirm.tpl

     
     1({$inc_header|smarty:nodefaults})
     2<h2>フリーページ削除確認画面</h2>
     3
     4---<br>
     5({$c_free_page.body|smarty:nodefaults|nl2br})<br>
     6---<br>
     7
     8本当に削除してもよろしいですか?<br>
     9<br>
     10<form action="./" method="post">
     11<input type="hidden" name="m" value="({$module_name})">
     12<input type="hidden" name="a" value="do_({$hash_tbl->hash('delete_c_free_page','do')})">
     13<input type="hidden" name="sessid" value="({$PHPSESSID})">
     14<input type="hidden" name="c_free_page_id" value="({$c_free_page.c_free_page_id})">
     15<input type="submit" class="submit" value=" は い ">
     16</form>
     17<br>
     18
     19<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_free_page')})">戻る</a>
     20({$inc_footer|smarty:nodefaults})
  • webapp/modules/ktai/do/h_config_prof_update_c_member.php

     
    110110                );
    111111                switch ($profile['form_type']) {
    112112                case 'text':
     113                case 'textlong':
    113114                case 'textarea':
    114115                    $rule['type'] = $profile['val_type'];
    115116                    $rule['regexp'] = $profile['val_regexp'];
  • webapp/modules/ktai/do/o_insert_c_member.php

     
    190190                );
    191191                switch ($profile['form_type']) {
    192192                case 'text':
     193                case 'textlong':
    193194                case 'textarea':
    194195                    $rule['type'] = $profile['val_type'];
    195196                    $rule['regexp'] = $profile['val_regexp'];
  • webapp/modules/ktai/validate/page/h_free_page.ini

     
     1[c_free_page_id]
     2type = "int"
     3required = 1
  • webapp/modules/ktai/page/h_home.php

     
    2424        $this->set('c_diary_friend_list', p_h_home_c_diary_friend_list4c_member_id($u, 5));
    2525        //参加コミュニティリスト
    2626        $this->set('c_commu_list', k_p_h_home_c_commu_list_lastupdate4c_member_id($u, 5));
     27        //参加コミュニティの数
     28        $this->set('fh_com_count_user',p_common_count_c_commu4c_member_id($u));
    2729        //フレンドリスト
    2830        $this->set('c_friend_list', k_p_h_home_c_friend_list_random4c_member_id($u, 5));
     31        //フレンドの数
     32        $this->set('c_friend_count', db_friend_count_friends($u));
    2933
    3034        //参加コミュニティの新着書き込み
    3135        $this->set('c_commu_topic_list', p_h_home_c_commu_topic_comment_list4c_member_id($u, 5));
     
    6670        // 誕生日かどうか
    6771        $this->set('birthday_flag', p_h_home_birthday_flag4c_member_id($u));
    6872
     73        if (MAIL_ADDRESS_HASHED) {
     74            $mail_address = "b{$u}-".t_get_user_hash($u)."@".MAIL_SERVER_DOMAIN;
     75        } else {
     76            $mail_address = "blog"."@".MAIL_SERVER_DOMAIN;
     77        }
     78        $this->set('blog_address', $mail_address);
     79       
    6980        return 'success';
    7081    }
    7182}
  • webapp/modules/ktai/page/h_free_page.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
     7require_once OPENPNE_MODULES_DIR . '/admin/lib/db_admin.php';
     8
     9class ktai_page_h_free_page extends OpenPNE_Action
     10{
     11    function execute($requests)
     12    {
     13        $c_free_page = db_admin_get_c_free_page_one($requests['c_free_page_id']);
     14        //フリーページが存在しない
     15        if (!$c_free_page) {
     16            $this->set("msg", "指定されたフリーページは存在しません");
     17        } else {
     18            $this->set("c_free_page", $c_free_page);
     19        }
     20        return 'success';
     21    }
     22}
     23
     24?>
  • webapp/modules/ktai/templates/h_home.tpl

     
    3737<br>
    3838({/if})
    3939
    40 ◆<a href="({t_url m=ktai a=page_h_message_box})&amp;({$tail})">メッセージBOX</a><br>
     40<a href="#news" accesskey="1">1.新着リスト</a>| <a href="#config" accesskey="2">2.設定変更</a>
     41<hr>
     42◆日記<br>
     43├<a href="({t_url m=ktai a=page_h_diary_edit})&amp;({$tail})">書く</a>|<a href="mailto:({$blog_address})">メール投稿</a><br>
     44└読む[<a href="({t_url m=ktai a=page_fh_diary_list})&amp;({$tail})">自分</a>|<a href="({t_url m=ktai a=page_h_diary_list_friend})&amp;({$tail})">友達</a>|<a href="({t_url m=ktai a=page_h_diary_list_all})&amp;({$tail})">全体</a>]<br>
     45◆<a ({if $c_friend_count})href="({t_url m=ktai a=page_fh_friend_list})&amp;({$tail})" ({/if})name="menu">({$WORD_FRIEND_HALF})</a>(({$c_friend_count}))[({if $smarty.const.IS_USER_INVITE && ($smarty.const.OPENPNE_REGIST_FROM != $smarty.const.OPENPNE_REGIST_FROM_NONE)})<a href="({t_url m=ktai a=page_h_invite})&amp;({$tail})">誘う</a>|({/if})<a href="({t_url m=ktai a=page_h_friend_find_all})&amp;({$tail})">探す</a>]<br>
     46◆<a ({if $fh_com_count_user})href="({t_url m=ktai a=page_fh_com_list})&amp;({$tail})"({/if})>コミュニティ</a>(({$fh_com_count_user}))[<a href="({t_url m=ktai a=page_h_com_find_all})&amp;({$tail})">探す</a>|<a href="({t_url m=ktai a=page_h_com_add})&amp;({$tail})">作る</a>]<br>
     47◆<a href="({t_url m=ktai a=page_h_message_box})&amp;({$tail})">メッセージ</a><br>
     48◆<a href="({t_url m=ktai a=page_h_ranking})&amp;({$tail})">ランキング</a><br>
     49◆<a href="({t_url m=ktai a=page_fh_intro})&amp;({$tail})">紹介文</a><br>
    4150◆<a href="({t_url m=ktai a=page_h_ashiato})&amp;({$tail})">あしあと</a><br>
    42 ◆<a href="({t_url m=ktai a=page_h_confirm_list})&amp;({$tail})">承認待ちリスト</a><br>
    43 ◆<a href="({t_url m=ktai a=page_fh_diary_list})&amp;({$tail})">my日記</a><br>
    44 <a href="({t_url m=ktai a=page_h_diary_edit})&amp;({$tail})">→日記を書く</a><br>
    45 ◆<a href="({t_url m=ktai a=page_h_diary_list_all})&amp;({$tail})">最新日記</a><br>
    46 ◆<a href="({t_url m=ktai a=page_h_bookmark_list})&amp;({$tail})">お気に入り</a><br>
    47 ◆<a href="({t_url m=ktai a=page_h_ranking})&amp;({$tail})">ランキング</a><br>
    48 ◆<a href="({t_url m=ktai a=page_fh_intro})&amp;({$tail})">紹介文</a><br>
    49 <br>
    50 
     51<hr>
     52<a name="news">新着リスト</a>
    5153({if $c_diary_friend_list})
    5254<font color="green">[({$WORD_FRIEND_HALF})最新日記]</font><br>
    5355({foreach from=$c_diary_friend_list item=item})
    5456({$item.r_date|date_format:"%m/%d"})(({$item.nickname|t_truncate:17:""}))<br>
    55 <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:20:".."})</a>(({$item.count_comments}))({if $item.image_filename_1 || $item.image_filename_2 || $item.image_filename_3})({/if})<br>
     57 <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:20:".."})</a>(({$item.count_comments}))({if $item.image_filename_1 || $item.image_filename_2 || $item.image_filename_3})({/if})<br>
    5658({/foreach})
    5759<a href="({t_url m=ktai a=page_h_diary_list_friend})&amp;({$tail})">→もっと見る</a><br>
    58 
    59 <br>
     60<a href="#top">→このページの先頭へ戻る</a>
     61<hr>
    6062({/if})
    6163
    6264({if $c_diary_my_comment_list})
    6365<font color="green">[日記コメント記入履歴]</font><br>
    6466({foreach from=$c_diary_my_comment_list item=item})
    6567({$item.r_datetime|date_format:"%m/%d"})(({$item.nickname|t_truncate:17:""}))<br>
    66 <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:20:".."})</a>(({$item.num_comment}))({if $item.image_filename_1 || $item.image_filename_2 || $item.image_filename_3})({/if})<br>
     68 <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:20:".."})</a>(({$item.num_comment}))({if $item.image_filename_1 || $item.image_filename_2 || $item.image_filename_3})({/if})<br>
    6769({/foreach})
    6870<a href="({t_url m=ktai a=page_h_diary_comment_list})&amp;({$tail})">→もっと見る</a><br>
    69 <br>
     71<a href="#top">→このページの先頭へ戻る</a>
     72<hr>
    7073({/if})
    7174
    7275({if $c_commu_topic_list})
    7376<font color="green">[コミュニティ最新書き込み]</font><br>
    7477({foreach from=$c_commu_topic_list item=item})
    7578({$item.r_datetime|date_format:"%m/%d"})(({$item.c_commu_name|t_truncate:17:""}))<br>
    76 <a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$item.c_commu_topic_id})&amp;({$tail})">({$item.c_commu_topic_name|t_truncate:19:".."})</a>(({$item.number}))({if $item.image_filename})({/if})<br>
     79 <a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$item.c_commu_topic_id})&amp;({$tail})">({$item.c_commu_topic_name|t_truncate:19:".."})</a>(({$item.number}))({if $item.image_filename})({/if})<br>
    7780({/foreach})
    7881<a href="({t_url m=ktai a=page_h_com_comment_list})&amp;({$tail})">→もっと見る</a><br>
    79 <br>
     82<a href="#top">→このページの先頭へ戻る</a>
     83<hr>
    8084({/if})
    8185
     86({if $c_commu_list})
    8287<font color="green">[参加コミュニティ({if $count_commu})(({$count_commu}))({/if})]</font><br>
    83 ({if $c_commu_list})
    8488({foreach from=$c_commu_list item=commu})
    85 <a href="({t_url m=ktai a=page_c_home})&amp;target_c_commu_id=({$commu.c_commu_id})&amp;({$tail})">({$commu.name})</a>(({$commu.count_members}))<br>
     89 <a href="({t_url m=ktai a=page_c_home})&amp;target_c_commu_id=({$commu.c_commu_id})&amp;({$tail})">({$commu.name})</a>(({$commu.count_members}))<br>
    8690({/foreach})
    8791<a href="({t_url m=ktai a=page_fh_com_list})&amp;({$tail})">→もっと見る</a><br>
    88 ({else})
    89 参加していません<br>
     92<a href="#top">→このページの先頭へ戻る</a>
     93<hr>
    9094({/if})
    91 <br>
    92 <a href="({t_url m=ktai a=page_h_com_find_all})&amp;({$tail})">→コミュニティ検索</a><br>
    93 <br>
    9495({if $c_friend_list})
    9596<font color="green">[({$WORD_MY_FRIEND_HALF})リスト]</font><br>
    9697({foreach from=$c_friend_list item=friend})
    97 <a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$friend.c_member_id_to})&amp;({$tail})">({$friend.nickname})</a>(({$friend.count_friend}))<br>
     98 <a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$friend.c_member_id_to})&amp;({$tail})">({$friend.nickname})</a>(({$friend.count_friend}))<br>
    9899({/foreach})
    99100<a href="({t_url m=ktai a=page_fh_friend_list})&amp;({$tail})">→もっと見る</a><br>
    100101<a href="({t_url m=ktai a=page_h_manage_friend})&amp;({$tail})">→({$WORD_MY_FRIEND_HALF})管理</a><br>
     102<a href="#top">→このページの先頭へ戻る</a><br>
    101103({/if})
    102 <br>
    103 <a href="({t_url m=ktai a=page_h_friend_find_all})&amp;({$tail})">メンバー検索</a><br>
     104
    104105<hr>
    105 ({if $smarty.const.IS_USER_INVITE && ($smarty.const.OPENPNE_REGIST_FROM != $smarty.const.OPENPNE_REGIST_FROM_NONE)})
    106 <a href="({t_url m=ktai a=page_h_invite})&amp;({$tail})">友人を招待</a><br>
     106<a name="config">■設定変更</a>
    107107<br>
    108 ({/if})
    109 <a href="({t_url m=ktai a=page_h_config_prof})&amp;({$tail})">プロフィール変更</a><br>
    110 <a href="({t_url m=ktai a=page_h_config_image})&amp;({$tail})">プロフィール写真変更</a><br>
    111 <a href="({t_url m=ktai a=page_h_config})&amp;({$tail})">設定変更</a><br>
    112 <br>
     108├<a href="({t_url m=ktai a=page_h_config_prof})&amp;({$tail})">プロフィール</a><br>
     109├<a href="({t_url m=ktai a=page_h_config_image})&amp;({$tail})">写真</a><br>
     110└<a href="({t_url m=ktai a=page_h_config})&amp;({$tail})">その他</a><br>
    113111
     112<hr>
    114113<a href="({t_url m=ktai a=page_o_sns_kiyaku})">利用規約</a><br>
    115114<a href="({t_url m=ktai a=page_o_sns_privacy})">プライバシーポリシー</a><br>
     115<hr>
     116<a href="#news" accesskey="1">1.新着リスト</a>| <a href="#config" accesskey="2">2.設定変更</a>|
    116117
    117118({$inc_ktai_footer|smarty:nodefaults})
  • webapp/modules/ktai/templates/c_invite.tpl

     
    1919</select>
    2020<br>
    2121メッセージ<br>
    22 <textarea name="body">「({$c_commu.name})」コミュニティに入ってみました。よかったら一緒にどうですか?</textarea><br>
     22<textarea name="body">「({$c_commu.name})」コミュニティに入ってみました。よかったら一緒にどうですか?</textarea><br>
    2323<input type="submit" value="送信">
    2424</form>
    2525
    2626※コミュニティ管理人から紹介した場合には、承認制のコミュニティにも承認無しで参加できます。<br>
    2727<br>
    28 ※送信先の選択肢はランダムとなっています。送りたいメンバーがリストに表示されなかった場合、
     28※送信先の選択肢はランダムとなっています。送りたいメンバーがリストに表示されなかった場合、
    2929<a href="({t_url m=ktai a=page_c_invite})&amp;target_c_commu_id=({$target_c_commu_id})&amp;({$tail})">ここ</a>を押して画面を更新してください
    3030({else})
    3131紹介できる({$WORD_MY_FRIEND_HALF})がいません。
  • webapp/modules/ktai/templates/h_config_prof.tpl

     
    6666
    6767    ({if $profile.form_type == 'text'})
    6868        <input type="text" name="profile[({$profile.name})]" value="({$c_member.profile[$profile.name].value})">
     69    ({elseif $profile.form_type == 'textlong'})
     70        <input type="text" size=60 name="profile[({$profile.name})]" value="({$c_member.profile[$profile.name].value})">
    6971    ({elseif $profile.form_type == 'textarea'})
    7072        <textarea name="profile[({$profile.name})]">({$c_member.profile[$profile.name].value})</textarea>
    7173    ({elseif $profile.form_type == 'select' || $profile.form_type == 'radio'})
     
    8183        <input type="checkbox" name="profile[({$profile.name})][]" value="({$item.c_profile_option_id})"({if $c_member.profile[$profile.name].value && in_array($item.value|smarty:nodefaults, $c_member.profile[$profile.name].value)}) checked="checked"({/if})>({$item.value|default:"--"})
    8284        ({/foreach})
    8385    ({/if})
     86    ({if $profile.info})
     87    <br><font color="red">({$profile.info})</font>
     88    ({/if})
    8489    <br>
    8590
    8691    ({if $profile.public_flag_edit})
  • webapp/modules/ktai/templates/c_event_mail_confirm.tpl

     
    11({$inc_ktai_header|smarty:nodefaults})
    22
    3 <center><font color="orange">一括メッセージ</font></center>
     3<center><font color="orange">一括メッセージ</font></center>
    44<hr>
    55
    66名前<br>
    77({foreach from=$c_mail_member item=c_member})
    88<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_member.c_member_id})&amp;({$tail})">({$c_member.nickname})</a><br>
    99({/foreach})
    10 メッセージ<br>
     10メッセージ<br>
    1111({$body|nl2br})<br>
    1212({t_form m=ktai a=do_c_event_mail})
    1313<input type="hidden" name="ksid" value="({$PHPSESSID})">
     
    2424({t_form m=ktai a=page_c_event_mail})
    2525<input type="hidden" name="ksid" value="({$PHPSESSID})">
    2626<input type="hidden" name="target_c_commu_topic_id" value="({$c_commu_topic_id})">
    27 <input type="submit" value="キャンセル">
     27<input type="submit" value="キャンセル">
    2828</form>
    2929
    3030<hr>
  • webapp/modules/ktai/templates/c_bbs.tpl

     
    4242({if $c_commu_topic.image_filename3})画像:[<a href="({t_img_url filename=$c_commu_topic.image_filename3 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_commu_topic.image_filename3 f=jpg})">大</a>]<br>({/if})
    4343({$c_commu_topic.r_datetime|date_format:"%m/%d %H:%M"})<br>
    4444
    45 <a href="({t_url m=ktai a=page_c_event_member_list})&amp;target_c_commu_topic_id=({$c_commu_topic.c_commu_topic_id})&amp;({$tail})">参加者リスト</a><br>
     45<a href="({t_url m=ktai a=page_c_event_member_list})&amp;target_c_commu_topic_id=({$c_commu_topic.c_commu_topic_id})&amp;({$tail})">参加者リスト</a><br>
    4646({if $is_c_event_admin})
    47 <a href="({t_url m=ktai a=page_c_event_mail})&amp;target_c_commu_topic_id=({$c_commu_topic.c_commu_topic_id})&amp;({$tail})">一括メッセージを送る</a><br>
     47<a href="({t_url m=ktai a=page_c_event_mail})&amp;target_c_commu_topic_id=({$c_commu_topic.c_commu_topic_id})&amp;({$tail})">一括メッセージを送る</a><br>
    4848({/if})
    4949({if $is_c_event_admin || $is_admin})
    5050<a href="({t_url m=ktai a=page_c_event_edit})&amp;target_c_commu_topic_id=({$c_commu_topic_id})&amp;({$tail})">編集</a><br>
     
    9696({if $c_commu_topic.event_flag})
    9797({if !$is_c_event_admin})
    9898({if !$is_c_event_member})
    99 <input name="join_event" type="submit" value="イベントに参加する"><br>
     99<input name="join_event" type="submit" value="イベントに参加する"><br>
    100100({else})
    101 <input name="cancel_event" type="submit" value="参加をキャンセルする"><br>
     101<input name="cancel_event" type="submit" value="参加をキャンセルする"><br>
    102102({/if})
    103103({/if})
    104 <input name="write_comment" type="submit" value="コメントのみ書き込む">
     104<input name="write_comment" type="submit" value="コメントのみ書き込む">
    105105({else})
    106106<input type="submit" value="書き込む">
    107107({/if})
    108108</form>
    109 <a href="mailto:({$mail_address})">メール投稿</a><br>
     109<a href="mailto:({$mail_address})">メール投稿</a><br>
    110110画像も添付できます。
    111111({/if})
    112112({/if})
  • webapp/modules/ktai/templates/h_message.tpl

     
    11({$inc_ktai_header|smarty:nodefaults})
    22
    3 メッセージBOX<br>
     3メッセージBOX<br>
    44<hr>
    55
    66({$c_message.r_datetime|date_format:"%y/%m/%d %H:%M"})<br>
  • webapp/modules/ktai/templates/h_config_mail_receive.tpl

     
    22
    33<center><font color="orange">メール受信設定</font></center>
    44<hr>
    5 新着メッセージの通知などを登録携帯メールアドレスにお知らせします。 <br>
     5新着メッセージの通知などを登録携帯メールアドレスにお知らせします。 <br>
    66<br>
    77({t_form m=ktai a=do_h_config_mail_receive_update_mail_receive})
    88<input type="hidden" name="ksid" value="({$PHPSESSID})">
  • webapp/modules/ktai/templates/h_free_page.tpl

     
     1({$inc_ktai_header|smarty:nodefaults})
     2
     3<center>フリーページ</center>
     4<hr>
     5({if $c_free_page})
     6({$c_free_page.body|smarty:nodefaults|nl2br})
     7({else})
     8<font color=red>({$msg})</font>
     9({/if})
     10<hr>
     11
     12({$inc_ktai_footer|smarty:nodefaults})
     13 No newline at end of file
  • webapp/modules/ktai/templates/c_event_mail.tpl

     
    11({$inc_ktai_header|smarty:nodefaults})
    22
    3 <center><font color="orange">一括メッセージ</font></center>
     3<center><font color="orange">一括メッセージ</font></center>
    44<hr>
    55
    66({if $c_event_member_list})
     
    1212<input type="checkbox" name="c_member_id[]" value="({$c_member.c_member_id})" checked="checked">
    1313<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_member.c_member_id})&amp;({$tail})">({$c_member.nickname})</a><br>
    1414({/foreach})
    15 メッセージ<br>
     15メッセージ<br>
    1616<textarea name="body"></textarea><br>
    1717<input type="submit" value="確認画面">
    1818</form>
    1919({else})
    20 送信するメンバーがいません。
     20送信するメンバーがいません。
    2121({/if})
    2222
    2323<hr>
  • webapp/modules/ktai/templates/o_login.tpl

     
    88({/if})
    99<br>
    1010
     11({t_form _attr='utn' m=ktai a=do_o_easy_login})
     12<input type="hidden" name="login_params" value="({$requests.login_params})">
     13({if $ktai_address})
     14<input type="hidden" name="ktai_address" value="({$ktai_address})">
     15({/if})
     16★かんたんログイン<br>
     17<input type="submit" value="ログイン"><br>
     18<a href="({t_url m=ktai a=page_o_whatis_easy_login})">&gt;&gt;かんたんログインとは</a>
     19</form>
     20
     21<br>
     22
    1123({t_form m=ktai a=do_o_login})
    1224<input type="hidden" name="login_params" value="({$requests.login_params})">
    1325({if $ktai_address})
     
    2032<input name="password" type="text" istyle="3" mode="alphabet" value=""><br>
    2133<input name="submit" value="ログイン" type="submit"><br>
    2234</form>
    23 <br>
    2435
    25 ({t_form _attr='utn' m=ktai a=do_o_easy_login})
    26 <input type="hidden" name="login_params" value="({$requests.login_params})">
    27 ({if $ktai_address})
    28 <input type="hidden" name="ktai_address" value="({$ktai_address})">
    29 ({/if})
    30 ★かんたんログイン<br>
    31 <input type="submit" value="ログイン"><br>
    32 <a href="({t_url m=ktai a=page_o_whatis_easy_login})">&gt;&gt;かんたんログインとは</a>
    33 </form>
    34 
    3536<br>
    3637<font color="orange">■このページをブックマークしてください</font>
    3738<hr>
  • webapp/modules/ktai/templates/o_regist_input.tpl

     
    6868
    6969    ({if $profile.form_type == 'text'})
    7070        <input type="text" name="profile[({$profile.name})]" value="({$c_member.profile[$profile.name].value})">
     71    ({elseif $profile.form_type == 'textlong'})
     72        <input type="text" size=60 name="profile[({$profile.name})]" value="({$c_member.profile[$profile.name].value})">
    7173    ({elseif $profile.form_type == 'textarea'})
    7274        <textarea name="profile[({$profile.name})]">({$c_member.profile[$profile.name].value})</textarea>
    7375    ({elseif $profile.form_type == 'select' || $profile.form_type == 'radio'})
     
    8385        <input type="checkbox" name="profile[({$profile.name})][]" value="({$item.c_profile_option_id})"({if $c_member.profile[$profile.name].value && in_array($item.value|smarty:nodefaults, $c_member.profile[$profile.name].value)}) checked="checked"({/if})>({$item.value|default:"--"})
    8486        ({/foreach})
    8587    ({/if})
     88    ({if $profile.info})
     89    <br><font color="red">({$profile.info})</font>
     90    ({/if})
    8691    <br>
    8792
    8893    ({if $profile.public_flag_edit})
  • webapp/modules/ktai/templates/f_home.tpl

     
    55
    66({if $days_birthday == 0})({* 誕生日当日 *})
    77<a href="({t_url m=ktai a=page_f_message_send})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">☆Happy Birthday☆
    8 <br>お誕生日にメッセージを送りましょう</a>
     8<br>お誕生日にメッセージを送りましょう</a>
    99<hr>
    1010({elseif $days_birthday <= 3})({* 誕生日3日以内 *})
    1111<a href="({t_url m=ktai a=page_f_message_send})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">☆もうすぐ誕生日です!☆
    12 <br>お誕生日にはメッセージを送りましょう</a>
     12<br>お誕生日にはメッセージを送りましょう</a>
    1313<hr>
    1414({/if})
    1515
     
    2626現在、({$WORD_FRIEND_HALF})承認待ちです<br>
    2727<br>
    2828({/if})
    29 
    30 <a href="({t_url m=ktai a=page_f_message_send})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">メッセージを送る</a><br>
    31 <a href="({t_url m=ktai a=do_f_bookmark_add_insert_c_bookmark})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">お気に入りに追加</a><br>
    32 ({if $relation.friend})
    33 <a href="({t_url m=ktai a=page_f_intro_edit})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">紹介文を書く</a><br>
    34 ({/if})
    35 <br>
    36 
    37 ({if $relation.friend==0})
    38 ({if $relation.wait==0})
    39 <a href="({t_url m=ktai a=page_f_link_request})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">({$WORD_MY_FRIEND_HALF})に加える</a><br>
    40 <br>
    41 ({/if})
    42 ({/if})
    43 
    44 ({if $c_diary_list})
    45 ◆日記<br>
    46 ({foreach from=$c_diary_list item=c_diary})
    47 ({$c_diary.r_date|date_format:"%y/%m/%d"})-<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$c_diary.c_diary_id})&amp;({$tail})">({$c_diary.subject})</a>(({$c_diary.comment_count}))<br>
    48 ({/foreach})
    49 <a href="({t_url m=ktai a=page_fh_diary_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">→もっと読む</a><br>
    50 <br>
    51 ({/if})
    52 ◆({$WORD_FRIEND_HALF})リスト<br>
    53 ({foreach from=$c_friend_list item=c_friend})
    54 <a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_friend.c_member_id_to})&amp;({$tail})">({$c_friend.nickname})</a>(({$c_friend.count_friend}))<br>
    55 ({/foreach})
    56 <a href="({t_url m=ktai a=page_fh_friend_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">→すべて表示</a><br>
    57 <a href="({t_url m=ktai a=page_fh_intro})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">紹介文を見る</a><br>
    58 <br>
    59 ◆参加コミュニティ<br>
    60 ({foreach from=$c_commu_list item=c_commu})
    61 <a href="({t_url m=ktai a=page_c_home})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">({$c_commu.name})</a>(({$c_commu.count_members}))<br>
    62 ({/foreach})
    63 <a href="({t_url m=ktai a=page_fh_com_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">→すべて表示</a><br>
    64 <br>
    65 [プロフィール]<br>
     29<a href="#menu" accesskey="1">1.メニュー</a>({if ($relation.friend||$target_c_member.public_flag_diary=="public")&&$c_diary_list})|<a href="#news" accesskey="2">2.新着リスト</a>({/if})|<a href="#intro" accesskey="3">3.プロフィール</a>
     30<hr>
    6631({strip})
    67 ({capture name="nick"})
    68 ニックネーム:({$target_c_member.nickname})<br>
    69 ({/capture})
    7032({capture name="birth"})
    7133({if $target_c_member.age !== NULL})年齢:({$target_c_member.age})歳<br>({/if})
    7234誕生日:({$target_c_member.birth_month})月({$target_c_member.birth_day})日<br>
     
    9759({$smarty.capture.birth|smarty:nodefaults})
    9860({/if})
    9961
    100 ({if $item.value})
     62({if $item.value && $item.form_type != 'textarea'})
    10163({$item.caption}):
    10264
    103 ({if $item.form_type == 'textarea'})
    104     <br>({$item.value|nl2br})
    105 ({elseif $item.form_type == 'checkbox'})
     65({if $item.form_type == 'checkbox'})
    10666    ({$item.value|@t_implode:", "})
    10767({else})
    10868    ({$item.value})
     
    12383({if !$_cnt_nick})({$smarty.capture.nick|smarty:nodefaults})({/if})
    12484({if !$_cnt_birth})({$smarty.capture.birth|smarty:nodefaults})({/if})
    12585({/if})
    126 
    12786({/strip})
    12887
    12988<hr>
     89<a name="menu">メニュー</a>
     90<br>
     91◆<a href="({t_url m=ktai a=page_f_message_send})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">メッセージを送る</a><br>
     92◆<a href="({t_url m=ktai a=do_f_bookmark_add_insert_c_bookmark})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">お気に入りに追加</a><br>
     93◆紹介文<br>
     94({if $relation.friend})
     95├<a href="({t_url m=ktai a=page_f_intro_edit})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">書く</a><br>
     96({/if})
     97└<a href="({t_url m=ktai a=page_fh_intro})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">読む</a><br>
     98({if $relation.friend==0})
     99({if $relation.wait==0})
     100◆<a href="({t_url m=ktai a=page_f_link_request})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">({$WORD_MY_FRIEND_HALF})に加える</a><br>
     101({/if})
     102({/if})
    130103
     104<hr>
     105<a name="news">新着リスト</a>
     106<br>
     107({if $c_diary_list})
     108<font color="green">[日記]</font><br>
     109({foreach from=$c_diary_list item=c_diary})
     110 ({$c_diary.r_date|date_format:"%y/%m/%d"})-<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$c_diary.c_diary_id})&amp;({$tail})">({$c_diary.subject})</a>(({$c_diary.comment_count}))<br>
     111({/foreach})
     112<a href="({t_url m=ktai a=page_fh_diary_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">→もっと読む</a><br>
     113<a href="#top">→このページの先頭へ戻る</a>
     114<hr>
     115({/if})
     116<font color="green">[({$WORD_FRIEND_HALF})リスト]</font><br>
     117({foreach from=$c_friend_list item=c_friend})
     118 <a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_friend.c_member_id_to})&amp;({$tail})">({$c_friend.nickname})</a>(({$c_friend.count_friend}))<br>
     119({/foreach})
     120<a href="({t_url m=ktai a=page_fh_friend_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">→すべて表示</a><br>
     121<a href="({t_url m=ktai a=page_fh_intro})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">紹介文を見る</a><br>
     122<a href="#top">→このページの先頭へ戻る</a>
     123<hr>
     124<font color="green">[参加コミュニティ]</font><br>
     125({foreach from=$c_commu_list item=c_commu})
     126 <a href="({t_url m=ktai a=page_c_home})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">({$c_commu.name})</a>(({$c_commu.count_members}))<br>
     127({/foreach})
     128<a href="({t_url m=ktai a=page_fh_com_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">→すべて表示</a><br>
     129<a href="#top">→このページの先頭へ戻る</a>
     130
     131<hr>
     132<a name="intro">プロフィール</a>
     133<br>
     134({foreach from=$target_c_member.profile key=key item=item})
     135({if $item.form_type == 'textarea'})
     136<font color="green">[({$item.caption})]</font><br>
     137({$item.value|nl2br})
     138({/if})
     139({/foreach})
     140<hr>
     141
    131142({$inc_ktai_footer|smarty:nodefaults})
  • webapp/modules/ktai/templates/h_confirm_list.tpl

     
    11({$inc_ktai_header|smarty:nodefaults})
    22
    3 承認待ちリスト<br>
     3承認待ちリスト<br>
    44<hr>
    55({if $msg})
    66<font color="red">({$msg})</font><br>
  • webapp/modules/ktai/templates/fh_com_list.tpl

     
    11({$inc_ktai_header|smarty:nodefaults})
    22
    3 <center><font color="orange">参加コミュニティリスト(({$count_commus}))</font></center>
     3<center><font color="orange">参加コミュニティリスト(({$count_commus}))</font></center>
    44<hr>
    55
    66({foreach from=$c_commu_list item=c_commu})
  • webapp/modules/ktai/templates/c_home.tpl

     
    66({$c_siteadmin|smarty:nodefaults})
    77<hr>
    88({/if})
    9 ({$c_commu.info|nl2br})<br>
    10 ({if $c_commu.image_filename})
    11 コミュニティ画像:[<a href="({t_img_url filename=$c_commu.image_filename w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_commu.image_filename f=jpg})">大</a>]<br>({/if})
     9<a href="#menu" accesskey="1">1.メニュー</a>({if $is_c_commu_view})|<a href="#news" accesskey="2">2.新着リスト</a>({/if})|<a href="#intro" accesskey="3">3.説明文</a>|<a href="({t_url m=ktai a=page_h_home})&amp;({$tail})">ホーム</a>
     10<hr>
     11管理人:<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_commu.c_member_id_admin})&amp;({$tail})">({$c_commu.c_member_admin.nickname})</a><br>
     12カテゴリ:({$c_commu.c_commu_category.name})<br>
     13メンバー数:({$c_commu.count_member|default:"0"})人
     14
     15<hr>
     16<a name="menu">メニュー</a>
     17<br>
    1218({if !$relation_c_member_and_c_commu.join && !$relation_c_member_and_c_commu.wait})
    1319<a href="({t_url m=ktai a=do_inc_join_c_commu})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">このコミュニティに参加</a><br>
    1420({/if})
     21({if $relation_c_member_and_c_commu.join && !($is_unused_pc_bbs && $is_unused_ktai_bbs)})
     22◆設定変更<br>
     23({if $u == $c_commu.c_member_id_admin})
     24├<a href="({t_url m=ktai a=page_c_edit})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">コミュニティ編集</a><br>
     25├<a href="({t_url m=ktai a=page_c_edit_member})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">メンバー編集</a><br>
     26({/if})
     27└<a href="#setting">メール受信設定</a><br>
     28({/if})
     29({if !$relation_c_member_and_c_commu.join && !$relation_c_member_and_c_commu.wait})
     30◆<a href="({t_url m=ktai a=do_inc_join_c_commu})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">コミュニティに参加</a><br>
     31({/if})
     32({if $relation_c_member_and_c_commu.join})
     33◆<a href="({t_url m=ktai a=do_inc_leave_c_commu})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">コミュニティから退会</a><br>
     34({/if})
     35◆<a href="({t_url m=ktai a=page_c_invite})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">({$WORD_MY_FRIEND_HALF})に紹介</a><br>
    1536<hr>
     37<a name="news">新着リスト</a>
    1638({if $is_c_commu_view})
    17 ■トピックリスト<br>
     39<font color="green">[トピックリスト]</font><br>
    1840({foreach from=$new_topic_comment item=item})
    19 [({$item.r_datetime|date_format:"%m/%d"})]<a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$item.c_commu_topic_id})&amp;({$tail})">({$item.name})</a>(({$item.count_comments}))<br>
     41 [({$item.r_datetime|date_format:"%m/%d"})]<a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$item.c_commu_topic_id})&amp;({$tail})">({$item.name})</a>(({$item.count_comments}))<br>
    2042({foreachelse})
    21 トピックはありません<br>
     43 トピックはありません<br>
    2244({/foreach})
    2345({if $new_topic_comment})
    2446→<a href="({t_url m=ktai a=page_c_topic_list})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">もっと見る</a><br>
    2547({/if})
    26 <br>
    27 ■イベントリスト<br>
     48→<a href="({t_url m=ktai a=page_c_topic_add})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">トピック作成</a>
     49<hr>
     50<font color="green">[イベントリスト]</font><br>
    2851({foreach from=$new_topic_comment_event item=item})
    29 [({$item.r_datetime|date_format:"%m/%d"})]<a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$item.c_commu_topic_id})&amp;({$tail})">({$item.name})</a>(({$item.count_comments}))<br>
     52 [({$item.r_datetime|date_format:"%m/%d"})]<a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$item.c_commu_topic_id})&amp;({$tail})">({$item.name})</a>(({$item.count_comments}))<br>
    3053({foreachelse})
    31 イベントはありません<br>
     54 イベントはありません<br>
    3255({/foreach})
    3356({if $new_topic_comment_event})
    3457→<a href="({t_url m=ktai a=page_c_event_list})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">もっと見る</a><br>
    3558({/if})
     59→<a href="({t_url m=ktai a=page_c_event_add})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">イベント作成</a>
    3660({if $relation_c_member_and_c_commu.join})
    37 <br>
    38 ★<a href="({t_url m=ktai a=page_c_topic_add})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">トピック作成</a><br>
    39 ★<a href="({t_url m=ktai a=page_c_event_add})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">イベント作成</a><br>
     61<hr>
    4062({/if})
    4163({/if})
    42 <br>
    43 
    44 管理人:<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_commu.c_member_id_admin})&amp;({$tail})">({$c_commu.c_member_admin.nickname})</a><br>
    45 <br>
    46 ■コミュニティメンバー(({$c_commu.count_member}))<br>
     64<font color="green">[コミュニティメンバー](({$c_commu.count_member}))</font><br>
    4765({foreach from=$c_commu_member_list item=c_commu_member })
    48 <a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_commu_member.c_member_id})&amp;({$tail})">({$c_commu_member.nickname})<br>
     66 <a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_commu_member.c_member_id})&amp;({$tail})">({$c_commu_member.nickname})</a><br>
    4967({/foreach})
    50 <br>
    5168<a href="({t_url m=ktai a=page_c_member_list})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">→全て表示</a><br>
     69
     70<hr>
     71<a name="intro">説明文</a>
    5272<br>
    53 <a href="({t_url m=ktai a=page_c_invite})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">このコミュニティを紹介</a><br>
    54 ({if !$relation_c_member_and_c_commu.join&&!$relation_c_member_and_c_commu.wait})
     73({$c_commu.info|nl2br})<br>
     74({if $c_commu.image_filename})
     75コミュニティ画像:[<a href="({t_img_url filename=$c_commu.image_filename w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_commu.image_filename f=jpg})">大</a>]<br>({/if})
     76({if !$relation_c_member_and_c_commu.join && !$relation_c_member_and_c_commu.wait})
    5577<a href="({t_url m=ktai a=do_inc_join_c_commu})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">このコミュニティに参加</a><br>
    5678({/if})
    57 ({if $relation_c_member_and_c_commu.join&&$c_commu.c_member_id_admin!=$u})
    58 <a href="({t_url m=ktai a=do_inc_leave_c_commu})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">このコミュニティから退会</a><br>
    59 ({/if})
    6079
    6180({if $relation_c_member_and_c_commu.join && !($is_unused_pc_bbs && $is_unused_ktai_bbs)})
    62 <hr>
     81<hr id="setting">
    6382({t_form m=ktai a=do_c_home_update_is_receive_mail})
    6483<input type="hidden" name="ksid" value="({$PHPSESSID})">
    6584<input type="hidden" name="target_c_commu_id" value="({$c_commu.c_commu_id})">
    6685({if $c_commu.c_member_id_admin!=$u})
    67 このコミュニティの管理者からのメッセージを<br>
     86このコミュニティの管理者からのメッセージを<br>
    6887<input type="radio" value="1" name="is_receive_message"({if $is_receive_message}) checked="checked"({/if})>受け取る<br>
    6988<input type="radio" value="0" name="is_receive_message"({if !$is_receive_message}) checked="checked"({/if})>受け取らない<br>
    7089({/if})
  • webapp/modules/ktai/templates/h_friend_find_all.tpl

     
    6060    <option value="({$item.c_profile_option_id})"({if $item.c_profile_option_id == $profiles[$profile.name].c_profile_option_id}) selected({/if})>({$item.value})
    6161    ({/foreach})
    6262    </select>
    63 ({elseif $profile.form_type == 'text' || $profile.form_type == 'textarea'})
     63({elseif $profile.form_type == 'text' || $profile.form_type == 'textlong' || $profile.form_type == 'textarea'})
    6464    <input name="profile[({$profile.name})]" type="text" value="({$profiles[$profile.name].value})">
    6565({/if})
    6666<br>
  • webapp/modules/ktai/templates/c_event_mail_end.tpl

     
    11({$inc_ktai_header|smarty:nodefaults})
    22
    3 <center><font color="orange">一括メッセージ</font></center>
     3<center><font color="orange">一括メッセージ</font></center>
    44<hr>
    55
    66送信が完了しました。
  • webapp/version.php

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