Хранилища Subversion ant

Редакция

Редакция 470 | К новейшей редакции | Только различия | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 470 Редакция 471
-
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
-
 
2
<html lang="ru">
-
 
3
<head>
-
 
4
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
-
 
5
  <title>Генератор sources.list для apt.niX-FILES</title>
-
 
6
</head>
-
 
7
<body bgcolor="#F7F7F7">
-
 
8
1
<?php
9
<?php
2
10
3
require_once 'DB.php';
11
require_once 'DB.php';
4
12
5
$dsn = 'sqlite:///set.db?mode=0777';
13
$dsn = 'sqlite:///set.db?mode=0777';
6
14
7
$db_set =& DB::connect($dsn);
15
$db_set =& DB::connect($dsn);
8
if (PEAR::isError($db_set)) {
16
if (PEAR::isError($db_set)) {
9
    die($db_set->getMessage());
17
    die($db_set->getMessage());
10
}
18
}
11
19
12
$distr = abs(intval($_GET["d"]));
20
$distr = abs(intval($_GET["d"]));
13
21
14
if($distr==0) {
22
if($distr==0) {
15
        $distrs =& $db_set->query("SELECT * FROM distrs");
23
        $distrs =& $db_set->query("SELECT * FROM distrs");
16
        echo "<form name='distrch' method='get' action='index.php'>";
24
        echo "<form name='distrch' method='get' action='index.php'>";
17
        echo "<b>Дистрибутив:</b><br>";
25
        echo "<b>Дистрибутив:</b><br>";
18
        while ($distrs->fetchInto($info_distrs,DB_FETCHMODE_ASSOC)) {
26
        while ($distrs->fetchInto($info_distrs,DB_FETCHMODE_ASSOC)) {
19
            echo "<input type='radio' name='d' value='".$info_distrs['id']."'> ".$info_distrs['distr']."<br>\n";
27
            echo "<input type='radio' name='d' value='".$info_distrs['id']."'> ".$info_distrs['distr']."<br>\n";
20
        }
28
        }
21
        echo "<p><input type='submit' value='Выбрать'>";
29
        echo "<p><input type='submit' value='Выбрать'>";
22
        echo "</form>";
30
        echo "</form>";
23
}
31
}
24
else {
32
else {
25
        $vers =& $db_set->query("SELECT * FROM vers WHERE distr_id=".$distr);
33
        $vers =& $db_set->query("SELECT * FROM vers WHERE distr_id=".$distr);
26
        echo "<form name='verch' method='get' action='shower.php'>";
34
        echo "<form name='verch' method='get' action='shower.php'>";
27
        echo "<b>Версия:</b><br>";
35
        echo "<b>Версия:</b><br>";
28
        while ($vers->fetchInto($info_vers,DB_FETCHMODE_ASSOC)) {
36
        while ($vers->fetchInto($info_vers,DB_FETCHMODE_ASSOC)) {
29
            echo "<input type='radio' name='d' value='".$info_vers['id']."'> ".$info_vers['vernum']." ".$info_vers['codename']."<br>\n";
37
            echo "<input type='radio' name='d' value='".$info_vers['id']."'> ".$info_vers['vernum']." ".$info_vers['codename']."<br>\n";
30
        }
38
        }
31
        echo "<p><input type='submit' value='Выбрать'>";
39
        echo "<p><input type='submit' value='Выбрать'>";
32
        echo "</form>";
40
        echo "</form>";
33
}
41
}
-
 
42
?>
-
 
43
-
 
44
</body>
-
 
45
</html>
34
 
46