Code is this:
Page editing:
<?php
$id = "";
$DsStatus = "";
if(!empty($_GET['id'])){
$id = $_GET['id'];
$results = $controller->listar($id);
$DsStatus = $results->getst();
}
<form action="../controller/progPrecontrole.php" method="POST" onsubmit="return valid();">
<input type="text" id="st" name="st" value="<?php echo $DsStatus; ?>"/>
</form>
?>
Table page:
<?php
foreach ($controller->ListaPorTipoB() as $objProg) {
?>
<tr>
<td><p><?php echo $objProg->getst(); ?></p></td>
<td><a class="color" href="edita.php?id=<?php echo $objProg->getid();?>"><p>Alterar</p></a></td>
</tr>
<?php
}
?>
I need that, if the value of $DsStatus
is a value x in the input, in the column of the status in the page of the table appear special characters like this: ↓. For example, if in the input for 10 it shows in the table column ↓, if it is 11 shows ↑ and so it goes.