4
The programming club I’m attending has completed a program that works as a stock controller and shows things that are available and things borrowed.
It was made in pure C, so the display is quite archaic,
Looks like this: | Control 1 | Available |
And I’m wondering if I could do something like this:
table, th, td {
border: 1px solid transparent; border-collapse: collapse;
text-align: left;
width: 100%;
font-family: "Comic Sans MS", cursive, sans-serif;
padding: 0.3em;
border-radius: 25px;
}
table, th{background-color: lightBlue; }
td{background-color: steelBlue;border-radius: 0px;}
#ultimo {border-bottom-left-radius: 0;}
<table>
<tr>
<th>Controle 1</th>
<td>Disponível</td>
</tr>
<tr>
<th>Controle 2</th>
<td>Emprestado</td>
</tr>
<tr>
<th>Controle 3</th>
<td>Disponível</td>
</tr>
<tr>
<th>Controle 4</th>
<td>Emprestado</td>
</tr>
<tr>
<th>Controle 5</th>
<td>Disponível</td>
</tr>
<tr id="ultimo">
<th>Controle 6</th>
<td>Disponível</td>
</tr>
</table>
So it’s very little interactive, and every time there’s a page change (like something borrowed), the page needs to be updated.
The question is: I would have some way to use the program in an interface rendered in HTML - and CSS, better yet - that is, use c as a JSP (or PHP or JS did not yet dominate that area). Of course, it would be much more feasible to translate this idea into another language, but our goal is to learn as much of the language as possible, and to do so would be a great achievement!