2014-06-06 19:31:23 +02:00
|
|
|
<?php
|
|
|
|
/* @var $this MsMainController */
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
2014-06-10 13:27:17 +02:00
|
|
|
|
2014-09-06 15:50:29 +02:00
|
|
|
$this->pageTitle = 'Admin Panel - ' . Yii::app()->name;
|
2014-06-10 13:27:17 +02:00
|
|
|
|
|
|
|
$this->breadcrumbs =
|
2014-06-16 20:36:48 +02:00
|
|
|
[
|
|
|
|
'Admin',
|
|
|
|
];
|
2014-10-15 11:29:24 +02:00
|
|
|
|
|
|
|
array_push($this->js_files, '/javascript/msmain_admin_script.js');
|
|
|
|
|
2014-06-06 19:31:23 +02:00
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<?php echo MsHtml::pageHeader("Adminstration", "mikescher.de"); ?>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="span3">
|
|
|
|
<?php
|
2014-06-08 15:31:44 +02:00
|
|
|
echo MsHtml::lead('Logs');
|
2014-06-06 19:31:23 +02:00
|
|
|
|
|
|
|
echo MsHtml::stackedTabs(
|
|
|
|
[
|
2014-06-16 20:36:48 +02:00
|
|
|
['label' => 'Show', 'url' => '/log'],
|
|
|
|
['label' => 'Manage', 'url' => '/log/admin'],
|
|
|
|
['label' => 'Create', 'url' => '/log/create'],
|
2014-06-06 19:31:23 +02:00
|
|
|
]
|
|
|
|
); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="span3">
|
|
|
|
<?php
|
2014-06-08 15:31:44 +02:00
|
|
|
echo MsHtml::lead('Programs');
|
2014-06-06 19:31:23 +02:00
|
|
|
|
|
|
|
echo MsHtml::stackedTabs(
|
|
|
|
[
|
2014-06-16 20:36:48 +02:00
|
|
|
['label' => 'Show', 'url' => '/programs'],
|
|
|
|
['label' => 'Manage', 'url' => '/programs/admin'],
|
|
|
|
['label' => 'Create', 'url' => '/programs/create'],
|
2014-06-06 19:31:23 +02:00
|
|
|
]
|
|
|
|
); ?>
|
|
|
|
</div>
|
|
|
|
|
2014-06-16 19:00:20 +02:00
|
|
|
<div class="span3">
|
2014-06-06 19:31:23 +02:00
|
|
|
<?php
|
2014-06-16 19:00:20 +02:00
|
|
|
echo MsHtml::lead('ProgramUpdates');
|
2014-06-06 19:31:23 +02:00
|
|
|
|
|
|
|
echo MsHtml::stackedTabs(
|
|
|
|
[
|
2014-06-16 20:36:48 +02:00
|
|
|
['label' => 'Manage', 'url' => '/programupdates/admin'],
|
2014-06-16 19:00:20 +02:00
|
|
|
['label' => 'Create', 'url' => '/programupdates/create'],
|
2014-06-06 19:31:23 +02:00
|
|
|
]
|
|
|
|
); ?>
|
|
|
|
</div>
|
|
|
|
|
2014-07-19 18:25:35 +02:00
|
|
|
<div class="span3">
|
2014-06-06 19:31:23 +02:00
|
|
|
<?php
|
2014-07-19 18:25:35 +02:00
|
|
|
echo MsHtml::lead('BlogPosts');
|
2014-06-06 19:31:23 +02:00
|
|
|
|
|
|
|
echo MsHtml::stackedTabs(
|
|
|
|
[
|
2014-07-19 18:25:35 +02:00
|
|
|
['label' => 'Show', 'url' => '/blog'],
|
|
|
|
['label' => 'Manage', 'url' => '/blog/admin'],
|
|
|
|
['label' => 'Create', 'url' => '/blog/create'],
|
2014-06-06 19:31:23 +02:00
|
|
|
]
|
|
|
|
); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-06-07 19:53:13 +02:00
|
|
|
|
2014-09-28 02:37:53 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="span3">
|
|
|
|
<?php
|
|
|
|
echo MsHtml::lead('EulerProblems');
|
|
|
|
|
|
|
|
echo MsHtml::stackedTabs(
|
|
|
|
[
|
|
|
|
['label' => 'Manage', 'url' => '/eulerproblem/admin'],
|
|
|
|
['label' => 'Create', 'url' => '/eulerproblem/create'],
|
|
|
|
]
|
|
|
|
); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="span3" style="visibility: hidden">
|
|
|
|
<?php
|
|
|
|
echo MsHtml::lead('xxx');
|
|
|
|
|
|
|
|
echo MsHtml::stackedTabs(
|
|
|
|
[
|
|
|
|
['label' => 'Show', 'url' => '/xxx'],
|
|
|
|
['label' => 'Manage', 'url' => '/xxx/admin'],
|
|
|
|
['label' => 'Create', 'url' => '/xxx/create'],
|
|
|
|
]
|
|
|
|
); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="span3" style="visibility: hidden">
|
|
|
|
<?php
|
|
|
|
echo MsHtml::lead('xxx');
|
|
|
|
|
|
|
|
echo MsHtml::stackedTabs(
|
|
|
|
[
|
|
|
|
['label' => 'Show', 'url' => '/xxx'],
|
|
|
|
['label' => 'Manage', 'url' => '/xxx/admin'],
|
|
|
|
['label' => 'Create', 'url' => '/xxx/create'],
|
|
|
|
]
|
|
|
|
); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="span3" style="visibility: hidden">
|
|
|
|
<?php
|
|
|
|
echo MsHtml::lead('xxx');
|
|
|
|
|
|
|
|
echo MsHtml::stackedTabs(
|
|
|
|
[
|
|
|
|
['label' => 'Show', 'url' => '/xxx'],
|
|
|
|
['label' => 'Manage', 'url' => '/xxx/admin'],
|
|
|
|
['label' => 'Create', 'url' => '/xxx/create'],
|
|
|
|
]
|
|
|
|
); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-06-07 19:53:13 +02:00
|
|
|
<div class="well well-small">
|
|
|
|
<?php
|
2016-01-01 21:13:33 +01:00
|
|
|
if (file_exists('protected/data/git_graph_data.dat'))
|
|
|
|
{
|
|
|
|
$egh = $egh = (new ExtendedGitGraph('Mikescher'))->loadFinishedData();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$egh = null;
|
|
|
|
}
|
|
|
|
|
2014-06-07 19:53:13 +02:00
|
|
|
?>
|
|
|
|
|
|
|
|
<h2>ExtendedGitGraph</h2>
|
|
|
|
<hr>
|
|
|
|
|
2016-01-01 21:13:33 +01:00
|
|
|
<strong>Last Update: </strong> <?php if ($egh != null) { echo $egh['creation']->format('d.m.Y H:i'); } ?> <br>
|
|
|
|
<strong>Repositories: </strong> <?php if ($egh != null) { echo $egh['repos']; } ?> <br>
|
|
|
|
<strong>Commits: </strong> <?php if ($egh != null) { echo $egh['total']; } ?> <br>
|
2014-06-07 19:53:13 +02:00
|
|
|
|
|
|
|
<br><br>
|
|
|
|
|
2014-10-15 11:29:24 +02:00
|
|
|
<div style="text-align: center;">
|
|
|
|
<textarea id="egh_ajaxOutput" readonly="readonly"></textarea>
|
|
|
|
<br>
|
|
|
|
<a class="btn btn-primary" href="javascript:startAjaxRefresh()" style="width: 90%"> Update </a>
|
|
|
|
</div>
|
|
|
|
|
2014-06-07 19:53:13 +02:00
|
|
|
|
|
|
|
</div>
|
2014-06-16 20:36:48 +02:00
|
|
|
|
2014-09-06 15:50:29 +02:00
|
|
|
<div class="well well-small">
|
|
|
|
<h2>Linklist</h2>
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><a href="https://mikescher-de.disqus.com">Disqus Admin Panel</a></li>
|
|
|
|
<li><a href="https://www.strato.de/apps/CustomerService">Strato Customer Service</a></li>
|
2016-01-01 21:13:33 +01:00
|
|
|
<li><a href="http://v1.mikescher.com">Mikescher Wayback (v1)</a></li>
|
|
|
|
<li><a href="http://v2.mikescher.com">Mikescher Wayback (v2)</a></li>
|
|
|
|
<li><a href="http://v3.mikescher.com">Mikescher Wayback (v3)</a></li>
|
2014-09-06 15:50:29 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2014-06-16 20:36:48 +02:00
|
|
|
<div class="well well-small">
|
|
|
|
|
|
|
|
<h2>Program of the day</h2>
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$data = array();
|
|
|
|
|
|
|
|
$now = new DateTime();
|
|
|
|
|
|
|
|
for ($i = 0; $i < 100; $i++) {
|
|
|
|
$data[] =
|
|
|
|
[
|
|
|
|
'Date' => $now->format('d.m.Y :: D'),
|
|
|
|
'Name' => ProgramHelper::GetDailyProg($now)->Name,
|
|
|
|
];
|
|
|
|
|
|
|
|
$now->modify('+1 day');
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->widget('bootstrap.widgets.TbGridView',
|
|
|
|
[
|
|
|
|
'type' => TbHtml::GRID_TYPE_CONDENSED,
|
|
|
|
'dataProvider' => new CArrayDataProvider($data,
|
|
|
|
[
|
|
|
|
'keyField' => 'Date',
|
|
|
|
'Pagination' =>
|
|
|
|
[
|
|
|
|
'PageSize' => 14,
|
|
|
|
]
|
|
|
|
]),
|
|
|
|
]
|
|
|
|
); ?>
|
|
|
|
|
|
|
|
</div>
|
2014-07-20 21:29:07 +02:00
|
|
|
|
|
|
|
<div class="well well-small">
|
|
|
|
<h2>Hit counter</h2>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
/* @var CHitCounter $hc */
|
|
|
|
$hc = Yii::app()->hitcounter;
|
|
|
|
?>
|
|
|
|
|
|
|
|
<strong>Hits (today):</strong> <?php echo $hc->getTodayCount(); ?><br />
|
|
|
|
<strong>Hits (total):</strong> <?php echo $hc->getTotalCount(); ?><br />
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$data = array();
|
|
|
|
|
|
|
|
$now = new DateTime();
|
|
|
|
|
|
|
|
for ($i = 0; $i < 24; $i++) {
|
|
|
|
$data[] =
|
|
|
|
[
|
|
|
|
'Date' => $now->format('d.m.Y :: D'),
|
|
|
|
'Count' => $hc->getCountForDay($now),
|
|
|
|
];
|
|
|
|
|
|
|
|
$now->modify('-1 day');
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->widget('bootstrap.widgets.TbGridView',
|
|
|
|
[
|
|
|
|
'type' => TbHtml::GRID_TYPE_CONDENSED,
|
|
|
|
'dataProvider' => new CArrayDataProvider($data,
|
|
|
|
[
|
|
|
|
'keyField' => 'Date',
|
|
|
|
'Pagination' =>
|
|
|
|
[
|
|
|
|
'PageSize' => 100,
|
|
|
|
]
|
|
|
|
]),
|
|
|
|
]
|
|
|
|
); ?>
|
|
|
|
</div>
|
2014-06-06 19:31:23 +02:00
|
|
|
</div>
|