diff --git a/.hgignore b/.hgignore index 17929f871..9fb922bbb 100644 --- a/.hgignore +++ b/.hgignore @@ -146,6 +146,7 @@ external_stlport .svn thumbs.db Thumbs.db +*.tpl.php # build code/nel/build/* 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..182f014cf 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 @@ $value ){ $smarty -> assign( $key, $value ); } - if($vars['permission'] == 1){ - $inherited = "layout_admin.tpl"; - }else{ - $inherited = "layout_user.tpl"; - } - //extends:' . $inherited .'|register.tpl - $smarty -> display( 'register.tpl' ); + if( $vars['permission'] == 1 ){ + $inherited = "layout_admin.tpl"; + }else{ + $inherited = "layout_user.tpl"; + } + // extends:' . $inherited .'|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/', - $AMS_LIB . '/configs', - $AMS_LIB . '/cache', - $SITEBASE . '/cache/', - $SITEBASE . '/templates/', - $SITEBASE . '/templates_c/', - $SITEBASE . '/configs' - ); - foreach ( $arr as & $value ){ + $arr = array( $AMS_LIB . '/ingame_templates/', + $AMS_LIB . '/configs', + $AMS_LIB . '/cache', + $SITEBASE . '/cache/', + $SITEBASE . '/templates/', + $SITEBASE . '/templates_c/', + $SITEBASE . '/configs' + ); + foreach ( $arr as & $value ){ if ( !file_exists( $value ) ){ mkdir( $value ); } - } + } } - 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/autoload/sql.php b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/sql.php index f64122f7c..609ed8740 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/sql.php +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/sql.php @@ -1,11 +1,10 @@ $_POST["Username"], 'pass' => $_POST["Password"], 'mail' => $_POST["Email"], @@ -31,7 +31,7 @@ class Users{ header( 'Location: email_sent.php' ); exit; }else{ - $pageElements = array( + $pageElements = array( 'GAME_NAME' => variable_get( 'ryzommanage_game-name', '' ), 'WELCOME_MESSAGE' => variable_get( 'ryzommanage_register-welcome', '' ), 'USERNAME' => $user, @@ -44,7 +44,7 @@ class Users{ }else{ $pageElements['USERNAME_ERROR'] = 'FALSE'; } - + if ( $pass != "success" ){ $pageElements['PASSWORD_ERROR'] = 'TRUE'; }else{ @@ -68,10 +68,10 @@ class Users{ return $pageElements; } } - + /** * Function checkUser - * + * * @takes $username * @return string Info: Returns a string based on if the username is valid, if valid then "success" is returned */ @@ -84,7 +84,7 @@ class Users{ return "Username must be 5 or more characters."; }elseif ( !preg_match( '/^[a-z0-9\.]*$/', $username ) ){ return "Username can only contain numbers and letters."; - }elseif ( sql :: db_query( "SELECT COUNT(*) FROM {users} WHERE name = :name", array( + }elseif ( sql :: db_query( "SELECT COUNT(*) FROM {users} WHERE name = :name", array( ':name' => $username ) ) -> fetchField() ){ return "Username " . $username . " is in use."; @@ -98,7 +98,7 @@ class Users{ } /** * Function checkPassword - * + * * @takes $pass * @return string Info: Returns a string based on if the password is valid, if valid then "success" is returned */ @@ -117,7 +117,7 @@ class Users{ } /** * Function confirmPassword - * + * * @takes $pass * @return string Info: Verify's $_POST["Password"] is the same as $_POST["ConfirmPass"] */ @@ -132,16 +132,16 @@ class Users{ } /** * Function checkEmail - * + * * @takes $email - * @return + * @return */ public function checkEmail( $email ) { if ( isset( $email ) ){ if ( !validEmail( $email ) ){ return "Email address is not valid."; - }elseif ( db_query( "SELECT COUNT(*) FROM {users} WHERE mail = :mail", array( + }elseif ( db_query( "SELECT COUNT(*) FROM {users} WHERE mail = :mail", array( ':mail' => $email ) ) -> fetchField() ){ return "Email is in use."; @@ -230,4 +230,3 @@ class Users{ } } - \ No newline at end of file diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/libinclude.php b/code/ryzom/tools/server/ryzom_ams/ams_lib/libinclude.php index 86e7d3dbf..0d8606488 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/libinclude.php +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/libinclude.php @@ -3,6 +3,6 @@ // Base include file for library functions for AMS // *********************************************** function __autoload( $className ){ - require_once 'autoload/' . strtolower ($className) . '.php'; - } + require_once 'autoload/' . strtolower ( $className ) . '.php'; + } 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/autoload/register.php b/code/ryzom/tools/server/ryzom_ams/www/html/autoload/register.php index 3821ccc3d..668b6a7a5 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/autoload/register.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/autoload/register.php @@ -16,7 +16,7 @@ if ( isset( $_POST["Username"] ) and isset( $_POST["Password"] ) and isset( $_PO } // if all are good then create user if ( ( $user == "success" ) and ( $pass == "success" ) and ( $cpass == "success" ) and ( $email == "success" ) and ( isset( $_POST["TaC"] ) ) ){ - $edit = array( + $edit = array( 'name' => $_POST["Username"], 'pass' => $_POST["Password"], 'mail' => $_POST["Email"], @@ -29,7 +29,7 @@ if ( ( $user == "success" ) and ( $pass == "success" ) and ( $cpass == "success" header( 'Location: email_sent.php' ); exit; }else{ - $pageElements = array( + $pageElements = array( 'GAME_NAME' => $GAME_NAME, 'WELCOME_MESSAGE' => $WELCOME_MESSAGE, 'USERNAME' => $user, @@ -42,7 +42,7 @@ if ( ( $user == "success" ) and ( $pass == "success" ) and ( $cpass == "success" }else{ $pageElements['USERNAME_ERROR'] = 'FALSE'; } - + if ( $pass != "success" ){ $pageElements['PASSWORD_ERROR'] = 'TRUE'; }else{ @@ -64,7 +64,7 @@ if ( ( $user == "success" ) and ( $pass == "success" ) and ( $cpass == "success" $pageElements['TAC_ERROR'] = 'TRUE'; } if ( helpers :: check_if_game_client() ){ - helpers :: loadtemplate( '../../ams_lib/ingame_templates/register.phtml', $pageElements ); + helpers :: loadtemplate( '../../ams_lib/ingame_templates/register.phtml', $pageElements ); }else{ helpers :: loadtemplate( 'templates/register.phtml', $pageElements ); } 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..7b6ae40fa 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 @@ -452,7 +452,7 @@ background: #DEDEDE; } .login-header{ padding-top:30px; -height:190px; +height:120px; } .pull-left{ float:left !important; diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/css/custom.css b/code/ryzom/tools/server/ryzom_ams/www/html/css/custom.css new file mode 100644 index 000000000..1a9891e47 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/www/html/css/custom.css @@ -0,0 +1,17 @@ +.login-header +{ + height:190px; +} + +.brand img +{ + height:100%; + margin-bottom:-18px; + margin-top:-15px; + width:auto; +} + +#for-is-ajax +{ + display:none; +} diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/error.php b/code/ryzom/tools/server/ryzom_ams/www/html/error.php index e9e27be04..4d701a543 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/error.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/error.php @@ -73,7 +73,7 @@
The page your are looking for is not found. -
Go Home or
Search
+
Go Home or
Search
diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/header.php b/code/ryzom/tools/server/ryzom_ams/www/html/header.php index dcf5cb115..c3af26217 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/header.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/header.php @@ -65,7 +65,7 @@ - Charisma Logo Charisma + Charisma Logo Charisma
@@ -96,7 +96,7 @@
@@ -125,21 +125,21 @@ diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/inc/add_user.php b/code/ryzom/tools/server/ryzom_ams/www/html/inc/add_user.php index 4010619f7..41284659e 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/inc/add_user.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/inc/add_user.php @@ -1,12 +1,12 @@ + - - -
- - -
Total Members
-
507
- 6 -
+if ( isset( $_POST["function"] ) ){ + require( "inc/" . $_POST["function"] . ".php" ); + $return = $_POST["function"](); + } - - -
Pro Members
-
228
- 4 -
+function loadpage ( $page ){ + require_once( 'autoload/' . $page . '.php' ); + } - - -
Sales
-
$13320
- $34 -
- - - -
Messages
-
25
- 12 -
-
- -
-
-
-

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.

