当前位置: 首页>>代码示例>>PHP>>正文


PHP parent::PAGE_TITLE方法代码示例

本文整理汇总了PHP中parent::PAGE_TITLE方法的典型用法代码示例。如果您正苦于以下问题:PHP parent::PAGE_TITLE方法的具体用法?PHP parent::PAGE_TITLE怎么用?PHP parent::PAGE_TITLE使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在parent的用法示例。


在下文中一共展示了parent::PAGE_TITLE方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Load

 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/>");
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:32,代码来源:connect.php

示例2: Load

 public function Load()
 {
     parent::$PAGE_TITLE = __(CONFIGURE_BANNED_VISITORS);
     if (!defined('MAX_BAD_URL_BEFORE_BANNED')) {
         define("MAX_BAD_URL_BEFORE_BANNED", 4);
     }
     $this->array_wsp_banned_users = WspBannedVisitors::getBannedVisitors();
     $this->table_ban = new Table();
     $this->table_ban->setId("table_ban")->activateAdvanceTable()->activatePagination()->activateSort(2, "desc")->setWidth(500);
     $this->table_ban->addRowColumns("IP", __(LAST_ACCESS), __(DURATION), __(AUTHORIZE))->setHeaderClass(0);
     $ban_vistors_obj = new Object("<br/><br/>", $this->table_ban, "<br/><br/>");
     $ban_ip_table = new Table();
     $form = new Form($this);
     $this->ip_edt = new TextBox($form);
     $validation = new LiveValidation();
     $validation->addValidatePresence();
     $this->ip_edt->setLiveValidation($validation);
     $this->duration_edt = new TextBox($form);
     $this->duration_edt->setValue(0);
     $validation = new LiveValidation();
     $validation->addValidatePresence()->addValidateNumericality(true);
     $this->duration_edt->setLiveValidation($validation);
     $ip_btn = new Button($form);
     $ip_btn->setValue(__(BAN_IP))->onClick("onBannedIP")->setAjaxEvent();
     $ban_ip_table->addRowColumns("IP : ", $this->ip_edt);
     $ban_ip_table->addRowColumns(__(DURATION) . " : ", $this->duration_edt);
     $form->setContent(new Object($ban_ip_table, $ip_btn));
     $ban_vistors_obj->add($form, "<br/><br/>");
     $this->render = new AdminTemplateForm($this, $ban_vistors_obj);
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:30,代码来源:configure-banned-visitors.php

示例3: Load

 public function Load()
 {
     parent::$PAGE_TITLE = __(CHANGE_PASSWD);
     $form = new Form($this, "Form_change_passwd");
     if (extension_loaded('openssl')) {
         //$form->setEncryptObject(new EncryptDataWspObject("change wsp password", 2048));
     }
     $table = new Table();
     $table->addRow();
     $this->edt_old_passwd = new Password($form, "wsp_old_password");
     $this->edt_old_passwd->setFocus();
     $live_validation = new LiveValidation();
     $live_validation->addValidatePresence()->setFieldName(__(OLD_PASSWD));
     $table->addRowColumns(__(OLD_PASSWD) . " :&nbsp;", $this->edt_old_passwd->setLiveValidation($live_validation))->setStyle("color:black;");
     $this->edt_new_passwd = new Password($form, "wsp_new_password");
     $live_validation = new LiveValidation();
     $live_validation->addValidatePresence()->setFieldName(__(NEW_PASSWD));
     $table->addRowColumns(__(NEW_PASSWD) . " :&nbsp;", $this->edt_new_passwd->setLiveValidation($live_validation))->setStyle("color:black;");
     $this->edt_confirm_passwd = new Password($form, "wsp_confirm_password");
     $live_validation = new LiveValidation();
     $live_validation->addValidatePresence()->setFieldName(__(CONFIRM_PASSWD));
     $live_validation->addValidateConfirmation("wsp_new_password");
     $table->addRowColumns(__(CONFIRM_PASSWD) . " :&nbsp;", $this->edt_confirm_passwd->setLiveValidation($live_validation))->setStyle("color:black;");
     $table->addRow();
     $this->validate_btn = new Button($form);
     $this->validate_btn->setValue(__(CHANGE_PASSWD))->onClick("onChangePasswd")->setAjaxEvent();
     $table->addRow($this->validate_btn)->setColspan(2)->setAlign(RowTable::ALIGN_CENTER);
     $table->addRow();
     $form->setContent($table);
     $table = new Table();
     $table->setWidth("100%");
     $table->addRow($form, RowTable::ALIGN_CENTER);
     $this->render = $table;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:34,代码来源:change-passwd.php

示例4: Load

 public function Load()
 {
     parent::$PAGE_TITLE = __(ERROR_USER_BANNED) . " - " . __(SITE_NAME);
     parent::$PAGE_META_ROBOTS = "noindex, nofollow";
     $can_use_captacha = true;
     if (WspBannedVisitors::isBannedIp($this->getRemoteIP())) {
         $last_access = new DateTime(WspBannedVisitors::getBannedIpLastAccess($this->getRemoteIP()));
         $duration = WspBannedVisitors::getBannedIpDuration($this->getRemoteIP());
         $dte_ban = $last_access->modify("+" . $duration . " seconds");
         if ($dte_ban > new DateTime()) {
             $can_use_captacha = false;
         }
     }
     $obj_error_msg = new Object(new Picture("wsp/img/warning.png", 48, 48, 0, "absmidlle"), "<br/><br/>");
     $obj_error_msg->add(new Label(__(ERROR_USER_BANNED_MSG_1), true), "<br/>");
     if ($can_use_captacha) {
         $obj_error_msg->add(new Label(__(ERROR_USER_BANNED_MSG_2), true), "<br/><br/>");
         $this->captcha_error_obj = new Object();
         $form = new Form($this);
         $this->captcha = new Captcha($form);
         $this->captcha->setFocus();
         $unblock_btn = new Button($form);
         $unblock_btn->setValue(__(ERROR_USER_BUTTON))->onClick("onClickUnblock");
         $form->setContent(new Object($this->captcha, "<br/>", $unblock_btn));
         $obj_error_msg->add($this->captcha_error_obj, "<br/>", $form);
     }
     $obj_error_msg->add("<br/><br/>", __(MAIN_PAGE_GO_BACK), new Link(BASE_URL, Link::TARGET_NONE, __(SITE_NAME)));
     $this->render = new ErrorTemplate($obj_error_msg, __(ERROR_USER_BANNED));
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:29,代码来源:error-user-ban.php

示例5: Load

 public function Load()
 {
     parent::$PAGE_TITLE = __(CONFIGURE_DATABASE);
     $this->includeJsAndCssFromObjectToPage("ComboBox(\$this)");
     // Admin
     $this->form = new Form($this);
     $table_form = new Table();
     $table_form->addRow();
     $this->edtHost = new TextBox($this->form);
     $this->edtHost->setValue(DB_HOST);
     $edtHostValidation = new LiveValidation();
     $table_form->addRowColumns(__(EDT_HOST) . ":&nbsp;", $this->edtHost->setLiveValidation($edtHostValidation->addValidatePresence()->setFieldName(__(EDT_HOST))));
     $this->edtPort = new TextBox($this->form);
     $this->edtPort->setValue(DB_PORT);
     $edtPortValidation = new LiveValidation();
     $table_form->addRowColumns(__(EDT_PORT) . ":&nbsp;", $this->edtPort->setLiveValidation($edtPortValidation->addValidateNumericality(true)->setFieldName(__(EDT_PORT))));
     $this->edtRoot = new TextBox($this->form);
     $this->edtRoot->setValue(DB_ROOT);
     $edtRootValidation = new LiveValidation();
     $table_form->addRowColumns(__(EDT_ROOT) . ":&nbsp;", $this->edtRoot->setLiveValidation($edtRootValidation->addValidatePresence()->setFieldName(__(EDT_ROOT))));
     $this->edtPassword = new Password($this->form);
     $this->edtPassword->setValue(DB_PASSWORD);
     $table_form->addRowColumns(__(EDT_PASSWORD) . ":&nbsp;", $this->edtPassword);
     $this->edtDatabase = new TextBox($this->form);
     $this->edtDatabase->setValue(DB_DATABASE);
     $table_form->addRowColumns(__(EDT_DATABASE) . ":&nbsp;", $this->edtDatabase);
     $table_form->addRow();
     $this->btnValidate = new Button($this->form);
     $this->btnValidate->setValue(__(BTN_VALIDATE))->onClick("configureDatabase")->setAjaxEvent();
     $table_form->addRowColumns($this->btnValidate)->setColumnColspan(1, 2)->setColumnAlign(1, RowTable::ALIGN_CENTER);
     $table_form->addRow();
     $table_form->addRow();
     $this->form->setContent($table_form);
     $this->render = new AdminTemplateForm($this, $this->form);
     // generate database object part
     $this->objCreateDbClass = new Object();
     $this->objCreateDbClass->setId("idCreateDbClass");
     $table_form->addRow($this->objCreateDbClass)->setColspan(2);
     $table_gen = new Table();
     $table_gen->addRow(__(GENERATE_DATABASE_OBJECTS))->setColspan(2);
     $table_gen->addRow();
     $this->cmb_databases = new ComboBox($this->form);
     $this->cmb_databases->onChange("configureGenDbObject")->setAjaxEvent();
     $table_gen->addRowColumns(__(DATABASES) . ":&nbsp;", $this->cmb_databases);
     $this->cmb_tables = new ComboBox($this->form);
     $table_gen->addRowColumns(__(TABLES) . ":&nbsp;", $this->cmb_tables);
     $table_gen->addRow();
     $btnGenObject = new Button($this->form);
     $btnGenObject->setValue(__(GENERATE_OBJECTS))->onClick("generateDbObject")->setAjaxEvent();
     $table_gen->addRow($btnGenObject)->setColspan(2);
     $table_gen->addRow();
     $this->objCreateDbClass->add($table_gen);
     // database list
     if ($this->testDbConnexion(null)) {
         $this->loadAllDatabases();
         $this->configureGenDbObject(null);
     }
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:58,代码来源:configure-database.php

示例6: Load

 public function Load()
 {
     header($_SERVER["SERVER_PROTOCOL"] . " 401 Unauthorized");
     parent::$PAGE_TITLE = __(ERROR_USER_RIGHTS) . " - " . __(SITE_NAME);
     parent::$PAGE_META_ROBOTS = "noindex, nofollow";
     $obj_error_msg = new Object(new Picture("wsp/img/warning.png", 48, 48, 0, "absmidlle"), "<br/>", new Label(__(ERROR_USER_RIGHTS_MSG)));
     $obj_error_msg->add("<br/><br/>", __(MAIN_PAGE_GO_BACK), new Link(BASE_URL, Link::TARGET_NONE, __(SITE_NAME)));
     $this->render = new ErrorTemplate($obj_error_msg, __(ERROR_USER_RIGHTS));
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:9,代码来源:error-user-rights.php

示例7: Load

 public function Load()
 {
     parent::$PAGE_TITLE = __(CONFIGURE_MODULES);
     $config_modules_obj = new Object();
     $construction_page = new Object(__(PAGE_IN_CONSTRUCTION));
     $construction_page->setClass("warning");
     $config_modules_obj->add($construction_page);
     $config_modules_obj->add("<br/>", __(PRESENTATION), "<br/><br/>");
     $sort_event_install = new SortableEvent($this);
     $sort_event_install->onSort("onChangeModule")->setAjaxEvent()->disableAjaxWaitMessage();
     $this->list_install_modules_obj = new Object();
     $this->list_install_modules_obj->setId("list_install_modules");
     $this->list_install_modules_obj->setSortable(true, $sort_event_install);
     $list_all_install_modules_obj = new Object();
     $module_style = "cursor:pointer;width:100px;border:1px solid gray;padding:2px;margin:2px;";
     $array_active_modules = array();
     $module_file = new File(dirname(__FILE__) . "/../../../wsp/config/modules.cnf");
     while (($line = $module_file->read_line()) != false) {
         if (trim($line) != "") {
             $array_active_modules[] = trim($line);
             $module_obj = new Object(trim($line));
             $module_obj->setId("module_" . str_replace("-", "_", trim($line)))->forceDivTag();
             if (trim($line) != "Authentication") {
                 $module_obj->setStyle($module_style);
                 $module_obj->setDraggable(true, false, null, true);
                 $this->list_install_modules_obj->add($module_obj);
             } else {
                 $module_obj->setStyle($module_style . "cursor:none;");
                 $list_all_install_modules_obj->add($module_obj);
             }
         }
     }
     $module_file->close();
     $list_all_install_modules_obj->add($this->list_install_modules_obj);
     $sort_event = new SortableEvent($this);
     $sort_event->onSort("onChangeModule")->setAjaxEvent()->disableAjaxWaitMessage();
     $this->list_modules_obj = new Object();
     $this->list_modules_obj->setId("list_modules");
     $this->list_modules_obj->setSortable(true, $sort_event);
     $folder = dirname(__FILE__) . "/../../../wsp/class/modules";
     $array_module_dir = scandir($folder);
     for ($i = 0; $i < sizeof($array_module_dir); $i++) {
         if (is_dir($folder . "/" . $array_module_dir[$i]) && !in_array($array_module_dir[$i], $array_active_modules) && $array_module_dir[$i] != "." && $array_module_dir[$i] != ".." && $array_module_dir[$i] != ".svn") {
             $module_obj = new Object($array_module_dir[$i]);
             $module_obj->setId("module_" . str_replace("-", "_", $array_module_dir[$i]))->forceDivTag();
             $module_obj->setDraggable(true, false, null, true)->setStyle($module_style);
             $this->list_modules_obj->add($module_obj);
         }
     }
     $config_table = new Table();
     $config_table->setWidth(400)->setDefaultAlign(RowTable::ALIGN_CENTER);
     $config_table->setDefaultValign(RowTable::VALIGN_TOP);
     $config_table->addRowColumns(new Object(new Label(__(ALL_MODULES), true), "<br/>", $this->list_modules_obj), "&nbsp;", new Object(new Label(__(INSTALLED_MODULES), true), "<br/>", $list_all_install_modules_obj));
     $config_modules_obj->add($config_table, "<br/><br/>");
     $this->render = new AdminTemplateForm($this, $config_modules_obj);
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:56,代码来源:configure-modules.php

示例8: Load

 public function Load()
 {
     parent::$PAGE_TITLE = __(MANAGE_TEMPLATES);
     $construction_page = new Object(__(PAGE_IN_CONSTRUCTION));
     $construction_page->setClass("warning");
     // Use webservices to synchronise the list of available template
     // Features
     // - get the list of templates
     // - download
     // - update (version check)
     // - uninstall
     $this->render = new AdminTemplateForm($this, $construction_page);
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:13,代码来源:manage-templates.php

示例9: Load

 public function Load()
 {
     parent::$PAGE_TITLE = __(CONFIGURE_USERS);
     $config_users_obj = new Object("<br/>");
     $this->result_obj = new Object();
     $this->result_obj->setId("page_result_area");
     $config_users_obj->add($this->result_obj);
     $this->users_table_obj = new Object();
     $this->users_table_obj->setId("users_table_obj");
     $config_users_obj->add($this->users_table_obj, "<br/><br/>");
     $user_table = new Table();
     $form = new Form($this);
     if (extension_loaded('openssl')) {
         $form->setEncryptObject(new EncryptDataWspObject());
     }
     $this->edt_login = new TextBox($form);
     $validation = new LiveValidation();
     $user_table->addRowColumns(__(LOGIN) . ":&nbsp;", $this->edt_login->setLiveValidation($validation->addValidatePresence()));
     $this->cmb_rights = new ComboBox($form);
     $this->cmb_rights->addItem(Page::RIGHTS_ADMINISTRATOR, "Administrator");
     $this->cmb_rights->addItem(Page::RIGHTS_MODERATOR, "Moderator");
     $this->cmb_rights->addItem(Page::RIGHTS_TRANSLATOR, "Translator");
     $this->cmb_rights->addItem(Page::RIGHTS_DEVELOPER, "Developer");
     $this->cmb_rights->addItem(Page::RIGHTS_AUTH_USER, "Authentificated user");
     $this->cmb_rights->addItem(Page::RIGHTS_GUEST, "Guest");
     $user_table->addRowColumns(__(RIGHTS) . ":&nbsp;", $this->cmb_rights);
     $this->edt_old_password = new Password($form);
     $validation = new LiveValidation();
     $this->old_passwd_row = $user_table->addRowColumns(__(OLD_PASSWORD) . ":&nbsp;", $this->edt_old_password->setLiveValidation($validation->addValidatePresence()->setFieldName(__(OLD_PASSWORD))));
     $this->old_passwd_row->setId("old_passwd_row");
     $this->edt_password = new Password($form);
     $validation = new LiveValidation();
     $user_table->addRowColumns(__(PASSWORD) . ":&nbsp;", $this->edt_password->setLiveValidation($validation->addValidatePresence()->setFieldName(__(PASSWORD))));
     $this->edt_confirm_passwd = new Password($form);
     $live_validation = new LiveValidation();
     $live_validation->addValidatePresence()->setFieldName(__(CONFIRM_PASSWD));
     $live_validation->addValidateConfirmation($this->edt_password->getId());
     $user_table->addRowColumns(__(CONFIRM_PASSWD) . " :&nbsp;", $this->edt_confirm_passwd->setLiveValidation($live_validation))->setStyle("color:black;");
     $user_table->addRow();
     $this->validate_btn = new Button($form);
     $this->validate_btn->setValue(__(ADD))->onClick("addWspUser")->setAjaxEvent()->disableAjaxWaitMessage()->assignEnterKey();
     $this->modify_btn = new Button($form);
     $this->modify_btn->setValue(__(SAVE))->onClick("changeWspUser")->setAjaxEvent()->disableAjaxWaitMessage()->assignEnterKey();
     $this->cancel_btn = new Button($this);
     $this->cancel_btn->setValue(__(CANCEL))->onClick("refresh")->setAjaxEvent()->disableAjaxWaitMessage();
     $modif_btn_table = new Table();
     $modif_btn_table->addRowColumns($this->validate_btn, "&nbsp;", $this->modify_btn, "&nbsp;", $this->cancel_btn);
     $user_table->addRow($modif_btn_table)->setColspan(2)->setAlign(RowTable::ALIGN_CENTER);
     $config_users_obj->add($form->setContent($user_table), "<br/><br/>");
     $this->render = new AdminTemplateForm($this, $config_users_obj);
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:51,代码来源:configure-users.php

示例10: Load

 public function Load()
 {
     parent::$PAGE_TITLE = __(CONFIGURE_SMTP);
     // Admin
     $form = new Form($this);
     $table_form = new Table();
     $table_form->addRow();
     $this->edtHost = new TextBox($form);
     $this->edtHost->setValue(SMTP_HOST);
     $edtHostValidation = new LiveValidation();
     $table_form->addRowColumns(__(EDT_HOST) . ":&nbsp;", $this->edtHost->setLiveValidation($edtHostValidation->addValidatePresence()->setFieldName(__(EDT_HOST))), "&nbsp;(ssl://smtp.gmail.com)");
     $this->edtPort = new TextBox($form);
     $this->edtPort->setValue(SMTP_PORT);
     $edtPortValidation = new LiveValidation();
     $table_form->addRowColumns(__(EDT_PORT) . ":&nbsp;", $this->edtPort->setLiveValidation($edtPortValidation->addValidateNumericality(true)->setFieldName(__(EDT_PORT))), "&nbsp;(465)");
     $this->edtName = new TextBox($form);
     $this->edtName->setValue(utf8encode(SMTP_NAME));
     $edtNameValidation = new LiveValidation();
     $table_form->addRowColumns(__(EDT_NAME) . ":&nbsp;", $this->edtName->setLiveValidation($edtNameValidation->addValidatePresence()->setFieldName(__(EDT_NAME))), "&nbsp;(Robert Francis)");
     $this->edtMail = new TextBox($form);
     $this->edtMail->setValue(SMTP_MAIL);
     $edtMailValidation = new LiveValidation();
     $table_form->addRowColumns(__(EDT_MAIL) . ":&nbsp;", $this->edtMail->setLiveValidation($edtMailValidation->addValidatePresence()->addValidateEmail()->setFieldName(__(EDT_MAIL))), "&nbsp;(robert.francis@gmail.com)");
     $this->cmbAuth = new ComboBox($form);
     $this->cmbAuth->addItem("false", __(DESACTIVATE), SMTP_AUTH == false ? true : false)->addItem("true", __(ACTIVATE), SMTP_AUTH == true ? true : false)->setWidth(143)->onChange("changeCmbAuth")->setAjaxEvent()->disableAjaxWaitMessage();
     $table_form->addRowColumns(__(CMB_AUTH) . ":&nbsp;", $this->cmbAuth, "&nbsp;(" . __(ACTIVATE) . ")");
     $this->edtUser = new TextBox($form);
     $this->edtUser->setValue(SMTP_USER);
     if (SMTP_AUTH == false) {
         $this->edtUser->disable();
     }
     $table_form->addRowColumns(__(EDT_USER) . ":&nbsp;", $this->edtUser, "&nbsp;(robert.francis@gmail.com)");
     $this->edtPassword = new Password($form);
     $this->edtPassword->setValue(SMTP_PASS);
     if (SMTP_AUTH == false) {
         $this->edtPassword->disable();
     }
     $table_form->addRowColumns(__(EDT_PASS) . ":&nbsp;", $this->edtPassword, "&nbsp;(*********)");
     $table_form->addRow();
     $btnValidate = new Button($form);
     $btnValidate->setValue(__(BTN_VALIDATE))->onClick("configureSmtp")->setAjaxEvent();
     $table_form->addRowColumns($btnValidate)->setColumnColspan(1, 3)->setColumnAlign(1, RowTable::ALIGN_CENTER);
     $table_form->addRow();
     $form->setContent($table_form);
     $this->render = new AdminTemplateForm($this, $form);
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:46,代码来源:configure-smtp.php

示例11: Load

 public function Load()
 {
     if (defined('SEND_ERROR_BY_MAIL') && SEND_ERROR_BY_MAIL == true && !isLocalDebug()) {
         if ($this->is_trace) {
             // standard msg "administrator is notified"
             parent::$PAGE_TITLE = __(ERROR) . " - " . __(SITE_NAME);
             $box_title = __(ERROR);
             $debug_msg = __(ERROR_DEBUG_MAIL_SENT);
         } else {
             // no trace in the debug information
             parent::$PAGE_TITLE = "Debug error - " . __(SITE_NAME);
             $box_title = "Debug error";
             $debug_msg = $_POST['debug'];
         }
     } else {
         parent::$PAGE_TITLE = "Debug error - " . __(SITE_NAME);
         $box_title = "Debug error";
         $debug_msg = $_POST['debug'];
     }
     $error_title_table = new Table();
     $error_title_table->addRowColumns(new Picture("wsp/img/warning.png", 48, 48, 0, "absmidlle"), "&nbsp;", new Label(__(ERROR), true));
     $obj_error_msg = new Object($error_title_table, "<br/>");
     $debug_obj = new Object(utf8encode($debug_msg));
     $debug_obj->setAlign(Object::ALIGN_LEFT);
     $debug_obj->setWidth("80%");
     $obj_error_msg->add($debug_obj, "<br/><br/>");
     if ($GLOBALS['__AJAX_LOAD_PAGE__'] == false) {
         $obj_error_msg->add("<a href=\"" . $_GET['from_url'] . "\">Refresh this page</a>", "<br/><br/>");
     }
     $obj_error_msg->add("<b>Consult <a href=\"http://www.php.net\" target=\"_blank\">PHP</a> or <a href=\"http://www.website-php.com\" target=\"_blank\">WebSite-PHP</a> documentations.</b>", "<br/>");
     $obj_error_msg->add("<br/><br/>", "Go back to the main page", new Link(BASE_URL, Link::TARGET_NONE, __(SITE_NAME)));
     $this->render = new ErrorTemplate($obj_error_msg, $box_title);
     if (trim($_POST['debug']) != "") {
         $cache_filename = "";
         if (isset($_POST['cache_filename']) && trim($_POST['cache_filename']) != "") {
             $cache_filename = $this->getRealCacheFileName($_POST['cache_filename']);
             if (!file_exists($cache_filename)) {
                 $cache_filename = "";
             }
         }
         NewException::sendErrorByMail($_POST['debug'], $cache_filename);
     }
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:43,代码来源:error-debug.php

示例12: Load

 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, "&nbsp;", $tutorial_box, "&nbsp;", $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);
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:39,代码来源:home.php

示例13: Load

 public function Load()
 {
     parent::$PAGE_TITLE = __(MANAGE_TRANSLATIONS);
     $content = new Object();
     // Search in all translation files the labels
     // Features :
     // - get the list of the labels for a page / language
     // - display for each label if there is a translation in all the language of the website
     // - enter a new label
     // - update a label
     // - delete a label
     $translate_table = new Table();
     $translate_table->setDefaultValign(RowTable::VALIGN_TOP);
     if (!isset($_GET['language'])) {
         $_GET['language'] = $this->getLanguage();
     }
     $this->form = new Form($this);
     $this->form->setAction($this->getCurrentURLWithoutParameters() . "?language=" . $_GET['language']);
     $this->hdn_old_file = new Hidden($this->form, "hdn_old_file");
     $content->add($this->hdn_old_file);
     $tree = new TreeView("wsp_lang_files");
     $array_path = explode("/", $this->getRootWspDirectory());
     $root = new TreeViewFolder($array_path[sizeof($array_path) - 1]);
     $tree_page_items = new TreeViewItems();
     $dir = $this->getRootWspDirectory() . "/lang/" . $_GET['language'] . "/";
     $array_files = $this->loadFiles($dir, '', $_GET['language']);
     foreach ($array_files as $key => $value) {
         $tree_page_type = new TreeViewFolder($key);
         $tree_page_type->expand();
         $tree_page_items->add($tree_page_type);
         $tree_items = new TreeViewItems();
         $array_folder = array();
         for ($i = 0; $i < sizeof($value); $i++) {
             $file = $value[$i];
             $expand = false;
             if ($file == $_GET['file']) {
                 $expand = true;
             }
             $array_path = explode('/', $file);
             $file_name = $array_path[sizeof($array_path) - 1];
             $array_path[sizeof($array_path) - 1] = null;
             $folder = implode('/', $array_path);
             if ($folder == "") {
                 $parent_tree_items = $tree_items;
             } else {
                 if (isset($array_folder[$folder])) {
                     $parent_tree_items = $array_folder[$folder];
                     $tree_folder = $parent_tree_items->getTreeViewItemParent();
                     if (!$tree_folder->isExpand()) {
                         if ($expand) {
                             $tree_folder->expand();
                         } else {
                             $tree_folder->collapse();
                         }
                     }
                 } else {
                     $tree_folder = new TreeViewFolder($folder);
                     if ($expand) {
                         $tree_folder->expand();
                     } else {
                         $tree_folder->collapse();
                     }
                     $tree_items->add($tree_folder);
                     $parent_tree_items = new TreeViewItems();
                     $tree_folder->setTreeViewItems($parent_tree_items);
                     $array_folder[$folder] = $parent_tree_items;
                 }
             }
             $file_link = new Button($this->form);
             $file_name_label = new Label($file_name);
             $file_name_label->setId("file_label_" . str_replace("/", "_slashsep_", str_replace(".", "_", str_replace("-", "_", $file))));
             $this->array_files_label[$file] = $file_name_label;
             $file_link->setValue($file_name_label)->setIsLink();
             $file_link->onClick("loadTranslation", $file, $this->hdn_old_file, $_GET['language'], 1)->setAjaxEvent();
             $tree_file = new TreeViewFile($file_link);
             $parent_tree_items->add($tree_file);
         }
         $tree_page_type->setTreeViewItems($tree_items);
     }
     $root->setTreeViewItems($tree_page_items);
     $root_items = new TreeViewItems();
     $root_items->add($root);
     $tree->setTreeViewItems($root_items);
     $language_selector = new Object();
     $array_lang_dir = scandir($this->getRootWspDirectory() . "/lang", 0);
     for ($i = 0; $i < sizeof($array_lang_dir); $i++) {
         if (is_dir($this->getRootWspDirectory() . "/lang/" . $array_lang_dir[$i]) && $array_lang_dir[$i] != "" && $array_lang_dir[$i] != "." && $array_lang_dir[$i] != ".." && $array_lang_dir[$i] != ".svn" && strlen($array_lang_dir[$i]) == 2) {
             $lang_link = $this->getCurrentURLWithoutParameters() . "?language=" . $array_lang_dir[$i];
             $language_link = new Link($lang_link, Link::TARGET_NONE, new Picture("wsp/img/lang/" . $array_lang_dir[$i] . ".png", 24, 24, 0, Picture::ALIGN_ABSMIDDLE));
             if ($array_lang_dir[$i] == $_GET['language']) {
                 $language_link->setStyle("border:1px solid red;padding-bottom: 4px;");
             }
             $language_link->setId("lang_link_" . $array_lang_dir[$i]);
             $this->array_lang_link[] = $language_link;
             $language_selector->add($language_link);
         }
     }
     $lang_tree_obj = new Object($language_selector, "<br/>");
     $tree_obj = new Object($tree);
     $tree_obj->setAlign(Object::ALIGN_LEFT)->setWidth(200)->setHeight(608)->setMaxHeight(608);
//.........这里部分代码省略.........
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:101,代码来源:manage-translations.php

示例14: Load

 public function Load()
 {
     parent::$PAGE_TITLE = __(ADMIN);
     // Admin
     $this->render = new AdminTemplateButton($this, $_GET[menu] == "" ? "admin.html" : "admin.html?menu=" . $_GET[menu]);
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:6,代码来源:admin.php

示例15: Load

 public function Load()
 {
     parent::$PAGE_TITLE = __(CONFIGURE_CSS);
     if ($this->jquery_version == "JQUERY_UI_VERSION") {
         $this->jquery_version = "1.8.14";
     }
     JavaScriptInclude::getInstance()->add(BASE_URL . "wsp/js/wsp-admin.js", "", true);
     JavaScriptInclude::getInstance()->add(BASE_URL . "wsp/js/jquery.backstretch.min.js", "", true);
     CssInclude::getInstance()->loadCssConfigFileInMemory();
     //Admin
     $table = new Table();
     $table->setDefaultValign(RowTable::VALIGN_TOP);
     $construction_page = new Object(__(PAGE_IN_CONSTRUCTION));
     $table->addRow($construction_page->setClass("warning"))->setColspan(2);
     $form = new Form($this);
     $table_form = new Table();
     $table_form->addRow();
     $this->background_body = new ColorPicker($form);
     $this->background_body->setValue(DEFINE_STYLE_BCK_BODY)->hash(true)->setWidth(200);
     $this->background_body->disableAjaxWaitMessage()->onChange("changeBackgroundBody")->setAjaxEvent();
     $table_form->addRowColumns(__(EDT_BACKGROUND_BODY) . ":&nbsp;", $this->background_body);
     $this->color_body = new ColorPicker($form);
     $this->color_body->setValue(DEFINE_STYLE_COLOR_BODY)->hash(true)->setWidth(200);
     $this->color_body->disableAjaxWaitMessage()->onChange("changeColorBody")->setAjaxEvent();
     $table_form->addRowColumns(__(EDT_COLOR_BODY) . ":&nbsp;", $this->color_body);
     $table_form->addRow();
     $this->link_color = new ColorPicker($form);
     $this->link_color->setValue(DEFINE_STYLE_LINK_COLOR)->hash(true)->setWidth(200);
     $this->link_color->disableAjaxWaitMessage()->onChange("changeLinkColor")->setAjaxEvent();
     $table_form->addRowColumns(__(EDT_LINK_COLOR) . ":&nbsp;", $this->link_color);
     $this->link_hover_color = new ColorPicker($form);
     $this->link_hover_color->setValue(DEFINE_STYLE_LINK_HOVER_COLOR)->hash(true)->setWidth(200);
     $this->link_hover_color->disableAjaxWaitMessage()->onChange("changeLinkHoverColor")->setAjaxEvent();
     $table_form->addRowColumns(__(EDT_LINK_HOVER_COLOR) . ":&nbsp;", $this->link_hover_color);
     $table_form->addRow();
     $this->bck_body_pic = new TextBox($form);
     $this->bck_body_pic->setValue(DEFINE_STYLE_BCK_BODY_PIC)->setWidth(200);
     $this->bck_body_pic->disableAjaxWaitMessage()->onChange("changeBackgroundBody")->setAjaxEvent();
     $table_form->addRowColumns(__(EDT_BCK_BODY_PIC) . ":&nbsp;", $this->bck_body_pic);
     $this->bck_body_pic_repeat = new ComboBox($form);
     $this->bck_body_pic_repeat->addItem("", "&nbsp;", DEFINE_STYLE_BCK_BODY_PIC_REPEAT == "" ? true : false);
     $this->bck_body_pic_repeat->addItem("repeat", "repeat", DEFINE_STYLE_BCK_BODY_PIC_REPEAT == "repeat" ? true : false);
     $this->bck_body_pic_repeat->addItem("repeat-x", "repeat-x", DEFINE_STYLE_BCK_BODY_PIC_REPEAT == "repeat-x" ? true : false);
     $this->bck_body_pic_repeat->addItem("repeat-y", "repeat-y", DEFINE_STYLE_BCK_BODY_PIC_REPEAT == "repeat-y" ? true : false);
     $this->bck_body_pic_repeat->addItem("no-repeat", "no-repeat", DEFINE_STYLE_BCK_BODY_PIC_REPEAT == "no-repeat" ? true : false);
     $this->bck_body_pic_repeat->disableAjaxWaitMessage()->onChange("changeBackgroundBody")->setAjaxEvent()->setWidth(200);
     if ($this->bck_body_pic->getValue() == "") {
         $this->bck_body_pic_repeat->setValue("");
         $this->bck_body_pic_repeat->disable();
     }
     $table_form->addRowColumns(__(EDT_BCK_BODY_PIC_REPEAT) . ":&nbsp;", $this->bck_body_pic_repeat);
     $body_pic_pos = "";
     $body_pic_pos_more = "";
     if (strtolower(DEFINE_STYLE_BCK_BODY_PIC_POSITION) == "stretch") {
         $body_pic_pos = strtolower(DEFINE_STYLE_BCK_BODY_PIC_POSITION);
     } else {
         if (DEFINE_STYLE_BCK_BODY_PIC_POSITION != "") {
             $tmp_array = split(' ', DEFINE_STYLE_BCK_BODY_PIC_POSITION);
             for ($i = 0; $i < sizeof($tmp_array); $i++) {
                 if (is_numeric(trim(str_replace("px", "", str_replace("%", "", $tmp_array[$i]))))) {
                     $body_pic_pos_more .= $tmp_array[$i] . " ";
                 } else {
                     $body_pic_pos .= $tmp_array[$i] . " ";
                 }
             }
             $body_pic_pos = strtolower(trim($body_pic_pos));
             $body_pic_pos_more = trim($body_pic_pos_more);
         }
     }
     $this->bck_body_pic_position = new ComboBox($form);
     $this->bck_body_pic_position->addItem("", "&nbsp;", $body_pic_pos == "" ? true : false);
     $this->bck_body_pic_position->addItem("stretch", "stretch", $body_pic_pos == "stretch" ? true : false);
     $this->bck_body_pic_position->addItem("left top", "left top", $body_pic_pos == "left top" ? true : false);
     $this->bck_body_pic_position->addItem("left", "left center", $body_pic_pos == "left" ? true : false);
     $this->bck_body_pic_position->addItem("left bottom", "left bottom", $body_pic_pos == "left bottom" ? true : false);
     $this->bck_body_pic_position->addItem("right top", "right top", $body_pic_pos == "right top" ? true : false);
     $this->bck_body_pic_position->addItem("right", "right center", $body_pic_pos == "right" ? true : false);
     $this->bck_body_pic_position->addItem("right bottom", "right bottom", $body_pic_pos == "right bottom" ? true : false);
     $this->bck_body_pic_position->addItem("top", "center top", $body_pic_pos == "top" ? true : false);
     $this->bck_body_pic_position->addItem("center", "center center", $body_pic_pos == "center" ? true : false);
     $this->bck_body_pic_position->addItem("bottom", "center bottom", $body_pic_pos == "bottom" ? true : false);
     $this->bck_body_pic_position->disableAjaxWaitMessage()->onChange("changeBackgroundBody")->setAjaxEvent()->setWidth(120);
     if ($this->bck_body_pic->getValue() == "") {
         $this->bck_body_pic_position->setValue("");
         $this->bck_body_pic_position->disable();
     }
     $this->bck_body_pic_position_more = new TextBox($form);
     $this->bck_body_pic_position_more->setValue($body_pic_pos_more);
     $this->bck_body_pic_position_more->disableAjaxWaitMessage()->onChange("changeBackgroundBody")->setAjaxEvent()->setWidth(77);
     if ($this->bck_body_pic->getValue() == "") {
         $this->bck_body_pic_position_more->setValue("");
         $this->bck_body_pic_position_more->disable();
     }
     $table_form->addRowColumns(__(EDT_BCK_BODY_PIC_POSITION) . ":&nbsp;", new Object($this->bck_body_pic_position, $this->bck_body_pic_position_more));
     $table_form->addRow();
     $this->style_jquery = new ComboBox($form);
     if (!defined('DEFINE_STYLE_JQUERY') || DEFINE_STYLE_JQUERY == "") {
         $define_style_jquery = "smoothness";
     } else {
         $define_style_jquery = DEFINE_STYLE_JQUERY;
//.........这里部分代码省略.........
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:101,代码来源:configure-css.php


注:本文中的parent::PAGE_TITLE方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。