52,6 → 52,7 |
$display .= "Название дистрибутива: <input type='text' name='distName'><br>\n"; |
$display .= "Представление в строке User-Agent'а: <input type='text' name='distUA'><br>\n"; |
$display .= "Тип дистрибутива: ".$type."<br>"; |
$display .= "Логотип дистрибутива (gif): <input type='file' name='distLOGO'><br>"; |
$display .= "<input type='submit' value='Создать'></form>\n"; |
break; |
case '2': |
68,7 → 69,7 |
} |
} |
$type .= "</select>\n"; |
$display = "<h3>Правка apt-дистрибутива <em>".stripslashes($info["distname"])."</em></h3>"; |
$display = "<h3>Правка apt-дистрибутива <em class='".stripslashes($info["distua"])."-em'>".stripslashes($info["distname"])."</em></h3>"; |
$display .= "<form action='./process.php' method='POST'>\n"; |
$display .= "<input type='hidden' name='mode' value='2'>\n"; |
$display .= "<input type='hidden' name='distID' value='$uid'>\n"; |
75,6 → 76,7 |
$display .= "Название дистрибутива: <input type='text' name='distName' value='".stripslashes($info["distname"])."'><br>\n"; |
$display .= "Представление в строке User-Agent'a: <input type='text' name='distUA' value='".stripslashes($info["distua"])."'><br>\n"; |
$display .= "Тип дистрибутива: ".$type."<br>"; |
$display .= "Логотип дистрибутива (gif): <input type='file' name='distLOGO'><br>"; |
$display .= "<input type='submit' value='Править'></form>\n"; |
break; |
case '3': |
81,10 → 83,11 |
// Удаление существующего дистрибутива |
$dist =& $db->query("SELECT * FROM distribution WHERE dist_id='$uid'"); |
$dist->fetchInto($info, DB_FETCHMODE_ASSOC); |
$display = "<h3>Удаление apt-дистрибутива <em>".stripslashes($info["distname"])."</em></h3>"; |
$display = "<h3>Удаление apt-дистрибутива <em class='".stripslashes($info["distua"])."-em'>".stripslashes($info["distname"])."</em></h3>"; |
$display .= "<form action='./process.php' method='POST'>\n"; |
$display .= "<input type='hidden' name='mode' value='3'>\n"; |
$display .= "<input type='hidden' name='distID' value='$uid'>\n"; |
$display .= "<input type='hidden' name='distUA' value='".stripslashes($info["distua"])."'>\n"; |
$display .= "<input type='submit' value='Удалить'></form>\n"; |
break; |
} |
573,6 → 576,7 |
$smarty->assign('error',$error); |
$smarty->assign('display',$display); |
$smarty->assign('antversion',$antversion); |
$smarty->assign('style',$core->getCSSList($db)); |
$smarty->display('admin.tpl'); |
|
?> |