コード例 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->StyleSheets[] = new WebStyleSheet("~/style/LoginPage.css");
     $this->Title = "Log in to " . System::GetConfigurationValue("Application.Name");
     $this->CssClass = "LoginPage";
     $this->UseCompatibleRenderingMode = true;
     $this->LoginButtonText = "Log In";
     $this->Message = "";
     $this->InvalidCredentials = false;
 }
コード例 #2
0
ファイル: WebPage.inc.php プロジェクト: alcexhim/PhoenixSNS
 public function __construct()
 {
     parent::__construct();
     $CurrentUser = User::GetCurrent();
     $this->Styles = array("margin-top" => "0px");
     $this->Ribbon = new Ribbon("ribbon", "PhoenixSNS Manager");
     $this->Ribbon->UserName = $CurrentUser->LongName;
     $this->Ribbon->HelpButton->Visible = true;
     $this->Ribbon->ApplicationMenu->ToolTipTitle = "PhoenixSNS Manager";
     $this->Ribbon->ApplicationMenu->ToolTipText = "Access quick administrative functions from the application menu.";
     $this->Ribbon->ApplicationMenu->Items = array(new RibbonCommandReferenceItem("rcmdUsers"));
     $this->Ribbon->Commands = array(new RibbonButtonCommand("rcmdUserBrowse", "Browse Users", "~/admin/users", "alert('Find a way to get user list'); return false;", null, "Browse Users", "Search for users in the social network directory"), new RibbonButtonCommand("rcmdUserBan", "Ban a User", null, "BanUserDialog.ShowDialog();", null, "Ban Specified User", "Prevents the specified user from entering the Web site."), new RibbonButtonCommand("rcmdUserResourceTransfer", "Transfer", null, "ResourceTransferDialog.ShowDialog(); return false;", null, "Transfer Resources", "Gives a particular user (the receiver) a certain amount of resources, optionally revoking the same amount of resources from another user (the sender)."), new RibbonButtonCommand("rcmdWorldCreatePlace", "Place", null, "PlacePropertiesDialog.ShowDialog(); return false;", "~/images/Common/Icons/Ribbon/Place.png", "Create Place", "Creates a new Place in the World. Places can be private or public, and can be accessed via hotspots or triggers."), new RibbonButtonCommand("rcmdWorldCreateObjectNPC", "NPC", null, "ObjectPropertiesDialog.ShowDialog(); return false;", null, "NPC", "Creates a new NPC in the World. NPCs are Avatars that roam the World and can optionally trigger an action when clicked."), new RibbonButtonCommand("rcmdWorldCreateObjectHotspot", "Hotspot", null, "ObjectPropertiesDialog.ShowDialog(); return false;", null, "Hotspot", "Creates a new Hotspot in the World. Hotspots are visible objects that activate an action when the player clicks on them."), new RibbonButtonCommand("rcmdWorldCreateObjectTrigger", "Trigger", null, "ObjectPropertiesDialog.ShowDialog(); return false;", null, "Trigger", "Creates a new Trigger in the World. Triggers are invisible blocks that activate an action when the player character enters the covered area."), new RibbonDropDownCommand("rcmdWorldCreateObject", "Object", null, null, "~/images/Common/Icons/Ribbon/Objects.png", "Create Object", "Creates a new object in the current Place.", array(new RibbonCommandReferenceItem("rcmdWorldCreateObjectNPC"), new RibbonCommandReferenceItem("rcmdWorldCreateObjectHotspot"), new RibbonCommandReferenceItem("rcmdWorldCreateObjectTrigger"))));
     $this->Ribbon->Tabs = array(new RibbonTab("tabHome", "Home", array()), new RibbonTab("tabUsers", "Users", array(new RibbonTabGroup("rtgUsersManagement", "Management", array(new RibbonCommandReferenceItem("rcmdUserBrowse"), new RibbonCommandReferenceItem("rcmdUserBan"))), new RibbonTabGroup("rtgUsersResources", "Resources", array(new RibbonCommandReferenceItem("rcmdUserResourceTransfer"))))), new RibbonTab("tabWorld", "World", array(new RibbonTabGroup("rtgWorldCreate", "Create", array(new RibbonCommandReferenceItem("rcmdWorldCreatePlace"), new RibbonCommandReferenceItem("rcmdWorldCreateObject"))))));
     if ($this->Ribbon->SelectedTab !== null) {
         $this->Ribbon->SelectedTab = $this->Ribbon->Tabs[0];
     }
 }
コード例 #3
0
 public function __construct()
 {
     parent::__construct();
     $this->CssClass = "RegistrationPage";
 }