added is_odd()

This commit is contained in:
skeeter 2001-01-21 12:59:41 +00:00
parent 00c39efa78
commit d364cb446a
2 changed files with 20 additions and 0 deletions

View File

@ -18,6 +18,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"));
} }

View File

@ -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) {