- -

- Back to article - Download Page -

-
-
-
-
- -
-
-
-

Tabs

-
- - - -
-
-
- - -
-
-

Charisma a fully featued template

-

Its a fully featured, responsive template for your admin panel. Its optimized for tablet and mobile phones. Scan the QR code below to view it in your mobile device.

QR Code -
-
-

Custom small text

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. Donec consectetur, velit a pharetra ultricies, diam lorem lacinia risus, ac commodo orci erat eu massa. Sed sit amet nulla ipsum. Donec felis mauris, vulputate sed tempor at, aliquam a ligula. Pellentesque non pulvinar nisi.

-
-
-

Messages small text

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. Donec consectetur, velit a pharetra ultricies, diam lorem lacinia risus, ac commodo orci erat eu massa. Sed sit amet nulla ipsum. Donec felis mauris, vulputate sed tempor at, aliquam a ligula. Pellentesque non pulvinar nisi.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor.

-
-
-
-
- -
-
-

Member Activity

-
- - -
-
-
-
- -
-
-
- -
-
-

Realtime Traffic

-
- - -
-
-
-
-

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

-
-
-
+$page = 'home'; +if ( isset( $_GET["page"] ) ){ + $page = $_GET["page"]; + } -
-
-
-

Buttons

-
- - - -
-
-
-

