The programming club I'm attending has completed a program that functions as a stock controller and shows things that are available and things borrowed.
It was done in pure C, so the display is quite archaic,
It 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 uninteresting, and every time there's a change on the page (like something borrowed), the page needs to be updated.
The question is: would I have some way to use the program in an HTML rendered interface - and CSS, better still - ie use c as a JSP (or PHP or JS not yet mastered 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 as possible of the language, and doing that would be a great achievement!