bashgid/web/protected/views/site/index.php

62 lines
2.3 KiB
PHP
Raw Normal View History

2015-06-26 10:03:20 +00:00
<?php
/* @var $this SiteController */
$this->pageTitle = Yii::app()->name;
?>
2015-07-02 08:37:15 +00:00
<h1>Управление базой данных</h1>
2015-06-26 10:03:20 +00:00
2015-07-02 08:37:15 +00:00
<?php
2015-06-26 10:03:20 +00:00
if (!Yii::app()->user->isGuest)
{
2015-07-02 08:37:15 +00:00
$this->widget('zii.widgets.CMenu', array(
'items' => array(
array('label' => 'Photo', 'url' => array('photo/admin')),
array('label' => 'Album', 'url' => array('album/admin')),
array('label' => 'Manage Photo in Album', 'url' => array('photoAlbumRelation/admin')),
array('label' => 'Video', 'url' => array('video/admin')),
array('label' => 'Channel', 'url' => array('channel/admin')),
array('label' => 'Manage Video in Channel', 'url' => array('videoChannelRelation/admin')),
array('label' => 'Article', 'url' => array('article/admin')),
array('label' => 'Manage Album in Article', 'url' => array('albumArticleRelation/admin')),
array('label' => 'Manage Channel in Article', 'url' => array('channelArticleRelation/admin')),
array('label' => 'Journal', 'url' => array('journal/admin')),
array('label' => 'Manage Article in Journal', 'url' => array('articleJournalRelation/admin')),
array('label' => 'Translation', 'url' => array('translation/admin')),
),
));
2015-07-08 00:09:07 +00:00
$this->widget('zii.widgets.CMenu', array(
'items' => array(
array('label' => 'Редактировать фото в статье', 'url' => array('site/addPhotosToArticle')),
array('label' => 'Обновить хэш', 'url' => array('site/recalcImageHash')),
),
));
/*
2015-07-02 08:37:15 +00:00
if (Journal::getCurrentUserJournal())
{
$this->widget('zii.widgets.CMenu', array(
'items' => array(
array('label' => 'Редактировать ваш раздел', 'url' => array('journal/editMax')),
array('label' => 'Редактировать статьи в разделе', 'url' => array('journal/editArticlesMax')),
),
));
}
else
{
$this->widget('zii.widgets.CMenu', array(
'items' => array(
array('label' => 'Добавить ваш раздел', 'url' => array('journal/addMax')),
),
));
2015-07-08 00:09:07 +00:00
}*/
2015-07-02 08:37:15 +00:00
}
2015-06-26 10:03:20 +00:00
2015-07-02 08:37:15 +00:00
else
{
echo "Войдите в систему для управления базой данных.";
2015-06-26 10:03:20 +00:00
}
2015-07-02 08:37:15 +00:00
?>