cleanups etc

git-svn-id: http://www.observium.org/svn/observer/trunk@2213 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-05-01 17:26:06 +00:00
parent e8178b4065
commit 6e5558db82
9 changed files with 43 additions and 62 deletions

View File

@@ -87,15 +87,16 @@ if ($updated && $update_message)
<select name="type">
<?php
$unknown = 1;
foreach ($device_types as $type)
foreach ($config['device_types'] as $type)
{
echo(' <option value="'.$type.'"');
if ($device['type'] == $type)
echo(' <option value="'.$type['type'].'"');
if ($device['type'] == $type['type'])
{
echo('selected="1"');
echo(' selected="1"');
$unknown = 0;
}
echo(' >' . ucfirst($type) . '</option>');
echo(' >' . ucfirst($type['type']) . '</option>');
}
if ($unknown)
{