This commit is contained in:
Tobi 2014-11-16 17:15:57 +01:00
parent 768c34cddf
commit 486b97373e
7 changed files with 41 additions and 2 deletions

View File

@ -18,4 +18,5 @@
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_character',''); \SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_character','');
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_menu',''); \SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_menu','');
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_achievements',''); \SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_achievements','');
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_achievement_content','');
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_database',''); \SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_database','');

View File

@ -66,6 +66,11 @@ class page_mojotrollz extends \SYSTEM\API\api_default {
throw new ERROR("You need to be logged in to view this ressource.");} throw new ERROR("You need to be logged in to view this ressource.");}
return new user_achievements();} return new user_achievements();}
public static function page_user_achievement_content(){
if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
throw new ERROR("You need to be logged in to view this ressource.");}
return new user_achievement_content();}
public static function page_user_logout(){ public static function page_user_logout(){
if(!\SYSTEM\SECURITY\Security::isLoggedIn()){ if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
throw new ERROR("You need to be logged in to view this ressource.");} throw new ERROR("You need to be logged in to view this ressource.");}

View File

@ -0,0 +1,2 @@
function user_achievement_content(){
}

View File

@ -0,0 +1,23 @@
<?php
class user_achievement_content extends SYSTEM\PAGE\Page {
public static function js(){
return array( \SYSTEM\WEBPATH(new PPAGE(),'user_achievement_content/js/user_achievement_content.js'));}
public static function css (){
return array();}
public function html(){
$vars = array();
$vars['PICPATH'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=default_page&id=';
$vars['PIC'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=race&id=';
$vars['PI'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=class&id=';
$vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE),
\SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_WOW_SERVERINFO),
\SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_BASIC));
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_achievement_content/tpl/user_achievement_content.tpl'), $vars);
}
}

View File

@ -1 +1,5 @@
function init_user_achievements(){} function init_user_achievements(){
$("#btn_achieve_menu_creature").click(function(){
sys.load('user_achievement_content');
});
}

View File

@ -1,4 +1,4 @@
<div style="background: white; width: 200px; height: 100%;" class=""> <div style="background: white; width: 200px; height: 100%; float: left;" class="">
<li><a id="btn_achieve_menu_acc" href="#">Community & Account</a></li> <li><a id="btn_achieve_menu_acc" href="#">Community & Account</a></li>
<li><a id="btn_achieve_menu_boss" href="#">Dungeonboss Compendium</a></li> <li><a id="btn_achieve_menu_boss" href="#">Dungeonboss Compendium</a></li>
<li><a id="btn_achieve_menu_pvp" href="#">PvP Legacy</a></li> <li><a id="btn_achieve_menu_pvp" href="#">PvP Legacy</a></li>
@ -7,3 +7,6 @@
<li><a id="btn_achieve_menu_item" href="#">Item Compendium</a></li> <li><a id="btn_achieve_menu_item" href="#">Item Compendium</a></li>
<li><a id="btn_achieve_menu_eco" href="#">Economic Success</a></li> <li><a id="btn_achieve_menu_eco" href="#">Economic Success</a></li>
</div> </div>
<div style="float: left; width: 100%;" id="achievement_content">
</div>