From 262cda1aa2314929a148ee4324ef7b1a92601181 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 6 Feb 2009 18:33:06 +0000 Subject: Tentative groups page committed into notifications plugin. git-svn-id: https://code.elgg.org/elgg/trunk@2674 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../notifications/subscriptions/forminternals.php | 48 +---------- .../notifications/subscriptions/groupsform.php | 92 ++++++++++++++++++++++ .../notifications/subscriptions/jsfuncs.php | 52 ++++++++++++ 3 files changed, 146 insertions(+), 46 deletions(-) create mode 100644 mod/notifications/views/default/notifications/subscriptions/groupsform.php create mode 100644 mod/notifications/views/default/notifications/subscriptions/jsfuncs.php (limited to 'mod/notifications/views/default') diff --git a/mod/notifications/views/default/notifications/subscriptions/forminternals.php b/mod/notifications/views/default/notifications/subscriptions/forminternals.php index fa00059b9..ca28fc72a 100644 --- a/mod/notifications/views/default/notifications/subscriptions/forminternals.php +++ b/mod/notifications/views/default/notifications/subscriptions/forminternals.php @@ -135,55 +135,11 @@ - -
diff --git a/mod/notifications/views/default/notifications/subscriptions/groupsform.php b/mod/notifications/views/default/notifications/subscriptions/groupsform.php new file mode 100644 index 000000000..5c0ee1057 --- /dev/null +++ b/mod/notifications/views/default/notifications/subscriptions/groupsform.php @@ -0,0 +1,92 @@ + $foo) { + $subsbig[$method] = get_entities_from_relationship('notify' . $method,$vars['user']->guid,false,'group','',0,'',99999); + } + +?> + +
+
+ + + +

+ +

+ + + + + $foo) { + if ($i > 0) + echo ""; +?> + + + + + $foo) { + if (in_array($group->guid,$subs[$method])) { + $checked[$method] = 'checked="checked"'; + } else { + $checked[$method] = ''; + } + if ($i > 0) $fields .= ""; + $fields .= <<< END + +END; + $i++; + } + +?> + + + + + + +
   
  + +
+

+ name; ?> +

+
 
+ + + +
+
\ No newline at end of file diff --git a/mod/notifications/views/default/notifications/subscriptions/jsfuncs.php b/mod/notifications/views/default/notifications/subscriptions/jsfuncs.php new file mode 100644 index 000000000..5d8e6c101 --- /dev/null +++ b/mod/notifications/views/default/notifications/subscriptions/jsfuncs.php @@ -0,0 +1,52 @@ + + + \ No newline at end of file -- cgit v1.2.3