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

Changeset 2433


Ignore:
Timestamp:
Apr 5, 2007, 3:30:27 PM (12 years ago)
Author:
takanashi
Message:

統計情報表示機能の改善、バグ修正

Location:
OpenPNE/branches/2_6/webapp/modules/admin
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2_6/webapp/modules/admin/lib/db_admin.php

    r2412 r2433  
    11101110   
    11111111    if ($orderby == 1) {
    1112         $orderby_str = " order by target_c_member_id asc";
     1112        $orderby_str = " order by c_member_id asc";
    11131113    } elseif ($orderby == -1) {
    1114         $orderby_str = " order by target_c_member_id desc";
     1114        $orderby_str = " order by c_member_id desc";
    11151115    } elseif ($orderby == 2) {
    11161116        $orderby_str = " order by count asc";
     
    12561256function get_is_show($name)
    12571257{
     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
    12581266    //必要のない詳細ボタンを消す
    1259     switch($name) {
    1260     case "h_home":
    1261         $is_target_c_member_id = 0;
    1262         $is_target_c_commu_id = 0;
    1263         $is_target_c_topic_id = 0;
    1264         $is_target_c_diary_id = 0;
    1265         $is_c_member_id = 1;
    1266         break;
    1267 
    1268     case "fh_friend_list":
    1269         $is_target_c_member_id = 0;
    1270         $is_target_c_commu_id = 0;
    1271         $is_target_c_topic_id = 0;
    1272         $is_target_c_diary_id = 0;
    1273         $is_c_member_id = 1;
    1274         break;
    1275 
    1276     case "h_message":
    1277         $is_target_c_member_id = 0;
    1278         $is_target_c_commu_id = 0;
    1279         $is_target_c_topic_id = 0;
    1280         $is_target_c_diary_id = 0;
    1281         $is_c_member_id = 1;
    1282         break;
    1283 
    1284     case "fh_diary_list":
    1285         $is_target_c_member_id = 0;
    1286         $is_target_c_commu_id = 0;
    1287         $is_target_c_topic_id = 0;
    1288         $is_target_c_diary_id = 0;
    1289         $is_c_member_id = 1;
    1290         break;
    1291 
    1292     case "h_message_box":
    1293         $is_target_c_member_id = 0;
    1294         $is_target_c_commu_id = 0;
    1295         $is_target_c_topic_id = 0;
    1296         $is_target_c_diary_id = 0;
    1297         $is_c_member_id = 1;
    1298         break;
    1299 
    1300     case "f_home":
     1267    $list = explode("_", $name);
     1268    $is_c_member_id = 1;
     1269
     1270    if (strpos($list[0], 'f') !== false) {
    13011271        $is_target_c_member_id = 1;
    1302         $is_target_c_commu_id = 0;
    1303         $is_target_c_topic_id = 0;
    1304         $is_target_c_diary_id = 0;
    1305         $is_c_member_id = 1;
    1306         break;
    1307 
    1308     case "h_com_find_all":
    1309         $is_target_c_member_id = 0;
    1310         $is_target_c_commu_id = 0;
    1311         $is_target_c_topic_id = 0;
    1312         $is_target_c_diary_id = 0;
    1313         $is_c_member_id = 1;
    1314         break;
    1315 
    1316     case "reply_message":
    1317         $is_target_c_member_id = 0;
    1318         $is_target_c_commu_id = 0;
    1319         $is_target_c_topic_id = 0;
    1320         $is_target_c_diary_id = 0;
    1321         $is_c_member_id = 1;
    1322         break;
    1323 
    1324     case "f_message_send":
    1325         $is_target_c_member_id = 0;
    1326         $is_target_c_commu_id = 0;
    1327         $is_target_c_topic_id = 0;
    1328         $is_target_c_diary_id = 0;
    1329         $is_c_member_id = 1;
    1330         break;
    1331 
    1332     case "f_message_send":
    1333         $is_target_c_member_id = 0;
    1334         $is_target_c_commu_id = 0;
    1335         $is_target_c_topic_id = 0;
    1336         $is_target_c_diary_id = 0;
    1337         $is_c_member_id = 1;
    1338         break;
    1339    
    1340     case "h_diary_list_all":
    1341         $is_target_c_member_id = 0;
    1342         $is_target_c_commu_id = 0;
    1343         $is_target_c_topic_id = 0;
    1344         $is_target_c_diary_id = 0;
    1345         $is_c_member_id = 1;
    1346         break;
    1347 
    1348     case "h_search":
    1349         $is_target_c_member_id = 0;
    1350         $is_target_c_commu_id = 0;
    1351         $is_target_c_topic_id = 0;
    1352         $is_target_c_diary_id = 0;
    1353         $is_c_member_id = 1;
    1354         break;
    1355 
    1356     case "f_message_send_confirm":
    1357         $is_target_c_member_id = 1;
    1358         $is_target_c_commu_id = 0;
    1359         $is_target_c_topic_id = 0;
    1360         $is_target_c_diary_id = 0;
    1361         $is_c_member_id = 1;
    1362         break;
    1363 
    1364     default:
    1365         $is_target_c_member_id = 1;
     1272    }
     1273    if (strpos($list[0], 'c') !== false) {
    13661274        $is_target_c_commu_id = 1;
     1275    }
     1276
     1277    if (strpos($name, 'topic') !== false || strpos($name, 'event') !== false) {
    13671278        $is_target_c_topic_id = 1;
     1279    }
     1280    if (strpos($name, 'diary') !== false) {
    13681281        $is_target_c_diary_id = 1;
    1369         $is_c_member_id = 1;
    1370         break;
    1371     }
     1282    }
     1283
    13721284
    13731285    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);
  • OpenPNE/branches/2_6/webapp/modules/admin/templates/access_analysis_member.tpl

    r2059 r2433  
    2424
    2525({if $is_prev})
    26 <a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby=({$orderby})&direc=-1&page=({$page})"><前を表示</a>
     26<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby=({$orderby})&direc=-1&page=({$page})"><前を表示</a>
    2727({/if})
    2828&nbsp;&nbsp;({$start_num})件~({$end_num})件を表示&nbsp;&nbsp;
    29 ({if $is_next})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('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})
     29({if $is_next})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby=({$orderby})&direc=1&page=({$page})">次を表示></a>({/if})
    3030<br>
    3131<table cellspacing="0" cellpadding="5" class="basicType2">
    32 <th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby1=({$orderby1})">ID</a></th>
     32<th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby1=({$orderby1})">ID</a></th>
    3333<th>ニックネーム</th>
    34 <th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby2=({$orderby2})">アクセス数</a></th>
     34<th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby2=({$orderby2})">アクセス数</a></th>
    3535
    3636({foreach from=$access_member item=item})
  • OpenPNE/branches/2_6/webapp/modules/admin/templates/access_analysis_page.tpl

    r1484 r2433  
    2323<thead>
    2424<th>
    25 <a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('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>
    2625<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_page')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&orderby1=({$orderby1})">ページ</a></th>
    2726<th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_page')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&orderby2=({$orderby2})">アクセス数</a></th>
  • OpenPNE/branches/2_6/webapp/modules/admin/templates/access_analysis_target_commu.tpl

    r1484 r2433  
    2525<br><br>
    2626
    27 ({if $is_prev})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('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})
     27({if $is_prev})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_commu')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby=({$orderby})&direc=-1&page=({$page})"><前を表示</a> ({/if})
    2828&nbsp;&nbsp;({$start_num})件~({$end_num})件を表示&nbsp;&nbsp;
    29 ({if $is_next})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('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})
     29({if $is_next})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_commu')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby=({$orderby})&direc=1&page=({$page})">次を表示></a>({/if})
    3030<br>
    3131<table cellspacing="0" cellpadding="5" class="basicType2">
    3232<thead>
    33 <th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_commu')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby1=({$orderby1})">ID</a></th>
     33<th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_commu')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby1=({$orderby1})">ID</a></th>
    3434<th>コミュニティ名</th>
    35 <th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_commu')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby2=({$orderby2})">アクセス数</a></th>
     35<th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_commu')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby2=({$orderby2})">アクセス数</a></th>
    3636</thead>
    3737<tbody>
  • OpenPNE/branches/2_6/webapp/modules/admin/templates/access_analysis_target_diary.tpl

    r1484 r2433  
    2727<br><br>
    2828
    29 ({if $is_prev})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('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})
     29({if $is_prev})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_diary')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby=({$orderby})&direc=-1&page=({$page})"><前を表示</a> ({/if})
    3030&nbsp;&nbsp;({$start_num})件~({$end_num})件を表示&nbsp;&nbsp;
    31 ({if $is_next})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('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})
     31({if $is_next})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_diary')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby=({$orderby})&direc=1&page=({$page})">次を表示></a>({/if})
    3232<br>
    3333<table cellspacing="0" cellpadding="5" class="basicType2">
    34 <th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_diary')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby1=({$orderby1})">ID</a></th>
     34<th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_diary')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby1=({$orderby1})">ID</a></th>
    3535<th>タイトル</th>
    3636<th>ニックネーム</th>
    37 <th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_diary')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby2=({$orderby2})">アクセス数</a></th>
     37<th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_diary')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby2=({$orderby2})">アクセス数</a></th>
    3838
    3939({foreach from=$target_diary item=item})
  • OpenPNE/branches/2_6/webapp/modules/admin/templates/access_analysis_target_member.tpl

    r2412 r2433  
    2727
    2828<br>
    29 ({if $is_prev})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('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})
     29({if $is_prev})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby=({$orderby})&direc=-1&page=({$page})"><前を表示</a> ({/if})
    3030&nbsp;&nbsp;({$start_num})件~({$end_num})件を表示&nbsp;&nbsp;
    31 ({if $is_next})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('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})
     31({if $is_next})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby=({$orderby})&direc=1&page=({$page})">次を表示></a>({/if})
    3232<br>
    3333<table cellspacing="0" cellpadding="5" class="basicType2">
    34 <th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby1=({$orderby1})">ID</a></th>
     34<th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby1=({$orderby1})">ID</a></th>
    3535<th>ニックネーム</th>
    36 <th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby2=({$orderby2})">アクセス数</a></th>
     36<th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_member')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby2=({$orderby2})">アクセス数</a></th>
    3737
    3838({foreach from=$target_member item=item})
  • OpenPNE/branches/2_6/webapp/modules/admin/templates/access_analysis_target_topic.tpl

    r1484 r2433  
    2929<div class="listControl">
    3030<p class="listMove">
    31 ({if $is_prev})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('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})
     31({if $is_prev})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_topic')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby=({$orderby})&direc=-1&page=({$page})"><前を表示</a> ({/if})
    3232&nbsp;&nbsp;({$start_num})件~({$end_num})件を表示&nbsp;&nbsp;
    33 ({if $is_next})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('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})
     33({if $is_next})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_topic')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby=({$orderby})&direc=1&page=({$page})">次を表示></a>({/if})
    3434</p>
    3535</div>
     
    3838        <thead>
    3939                <tr>
    40                 <th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_topic')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby1=({$orderby1})">ID</a></th>
     40                <th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_topic')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby1=({$orderby1})">ID</a></th>
    4141                <th>トピック名</th>
    4242                <th>コミュニティ名</th>
    43                 <th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_topic')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$page_name})&orderby2=({$orderby2})">アクセス数</a></th>
     43                <th><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('access_analysis_target_topic')})&ktai_flag=({$ktai_flag})&ymd=({$ymd})&month_flag=({$month_flag})&page_name=({$requests.page_name})&orderby2=({$orderby2})">アクセス数</a></th>
    4444                </tr>
    4545        </thead>
Note: See TracChangeset for help on using the changeset viewer.