From a7320cc1ee3b338b28852cdd7c5986f25055f6fa Mon Sep 17 00:00:00 2001 From: Botanic Date: Sun, 16 Jun 2013 20:11:11 -0700 Subject: [PATCH] updated the index pages with home register and login --- .../ryzom_ams/ams_lib/autoload/helpers.php | 8 +- .../ryzom_ams/ams_lib/translations/en.ini | 4 + .../ryzom_ams/www/html/css/charisma-app.css | 10 +- .../server/ryzom_ams/www/html/index_old.php | 3 +- .../ryzom_ams/www/html/templates/home.tpl | 380 +++++++++++++++++- .../ryzom_ams/www/html/templates/login.tpl | 44 ++ 6 files changed, 434 insertions(+), 15 deletions(-) create mode 100644 code/ryzom/tools/server/ryzom_ams/www/html/templates/login.tpl diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php index ec3e55284..091a07c64 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php @@ -1,7 +1,7 @@ display( 'register.tpl' ); + $smarty -> display( $template.'.tpl' ); } - public function create_folders(){ + static public function create_folders(){ global $AMS_LIB; global $SITEBASE; $arr = array( $AMS_LIB . '/ingame_templates/', @@ -72,7 +72,7 @@ class Helpers{ } - public function check_if_game_client() + static public function check_if_game_client() { // if HTTP_USER_AGENT is not set then its ryzom core if ( !isset( $_SERVER['HTTP_USER_AGENT'] ) ){ 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 abaa26747..e25bfd88b 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 @@ -1,6 +1,10 @@ ; This is a sample configuration file ; Comments start with ';', as in php.ini +[home] + +[login] + [register] title = "RYZOM CORE INGAME REGISTRATION" welcome_message = "Welcome! Please fill in the following fields to get your new Ryzom Core account:" diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/css/charisma-app.css b/code/ryzom/tools/server/ryzom_ams/www/html/css/charisma-app.css index 1684e5fd9..239446fe7 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/css/charisma-app.css +++ b/code/ryzom/tools/server/ryzom_ams/www/html/css/charisma-app.css @@ -349,10 +349,11 @@ text-shadow:1px 1px 5px rgba(0, 0, 0, 0.5); width:166px; } .brand img{ -float:left; -height:20px; -width:20px; -margin-right:5px; + float: left; + height: 100%; + margin-bottom: -18px; + margin-top: -15px; + width: 100%; } .brand span{ float:left; @@ -411,6 +412,7 @@ min-height:80px; list-style:none; } #for-is-ajax{ +display: none; padding-left: 12px; cursor:pointer; } diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/index_old.php b/code/ryzom/tools/server/ryzom_ams/www/html/index_old.php index b9f7990ce..62d4ffabf 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/index_old.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/index_old.php @@ -16,7 +16,8 @@ $page = 'home'; if ( isset( $_GET["page"] ) ){ $page = $_GET["page"]; } + //temporary set permission to 1 which = admin mode $return = array('permission' => 1, 'no_visible_elements' => 'TRUE'); -helpers :: loadTemplate( 'register' , $return ); +helpers :: loadTemplate( $page , $return ); diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl index 357d05932..adbb04939 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl @@ -1,19 +1,387 @@ +{extends file="layout.tpl"} {block name=content} -
+ + + + +
+
+ + + + + + + +
+ + + + + +
-

Ryzom Account Management System

+

Introduction

+
+ + + +
+
+
+

Charisma free, premium quality, responsive, multiple skin admin template.

+

Its a live demo of the template. I have created Charisma to ease the repeat work I have to do on my projects. Now I re-use Charisma as a base for my admin panel work and I am sharing it with you :)

+

All pages in the menu are functional, take a look at all, please share this with your followers.

+ +
+
+
+
+ +
+ + +
+
+

Member Activity

-

Ryzom AMS

-

Welcome to the Ryzom Account Management System!

-
+
+ +
-
+
+ +
+
+

Realtime Traffic

+
+ + +
+
+
+
0
25
50
75
100
+

You can update a chart periodically to get a real-time effect by using a timer to insert the new data in the plot and redraw it.

+

Time between updates: milliseconds

+
+
+
+ +
+
+
+

Buttons

+
+ + + +
+
+
+

+ + + +

+

+ + + +

+

+ + + +

+

+ + + + +

+

+ + + + +

+

+ + + +

+
+
+ +
+
+

Buttons

+
+ + + +
+
+
+

+ + +

+

+ + +

+

+ + +

+

+ +

+ + +
+
+ + +
+ + + + + +
+
+ +
+ + + + + +
+ {/block} diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/login.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/login.tpl new file mode 100644 index 000000000..2c36c3ce3 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/login.tpl @@ -0,0 +1,44 @@ +{extends file="layout.tpl"} +{block name=content} + +
+ +
+ +
+ +
+{/block} +