From 6170f1139c4fcf742da5dbf9105665bf99f9cf89 Mon Sep 17 00:00:00 2001 From: Quitta Date: Mon, 8 Jul 2013 17:14:03 +0200 Subject: [PATCH] show user added, where admins can create a ticket from another user --- .../ryzom_ams/ams_lib/translations/en.ini | 1 + .../ryzom_ams/ams_lib/translations/fr.ini | 1 + .../ryzom_ams/www/html/inc/show_user.php | 35 +++++++++ .../ryzom_ams/www/html/templates/layout.tpl | 2 - .../www/html/templates/show_user.tpl | 78 +++++++++++++++++++ .../ryzom_ams/www/html/templates/userlist.tpl | 3 +- 6 files changed, 117 insertions(+), 3 deletions(-) create mode 100644 code/ryzom/tools/server/ryzom_ams/www/html/inc/show_user.php create mode 100644 code/ryzom/tools/server/ryzom_ams/www/html/templates/show_user.tpl diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini b/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini index 3a6fb4b7a..858c3020f 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini @@ -20,6 +20,7 @@ name = "Name" email = "Email" action = "Action" +[show_user] [createticket] diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/fr.ini b/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/fr.ini index fc42425b8..150a62c6b 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/fr.ini +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/fr.ini @@ -22,6 +22,7 @@ action = "Action" [createticket] +[show_user] [error] title404 = "Pas
trouvez!" diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_user.php b/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_user.php new file mode 100644 index 000000000..7e802cee8 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_user.php @@ -0,0 +1,35 @@ + diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_user.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_user.tpl new file mode 100644 index 000000000..2e07ec91d --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_user.tpl @@ -0,0 +1,78 @@ +{block name=content} +
+
+
+

Profile of {$target_name}

+
+ + +
+
+
+
+ Info + + + + + + + {if $firstName neq ""} + + + + + {/if} + {if $lastName neq ""} + + + + + {/if} + {if $country neq ""} + + + + + {/if} + {if $gender neq 0} + + + {if $gender eq 1} + + {else if $gender eq 2} + + {/if} + + {/if} + +
Email:{$mail}
Firstname:{$firstName}
LastName:{$lastName}
Country:{$country}
Gender:
+
+
+
+ +
+
+

Actions

+
+ + +
+
+
+
+
+ + +
+
+
+
+
+{/block} + diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/userlist.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/userlist.tpl index 5b4975c91..d09c46abe 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/userlist.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/userlist.tpl @@ -24,11 +24,12 @@ {foreach from=$userlist item=element} {$element.id} - {$element.username} + {$element.username} {$element.email} {if $element.permission eq 1}User{/if} {if $element.permission eq 2}Admin{/if} + Show User Edit User