- - - -

-

- - - -

-

- - - -

-

- - - - -

-

- - - - -

-

- - - -

-
-
- -
-
-

Buttons

-
- - - -
-
-
-

- - -

-

- - -

-

- - -

-

- -

- - -
-
- -
-
-

Weekly Stat

-
- - - -
-
- -
-
- +// temporary set permission to 1 which = admin mode +$return = array( 'permission' => 1, 'no_visible_elements' => 'TRUE' ); - - - +helpers :: loadTemplate( $page , $return ); diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/index_charisma.php b/code/ryzom/tools/server/ryzom_ams/www/html/index_charisma.php new file mode 100644 index 000000000..bd2246229 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/www/html/index_charisma.php @@ -0,0 +1,329 @@ + + + +
+ +
+
+ + +
Total Members
+
507
+ 6 +
+ + + +
Pro Members
+
228
+ 4 +
+ + + +
Sales
+
$13320
+ $34 +
+ + + +
Messages
+
25
+ 12 +
+
+ +
+
+
+

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.

+ +

+ Back to article + Download Page +

+
+
+
+
+ +
+
+
+

Tabs

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

Charisma a fully featued template

+

Its a fully featured, responsive template for your admin panel. Its optimized for tablet and mobile phones. Scan the QR code below to view it in your mobile device.

QR Code +
+
+

Custom small text

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. Donec consectetur, velit a pharetra ultricies, diam lorem lacinia risus, ac commodo orci erat eu massa. Sed sit amet nulla ipsum. Donec felis mauris, vulputate sed tempor at, aliquam a ligula. Pellentesque non pulvinar nisi.

+
+
+

Messages small text

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. Donec consectetur, velit a pharetra ultricies, diam lorem lacinia risus, ac commodo orci erat eu massa. Sed sit amet nulla ipsum. Donec felis mauris, vulputate sed tempor at, aliquam a ligula. Pellentesque non pulvinar nisi.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor.

+
+
+
+
+ +
+
+

Member Activity

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

Realtime Traffic

+
+ + +
+
+
+
+

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

+
+ + + +
+
+
+

