/trunk/admin.php |
---|
19,10 → 19,37 |
break; |
} |
$header = "<div id='head'>".$core->getSetting('codename',$db)."</div>"; |
$login = "<div id='login'><a href='./signout.php' style='color:red;'>Выход</a></div>"; |
$menu = " |
<div id='cont'> |
<div id='menu'> |
<div class='menu-title'>Дистрибутивы:</div> |
<ul> |
<li><a href='".$admin."?mode=1'>Дистрибутивы</a></li> |
<li><a href='".$admin."?mode=2'>Версии</a></li> |
</ul> |
<div class='menu-title'>Репозитори:</div> |
<ul> |
<li><a href='".$admin."?mode=9'>Источники</a></li> |
<li><a href='".$admin."?mode=10'>Субисточники</a></li> |
<li><a href='".$admin."?mode=3'>Репозитории</a></li> |
<li><a href='".$admin."?mode=4'>Секции</a></li> |
<li><a href='".$admin."?mode=5'>Схемы</a></li> |
<li><a href='".$admin."?mode=7'>Типы</a></li> |
<li><a href='".$admin."?mode=8'>Корневые пути</a></li> |
</ul> |
<div class='menu-title'>Настройки:</div> |
<ul> |
<li><a href='".$admin."?mode=6'>Опции</a></li> |
</ul> |
</div> |
<div id='main'> |
"; |
switch ($mode) { |
case '0': |
$display = "<ul><li><a href='".$admin."?mode=1'>Управление дистрибутивами</a></li><li><a href='".$admin."?mode=2'>Управление версиями дистрибутивов</a></li><li><a href='".$admin."?mode=3'>Управление репозиториями</a></li><li><a href='".$admin."?mode=4'>Управление секциями репозиториев</a></li><li><a href='".$admin."?mode=5'>Управление схемами репозиториев</a></li><li><a href='".$admin."?mode=7'>Управление типами репозиториев</a></li><li><a href='".$admin."?mode=8'>Управление корневыми папками репозиториев</a></li><li><a href='".$admin."?mode=9'>Управление источниками репозиториев</a></li><li><a href='".$admin."?mode=10'>Управление субрепозиториями источников</a></li><li><a href='".$admin."?mode=6'>Управление настройками ".$core->getSetting('codename',$db)."</a></li><li><a href='./signout.php' style='color:red;'>Выход</a></li></ul>"; |
break; |
case '1': |
// Работа с дистрибутивами |
switch ($act) { |
696,10 → 723,14 |
} |
$display .= "<p><a href=\"".$admin."\">Интерфейс администратора</a></p>"; |
$display .= "</div></div>"; |
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
$smarty->assign('error',$error); |
$smarty->assign('header',$header); |
$smarty->assign('login',$login); |
$smarty->assign('menu',$menu); |
$smarty->assign('display',$display); |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
/trunk/css/ant.css |
---|
1,96 → 1,99 |
/* |
Theme Ant (default) |
*/ |
body { |
background: #fff url(../img/bg.gif) top left repeat; |
#head |
{ |
height: 60px; |
border: 0px; |
padding: 20px; |
float: left; |
width:300px; |
} |
a { |
color: blue; |
#login |
{ |
text-align:right; |
font: 8pt tahoma; |
} |
#ant { |
font: 12pt/20pt Georgia; |
#cont |
{ |
clear:both; |
} |
#ant h2 { |
font: 20pt Georgia; |
#menu |
{ |
clear:both; |
width:155px; |
border: 0px; |
float: left |
} |
#ant input { |
margin: 0 5px 0 15px; |
font: 12pt Georgia; |
#main |
{ |
left:20px; |
position: relative; |
} |
#ant p { |
margin: 0; |
.modulename |
{ |
text-align:right; |
font: 22px Georgia, "Times New Roman"; |
color: #0094D6; |
margin: 10px 0; |
padding: 0; |
margin-right:50px; |
} |
#footer { |
margin: 5px 0; |
padding: 5px 0; |
border-top: 1px solid #a9a9a9; |
font: 10pt Georgia; |
color: #a9a9a9; |
.title |
{ |
font: 26px Georgia, "Times New Roman"; |
color: #0094D6; |
padding: 0; |
} |
#footer a { |
color: #a9a9a9; |
text-decoration: none; |
.smalltitle |
{ |
font: 20px Georgia, "Times New Roman"; |
color: #0094D6; |
padding: 0; |
margin-left: 15px; |
} |
pre { |
font: 12pt Arial; |
border: 1px solid #000; |
margin: 10px 0; |
padding: 10px; |
background-color: #dcdcdc; |
.menutitle |
{ |
width: 125px; |
height: 20px; |
background-color: #EC870C; |
font: bold 10pt tahoma; |
margin-left: 0px; |
border-top-style:solid; |
text-align: center; |
} |
pre#replist, p#getfile { |
display: none; |
.menuitem |
{ |
font: 10pt tahoma; |
text-indent: 5px; |
} |
#sourceslist { |
font-family: Arial; |
padding: 1px 3px; |
a |
{ |
border-bottom-width: 1px; |
border-bottom-style: dashed; |
border-bottom-color: #007799; |
color: #007799; |
text-decoration: none; |
} |
img { |
border:0; |
a:hover |
{ |
color: #ffffff; |
background-color: #154ead; |
background-image: none; |
background-repeat: repeat; |
background-attachment: scroll; |
background-position: 0% 0%; |
} |
a.edit { |
color: green; |
text-decoration: none; |
a.edit |
{ |
color: green; |
text-decoration: none; |
} |
a.delete { |
color: red; |
text-decoration: none; |
a.delete |
{ |
color: red; |
text-decoration: none; |
} |
#signin span { |
display: block; |
width: 75px; |
body |
{ |
background-color: #D8ECD5 ; |
margin:3px; |
} |
#signin p { |
height: 35px; |
} |
#log { |
list-style: none; |
margin: 0; |
padding: 0; |
} |
.time, .time a { |
font: 9pt Arial; |
color: gray; |
text-decoration: none; |
} |
/trunk/templates/admin.tpl |
---|
1,10 → 1,8 |
{config_load file=ant.conf section="setup"} |
{include file="header.tpl"} |
<h1>Интерфейс администратора</h1> |
{$error} |
{$header} |
{$login} |
{$menu} |
{$display} |
<div id="footer">{$title} {$antversion}</div> |
{include file="footer.tpl"} |