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

Changeset 2099


Ignore:
Timestamp:
Mar 14, 2007, 5:12:56 PM (13 years ago)
Author:
takanashi
Message:

統計情報改善・バグ修正 r2075取り込み

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

Legend:

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

    r2079 r2099  
    11081108   
    11091109    if ($orderby == 1) {
    1110         $orderby_str = " order by target_c_member_id asc";
     1110        $orderby_str = " order by c_member_id asc";
    11111111    } elseif ($orderby == -1) {
    1112         $orderby_str = " order by target_c_member_id desc";
     1112        $orderby_str = " order by c_member_id desc";
    11131113    } elseif ($orderby == 2) {
    11141114        $orderby_str = " order by count asc";
     
    12541254function get_is_show($name)
    12551255{
     1256
     1257    $is_target_c_member_id = 0;
     1258    $is_target_c_commu_id  = 0;
     1259    $is_target_c_topic_id  = 0;
     1260    $is_target_c_diary_id  = 0;
     1261    $is_c_member_id        = 1;
     1262
     1263
    12561264    //必要のない詳細ボタンを消す
    1257     switch($name) {
    1258     case "h_home":
    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         break;
    1265 
    1266     case "fh_friend_list":
    1267         $is_target_c_member_id = 0;
    1268         $is_target_c_commu_id = 0;
    1269         $is_target_c_topic_id = 0;
    1270         $is_target_c_diary_id = 0;
    1271         $is_c_member_id = 1;
    1272         break;
    1273 
    1274     case "h_message":
    1275         $is_target_c_member_id = 0;
    1276         $is_target_c_commu_id = 0;
    1277         $is_target_c_topic_id = 0;
    1278         $is_target_c_diary_id = 0;
    1279         $is_c_member_id = 1;
    1280         break;
    1281 
    1282     case "fh_diary_list":
    1283         $is_target_c_member_id = 0;
    1284         $is_target_c_commu_id = 0;
    1285         $is_target_c_topic_id = 0;
    1286         $is_target_c_diary_id = 0;
    1287         $is_c_member_id = 1;
    1288         break;
    1289 
    1290     case "h_message_box":
    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         break;
    1297 
    1298     case "f_home":
     1265    $list = explode("_", $name);
     1266    $is_c_member_id = 1;
     1267
     1268    if (strpos($list[0], 'f') !== false) {
    12991269        $is_target_c_member_id = 1;
    1300         $is_target_c_commu_id = 0;
    1301         $is_target_c_topic_id = 0;
    1302         $is_target_c_diary_id = 0;
    1303         $is_c_member_id = 1;
    1304         break;
    1305 
    1306     case "h_com_find_all":
    1307         $is_target_c_member_id = 0;
    1308         $is_target_c_commu_id = 0;
    1309         $is_target_c_topic_id = 0;
    1310         $is_target_c_diary_id = 0;
    1311         $is_c_member_id = 1;
    1312         break;
    1313 
    1314     case "reply_message":
    1315         $is_target_c_member_id = 0;
    1316         $is_target_c_commu_id = 0;
    1317         $is_target_c_topic_id = 0;
    1318         $is_target_c_diary_id = 0;
    1319         $is_c_member_id = 1;
    1320         break;
    1321 
    1322     case "f_message_send":
    1323         $is_target_c_member_id = 0;
    1324         $is_target_c_commu_id = 0;
    1325         $is_target_c_topic_id = 0;
    1326         $is_target_c_diary_id = 0;
    1327         $is_c_member_id = 1;
    1328         break;
    1329 
    1330     case "f_message_send":
    1331         $is_target_c_member_id = 0;
    1332         $is_target_c_commu_id = 0;
    1333         $is_target_c_topic_id = 0;
    1334         $is_target_c_diary_id = 0;
    1335         $is_c_member_id = 1;
    1336         break;
    1337    
    1338     case "h_diary_list_all":
    1339         $is_target_c_member_id = 0;
    1340         $is_target_c_commu_id = 0;
    1341         $is_target_c_topic_id = 0;
    1342         $is_target_c_diary_id = 0;
    1343         $is_c_member_id = 1;
    1344         break;
    1345 
    1346     case "h_search":
    1347         $is_target_c_member_id = 0;
    1348         $is_target_c_commu_id = 0;
    1349         $is_target_c_topic_id = 0;
    1350         $is_target_c_diary_id = 0;
    1351         $is_c_member_id = 1;
    1352         break;
    1353 
    1354     case "f_message_send_confirm":
    1355         $is_target_c_member_id = 1;
    1356         $is_target_c_commu_id = 0;
    1357         $is_target_c_topic_id = 0;
    1358         $is_target_c_diary_id = 0;
    1359         $is_c_member_id = 1;
    1360         break;
    1361 
    1362     default:
    1363         $is_target_c_member_id = 1;
     1270    }
     1271    if (strpos($list[0], 'c') !== false) {
    13641272        $is_target_c_commu_id = 1;
     1273    }
     1274
     1275    if (strpos($name, 'topic') !== false || strpos($name, 'event') !== false) {
    13651276        $is_target_c_topic_id = 1;
     1277    }
     1278    if (strpos($name, 'diary') !== false) {
    13661279        $is_target_c_diary_id = 1;
    1367         $is_c_member_id = 1;
    1368         break;
    1369     }
     1280    }
     1281
    13701282
    13711283    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/debug/2_6_5/webapp/modules/admin/templates/access_analysis_member.tpl

    r2059 r2099  
    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/debug/2_6_5/webapp/modules/admin/templates/access_analysis_page.tpl

    r1484 r2099  
    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/debug/2_6_5/webapp/modules/admin/templates/access_analysis_target_commu.tpl

    r1484 r2099  
    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/debug/2_6_5/webapp/modules/admin/templates/access_analysis_target_diary.tpl

    r1484 r2099  
    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/debug/2_6_5/webapp/modules/admin/templates/access_analysis_target_member.tpl

    r1484 r2099  
    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/debug/2_6_5/webapp/modules/admin/templates/access_analysis_target_topic.tpl

    r1484 r2099  
    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.