+ + +

+

+ + +

+

+ + +

+

+ +

+ + +
+
+ +
+
+

Weekly Stat

+
+ + + +
+
+ +
+
+ + + + + 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 deleted file mode 100644 index b9f7990ce..000000000 --- a/code/ryzom/tools/server/ryzom_ams/www/html/index_old.php +++ /dev/null @@ -1,22 +0,0 @@ - 1, 'no_visible_elements' => 'TRUE'); - -helpers :: loadTemplate( 'register' , $return ); diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js b/code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js index 6445ef69a..e18c7f66c 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js +++ b/code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js @@ -1,11 +1,11 @@ $(document).ready(function(){ //themes, change CSS with JS //default theme(CSS) is cerulean, change it if needed - var current_theme = $.cookie('current_theme')==null ? 'spacelab' :$.cookie('current_theme'); + var current_theme = $.cookie('current_theme')==null ? 'cerulean' :$.cookie('current_theme'); switch_theme(current_theme); - + $('#themes a[data-value="'+current_theme+'"]').find('i').addClass('icon-ok'); - + $('#themes a').click(function(e){ e.preventDefault(); current_theme=$(this).attr('data-value'); @@ -14,19 +14,19 @@ $(document).ready(function(){ $('#themes i').removeClass('icon-ok'); $(this).find('i').addClass('icon-ok'); }); - - + + function switch_theme(theme_name) { $('#bs-css').attr('href','css/bootstrap-'+theme_name+'.css'); } - + //ajax menu checkbox $('#is-ajax').click(function(e){ $.cookie('is-ajax',$(this).prop('checked'),{expires:365}); }); $('#is-ajax').prop('checked',$.cookie('is-ajax')==='true' ? true : false); - + //disbaling some functions for Internet Explorer if($.browser.msie) { @@ -34,16 +34,16 @@ $(document).ready(function(){ $('#for-is-ajax').hide(); $('#toggle-fullscreen').hide(); $('.login-box').find('.input-large').removeClass('span10'); - + } - - + + //highlight current / active link $('ul.main-menu li a').each(function(){ if($($(this))[0].href==String(window.location)) $(this).parent().addClass('active'); }); - + //establish history variables var History = window.History, // Note: We are using a capital H instead of a lower h @@ -65,7 +65,7 @@ $(document).ready(function(){ } }); }); - + //ajaxify menus $('a.ajax-link').click(function(e){ if($.browser.msie) e.which=1; @@ -80,9 +80,9 @@ $(document).ready(function(){ var $clink=$(this); History.pushState(null, null, $clink.attr('href')); $('ul.main-menu li.active').removeClass('active'); - $clink.parent('li').addClass('active'); + $clink.parent('li').addClass('active'); }); - + //animating menus on hover $('ul.main-menu li:not(.nav-header)').hover(function(){ $(this).animate({'margin-left':'+=5'},300); @@ -90,24 +90,24 @@ $(document).ready(function(){ function(){ $(this).animate({'margin-left':'-=5'},300); }); - + //other things to do on document ready, seperated for ajax calls docReady(); }); - - + + function docReady(){ //prevent # links from moving to top $('a[href="#"][data-top!=true]').click(function(e){ e.preventDefault(); }); - + //rich text editor $('.cleditor').cleditor(); - + //datepicker $('.datepicker').datepicker(); - + //notifications $('.noty').click(function(e){ e.preventDefault(); @@ -226,7 +226,7 @@ function docReady(){ }); //tour - if($('.tour').length && typeof(tour)=='undefined') + if($('.index').length && typeof(tour)=='undefined') { var tour = new Tour(); tour.addStep({ @@ -246,18 +246,7 @@ function docReady(){ title: "Dashboard", content: "This is your dashboard from here you will find highlights." }); - tour.addStep({ - element: "#for-is-ajax", - title: "Ajax", - content: "You can change if pages load with Ajax or not." - }); - tour.addStep({ - element: ".top-nav a:first", - placement: "bottom", - title: "Visit Site", - content: "Visit your front end from here." - }); - + tour.restart(); } @@ -284,10 +273,13 @@ function docReady(){ e.preventDefault(); $('#myModal').modal('show'); }); + $('.btn-help').click(function(e){ + alert('test'); + }); + - //initialize the external events for calender $('#external-events div.external-event').each(function() { @@ -296,17 +288,17 @@ function docReady(){ var eventObject = { title: $.trim($(this).text()) // use the element's text as the event title }; - + // store the Event Object in the DOM element so we can get to it later $(this).data('eventObject', eventObject); - + // make the event draggable using jQuery UI $(this).draggable({ zIndex: 999, revert: true, // will cause the event to go back to its revertDuration: 0 // original position after the drag }); - + }); @@ -320,31 +312,31 @@ function docReady(){ editable: true, droppable: true, // this allows things to be dropped onto the calendar !!! drop: function(date, allDay) { // this function is called when something is dropped - + // retrieve the dropped element's stored Event Object var originalEventObject = $(this).data('eventObject'); - + // we need to copy it, so that multiple events don't have a reference to the same object var copiedEventObject = $.extend({}, originalEventObject); - + // assign it the date that was reported copiedEventObject.start = date; copiedEventObject.allDay = allDay; - + // render the event on the calendar // the last `true` argument determines if the event "sticks" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/) $('#calendar').fullCalendar('renderEvent', copiedEventObject, true); - + // is the "remove after drop" checkbox checked? if ($('#drop-remove').is(':checked')) { // if so, remove the element from the "Draggable Events" list $(this).remove(); } - + } }); - - + + //chart with points if($("#sincos").length) { @@ -401,7 +393,7 @@ function docReady(){ previousPoint = null; } }); - + $("#sincos").bind("plotclick", function (event, pos, item) { @@ -411,14 +403,14 @@ function docReady(){ } }); } - + //flot chart if($("#flotchart").length) { var d1 = []; for (var i = 0; i < Math.PI * 2; i += 0.25) d1.push([i, Math.sin(i)]); - + var d2 = []; for (var i = 0; i < Math.PI * 2; i += 0.25) d2.push([i, Math.cos(i)]); @@ -426,7 +418,7 @@ function docReady(){ var d3 = []; for (var i = 0; i < Math.PI * 2; i += 0.1) d3.push([i, Math.tan(i)]); - + $.plot($("#flotchart"), [ { label: "sin(x)", data: d1}, { label: "cos(x)", data: d2}, @@ -449,7 +441,7 @@ function docReady(){ } }); } - + //stack chart if($("#stackchart").length) { @@ -502,7 +494,7 @@ function docReady(){ { label: "Firefox", data: 90}, { label: "Chrome", data: 112} ]; - + if($("#piechart").length) { $.plot($("#piechart"), data, @@ -520,7 +512,7 @@ function docReady(){ show: false } }); - + function pieHover(event, pos, obj) { if (!obj) @@ -530,7 +522,7 @@ function docReady(){ } $("#piechart").bind("plothover", pieHover); } - + //donut chart if($("#donutchart").length) { @@ -603,7 +595,7 @@ function docReady(){ plot.setData([ getRandomData() ]); // since the axes don't change, we don't need to call plot.setupGrid() plot.draw(); - + setTimeout(update, updateInterval); } diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/js/help.js b/code/ryzom/tools/server/ryzom_ams/www/html/js/help.js new file mode 100644 index 000000000..45ace5790 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/www/html/js/help.js @@ -0,0 +1,26 @@ +function show_help(help_tip) +{ + if(help_tip =='test') + { + var tour = new Tour(); + tour.addStep({ + element: ".span10:first", /* html element next to which the step popover should be shown */ + placement: "top", + title: "Custom Tour", /* title of the popover */ + content: "You can create tour like this. Click Next." /* content of the popover */ + }); + tour.addStep({ + element: ".theme-container", + placement: "left", + title: "Themes", + content: "You change your theme from here." + }); + tour.addStep({ + element: "ul.main-menu a:first", + title: "Dashboard", + content: "This is your dashboard from here you will find highlights." + }); + + tour.restart(); + } +} diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/login.php b/code/ryzom/tools/server/ryzom_ams/www/html/login.php index d0f7f825c..9bb640c2c 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/login.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/login.php @@ -13,7 +13,7 @@ include('header.php'); ?>
Please login with your Username and Password.
-
+
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..727fa9028 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,388 @@ +{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/layout.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout.tpl index 3cda0b11b..143babc0e 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout.tpl @@ -51,7 +51,9 @@ - + + + @@ -66,7 +68,7 @@ - + - +
- + - +
{/if} @@ -231,7 +233,10 @@ - - + + + + + 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} + diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl index c70fc0538..8649a7dc6 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl @@ -12,7 +12,7 @@
{$welcome_message}
- +
@@ -27,7 +27,7 @@ onfocus= "javascript:showTooltip('{$username_tooltip}', this);" /> - + @@ -124,7 +124,7 @@ - + {/block} diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/149a5753c6489e4c9837d8190f2360e006686ab6.file.home.tpl.php b/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/149a5753c6489e4c9837d8190f2360e006686ab6.file.home.tpl.php deleted file mode 100644 index f60719246..000000000 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/149a5753c6489e4c9837d8190f2360e006686ab6.file.home.tpl.php +++ /dev/null @@ -1,297 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - '149a5753c6489e4c9837d8190f2360e006686ab6' => - array ( - 0 => '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl', - 1 => 1371327630, - 2 => 'file', - ), - '9ae80e874700913f7c626d25edfb34ea50aafba8' => - array ( - 0 => '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout_admin.tpl', - 1 => 1371327397, - 2 => 'file', - ), - '82fdcb43de00a568e1631573af77d92f4505c948' => - array ( - 0 => '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout.tpl', - 1 => 1371326024, - 2 => 'file', - ), - ), - 'nocache_hash' => '182818190051bcbf3b50f736-14104775', - 'function' => - array ( - ), - 'version' => 'Smarty-3.1.13', - 'unifunc' => 'content_51bcbf3b574410_14327703', - 'has_nocache_code' => false, -),false); /*/%%SmartyHeaderCode%%*/?> - - - - - - Ryzom Account Management System - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - -
- - - -
-
-
-

