user manager: show stored feeds/articles
This commit is contained in:
parent
f76d2435b9
commit
1edff0d439
|
@ -377,14 +377,17 @@ class Pref_Users extends Handler_Protected {
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $this->dbh->query("SELECT
|
$result = $this->dbh->query("SELECT
|
||||||
id,login,access_level,email,
|
tu.id,
|
||||||
|
login,access_level,email,
|
||||||
".SUBSTRING_FOR_DATE."(last_login,1,16) as last_login,
|
".SUBSTRING_FOR_DATE."(last_login,1,16) as last_login,
|
||||||
".SUBSTRING_FOR_DATE."(created,1,16) as created
|
".SUBSTRING_FOR_DATE."(created,1,16) as created,
|
||||||
|
(SELECT COUNT(id) FROM ttrss_feeds WHERE owner_uid = tu.id) AS num_feeds,
|
||||||
|
(SELECT COUNT(ref_id) FROM ttrss_user_entries WHERE owner_uid = tu.id) AS num_articles
|
||||||
FROM
|
FROM
|
||||||
ttrss_users
|
ttrss_users tu
|
||||||
WHERE
|
WHERE
|
||||||
$user_search_query
|
$user_search_query
|
||||||
id > 0
|
tu.id > 0
|
||||||
ORDER BY $sort");
|
ORDER BY $sort");
|
||||||
|
|
||||||
if ($this->dbh->num_rows($result) > 0) {
|
if ($this->dbh->num_rows($result) > 0) {
|
||||||
|
@ -394,8 +397,10 @@ class Pref_Users extends Handler_Protected {
|
||||||
|
|
||||||
print "<tr class=\"title\">
|
print "<tr class=\"title\">
|
||||||
<td align='center' width=\"5%\"> </td>
|
<td align='center' width=\"5%\"> </td>
|
||||||
<td width='30%'><a href=\"#\" onclick=\"updateUsersList('login')\">".__('Login')."</a></td>
|
<td width='20%'><a href=\"#\" onclick=\"updateUsersList('login')\">".__('Login')."</a></td>
|
||||||
<td width='30%'><a href=\"#\" onclick=\"updateUsersList('access_level')\">".__('Access Level')."</a></td>
|
<td width='20%'><a href=\"#\" onclick=\"updateUsersList('access_level')\">".__('Access Level')."</a></td>
|
||||||
|
<td width='10%'><a href=\"#\" onclick=\"updateUsersList('num_feeds')\">".__('Subscribed feeds')."</a></td>
|
||||||
|
<td width='10%'><a href=\"#\" onclick=\"updateUsersList('num_articles')\">".__('Stored articles')."</a></td>
|
||||||
<td width='20%'><a href=\"#\" onclick=\"updateUsersList('created')\">".__('Registered')."</a></td>
|
<td width='20%'><a href=\"#\" onclick=\"updateUsersList('created')\">".__('Registered')."</a></td>
|
||||||
<td width='20%'><a href=\"#\" onclick=\"updateUsersList('last_login')\">".__('Last login')."</a></td></tr>";
|
<td width='20%'><a href=\"#\" onclick=\"updateUsersList('last_login')\">".__('Last login')."</a></td></tr>";
|
||||||
|
|
||||||
|
@ -423,6 +428,8 @@ class Pref_Users extends Handler_Protected {
|
||||||
if (!$line["email"]) $line["email"] = " ";
|
if (!$line["email"]) $line["email"] = " ";
|
||||||
|
|
||||||
print "<td $onclick>" . $access_level_names[$line["access_level"]] . "</td>";
|
print "<td $onclick>" . $access_level_names[$line["access_level"]] . "</td>";
|
||||||
|
print "<td $onclick>" . $line["num_feeds"] . "</td>";
|
||||||
|
print "<td $onclick>" . $line["num_articles"] . "</td>";
|
||||||
print "<td $onclick>" . $line["created"] . "</td>";
|
print "<td $onclick>" . $line["created"] . "</td>";
|
||||||
print "<td $onclick>" . $line["last_login"] . "</td>";
|
print "<td $onclick>" . $line["last_login"] . "</td>";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue