Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->StyleSheets[] = new WebStyleSheet("~/StyleSheets/Main.css");
     $this->StyleSheets[] = new WebStyleSheet("http://static.alcehosting.net/dropins/WebFramework/StyleSheets/Professional/Main.css");
     $tenants = Tenant::Get();
     $tenantsNavigationButtons = array();
     foreach ($tenants as $tenant) {
         $tenantsNavigationButtons[] = new NavigationButton("~/tenant/modify/" . $tenant->URL, $tenant->URL, null, null, null);
     }
     $this->HeaderButtons = array();
     $this->SidebarButtons = array(new NavigationSeparator("Quick Start"), new NavigationButton("~/", "Dashboard", "dashboard"), new NavigationSeparator("Management"), new NavigationButton("~/tenant", "Tenants", "th-list", null, null, count($tenants), $tenantsNavigationButtons), new NavigationButton("~/modules", "Modules", "puzzle-piece", null, null, Module::Count()), new NavigationButton("~/data-centers", "Data Centers", "building-o", null, null, DataCenter::Count()), new NavigationButton("~/payment-plans", "Payment Plans", "money", null, null, PaymentPlan::Count()), new NavigationButton("~/organizations", "Organizations", "suitcase", null, null, Organization::Count()), new NavigationButton("~/users", "Users", "users", null, null, User::Count()), new NavigationButton("~/data-types", "Data Types", "sitemap", null, null, DataType::Count()), new NavigationButton("~/tenant-types", "Tenant Types", "tenant-types", null, null, TenantType::Count()), new NavigationSeparator("Help and Support"), new NavigationButton("~/support/documentation", "Documentation", "book"), new NavigationButton("~/support/bugspray", "Report a Bug", "bug"), new NavigationButton("~/system-log", "System Log", "file-text-o"));
     $this->RenderHeader = true;
     $this->RenderSidebar = true;
 }
    protected function RenderContent()
    {
        ?>
			<div class="CardLayout">
				<div class="CardSet">
					<div class="Card">
						<div class="Title">Users</div>
						<div class="Content">
							<div><span class="Emphasis"><?php 
        $count = User::Count(true);
        echo $count;
        ?>
</span> registered <?php 
        echo $count == 1 ? "user" : "users";
        ?>
</div>
							<div>Most recently active users:</div>
							<?php 
        $lvUsers = new ListView();
        $lvUsers->Columns = array(new ListViewColumn("lvcUserLink", "User"), new ListViewColumn("lvcUserLastActiveDate", "Last Active Date"));
        $lvUsers->Render();
        ?>
						</div>
						<div class="Actions">
							<a href="#">Manage Users</a>
						</div>
					</div>
					<div class="Card">
						<div class="Title">Groups</div>
						<div class="Content">
						</div>
						<div class="Actions">
							<a href="#">Manage Groups</a>
						</div>
					</div>
					<div class="Card">
						<div class="Title">Market</div>
						<div class="Content">
						</div>
						<div class="Actions">
							<a href="#">Manage Items</a>
							<a href="#">Manage Resources</a>
						</div>
					</div>
				</div>
			</div>
			<?php 
    }
Example #3
0
 protected function BeforeContent()
 {
     parent::BeforeContent();
     $tbsCommunity = new TabStrip("tbsCommunity");
     $tbsCommunity->TabPosition = TabContainerTabPosition::Top;
     $tbsCommunity->Tabs[] = new TabStripTab("tabMembers", "<i class=\"fa fa-users\"></i> <span class=\"Text\">Members (" . User::Count() . ")</span>", "~/community/members", null, $this->Name == "members");
     if (System::GetConfigurationValue("Groups.Enabled", false)) {
         $tbsCommunity->Tabs[] = new TabStripTab("tabGroups", "<i class=\"fa fa-comments\"></i> <span class=\"Text\">Groups (" . Group::Count() . ")</span>", "~/community/groups", null, $this->Name == "groups");
     }
     if (System::GetConfigurationValue("Pages.Enabled", false)) {
         $tbsCommunity->Tabs[] = new TabStripTab("tabPages", "<i class=\"fa fa-flag\"></i> <span class=\"Text\">Pages (" . Page::Count() . ")</span>", "~/community/pages", null, $this->Name == "pages");
     }
     $tbsCommunity->Render();
     /*
     	?>
     	<table style="width: 100%">
     		<tr>
     <td style="width: 128px; vertical-align: top;">
     	<?php
     		// $actionList = new PsychaticaActionList();
     		// $actionList->Items = array
     		// (
     		//		new PsychaticaActionListItem("~/community/members", "Members (" . User::Count() . ")"),
     		//		new PsychaticaActionListItem("~/community/groups", "Groups (" . User::Count() . ")"),
     		//		new PsychaticaActionListItem("~/community/pages", "Pages (" . User::Count() . ")")
     		// );
     		// $actionList->Items[1]->Selected = true;
     	?>
     	
     	<div class="ActionList">
     		<?php
     		// if (System::$Configuration["Members.Enabled"]) {
     		if ($pagename == "members") {
     			if ($outline) { ?> <a class="Selected" href="<?php echo(System::ExpandRelativePath("~/community/members")); ?>"> <?php }
     			else { ?> <span class="Selected"> <?php }
     		} else { ?><a href="<?php echo(System::ExpandRelativePath("~/community/members")); ?>"> <?php } ?>
     		Members (<?php echo(User::Count()); ?>)
     			<?php if ($pagename == "members" && !$outline) { ?> </span> <?php } else { ?> </a> <?php }
     		//	}
     		
     		if (System::$Configuration["Groups.Enabled"]) {
     		if ($pagename == "groups") {
     			if ($outline) { ?> <a class="Selected" href="<?php echo(System::ExpandRelativePath("~/community/groups")); ?>"> <?php }
     			else { ?> <span class="Selected"> <?php }
     		} else { ?><a href="<?php echo(System::ExpandRelativePath("~/community/groups")); ?>"> <?php } ?>
     		Groups (<?php echo(Group::Count()); ?>)
     			<?php if ($pagename == "groups" && !$outline) { ?> </span> <?php } else { ?> </a> <?php }
     		}
     		
     		if (System::$Configuration["Pages.Enabled"]) {
     		if ($pagename == "pages") {
     			if ($outline) { ?> <a class="Selected" href="<?php echo(System::ExpandRelativePath("~/community/pages")); ?>"> <?php }
     			else { ?> <span class="Selected"> <?php }
     		} else { ?><a href="<?php echo(System::ExpandRelativePath("~/community/pages")); ?>"> <?php } ?>
     		Pages (<?php echo(Page::Count()); ?>)
     			<?php if ($pagename == "pages" && !$outline) { ?> </span> <?php } else { ?> </a> <?php }
     		}
     		
     		if (System::$Configuration["Forums.Enabled"]) {
     		if ($pagename == "forums") {
     			if ($outline) { ?> <a class="Selected" href="<?php echo(System::ExpandRelativePath("~/community/forums")); ?>"> <?php }
     			else { ?> <span class="Selected"> <?php }
     		} else { ?><a href="<?php echo(System::ExpandRelativePath("~/community/forums")); ?>"> <?php } ?>
     		Forums (<?php echo(Forum::Count()); ?>)
     			<?php if ($pagename == "forums" && !$outline) { ?> </span> <?php } else { ?> </a> <?php }
     		}
     		?>
     	</div>
     </td>
     <td>
     	<?php
     */
 }