diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-07-05 16:40:28 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-07-05 16:40:28 +0000 |
commit | 64ace4cafe279a135ee3179c41dcd7e5ecf82a8e (patch) | |
tree | 0a79c47138f53019dc0cdb927a2974df48ee49d8 /contrib | |
parent | 23b52f7850b0d375e908c598f0eb8dbe9d433d96 (diff) |
feed-browser: mark selected architecture in list of archs, also show entered package name
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/feed-browser/index.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/contrib/feed-browser/index.php b/contrib/feed-browser/index.php index e513c731cd..eca57e9269 100644 --- a/contrib/feed-browser/index.php +++ b/contrib/feed-browser/index.php @@ -76,15 +76,21 @@ $archs_list = get_arch_list(); <form action="" method="get"> <fieldset> <label for="name">Package name</label> - <input type="text" name="pkgsearch" value="<?php echo $name; ?>" /> + <input type="text" name="pkgsearch" value="<?php echo $pkgsearch; ?>" /> <select name="arch"> <option value="" selected="selected">all architectures</option> <option value="all">no arch</option> <?php -foreach($archs_list as $arch) +foreach($archs_list as $architecture) { - echo "<option value='{$arch['p_arch']}'>{$arch['p_arch']}</option>"; + echo "<option value='{$architecture['p_arch']}'"; + + if($architecture['p_arch'] == $arch) + { + echo ' selected="selected"'; + } + echo ">{$architecture['p_arch']}</option>"; } ?> |