source: build-queue/developers/index.php @ 2584

Revision 2584, 1.6 KB checked in by alanbach-guest, 7 years ago (diff)
  • Added styles for developer page,
  • Some more code clean-ups.
Line 
1<?
2include('../data.php');
3include('../package.php');
4
5if(isset($_POST['sb']))
6        if($_POST['sb']){
7                $OBj=new package();
8                $OBj->setPkgName($_POST['package']);
9                $OBj->setDeveloper($_POST['devel']);
10                $OBj->setDistro($_POST['distro']);
11                $OBj->save();
12                echo "<h2>Data has been <span style='color:orange'>Saved</span>.</h2";
13        }
14?>
15<html>
16<head>
17<title>Parsix Build Queue System</title>
18<link rel="icon" href="http://parsix.org/html/themes/parsix/images/icon.png" type="image/png" />
19<link rel="shortcut icon" href="http://parsix.org/html/themes/parsix/images/favicon.ico" />
20<link rel="stylesheet" href="themes/parsix/style/styleNN.css" type="text/css" />
21<style type="text/css">
22@import url("themes/parsix/style/style.css");
23</style>
24</head>
25<form method="post" >
26<table border="0">
27<tr>
28        <th style="text-align:left">Choose Developer Name:</th>
29        <td>
30                <select name="devel">
31                <?
32                foreach($devels_names as $user=>$real_name):
33                echo "<option value=\"$user\" >$real_name</option>\n";
34                endforeach;
35                ?>
36                </select>
37        </td>
38</tr>
39<tr>
40        <th  style="text-align:left">Type source package name:</th>
41        <th>
42                <input type="text" size="40" name="package" />  (e.g gedit,control-center etc.)
43        </th>
44</tr>
45
46<tr>
47        <th style="text-align:left">Choose Distribution name:</th>
48        <td>
49                <select name="distro">
50                <?
51                foreach($dists_names as $name):
52                echo "<option value=\"$name\" >$name</option>\n";
53                endforeach;
54                ?>
55                </select>
56        </td>
57</tr>
58
59<tr>
60        <td colspan="2">
61                <input type="submit" value="Submit Package" />
62        </td>
63</tr>
64</table>
65<input type="hidden" name="sb" value="1" />
66</form>
67</html>
Note: See TracBrowser for help on using the repository browser.