new items for user loggedin(roles)

layouted
new styles for compendium elements

new styles for frontpage
new styles for summary
This commit is contained in:
Tobi 2014-11-19 13:14:26 +01:00
parent d07d4ff1de
commit 1eeba8297c
20 changed files with 128 additions and 71 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

View File

@ -49,7 +49,7 @@ body {
#frame_main {
//width: 1000px;
position: absolute;
width: 1000px;
width: 1015px;
top: 20%;
left: 20%;
//-webkit-box-shadow: 3px 3px 4px 2px rgba(0, 0, 0, 1);
@ -91,6 +91,10 @@ body {
margin-left: 320px;
}
#frame_content_wrapper{
height: 550px;
}
#frame_content_right {
float: right;
width: 280px;
@ -102,4 +106,16 @@ body {
width: 100%;
position: relative;
height: 26px;
}
.table_summ{
color: black; padding: 10px; margin-left: 20px; margin-top: 20px; width: 100%;
}
.table_summ tr{
border-bottom: 2px black solid;
width: 100%;
}
.table_summ td{
padding: 5px;
}

View File

@ -8,7 +8,6 @@
${js}
</head>
<body style="background: url(${PICPATH}wall.png);">
<div id="frame_logo"><img src="${PICPATH}logo.png"/></div>
<div id="frame_main">
<div id="frame_content_wrapper" class="threecol_parent" style="background: url(${PICPATH}background.png);">
<div id="frame_header" class="threecol_row">

View File

