started friend
22
mojotrollz/page/default_page/css/default_page.css
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
.parent{
|
||||||
|
width: 1000px;
|
||||||
|
position: absolute;
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left{
|
||||||
|
display: table-cell;
|
||||||
|
vertical-align: middle;
|
||||||
|
width: 30%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.right{
|
||||||
|
display: table-cell;
|
||||||
|
width: 69%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.bottom{
|
||||||
|
display: table-row;
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
@ -13,7 +13,8 @@ class default_page extends SYSTEM\PAGE\Page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function css (){
|
private function css (){
|
||||||
return '<link href="lib/bootstrap/css/bootstrap.css" rel="stylesheet">';
|
return '<link href="lib/bootstrap/css/bootstrap.css" rel="stylesheet">'.
|
||||||
|
'<link href="'.SYSTEM\WEBPATH(new PPAGE(),'default_page/css/default_page.css').'" rel="stylesheet">';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function html(){
|
public function html(){
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<body style="color: gold; background: url(${PICPATH}wall.jpg);">
|
<body style="color: gold; background: url(${PICPATH}wall.jpg);">
|
||||||
<div id="logo" style="text-align: center"><img src="${PICPATH}World-Of-Warcraft-Logo.png"/></div>
|
<div id="logo" style="text-align: center"><img src="${PICPATH}World-Of-Warcraft-Logo.png"/></div>
|
||||||
<div id="wrapper" style="background: url(${PICPATH}background.png); width: 1000px; margin: auto; -webkit-box-shadow: 3px 3px 4px 2px rgba(0, 0, 0, 1); box-shadow: 3px 3px 4px 2px rgba(0, 0, 0, 1); border-radius: 5px;">
|
<div id="wrapper"style="width: 1000px; margin: auto; -webkit-box-shadow: 3px 3px 4px 2px rgba(0, 0, 0, 1); box-shadow: 3px 3px 4px 2px rgba(0, 0, 0, 1); border-radius: 5px;">
|
||||||
<div id="wizard_navbar" class="navbar" style="background: black; height:48px;">
|
<div id="wizard_navbar" class="navbar" style="background: black; height:48px;">
|
||||||
<div class="navbar-inner" style="background-image: url(${PICPATH}navbar_background.png);">
|
<div class="navbar-inner" style="background-image: url(${PICPATH}navbar_background.png);">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
@ -25,37 +25,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<img src="${PICPATH}border_top.png" width="100%"/>
|
<img src="${PICPATH}border_top.png" width="100%"/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="parent" style="background: url(${PICPATH}background.png);" >
|
||||||
|
<div style="display: table-row">
|
||||||
|
<div id="frame_left" class="left" style="background: url(${PICPATH}border_left.png) repeat-y; width: 25px;">
|
||||||
|
|
||||||
<div id="frame_left" style="float: left; margin-left: 0; height: 100%;">
|
|
||||||
<img src="${PICPATH}border_left.png" style="width: 26px;"/>
|
|
||||||
<br>
|
|
||||||
<img src="${PICPATH}border_left.png" style="width: 26px;"/>
|
|
||||||
<br>
|
|
||||||
<img src="${PICPATH}border_left.png" style="width: 26px;"/>
|
|
||||||
<br>
|
|
||||||
<img src="${PICPATH}border_left.png" style="width: 26px;"/>
|
|
||||||
<br>
|
|
||||||
<img src="${PICPATH}border_left.png" style="width: 26px;"/>
|
|
||||||
<br>
|
|
||||||
<img src="${PICPATH}border_left.png" style="width: 26px;"/>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="float: right; margin-right: -4px; height: 100%;">
|
|
||||||
<img src="${PICPATH}border_right.png" style="width: 26px;"/>
|
|
||||||
<br>
|
|
||||||
<img src="${PICPATH}border_right.png" style="width: 26px;"/>
|
|
||||||
<br>
|
|
||||||
<img src="${PICPATH}border_right.png" style="width: 26px;"/>
|
|
||||||
<br>
|
|
||||||
<img src="${PICPATH}border_right.png" style="width: 26px;"/>
|
|
||||||
<br>
|
|
||||||
<img src="${PICPATH}border_right.png" style="width: 26px;"/>
|
|
||||||
<br>
|
|
||||||
<img src="${PICPATH}border_right.png" style="width: 26px;"/>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="content_wrapper" style="padding-left: 10px; padding-right: 10px;">
|
<div id="content_wrapper" style="padding-left: 10px; padding-right: 10px;">
|
||||||
<div id="content">
|
<div id="content" >
|
||||||
<div>
|
<div>
|
||||||
welcome
|
welcome
|
||||||
</div>
|
</div>
|
||||||
@ -67,14 +44,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
<img src="${PICPATH}border_right.png" style="float: right; margin-right: -10px; width: 26px;"/>
|
|
||||||
<img src="${PICPATH}border_left.png" style="float: left; margin-left: -10px; width: 26px;"/>
|
|
||||||
<div id="back" style="float: left; display: none;"><a href="#"><img src="${PICPATH}arrow_left.png"/></a></div>
|
<div id="back" style="float: left; display: none;"><a href="#"><img src="${PICPATH}arrow_left.png"/></a></div>
|
||||||
<div id="next" style="float: right;"><a href="#"><img src="${PICPATH}arrow_right.png"/></a></div>
|
<div id="next" style="float: right;"><a href="#"><img src="${PICPATH}arrow_right.png"/></a></div>
|
||||||
<div id="register" style="float: right; display: none;"><a href="#">REG NOW BUTTON</a></div>
|
<div id="register" style="float: right; display: none;"><a href="#">REG NOW BUTTON</a></div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="right" style="background: url(${PICPATH}border_right.png) repeat-y; width: 25px;">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="" style="width: 100%; display: table-row; position: relative">
|
||||||
<img src="${PICPATH}border_bot.png" width="100%"/>
|
<img src="${PICPATH}border_bot.png" width="100%"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
BIN
mojotrollz/page/default_page/img/help_questionmark.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
mojotrollz/page/default_page/img/x.png
Normal file
|
After Width: | Height: | Size: 742 B |
@ -1,8 +1,23 @@
|
|||||||
<div class="hero-unit" style="padding: 0; margin: 0; background: url(${PICPATH}friendlist_title_background.png);">
|
<div id="friendlist" style="float: left; width: 30%;">
|
||||||
<h1>${friend_title}</h1>
|
<h1>${friend_title}</h1>
|
||||||
|
<br>
|
||||||
|
<input type="text" class="form-control input-lg" id="friend_name" placeholder="${friend_name}">
|
||||||
|
<div class="" id="added_friend_list">
|
||||||
|
<div class="" style="outline: 2px white; background: url(${PICPATH}wall.png); height: 200px;">
|
||||||
|
<div style="background: url(${PICPATH}background2.png);">
|
||||||
|
<div style="float: left; padding: 5px;">Molanor</div>
|
||||||
|
<img src="${PICPATH}warrior.png" width="30px;"/>
|
||||||
|
<img src="${PICPATH}ork_male.png" width="30px;"/>
|
||||||
|
<img src="${PICPATH}x.png" style="float: right; padding: 7px;"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
</div>
|
||||||
<input type="text" class="form-control input-lg" id="friend_name" placeholder="${friend_name}">
|
<div id="guildlist" style="float: left; min-height: 250px;">
|
||||||
<div id="added_friend_list">
|
<h1>${guild_title}</h1>
|
||||||
${added_friend_list}
|
|
||||||
|
</div>
|
||||||
|
<div id="friend_help" style="float: right; min-height: 250px;">
|
||||||
|
<h1>${help_title}</h1>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
BIN
mojotrollz/page/wizard_friend/img/background2.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
mojotrollz/page/wizard_friend/img/ork_male.png
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
BIN
mojotrollz/page/wizard_friend/img/wall.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
mojotrollz/page/wizard_friend/img/warrior.png
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
mojotrollz/page/wizard_friend/img/x.png
Normal file
|
After Width: | Height: | Size: 742 B |
40
mojotrollz/page/wizard_friendlist/friendlist.php
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<?php
|
||||||
|
class wizard_friend extends SYSTEM\PAGE\Page {
|
||||||
|
|
||||||
|
private function js(){
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getfriend($friend_name){
|
||||||
|
$con = new \SYSTEM\DB\Connection(new \DBD\mangos_chars());
|
||||||
|
$res = $con->prepare( 'selCharByName',
|
||||||
|
'SELECT * FROM `mangos_chars_characters` WHERE `name` = ?;',
|
||||||
|
array($friend_name));
|
||||||
|
$result = array();
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function friend_tolist(){
|
||||||
|
$result = "";
|
||||||
|
$friend = votes::getfriend(1);
|
||||||
|
foreach($friend_name as $friend){
|
||||||
|
$vars = array('name' => $friend['name'], 'race' => $friend['race'], 'gender' => $friend['gender'], 'class' => $friend['class']);
|
||||||
|
$result .= SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/added_friend.tpl'), $vars);
|
||||||
|
}
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
private function css (){
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function html(){
|
||||||
|
$vars = array();
|
||||||
|
$vars['js'] = $this->js();
|
||||||
|
$vars['css'] = $this->css();
|
||||||
|
$vars['PICPATH'] = \SYSTEM\WEBPATH(new PPAGE(),'wizard_friendlist/img/');
|
||||||
|
$vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE));
|
||||||
|
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'wizard_friendlist/friendlist.tpl'), $vars);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
0
mojotrollz/page/wizard_friendlist/friendlist.tpl
Normal file
BIN
mojotrollz/page/wizard_friendlist/img/wall.jpg
Normal file
|
After Width: | Height: | Size: 30 KiB |