public function Load() { require_once dirname(__FILE__) . "/includes/utils-unset-var.inc.php"; if (!$this->isAjaxPage()) { unsetWspAdminVariables(); } parent::$PAGE_TITLE = __(CONNECT_PAGE_TITLE); $this->setUserRights(""); // Welcome message $this->render = new Table(); $this->render->setWidth("100%"); $connect_box = new RoundBox(RoundBox::STYLE_SECOND, "connect_box", 420, 150); $connect_box->setShadow(true); $connect_box->setValign(RoundBox::VALIGN_CENTER); $connect_table = new Table(); $connect_table->setWidth("100%")->setDefaultAlign(RowTable::ALIGN_LEFT); $admin_pic = new Picture("img/wsp-admin/admin_128.png", 128, 128); $this->auth_obj = new Authentication($this, "connect"); $this->auth_obj->setTableWidth(265); $connect_table->addRowColumns($admin_pic, $this->auth_obj); $connect_box->setContent($connect_table); $this->render->addRow("<br/><br/><br/><br/><br/>"); $this->obj_br_before = new Object(); $this->obj_br_before->setId("divBrBefore"); $this->render->addRow($this->obj_br_before); $this->mod_obj = new Object(); $this->mod_obj->setId("divConfigRecommandation")->setWidth(400); $this->render->addRow($this->mod_obj); $this->render->addRow(""); $this->render->addRow($connect_box, RowTable::ALIGN_CENTER, RowTable::VALIGN_CENTER); $this->render->addRow("<br/>"); }
public function Load() { parent::$PAGE_TITLE = __(HOME_PAGE_TITLE); // Welcome message $small_img = new Picture("img/logo_16x16.png", 16, 16, 0, Picture::ALIGN_ABSMIDDLE); $title_header = new Object($small_img, __(WELCOME)); $welcome_box = new Box($title_header, true, Box::STYLE_SECOND, Box::STYLE_SECOND, "", "welcome_box", 600); $welcome_obj = new Object(__(WELCOME_MSG)); list($strAdminLogin, $strAdminPasswd, $strAdminRights) = getWspUserRightsInfo("admin"); $quickstart_obj = new Object(new Picture("img/quickstart_128.png", 64, 64), "<br/>", __(QUICKSTART)); $quickstart_link = new Link("http://www.website-php.com/" . $this->getLanguage() . "/quick-start.html", Link::TARGET_BLANK, $quickstart_obj); $quickstart_box = new RoundBox(3, "quickstart_box", 120, 120); $quickstart_box->setValign(RoundBox::VALIGN_CENTER); $quickstart_box->setContent($quickstart_link); $tutorial_obj = new Object(new Picture("img/tutorials_128.png", 64, 64), "<br/>", __(TUTORIALS)); $tutorial_link = new Link("http://www.website-php.com/" . $this->getLanguage() . "/tutorials.html", Link::TARGET_BLANK, $tutorial_obj); $tutorial_box = new RoundBox(3, "tutorial_box", 120, 120); $tutorial_box->setValign(RoundBox::VALIGN_CENTER); $tutorial_box->setContent($tutorial_link); $connect_obj = new Object(new Picture("img/wsp-admin/admin_128.png", 64, 64), "<br/>", __(CONNECT)); $connect_link = new Link("wsp-admin/connect.html", Link::TARGET_BLANK, $connect_obj); $connect_box = new RoundBox(3, "connect_box", 120, 120); $connect_box->setValign(RoundBox::VALIGN_CENTER); $connect_box->setContent($connect_link); $icon_table = new Table(); $icon_table->setDefaultAlign(RowTable::ALIGN_CENTER)->setDefaultValign(RowTable::VALIGN_TOP); $icon_row = $icon_table->addRowColumns($quickstart_box, " ", $tutorial_box, " ", $connect_box); $icon_row->setColumnWidth(5, 120); if ($strAdminLogin == "admin" && $strAdminPasswd == sha1("admin")) { $finalize = new Font(__(FINALIZE_INSTALL)); $finalize->setFontColor("red"); $finalize->setFontWeight(Font::FONT_WEIGHT_BOLD); $welcome_obj->add("<br/>", $finalize, "<br/>", __(CONNECT_DEFAULT_PASSWD), "<br/>"); } $welcome_obj->add("<br/>", $icon_table); $welcome_box->setContent($welcome_obj); // Footer $this->render = new Template($welcome_box); }