mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
added is_odd()
This commit is contained in:
parent
00c39efa78
commit
d364cb446a
@ -17,6 +17,16 @@
|
|||||||
}
|
}
|
||||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
$phpgw_info["flags"]["currentapp"] = "admin";
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
|
|
||||||
|
function is_odd($n)
|
||||||
|
{
|
||||||
|
$ln = substr($n,-1);
|
||||||
|
if ($ln == 1 || $ln == 3 || $ln == 5 || $ln == 7 || $ln == 9) {
|
||||||
|
return True;
|
||||||
|
} else {
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (! $group_id) {
|
if (! $group_id) {
|
||||||
Header("Location: " . $phpgw->link("groups.php"));
|
Header("Location: " . $phpgw->link("groups.php"));
|
||||||
|
@ -19,6 +19,16 @@
|
|||||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
$phpgw_info["flags"]["currentapp"] = "admin";
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
|
|
||||||
|
function is_odd($n)
|
||||||
|
{
|
||||||
|
$ln = substr($n,-1);
|
||||||
|
if ($ln == 1 || $ln == 3 || $ln == 5 || $ln == 7 || $ln == 9) {
|
||||||
|
return True;
|
||||||
|
} else {
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$phpgw->template->set_file(array("form" => "groups_form.tpl"));
|
$phpgw->template->set_file(array("form" => "groups_form.tpl"));
|
||||||
|
|
||||||
if ($submit) {
|
if ($submit) {
|
||||||
|
Loading…
Reference in New Issue
Block a user