mirror of
https://github.com/fruithost/Panel.git
synced 2026-12-04 22:31:44 +09:00
basic skeleton of control panel
This commit is contained in:
1 parent
399e634a79
commit
5effea0c0c
92 files changed
+68296
No files matched your search
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
$template->header();
|
||||
?>
|
||||
<div class="alert alert-secondary alert-dismissible fade show mt-4 welcome" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="alert-heading">Welcome to fruithost!</h4>
|
||||
<p>We've assembled some links to get you started:</p>
|
||||
<div class="row">
|
||||
<div class="col-4 text-center">
|
||||
<h6 class="text-left">Get Started</h6>
|
||||
<a href="<?php print $template->url('/module/domains'); ?>" class="btn btn-primary btn-lg ml-4 mr-4 mt-2">Create a Domain</a>
|
||||
<p>or <a href="<?php print $template->url('/module/subdomains'); ?>">create a new subdomain</a></p>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<h6>Next Steps</h6>
|
||||
<ul class="list-unstyled">
|
||||
<li><i class="material-icons">folder</i> <a href="<?php print $template->url('/module/ftp'); ?>">Create an FTP Account</a></li>
|
||||
<li><i class="material-icons">lock</i> <a href="<?php print $template->url('/module/database'); ?>">Create a new Database</a></li>
|
||||
<li><i class="material-icons">mail_outline</i> <a href="<?php print $template->url('/module/mailserver'); ?>">Create a new Mailbox</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<h6>More Actions</h6>
|
||||
<ul class="list-unstyled">
|
||||
<li><i class="material-icons">settings</i> <a href="<?php print $template->url('/settings'); ?>">Modify your Account settings</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="list-unstyled row sortable">
|
||||
<?php
|
||||
if(!$navigation->isEmpty()) {
|
||||
foreach($navigation->getEntries() AS $category) {
|
||||
if($category->isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$visible = false;
|
||||
|
||||
foreach($category->getEntries() AS $entry) {
|
||||
if($visible) {
|
||||
break;
|
||||
}
|
||||
|
||||
if($entry->active) {
|
||||
$visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<li class="col-md-6">
|
||||
<div class="card m-2">
|
||||
<div class="card-header container">
|
||||
<div class="row">
|
||||
<div class="col pt-1">
|
||||
<?php print $category->getLabel(); ?>
|
||||
</div>
|
||||
<div class="col text-right actions mr-0 pr-0">
|
||||
<i class="material-icons" data-toggle="collapse" data-target="#overview_<?php print $category->getID(); ?>" aria-expanded="false" aria-controls="overview_<?php print $category->getID(); ?>">arrow_drop_up</i>
|
||||
<!--<i class="material-icons moveable">zoom_out_map</i>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body collapse show" id="overview_<?php print $category->getID(); ?>">
|
||||
<ul class="list-unstyled list-group list-group-horizontal list-group-flush">
|
||||
<?php
|
||||
foreach($category->getEntries() AS $entry) {
|
||||
?>
|
||||
<li class="text-center" style="order: <?php print $entry->order; ?>;">
|
||||
<a class="nav-link" href="<?php print $template->url($entry->url); ?>">
|
||||
<div class="icon"><?php print $entry->icon; ?></div>
|
||||
<div class="label"><?php print $entry->name; ?></div>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<?php
|
||||
$template->footer();
|
||||
?>
|
||||
Reference in new issue
Block a user