mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +01:00
Cleaned up groups form, added search field and next matchs icons
This commit is contained in:
parent
90c70b2704
commit
5889c92167
@ -17,14 +17,14 @@
|
|||||||
if (! $start)
|
if (! $start)
|
||||||
$start = 0;
|
$start = 0;
|
||||||
|
|
||||||
if (! $sort)
|
|
||||||
$sort = "desc";
|
|
||||||
|
|
||||||
if ($order)
|
if ($order)
|
||||||
$ordermethod = "order by $order $sort";
|
$ordermethod = "order by $order $sort";
|
||||||
else
|
else
|
||||||
$ordermethod = "order by lastname,firstname,loginid asc";
|
$ordermethod = "order by lastname,firstname,loginid asc";
|
||||||
|
|
||||||
|
if (! $sort)
|
||||||
|
$sort = "desc";
|
||||||
|
|
||||||
if ($query) {
|
if ($query) {
|
||||||
$querymethod = " where firstname like '%$query%' OR lastname like '%$query%' OR loginid "
|
$querymethod = " where firstname like '%$query%' OR lastname like '%$query%' OR loginid "
|
||||||
. "like '%$query%' ";
|
. "like '%$query%' ";
|
||||||
|
@ -13,12 +13,43 @@
|
|||||||
|
|
||||||
$phpgw_flags["currentapp"] = "admin";
|
$phpgw_flags["currentapp"] = "admin";
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
echo "<p><center>" . lang_admin("User groups") . "<br><table border=0 width=35%>"
|
|
||||||
. "<tr bgcolor=" . $theme["th_bg"] . "><td>" . lang_common("Name") . "</td>"
|
if (! $start)
|
||||||
|
$start = 0;
|
||||||
|
|
||||||
|
if ($order)
|
||||||
|
$ordermethod = "order by $order $sort";
|
||||||
|
else
|
||||||
|
$ordermethod = "order by group_name asc";
|
||||||
|
|
||||||
|
if (! $sort)
|
||||||
|
$sort = "asc";
|
||||||
|
|
||||||
|
if ($query) {
|
||||||
|
$querymethod = " where group_name like '%$query%'";
|
||||||
|
}
|
||||||
|
|
||||||
|
$phpgw->db->query("select count(*) from groups $querymethod");
|
||||||
|
$phpgw->db->next_record();
|
||||||
|
|
||||||
|
$total = $phpgw->db->f(0);
|
||||||
|
$limit = $phpgw->nextmatchs->sql_limit($start);
|
||||||
|
|
||||||
|
echo '<p><table border="0" width="45%" align="center"><tr bgcolor="'
|
||||||
|
. $phpgw_info["theme"][bg_color] . '">'
|
||||||
|
. '<td align="left">' . $phpgw->nextmatchs->left("groups.php",$start,$total) . '</td>'
|
||||||
|
. '<td align="center">' . lang_admin("user groups") . '</td>'
|
||||||
|
. '<td align="right">' . $phpgw->nextmatchs->right("groups.php",$start,$total) . '</td>'
|
||||||
|
. '</tr></table>';
|
||||||
|
|
||||||
|
echo "<table border=0 width=45% align=center>"
|
||||||
|
. "<tr bgcolor=" . $phpgw_info["theme"]["th_bg"] . "><td>"
|
||||||
|
. $phpgw->nextmatchs->show_sort_order($sort,"group_name",$order,"groups.php",
|
||||||
|
lang_common("name")) . "</td>"
|
||||||
. "<td> " . lang_common("Edit") . " </td> <td> " . lang_common("Delete")
|
. "<td> " . lang_common("Edit") . " </td> <td> " . lang_common("Delete")
|
||||||
. " </td> </tr>";
|
. " </td> </tr>";
|
||||||
|
|
||||||
$phpgw->db->query("select * from groups order by group_name");
|
$phpgw->db->query("select * from groups $querymethod $ordermethod limit $limit");
|
||||||
while ($phpgw->db->next_record()) {
|
while ($phpgw->db->next_record()) {
|
||||||
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
|
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
|
||||||
|
|
||||||
@ -32,10 +63,13 @@
|
|||||||
. $phpgw->link("deletegroup.php","group_id=" . $phpgw->db->f("group_id"))
|
. $phpgw->link("deletegroup.php","group_id=" . $phpgw->db->f("group_id"))
|
||||||
. "\"> " . lang_common("Delete") . " </a></td>";
|
. "\"> " . lang_common("Delete") . " </a></td>";
|
||||||
}
|
}
|
||||||
echo "<form method=POST action=\"newgroup.php\">"
|
|
||||||
. $phpgw->session->hidden_var()
|
echo "\n<form method=POST action=\"newgroups.php\">"
|
||||||
. "<tr><td colspan=5><input type=\"submit\" value=\"" . lang_common("Add") . "\"></td></tr>"
|
. $phpgw->session->hidden_var() . "</table></center>"
|
||||||
. "</form></table></center>";
|
. "<table border=0 width=45% align=center><tr><td align=left><input type=\"submit\" "
|
||||||
|
. "value=\"" . lang_common("Add") . "\"></form><form action=\"groups.php\"></td>"
|
||||||
|
. $phpgw->session->hidden_var() . "<td align=right>" . lang_common("search") . " "
|
||||||
|
. "<input name=\"query\"></td></tr></form></table>";
|
||||||
|
|
||||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||||
?>
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
- Added feature to check for new releases of phpGW
|
- Added feature to check for new releases of phpGW
|
||||||
- Added feature to filter out entrys only within a certain group.
|
- Added feature to filter out entrys only within a certain group.
|
||||||
This is for the todo list and addressbook.
|
This is for the todo list and addressbook.
|
||||||
|
- Added a search field and next matchs icons to account form.
|
||||||
|
|
||||||
[08152000] - Fixed a problem with the calendar not showing the months in the users
|
[08152000] - Fixed a problem with the calendar not showing the months in the users
|
||||||
langague preference.
|
langague preference.
|
||||||
|
Loading…
Reference in New Issue
Block a user