prepare($sql); $sth->execute([$asset_id]); $smarty->assign("asset", $sth->fetch(PDO::FETCH_OBJ)); // Type selection $smarty->assign("type_ids", ['active', 'passive']); $smarty->assign("type_names", ['Active', 'Passive']); $smarty->assign("assetclass_options", db_get_options_assetclass()); $smarty->display("assetedit.tpl"); include("footer.php"); ?>