Ejemplo n.º 1
0
<?php

chdir("../");
include_once "bootstrap.php";
include_once "hero/weaponController.php";
//html header
$smarty->display("css/css.tpl");
$weaponController = new weaponController();
//menu
$smarty->display("menu.tpl");
/*********  show all Party  ***********/
$weaponBases = $weaponController->getAllWeaponBase();
$smarty->assign("weaponBases", $weaponBases);
$smarty->display("admin/weaponBase.tpl");
/*********  end show all Party  ***********/
chdir("admin/");
Ejemplo n.º 2
0
<?php

include "bootstrap.php";
include_once "hero/heroController.php";
include_once "hero/weaponController.php";
//load User
include_once "user/user.php";
$user = new User();
$user = $user->load($currentUID);
$smarty->assign("user", $user);
$smarty->display("css/css.tpl");
$smarty->assign("help", "Hero and weapon names can be edited by clicking the edit button located next to the respective name.\n\t\t\t\t\t    Equipped weapons can be changed if you have unused weapons in your inventory.\n\t\t\t\t\t    When a hero gains a level they increase their Max HP and sometimes increase an attribute. This is shown with the green up arrow icon.");
$smarty->assign("helpTitle", "Hero Page Help");
include_once "menu.php";
$heroController = new heroController();
$weaponController = new weaponController();
$currentTime = new DateTime('now');
$smarty->assign("currentTime", $currentTime);
$hero = new Hero();
$hero = $hero->loadHero($_REQUEST['ID']);
//Class Tree Diagram
$baseClass = $hero->HeroClass;
$childClasses = array();
if ($baseClass->NextClass != null && $baseClass->NextClass != "") {
    $childClassIDs = explode("|", $baseClass->NextClass);
    foreach ($childClassIDs as $childClassID) {
        array_push($childClasses, HeroClass::loadHeroClass($childClassID));
    }
}
$smarty->assign("baseClass", $baseClass);
$smarty->assign("childClasses", $childClasses);
Ejemplo n.º 3
0
chdir("../");
include "bootstrap.php";
include_once "hero/heroController.php";
include_once "hero/weaponController.php";
//load User
include_once "user/user.php";
$user = new User();
$user = $user->load($currentUID);
$smarty->assign("user", $user);
$smarty->display("css/css.tpl");
$smarty->assign("help", "Hero and weapon names can be edited by clicking the edit button located next to the respective name.\n\t\t\t\t\t    Equipped weapons can be changed if you have unused weapons in your inventory.\n\t\t\t\t\t    When a hero gains a level they increase their Max HP and sometimes increase an attribute. This is shown with the green up arrow icon.");
$smarty->assign("helpTitle", "Hero Page Help");
include_once "menu.php";
$heroController = new heroController();
$weaponController = new weaponController();
$currentTime = new DateTime('now');
$smarty->assign("currentTime", $currentTime);
$hero = new Hero();
$hero = $hero->loadHero($_REQUEST['ID']);
//Class Tree Diagram
$baseClass = $hero->HeroClass;
$childClasses = array();
if ($baseClass->NextClass != null && $baseClass->NextClass != "") {
    $childClassIDs = explode("|", $baseClass->NextClass);
    foreach ($childClassIDs as $childClassID) {
        array_push($childClasses, HeroClass::loadHeroClass($childClassID));
    }
}
$smarty->assign("baseClass", $baseClass);
$smarty->assign("childClasses", $childClasses);