You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
2 years ago
|
<?php
|
||
|
include("header.php");
|
||
|
|
||
|
// get id
|
||
|
$assetclassgroup_id = $_GET['assetclassgroup_id'];
|
||
|
|
||
|
// get assetclassgroup info
|
||
|
$result = mysql_query("SELECT assetclassgroup_name, color FROM assetclassgroup WHERE assetclassgroup_id='$assetclassgroup_id'");
|
||
|
while ($row = mysql_fetch_object($result)) {
|
||
|
$assetclassgroup_name = $row->assetclassgroup_name;
|
||
|
$color = $row->color;
|
||
|
}
|
||
|
?>
|
||
|
|
||
|
<table border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
<b>Assetclass Groupname:</b>
|
||
|
</td>
|
||
|
<td>
|
||
|
<?php echo $assetclassgroup_name; ?>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<b>Color:</b>
|
||
|
</td>
|
||
|
<td>
|
||
|
<img src="images/<?php echo $color; ?>.jpg">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<b>Assetclass(es):</b>
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<?php
|
||
|
$result = mysql_query("SELECT assetclass_id, assetclass_name FROM assetclass WHERE assetclassgroup_id='$assetclassgroup_id' ORDER BY assetclass_name");
|
||
|
while ($row = mysql_fetch_object($result)) {
|
||
|
echo '<a href="assetclassview.php?assetclass_id=' . $row->assetclass_id . '">' . $row->assetclass_name . '</a><br>';
|
||
|
}
|
||
|
?>
|
||
|
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<?php
|
||
|
include("footer.php");
|
||
|
?>
|