Está aqui

gerir assinaturas

por Lerparaver
t('Nome'), 'field' => 'nome'), array('data' => t('BI'), 'field' => 'bi'), array('data' => t('email'), 'field' => 'email'), array('data' => t('IP'), 'field' => 'ip'), array('data' => t('Newsletter'), 'field' => 'news'), array('data' => t('número'), 'field' => 'n'), array('data' => t('Time'), 'field' => 'data', 'sort' => 'desc'), array('data' => t('editar')), array('data' => t('Eliminar')) ); $result = pager_query('SELECT data, nome, n, email, bi, news, ip FROM {peticao}'. tablesort_sql($header), 300, 0, NULL); if (db_num_rows($result)) { $n = variable_get('peticao_assinaturas', 0) - $_GET['page'] * 300; while ($log = db_fetch_object($result)) { $_path = drupal_get_path_alias('node/'.$log->nid); $rows[] = array( "
n\">nome\" name=\"nome\">", "bi\">", "email\">", $log->ip, $log->news, $n, array('data' => format_date($log->data, 'small'), 'nowrap' => 'nowrap'), "", "n\">Eliminar
" ); $n = $n -1; } if ($pager = theme('pager', NULL, 300, 0)) { $rows[] = array(array('data' => $pager, 'colspan' => '4')); } $output = '

Número de assinaturas: '.variable_get('peticao_assinaturas', 0).'

'; $output .= theme('table', $header, $rows); } print $output; } ?>

Voltar à petição