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

Changeset 861


Ignore:
Timestamp:
Nov 23, 2006, 4:19:49 PM (14 years ago)
Author:
takanashi
Message:

analysis/monitor部分のPEARコーディング規約化

Location:
OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/access_analysis_day.php

    r814 r861  
    99    function execute($requests)
    1010    {
    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         //-------------ここから元ソース---------------//
    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    }
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/access_analysis_member.php

    r772 r861  
    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();
     
    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;
    44 
    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);
     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);
    5965
    6066        return 'success';
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/access_analysis_month.php

    r772 r861  
    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();
     
    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    }
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/access_analysis_page.php

    r772 r861  
    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    }
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/access_analysis_target_commu.php

    r772 r861  
    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
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/access_analysis_target_diary.php

    r814 r861  
    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" ,admin_fetch_inc_header("TOP>>".SNS_NAME."管理ページ"));
    23                 $this->set("inc_footer" ,admin_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;
    46 
    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         //-------------ここまで元ソース---------------//
     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);
    6667
    6768        return 'success';
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/access_analysis_target_member.php

    r772 r861  
    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;
    44 
    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 
     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);
    6566
    6667        return 'success';
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/access_analysis_target_topic.php

    r772 r861  
    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;
    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_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         //-------------ここまで元ソース---------------//
     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);
    5760
    5861        $v = array();
     
    6568    }
    6669}
    67 
    6870?>
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/send_messages_search.php

    r276 r861  
    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'];
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/user_analysis_date_day.php

    r772 r861  
    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    }
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/user_analysis_date_month.php

    r772 r861  
    99    function execute($requests)
    1010    {
    11         //----------リクエスト変数-------------//
    12         $month = $requests['month'];
    13         //----------リクエスト変数-------------//
     11        //----------リクエスト変数-------------//
     12        $month = $requests['month'];
     13        //----------リクエスト変数-------------//
    1414
    1515        $v = array();
     
    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';
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/user_analysis_generation.php

    r814 r861  
    99    function execute($requests)
    1010    {
    11         //----------リクエスト変数-------------//
     11        //----------リクエスト変数-------------//
    1212
    1313        $v = array();
  • OpenPNE/branches/takanashi/prj_takanashi/webapp/modules/admin/page/user_analysis_profile.php

    r772 r861  
    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';
Note: See TracChangeset for help on using the changeset viewer.