first steps for guild

This commit is contained in:
Nael 2013-11-17 21:12:30 +01:00
parent 19447fb560
commit 4f0850d144
37 changed files with 224 additions and 6 deletions

8
lib/jqueryqtip/INSTALL Normal file
View File

@ -0,0 +1,8 @@
Installing qTip is relatively straight forward. Simply include the both the jQuery and qTip library files e.g. jquery-qtip-1.0.0.min.js using script html element(s), like so:
<script type="text/javascript" src="/projects/qtip/js/jquery.1.3.2.min.js"></script>
<script type="text/javascript" src="/projects/qtip/js/jquery.qtip-1.0.0.min.js"></script>
Notice the jQuery library is included before qTip. This is _absolutely essential_ for correct functioning of the library and its accompanying methods.
It is HIGHLY RECOMMENDED that all JavaScript includes like the one above be placed after all your content at the footer of the page, just before the end </body> tag. This ensures that all content is loaded before manipulation of the DOM occurs.

7
lib/jqueryqtip/LICENSE Normal file
View File

@ -0,0 +1,7 @@
Copyright © 2009 Craig Thompson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,5 @@
JQUERY IS REQUIRED FOR USE OF THIS PLUGIN
You can grab the latest version here: http://jquery.com
We recommend version 1.3 due to its significant speed increases in several areas, but qTip supports the use of jQuery version 1.2.6 and above for all you who have decided not to upgrade.

25
lib/jqueryqtip/jquery-1.3.2.min.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

View File

@ -3,3 +3,4 @@
\SYSTEM\IMG\img::registerFolder(dirname(__FILE__).'/wow_city_icons/','wow_city_icons','*.png');
\SYSTEM\IMG\img::registerFolder(dirname(__FILE__).'/buttons/','buttons','*.png');
\SYSTEM\IMG\img::registerFolder(dirname(__FILE__).'/backgrounds/','backgrounds','*.png');
\SYSTEM\IMG\img::registerFolder(dirname(__FILE__).'/wow_city_icons/','wow_city_icons','*.png');

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -1,2 +1,6 @@
<a class="brand active" href=""><font color="gold">Welcome</font></a>
<li><a href="#" state="wizard_details"><font color="gold">Character</font></a></li>
<li><a href="#" state="user_news"><font color="gold">news</font></a></li>
<li><a href="#" state="user_guild"><font color="gold">guild</font></a></li>
<li><a href="#" state="user_bank"><font color="gold">bank</font></a></li>
<li><a href="#" state="user_economy"><font color="gold">economy</font></a></li>
<li><a href="#" state="user_character"><font color="gold">character</font></a></li>
<li><a href="#" state="user_logout"><font color="gold">Logout</font></a></li>

View File

@ -70,6 +70,19 @@
<div style="clear: both;"></div>
<div id="back" style="float: left; display: none;"><a href="#"><img src="${WOWICONS}arrow_left.png"/></a></div>
<div id="start" style="float: left;"><a href="#"><img src="${PICPATH}button.png"/></a></div>
<div style="float: left; margin-left: 30px; display: none;">
<center>
Molanor
<img width="51" style="padding-left: 30px;" src="${WOWICONS}ork_male.png"/>
<img width="48" style="padding-left: 30px;" src="${WOWICONS}warrior.png"/>
<img width="48" style="padding-left: 30px;" src="${WOWICONS}help_questionmark.png"/>
<img width="48" style="padding-left: 30px;" src="${WOWICONS}arrow_up.png"/>
<img width="48" style="padding-left: 30px;" src="${WOWICONS}shaman.png"/>
<img width="48" style="padding-left: 30px;" src="${WOWICONS}arrow_down.png"/>
</center>
</div>
<div id="next" style="float: right; display: none;"><a href="#"><img src="${WOWICONS}arrow_right.png"/></a></div>
</div>
<div class="right" style="background: url(${PICPATH}border_right.png) repeat-y;"></div>

View File

