| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
//$Id: click.module,v 1.5.2.1 2007/02/08 17:34:44 kbahey Exp $ |
//$Id: click.module,v 1.5.2.2 2007/02/25 22:18:03 kbahey Exp $ |
| 4 |
|
|
| 5 |
// Copyright 2005 Khalid Baheyeldin http://2bits.com |
// Copyright 2005 Khalid Baheyeldin http://2bits.com |
| 6 |
|
|
| 66 |
|
|
| 67 |
$items[] = array( |
$items[] = array( |
| 68 |
'path' => 'admin/logs/click', |
'path' => 'admin/logs/click', |
| 69 |
'title' => t('clicks'), |
'title' => t('Clicks'), |
| 70 |
'callback' => 'click_report', |
'callback' => 'click_report', |
| 71 |
'access' => user_access('view click stats'), |
'access' => user_access('view click stats'), |
| 72 |
'type' => MENU_NORMAL_ITEM, |
'type' => MENU_NORMAL_ITEM, |
| 148 |
$rows[] = array(array('data' => ('Last click at: ')), array('data' => format_date($click->last, 'custom', $fmt))); |
$rows[] = array(array('data' => ('Last click at: ')), array('data' => format_date($click->last, 'custom', $fmt))); |
| 149 |
$output .= $group . theme('table', array(), $rows); |
$output .= $group . theme('table', array(), $rows); |
| 150 |
} |
} |
| 151 |
print theme('page', $output); |
return $output; |
| 152 |
} |
} |
| 153 |
|
|
| 154 |
function click_report() { |
function click_report() { |
| 178 |
if (!empty($pager)) { |
if (!empty($pager)) { |
| 179 |
$rows[] = array(array('data' => $pager, 'colspan' => '4')); |
$rows[] = array(array('data' => $pager, 'colspan' => '4')); |
| 180 |
} |
} |
| 181 |
print theme('page', theme('table', $header, $rows), t('Click Thru Report')); |
return theme('table', $header, $rows); |
| 182 |
} |
} |
| 183 |
|
|
| 184 |
function click_do() { |
function click_do() { |