From d364cb446afe63dbeb1dedd34959363a03fb676e Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 21 Jan 2001 12:59:41 +0000 Subject: [PATCH] added is_odd() --- admin/editgroup.php | 10 ++++++++++ admin/newgroup.php | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/admin/editgroup.php b/admin/editgroup.php index 00064f4aa9..614ab5653d 100755 --- a/admin/editgroup.php +++ b/admin/editgroup.php @@ -17,6 +17,16 @@ } $phpgw_info["flags"]["currentapp"] = "admin"; 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) { Header("Location: " . $phpgw->link("groups.php")); diff --git a/admin/newgroup.php b/admin/newgroup.php index 1672d1a6e5..5c90455d48 100755 --- a/admin/newgroup.php +++ b/admin/newgroup.php @@ -19,6 +19,16 @@ $phpgw_info["flags"]["currentapp"] = "admin"; 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")); if ($submit) {