Ryzom Account Management System

-
- - -
-
-
-

Ryzom AMS

-

Welcome to the Ryzom Account Management System!

-
-
-
-
- - -
- -
- -
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/82fdcb43de00a568e1631573af77d92f4505c948.file.layout.tpl.php b/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/82fdcb43de00a568e1631573af77d92f4505c948.file.layout.tpl.php deleted file mode 100644 index de4b7ef0f..000000000 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/82fdcb43de00a568e1631573af77d92f4505c948.file.layout.tpl.php +++ /dev/null @@ -1,256 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - '82fdcb43de00a568e1631573af77d92f4505c948' => - array ( - 0 => '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout.tpl', - 1 => 1371322463, - 2 => 'file', - ), - ), - 'nocache_hash' => '160017253151bca2b5a70430-40836818', - 'function' => - array ( - ), - 'version' => 'Smarty-3.1.13', - 'unifunc' => 'content_51bca2b5ab3437_35089772', - 'has_nocache_code' => false, -),false); /*/%%SmartyHeaderCode%%*/?> - - - - - - Ryzom Account Management System - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - -
- - - - -
- -
- -
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/9ae80e874700913f7c626d25edfb34ea50aafba8.file.layout_admin.tpl.php b/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/9ae80e874700913f7c626d25edfb34ea50aafba8.file.layout_admin.tpl.php deleted file mode 100644 index 837abc071..000000000 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/9ae80e874700913f7c626d25edfb34ea50aafba8.file.layout_admin.tpl.php +++ /dev/null @@ -1,274 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - '9ae80e874700913f7c626d25edfb34ea50aafba8' => - array ( - 0 => '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout_admin.tpl', - 1 => 1371324061, - 2 => 'file', - ), - '82fdcb43de00a568e1631573af77d92f4505c948' => - array ( - 0 => '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout.tpl', - 1 => 1371322463, - 2 => 'file', - ), - ), - 'nocache_hash' => '33219468451bcbeabacc0d9-76997576', - 'function' => - array ( - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.13', - 'unifunc' => 'content_51bcbeabb3c189_52163969', -),false); /*/%%SmartyHeaderCode%%*/?> - - - - - - Ryzom Account Management System - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - -
- - - - -
- -
- -
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/e046ca36f637970ade33573b506c58aad0b1a410.extends.home.tpl.php b/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/e046ca36f637970ade33573b506c58aad0b1a410.extends.home.tpl.php deleted file mode 100644 index d449862eb..000000000 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/e046ca36f637970ade33573b506c58aad0b1a410.extends.home.tpl.php +++ /dev/null @@ -1,293 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - 'e046ca36f637970ade33573b506c58aad0b1a410' => - array ( - 0 => '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl', - 1 => 1371327917, - 2 => 'file', - ), - 'f877c777d98fc313c8d29f39b0859e2aa1879e2e' => - array ( - 0 => '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout_user.tpl', - 1 => 1371327403, - 2 => 'file', - ), - '82fdcb43de00a568e1631573af77d92f4505c948' => - array ( - 0 => '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout.tpl', - 1 => 1371326024, - 2 => 'file', - ), - ), - 'nocache_hash' => '37341928851bcce16930ba2-45846425', - 'function' => - array ( - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.13', - 'unifunc' => 'content_51bcce1698f268_66900106', -),false); /*/%%SmartyHeaderCode%%*/?> - - - - - - Ryzom Account Management System - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - -
- - - -
-
-
-

Ryzom Account Management System

-
- - -
-
-
-

Ryzom AMS

-

Welcome to the Ryzom Account Management System!

-
-
-
-
- - -
- -
- -
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/ec9cd121cf7179810948ac67558b081fc2e7cbb8.extends.home.tpl.php b/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/ec9cd121cf7179810948ac67558b081fc2e7cbb8.extends.home.tpl.php deleted file mode 100644 index 15dbfc198..000000000 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates_c/ec9cd121cf7179810948ac67558b081fc2e7cbb8.extends.home.tpl.php +++ /dev/null @@ -1,297 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - 'ec9cd121cf7179810948ac67558b081fc2e7cbb8' => - array ( - 0 => '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl', - 1 => 1371329107, - 2 => 'file', - ), - '9ae80e874700913f7c626d25edfb34ea50aafba8' => - array ( - 0 => '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout_admin.tpl', - 1 => 1371327397, - 2 => 'file', - ), - '82fdcb43de00a568e1631573af77d92f4505c948' => - array ( - 0 => '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout.tpl', - 1 => 1371329620, - 2 => 'file', - ), - ), - 'nocache_hash' => '188962902651bcce005d1445-21118150', - 'function' => - array ( - ), - 'version' => 'Smarty-3.1.13', - 'unifunc' => 'content_51bcce0062ca40_45088230', - 'has_nocache_code' => false, -),false); /*/%%SmartyHeaderCode%%*/?> - - - - - - Ryzom Account Management System - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - -
- - - -
-
-
-

Ryzom Account Management System

-
- - -
-
-
-

Ryzom AMS

-

Welcome to the Ryzom Account Management System!

-
-
-
-
- - -
- -
- -
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/tour.php b/code/ryzom/tools/server/ryzom_ams/www/html/tour.php index b442bb60a..d4e24047f 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/tour.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/tour.php @@ -23,8 +23,8 @@
- Click Here to restart the tour
- You can create Custom Tour, like this.
For more help on implementing tour go here + Click Here to restart the tour
+ You can create Custom Tour, like this.
For more help on implementing tour go here
{if isset($Username)}{$Username}{/if}