@ -21,7 +21,11 @@ $(document).ready(function() {
$.get('./api.php?call=account&action=login&username='+$('#bt_login_user').val()+'&password_sha='+$.sha1($('#bt_login_password').val())+'&password_md5='+$.md5($('#bt_login_password').val()), function (data) {
if(data == 1){
$('.help-block').html("Login successfull.</br>");
location.reload(true);
$('#nav').load('?action=default_navbar', function (){
$('#nav').scrollLeft(2000);
load_wizard_page ('user_news');
register_menu ();
});
} else {
$('.help-block').html("Login not successfull.</br> User & Password combination wrong.")
}

View File

@ -23,8 +23,17 @@ class page_mojotrollz extends \SYSTEM\API\api_default {
public static function action_wizard_summ(){
return new wizard_summ();}
public static function action_wizard_reg(){
return new wizard_reg();}
public static function action_user_news(){
return new user_news();}
public static function action_user_guild(){
return new user_guild();}
public static function action_user_bank(){
return new user_bank();}
public static function action_user_logout(){
return new user_logout();}
public static function action_default_navbar(){
return new default_navbar();}

View File

@ -8,6 +8,8 @@ SYSTEM\autoload::registerFolder(dirname(__FILE__).'/wizard_skills','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/wizard_spawn','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/wizard_summ','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/wizard_reg','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_news','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_guild','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/default_navbar','');

View File

@ -0,0 +1,52 @@
<div style="margin-left: 0; float: left; width: 25%;">
<input type="text"
size="30"
style="margin-left: 2px; margin-bottom: 0;"
id="bt_login_user"
placeholder="${user_search_guild}"/>
<div id="guild_nav_user_guild" style="align: center; background: url(${BUTTONS}nav_off.png); background-size: 100%; width: 200px; height: 35px;">
<a href="#">My Guild</a>
</div>
<div id="guild_nav_raidplanner" style="align: center; background: url(${BUTTONS}nav_off.png); background-size: 100%; width: 200px; height: 35px;">
<a href="#">Raidplanner</a>
</div>
<div id="guild_nav_wanted" style="align: center; background: url(${BUTTONS}nav_off.png); background-size: 100%; width: 200px; height: 35px;">
<a href="#">Wanted</a>
</div>
</div>
<div class="" id="guild_achievements" style="background: url(${BG}black_structure.png) no-repeat; background-size: 100%; float: left; padding: 25px; margin-top: 5px;">
<h3>Guild Achievements</h3>
<div style="">
<a class="hakkar" href="#"> <img src="${WOWICONS}hakkar.png"/> </a>
<a class="ossirian" href="#"> <img src="${WOWICONS}ossirian.png"/> </a>
<a class="ragnaros" href="#"> <img src="${WOWICONS}ragnaros.png"/> </a>
<a class="onyxia" href="#"> <img src="${WOWICONS}onyxia.png"/> </a>
</div>
<br>
<div style="">
<a class="nefarion" href="#"> <img src="${WOWICONS}nefarion.png"/> </a>
<a class="cthun" href="#"> <img src="${WOWICONS}cthun.png"/> </a>
<a class="kelthuzad" href="#"> <img src="${WOWICONS}kelthuzad.png"/> </a>
<a class="thunderaan" href="#"> <img src="${WOWICONS}thunderaan.png"/> </a>
</div>
<br>
<div style="">
<a class="hundredbosses" href="#"> <img src="${WOWICONS}100bosses.png"/> </a>
<a class="thousandbosses" href="#"> <img src="${WOWICONS}1000bosses.png"/> </a>
<a class="allworldbosses" href="#"> <img src="${WOWICONS}allworldbosses.png"/> </a>
<a class="oneyearexisting" href="#"> <img src="${WOWICONS}1yearexisting.png"/> </a>
<a class="fiveguildbankupgrades" href="#"> <img src="${WOWICONS}5guildbankupgrades.png"/> </a>
</div>
</div>
<div style="float: right; background: url(${BG}pergament_big.png) no-repeat; background-size: 200px; 100px; margin-top: 5px; display: none;">
<img src="${BUTTONS}members.png" width="200px;"/>
<div class="" style="outline: 2px white; height: 200px; margin-right: 20px;">
<div style="float: left; margin-left: 20px;">
<img src="${WOWICONS}warrior.png" width="28px;"/>
<img src="${WOWICONS}ork_male.png" width="28px;"/>
Molanor</div>
<img src="${WOWICONS}help_questionmark.png" style="float: right;" width="20"/>
</div>
</div>

View File

@ -0,0 +1,13 @@
function user_guild (){
$('.hakkar').qtip({
content: 'Downed Hakkar',
position: {
corner: {
target: 'topRight',
tooltip: 'bottomLeft'
}
}
});
}

View File

@ -0,0 +1,25 @@
<?php
class user_guild extends SYSTEM\PAGE\Page {
private function js(){
return '';}
private function css (){
return '';
}
public function html(){
$vars = array();
$vars['js'] = $this->js();
$vars['css'] = $this->css();
$vars['WOWICONS'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=img&cat=wowicons&id=';
$vars['BG'] = \SYSTEM\IMG\img::getURL('backgrounds');
$vars['BUTTONS'] = \SYSTEM\IMG\img::getURL('buttons');
$vars['WOW_BOSS_ICONS'] = \SYSTEM\IMG\img::getURL('wow_boss_icons');
$vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE));
$vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_WOW_INFOTEXT_RACES));
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_guild/guild.tpl'), $vars);
}
}

View File

@ -0,0 +1 @@
abc

View File

@ -0,0 +1,22 @@
<?php
class user_news extends SYSTEM\PAGE\Page {
private function js(){
return '';}
private function css (){
return '';
}
public function html(){
$vars = array();
$vars['js'] = $this->js();
$vars['css'] = $this->css();
$vars['WOWICONS'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=img&cat=wowicons&id=';
$vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE));
$vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_WOW_INFOTEXT_RACES));
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_news/news.tpl'), $vars);
}
}

View File

@ -26,4 +26,5 @@ function wizard_spawn(){
$(this).addClass('fadein');
});
}

View File

@ -0,0 +1,5 @@
<?php
class JQQTIP extends \SYSTEM\PATH {
public static function getPath(){
return \SYSTEM\C_ROOT.'lib/jqueryqtip/'.\SYSTEM\C_SUBPATH;}
}