Хранилища Subversion ant

Редакция

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

Редакция 471 Редакция 480
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
-
 
9
<?php
1
<?php
10
2
-
 
3
include "inc/header.htm";
-
 
4
11
require_once 'DB.php';
5
require_once 'DB.php';
12
6
13
$dsn = 'sqlite:///set.db?mode=0777';
7
$dsn = 'sqlite:///set.db?mode=0777';
14
8
15
$db_set =& DB::connect($dsn);
9
$db_set =& DB::connect($dsn);
16
if (PEAR::isError($db_set)) {
10
if (PEAR::isError($db_set)) {
17
    die($db_set->getMessage());
11
    die($db_set->getMessage());
18
}
12
}
19
13
20
$distr = abs(intval($_GET["d"]));
14
$distr = abs(intval($_GET["d"]));
21
15
22
if($distr==0) {
16
if($distr==0) {
23
        $distrs =& $db_set->query("SELECT * FROM distrs");
17
        $distrs =& $db_set->query("SELECT * FROM distrs");
24
        echo "<form name='distrch' method='get' action='index.php'>";
18
        echo "<form name='distrch' method='get' action='index.php'>";
25
        echo "<b>Дистрибутив:</b><br>";
19
        echo "<b>Дистрибутив:</b><br>";
26
        while ($distrs->fetchInto($info_distrs,DB_FETCHMODE_ASSOC)) {
20
        while ($distrs->fetchInto($info_distrs,DB_FETCHMODE_ASSOC)) {
27
            echo "<input type='radio' name='d' value='".$info_distrs['id']."'> ".$info_distrs['distr']."<br>\n";
21
            echo "<input type='radio' name='d' value='".$info_distrs['id']."'> ".$info_distrs['distr']."<br>\n";
28
        }
22
        }
29
        echo "<p><input type='submit' value='Выбрать'>";
23
        echo "<p><input type='submit' value='Выбрать'>";
30
        echo "</form>";
24
        echo "</form>";
31
}
25
}
32
else {
26
else {
33
        $vers =& $db_set->query("SELECT * FROM vers WHERE distr_id=".$distr);
27
        $vers =& $db_set->query("SELECT * FROM vers WHERE distr_id=".$distr);
34
        echo "<form name='verch' method='get' action='shower.php'>";
28
        echo "<form name='verch' method='get' action='shower.php'>";
35
        echo "<b>Версия:</b><br>";
29
        echo "<b>Версия:</b><br>";
36
        while ($vers->fetchInto($info_vers,DB_FETCHMODE_ASSOC)) {
30
        while ($vers->fetchInto($info_vers,DB_FETCHMODE_ASSOC)) {
37
            echo "<input type='radio' name='d' value='".$info_vers['id']."'> ".$info_vers['vernum']." ".$info_vers['codename']."<br>\n";
31
            echo "<input type='radio' name='d' value='".$info_vers['id']."'> ".$info_vers['vernum']." ".$info_vers['codename']."<br>\n";
38
        }
32
        }
39
        echo "<p><input type='submit' value='Выбрать'>";
33
        echo "<p><input type='submit' value='Выбрать'>";
40
        echo "</form>";
34
        echo "</form>";
41
}
35
}
42
?>
-
 
43
36
44
</body>
37
include "inc/footer.htm";
45
</html>
38
?>
46
 
39