Подскажите как убрать точку напротив строки?
$userid = $account->uid;
if (is_numeric($userid)) {
$list_private = array();
$list_private[] = "Последнее посещение: ".format_date($account->access, 'custom', 'j F Y');
$output = theme('item_list', $list_private, NULL, array('id'=>'user_list_private'));
print($output);
}
if (is_numeric($userid)) {
$list_private = array();
$list_private[] = "Последнее посещение: ".format_date($account->access, 'custom', 'j F Y');
$output = theme('item_list', $list_private, NULL, array('id'=>'user_list_private'));
print($output);
}
Комментарии
if (is_numeric($userid))
print ("Последнее посещение: ".format_date($account->access, 'custom', 'j F Y'));
ладно не тот пример... взял...
<?php
$userid = $account->uid;
if (is_numeric($userid)) {
$list_private = array();
//документы
$q = "SELECT {node_type}.name as tipo,count({node}.type) as cant, {users}.uid, {users}.name
FROM {node}
LEFT JOIN {users} ON {node}.uid = {users}.uid
LEFT JOIN {node_type} ON {node}.type = {node_type}.type
WHERE {node}.uid = $userid AND ({node_type}.type = 'blog' OR {node_type}.type = 'news' OR {node_type}.type = 'reports' OR {node_type}.type = 'article' OR {node_type}.type = 'concerts' OR {node_type}.type = 'section' OR {node_type}.type = 'photo' OR {node_type}.type = 'image') group by {node}.type";
$result_type = db_query($q);
while ($row = db_fetch_object($result_type))
{
$list_private[] = $row->tipo.": ".$row->cant;
}
// $output = theme('item_list', $list_private, NULL, array('id'=>'user_list_private', 'class' => 'user_list'));
$output = theme('item_list', $list_private, NULL, array('id'=>'user_list_private'));
print($output);
}
?>
подумал и решил...
$userid = $account->uid;
if (is_numeric($userid)) {
$list_private = array();
//документы
$q = "SELECT {node_type}.name as tipo,count({node}.type) as cant, {users}.uid, {users}.name
FROM {node}
LEFT JOIN {users} ON {node}.uid = {users}.uid
LEFT JOIN {node_type} ON {node}.type = {node_type}.type
WHERE {node}.uid = $userid AND ({node_type}.type = 'blog' OR {node_type}.type = 'news' OR {node_type}.type = 'reports' OR {node_type}.type = 'article' OR {node_type}.type = 'concerts' OR {node_type}.type = 'section' OR {node_type}.type = 'photo' OR {node_type}.type = 'image') group by {node}.type";
$result_type = db_query($q);
while ($row = db_fetch_object($result_type))
{
print ($list_private[] = $row->tipo.": ".$row->cant . '<br />');
}
}
?>