From 14aa97c627cc3b154e2f84a48371d1697006d518 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Mar 2006 04:34:19 +0000 Subject: [PATCH] moved user copy & paste dialog into tempalte git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2897 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/generic/class_user.inc | 61 +++------------------- plugins/personal/generic/paste_generic.tpl | 50 ++++++++++++++++++ 2 files changed, 58 insertions(+), 53 deletions(-) create mode 100644 plugins/personal/generic/paste_generic.tpl diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index cd0a3a977..c56ddfa7f 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -1235,59 +1235,14 @@ class user extends plugin srand((double)microtime()*1000000); $rand = rand(0, 10000); - $str = " - - - - - -
-

"._("User settings")."

- - - - - - - - - - - - - - - - - - -
sn."\">
givenName."\">
uid."\">
- - "._("User picture")." - - -   - -
-
- - - - - -
- - - - -
- \""._("Personal -
-
-
- - "; + $smarty = get_smarty(); + + $smarty->assign("sn", $this->sn); + $smarty->assign("givenName",$this->givenName); + $smarty->assign("uid", $this->uid); + $smarty->assign("rand", $rand); + $str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE,dirname(__FILE__))); + return($str); } diff --git a/plugins/personal/generic/paste_generic.tpl b/plugins/personal/generic/paste_generic.tpl new file mode 100644 index 000000000..9ab8f23ff --- /dev/null +++ b/plugins/personal/generic/paste_generic.tpl @@ -0,0 +1,50 @@ + + + + + +
+

{t}User settings{/t}

+ + + + + + + + + + + + + + + + + + +
+ + {t}User picture{/t} + + +   + +
+
+ + + + + +
+ + + + +
+ {t}Personal picture{/t} +
+
+
-- 2.30.2