@ -7,8 +7,8 @@ class default_start extends SYSTEM\PAGE\Page {
public function html(){
$vars = array();
$vars['default_page_welcome'] = \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_start/tpl/default_page_welcome.tpl'), array());
$vars['default_page_serverinfo'] = \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_start/tpl/default_page_serverinfo.tpl'), array());
$vars['default_page_new_char'] = \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_start/tpl/default_page_new_char.tpl'), array());
$vars['default_page_welcome'] = \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_start/tpl/default_page_welcome.tpl'), array());
$vars['default_page_login'] = \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_start/tpl/default_page_login.tpl'), array());
$vars['PICPATH'] = \SYSTEM\FILES\files::getURL('default_start');

View File

@ -0,0 +1,11 @@
<div>
<h4>
This site is under construction.
<br>
Feel free to snoop around.
</h4>
<div style="padding-top: 25px;"><img src="${PICPATH}help_gnome.png" width="200px;" /></div>
<div id="start" style="float: left; padding-top: 55px;">
<a href="#wizard_details"><img width="280" src="${PICPATH}button.png"/></a>
</div>
</div>

View File

@ -1,11 +1,4 @@
<h3 style="color: gold;">Welcome Traveler</h3>
<h4>Welcome to WoW Hardmode.
<br>
This site is under construction.
<br>
Feel free to snoop around.
</h4>
<div style="text-align: center; padding-top: 25px;"><img src="${PICPATH}help_gnome.png" width="200px;" /></div>
<div id="start" style="float: left;padding-top: 55px;">
<a href="#wizard_details"><img src="${PICPATH}button.png"/></a>
<div>
<img width="300" src="http://www.mojotrollz.eu/web/mojotrollz/api.php?call=files&cat=wowicons&id=m.png"/>
<H3>Soon to come...</H3>
</div>

View File

@ -8,7 +8,7 @@
</div>
<div class="threecol_row">
<div class="threecol_col" style="background: url(${PICPATH_DEFAULT}border_lefts.png) repeat-y; width: 12px;"></div>
<div class="threecol_col" style="background-color: darkslategrey; padding-left: 10px;">${default_page_login}</div>
<div class="threecol_col" style="background: url(http://www.mojotrollz.eu/web/mojotrollz/api.php?call=files&cat=wowicons&id=background1.png); padding-left: 10px;">${default_page_login}</div>
<div class="threecol_col" style="background: url(${PICPATH_DEFAULT}border_rights.png) repeat-y; width: 12px;"></div>
</div>
<div class="threecol_row" style="height: 12px;">
@ -27,7 +27,7 @@
</div>
<div class="threecol_row">
<div class="threecol_col" style="background: url(${PICPATH_DEFAULT}border_lefts.png) repeat-y; width: 12px;"></div>
<div class="threecol_col" style="background-color: darkolivegreen; padding-left: 10px;">${default_page_serverinfo}</div>
<div class="threecol_col" style="background: url(http://www.mojotrollz.eu/web/mojotrollz/api.php?call=files&cat=wowicons&id=background1.png); padding-left: 10px;">${default_page_new_char}</div>
<div class="threecol_col" style="background: url(${PICPATH_DEFAULT}border_rights.png) repeat-y; width: 12px;"></div>
</div>
<div class="threecol_row" style="height: 12px;">

View File

@ -1,5 +1,5 @@
<div style="width: 180px;">
<a id="btn_news" href="#user_start"><li class="btn_blue">News</li></a>
<a id="btn_news" href="#user_start"><li class="btn_blue">Overview</li></a>
<a id="btn_achieve" href="#user_achievements_menu"><li class="btn_blue">Compendium</li></a>
<a id="btn_inv" href="#"><li class="btn_blue">Inventory</li></a>
<a id="btn_arm" href="#"><li class="btn_blue">Armory</li></a>

View File

@ -0,0 +1,35 @@
<table>
<tr>
<td>
<p>Keep your Role... <br>updated via Character Profile</p>
</td>
</tr>
<tr>
<td>
<p>Tanks<br>
<img src="http://www.mojotrollz.eu/web/mojotrollz/api.php?call=files&cat=wowicons&id=Tank.png"/> count
</p>
</td>
</tr>
<tr>
<td>
<p>physical DDs<br>
<img src="http://www.mojotrollz.eu/web/mojotrollz/api.php?call=files&cat=wowicons&id=Damage.png"/> count
</p>
</td>
</tr>
<tr>
<td>
<p>magical DDs<br>
<img src="http://www.mojotrollz.eu/web/mojotrollz/api.php?call=files&cat=wowicons&id=Damage.png"/> count
</p>
</td>
</tr>
<tr>
<td>
<p>Healers<br>
<img src="http://www.mojotrollz.eu/web/mojotrollz/api.php?call=files&cat=wowicons&id=Healer.png"/> count
</p>
</td>
</tr>
</table>

View File

@ -4,6 +4,8 @@
<div class="window_bg2" style="width: 290px; min-height: 255px;">
<H3>Welcome to Mojo WoW</H3>
<p>Site is currently <br>under construction.<br> Be gone. Shush!</p>
<div style="float: right;"><img width="200;" src="http://www.mojotrollz.eu/web/mojotrollz/api.php?call=files&cat=wowicons&id=wow.png"/></div>
</div>
<div style="clear: both"></div>
<div class="window_bg2" style="width: 290px;">
@ -23,28 +25,47 @@
<p>Realm Server: ${realm_status}</p>
<p>World Server: ${world_status}</p>
<p>Players Online: ${player_online}</p>
</div>
<div style="clear: both"></div>
</div>
<div>
<div class="window_bg2" style="width: 220px;">
<H3>Daily Web Quests</H3>
<table>
<tr>
<td style="text-align: center"><img src="http://www.mojotrollz.eu/web/mojotrollz/api.php?call=files&cat=wowicons&id=webquest.png"></td>
<td style="width: 20px;"></td>
<td style="text-align: center"><img src="http://www.mojotrollz.eu/web/mojotrollz/api.php?call=files&cat=wowicons&id=webquest.png"></td>
</tr>
</table>
</div>
</div>
<div style="clear: both"></div>
<div id="frame_vid" class="window_bg2">
<H3><a href="https://www.youtube.com/user/Mojotrolltribe">Visit the Tribe on youtube!</a></H3>
<iframe width="400" height="230" src="//www.youtube.com/embed/Rpoy03UkZFk" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<div id="frame_start_stats" class="window_bg2" style="">
<div style="float: left;">
<H3>Racial Pluralism</H3>
<table>${char_stats}</table>
<br>
<p><font style="font-size: 10pt;"> ${factionbalance}</font></p>
<div style="float: left">
<div id="frame_start_stats" class="window_bg2" style="">
<div style="float: left;">
<H3>Racial Pluralism</H3>
<table>${char_stats}</table>
<br>
<p><font style="font-size: 10pt;"> ${factionbalance}</font></p>
</div>
<div style="float: left; margin-left: 20px;">
<H3>Class Diffusion</H3>
<table>${class_stats}</table>
</div>
<div style="float: left; margin-left: 20px; padding-left: 20px;">
<H3>Role Balance</H3>
${role_balance}
Guilds <font style="font-size: 10pt;"> overallcount:${guildcount}</font>
</div>
</div>
</div>
<div style="float: left; margin-left: 20px;">
<H3>Class Diffusion</H3>
<table>${class_stats}</table>
</div>
<div style="float: left; margin-left: 20px; padding: 20px;">
Guilds <font style="font-size: 10pt;"> overallcount:${guildcount}</font>
</div>
</div>
</div>

View File

@ -5,32 +5,7 @@ class user_start extends SYSTEM\PAGE\Page {
public static function css (){
return array();}
private function switch_order($race){
switch($race){
case 1:
return '1';
case 2:
return '3';
case 3:
return '7';
case 4:
return '4';
case 5:
return '2';
case 6:
return '8';
case 7:
return '6';
case 8:
return '5';
default:
return '';
}
}
public function get_char_statistics(){
@ -64,7 +39,10 @@ class user_start extends SYSTEM\PAGE\Page {
$balance = \DBD\FACTION_BALANCE::Q1();
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_start/tpl/faction_balance.tpl'), $balance);
}
public function get_role_balance(){
$balance = \DBD\FACTION_BALANCE::Q1();
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_start/tpl/role_balance.tpl'), $balance);
}
public function html(){
@ -76,6 +54,7 @@ class user_start extends SYSTEM\PAGE\Page {
$vars['world_status'] = world::status();
$vars['player_online'] = database::player_online();
$vars['factionbalance'] = $this->get_faction_balance();
$vars['role_balance'] =$this->get_role_balance();
$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=';

View File

@ -1,27 +1,30 @@
<H4>Summary</H4>
<table>
<tr>
<div style="text-align: center; color: black;">
<H4>Summary</H4>
</div>
<table class="table_summ">
<!--<tr>
<th>Option</th>
<th>Wert</th>
<th>Check</th>
</tr>
</tr>-->
<tr>
<td>Name</td>
<td><b>Name</b></td>
<td>${char_name}</td>
<td>${char_name_ok}</td>
</tr>
<tr>
<td>Gender</td>
<td><b>Gender</b></td>
<td><img src="${WOW_GENDER}${char_gender}.png"/></td>
<td>${char_gender_ok}</td>
</tr>
<tr>
<td>Race</td>
<td><b>Race</b></td>
<td><img src="${WOW_RACE}${char_race}_${char_gender}.png"/></td>
<td>${char_race_ok}</td>
</tr>
<tr>
<td>Class</td>
<td><b>Class</b></td>
<td><img src="${WOW_CLASS}${char_class}.png"/></td>
<td>${char_class_ok}</td>
</tr>
@ -61,12 +64,12 @@
<td>${char_skill_tree_ok}</td>
</tr>
<tr>
<td>Guild</td>
<td><b>Guild</b></td>
<td>${char_guild}</td>
<td>${char_guild_ok}</td>
</tr>
<tr>
<td>Spawn</td>
<td><b>Spawn</b></td>
<td><img src="${WOW_CITY}${char_spawn}.png"/></td>
<td>${char_spawn_ok}</td>
</tr>