Редакция 470 |
К новейшей редакции |
Авторство |
Сравнить с предыдущей |
Последнее изменение |
Открыть журнал
| Скачать
| RSS
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
<html lang="ru">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Генератор sources.list для apt.niX-FILES</title>
</head>
<body bgcolor="#F7F7F7">
<?php
require_once 'DB.php';
$dsn = 'sqlite:///set.db?mode=0777';
$db_set =& DB
::connect($dsn);
if (PEAR
::isError($db_set)) {
die($db_set->getMessage());
}
$distr = abs(intval($_GET["d"]));
if($distr==0) {
$distrs =& $db_set->query("SELECT * FROM distrs");
echo "<form name='distrch' method='get' action='index.php'>";
echo "<b>Дистрибутив:</b><br>";
while ($distrs->fetchInto($info_distrs,DB_FETCHMODE_ASSOC
)) {
echo "<input type='radio' name='d' value='".$info_distrs['id']."'> ".$info_distrs['distr']."<br>\n";
}
echo "<p><input type='submit' value='Выбрать'>";
echo "</form>";
}
else {
$vers =& $db_set->query("SELECT * FROM vers WHERE distr_id=".$distr);
echo "<form name='verch' method='get' action='shower.php'>";
echo "<b>Версия:</b><br>";
while ($vers->fetchInto($info_vers,DB_FETCHMODE_ASSOC
)) {
echo "<input type='radio' name='d' value='".$info_vers['id']."'> ".$info_vers['vernum']." ".$info_vers['codename']."<br>\n";
}
echo "<p><input type='submit' value='Выбрать'>";
echo "</form>";
}
?>
</body>
</html>