X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMember%2FPage%2FDashBoard.php;h=d44ce85c25fb9ca6bb37e7ddbddd1a647270d81a;hb=9847453b18bb30a6d9a5a53e006b4dd9ba145e59;hp=13510225ec557d7f9d59cda997d302884ee7dcb1;hpb=3bf2661bd263d718e867ad5170965d1bcb110df6;p=civicrm-core.git diff --git a/CRM/Member/Page/DashBoard.php b/CRM/Member/Page/DashBoard.php index 13510225ec..d44ce85c25 100644 --- a/CRM/Member/Page/DashBoard.php +++ b/CRM/Member/Page/DashBoard.php @@ -1,34 +1,18 @@ $details) { - foreach ($details as $key => $value) { - switch ($key) { - case 'premonth': - $membershipSummary[$typeID][$key]['new']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&join=$preMonth&joinEnd=$preMonthEnd&start=$preMonth&end=$preMonthEnd"); - $membershipSummary[$typeID][$key]['renew']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&joinEnd=$prePreMonthEnd&start=$preMonth&end=$preMonthEnd"); - $membershipSummary[$typeID][$key]['total']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&start=$preMonth&end=$preMonthEnd"); - break; - - case 'month': - $membershipSummary[$typeID][$key]['new']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&join=$monthStart&joinEnd=$ymd&start=$monthStart&end=$ymd"); - $membershipSummary[$typeID][$key]['renew']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&joinEnd=$preMonthStart&start=$monthStart&end=$ymd"); - $membershipSummary[$typeID][$key]['total']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&start=$monthStart&end=$ymd"); - break; - - case 'year': - $membershipSummary[$typeID][$key]['new']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&join=$yearStart&joinEnd=$ymd&start=$yearStart&end=$ymd"); - $membershipSummary[$typeID][$key]['renew']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&joinEnd=$preYearStart&start=$yearStart&end=$ymd"); - $membershipSummary[$typeID][$key]['total']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&start=$yearStart&end=$ymd"); - break; - - case 'current': - $membershipSummary[$typeID][$key]['total']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID"); - break; - - case 'total': - if (!$isCurrentMonth) { - $membershipSummary[$typeID][$key]['total']['url'] = CRM_Utils_System::url('civicrm/member/search', - "reset=1&force=1&start=&end=$ymd&status=$status&type=$typeID" - ); - } - else { - $membershipSummary[$typeID][$key]['total']['url'] = CRM_Utils_System::url('civicrm/member/search', - "reset=1&force=1&status=$status" - ); - } - break; - - //LCD add owner urls - - case 'premonth_owner': - $membershipSummary[$typeID][$key]['premonth_owner']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&start=$preMonth&end=$preMonthEnd&owner=1"); - break; - - case 'month_owner': - $membershipSummary[$typeID][$key]['month_owner']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&start=$monthStart&end=$ymd&owner=1"); - break; - - case 'year_owner': - $membershipSummary[$typeID][$key]['year_owner']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&start=$yearStart&end=$ymd&owner=1"); - break; - - case 'current_owner': - $membershipSummary[$typeID][$key]['current_owner']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&type=$typeID&owner=1"); - break; - - case 'total_owner': - if (!$isCurrentMonth) { - $membershipSummary[$typeID][$key]['total_owner']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&start=&end=$ymd&status=$status&type=$typeID&owner=1"); - } - else { - $membershipSummary[$typeID][$key]['total_owner']['url'] = CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&status=$status&owner=1"); - } - break; - //LCD end - } - } - } - @codingStandardsIgnoreEnd */ - - // Temporary replacement for current totals column - foreach ($membershipSummary as $typeID => $details) { if (!$isCurrentMonth) { $membershipSummary[$typeID]['total']['total']['url'] = CRM_Utils_System::url('civicrm/member/search', @@ -306,65 +212,38 @@ class CRM_Member_Page_DashBoard extends CRM_Core_Page { $totalCount['premonth']['new'] = array( 'count' => $newCountPreMonth, - //'url' => CRM_Utils_System::url('civicrm/activity/search', - // "reset=1&force=1&signupType=1&dateLow=$preMonth&dateHigh=$preMonthEnd" - //), ); $totalCount['premonth']['renew'] = array( 'count' => $renewCountPreMonth, - //'url' => CRM_Utils_System::url('civicrm/activity/search', - // "reset=1&force=1&signupType=2&dateLow=$preMonth&dateHigh=$preMonthEnd" - //), ); $totalCount['premonth']['total'] = array( 'count' => $totalCountPreMonth, - //'url' => CRM_Utils_System::url('civicrm/activity/search', - // "reset=1&force=1&signupType=3&dateLow=$preMonth&dateHigh=$preMonthEnd" - //), ); $totalCount['month']['new'] = array( 'count' => $newCountMonth, - //'url' => CRM_Utils_System::url('civicrm/activity/search', - // "reset=1&force=1&signupType=1&dateLow=$monthStart&dateHigh=$ymd" - //), ); $totalCount['month']['renew'] = array( 'count' => $renewCountMonth, - //'url' => CRM_Utils_System::url('civicrm/activity/search', - // "reset=1&force=1&signupType=2&dateLow=$monthStart&dateHigh=$ymd" - //), ); $totalCount['month']['total'] = array( 'count' => $totalCountMonth, - //'url' => CRM_Utils_System::url('civicrm/activity/search', - // "reset=1&force=1&signupType=3&dateLow=$monthStart&dateHigh=$ymd" - //), ); $totalCount['year']['new'] = array( 'count' => $newCountYear, - //'url' => CRM_Utils_System::url('civicrm/activity/search', - // "reset=1&force=1&signupType=1&dateLow=$yearStart&dateHigh=$ymd" - //), ); $totalCount['year']['renew'] = array( 'count' => $renewCountYear, - //'url' => CRM_Utils_System::url('civicrm/activity/search', - // "reset=1&force=1&signupType=2&dateLow=$yearStart&dateHigh=$ymd" - //), ); $totalCount['year']['total'] = array( 'count' => $totalCountYear, - //'url' => CRM_Utils_System::url('civicrm/activity/search', - // "reset=1&force=1&signupType=3&dateLow=$yearStart&dateHigh=$ymd" - //), ); $totalCount['current']['total'] = array(