Commit
This commit is contained in:
parent
b3adf41960
commit
17e201e9a4
@ -3,6 +3,7 @@
|
||||
<br>
|
||||
<table>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Navn</th>
|
||||
<th>Bedrift</th>
|
||||
<th>Kortnummer</th>
|
||||
@ -14,12 +15,15 @@
|
||||
<th>Handling</th>
|
||||
</tr>
|
||||
<?php
|
||||
$iterator = 0;
|
||||
foreach ($teams as $row) {
|
||||
++$iterator;
|
||||
foreach ($row as $key => $value)
|
||||
{
|
||||
$row[$key] = htmlspecialchars($row[$key]);
|
||||
}
|
||||
echo '<tr>';
|
||||
echo "<td>{$iterator}</td>";
|
||||
echo "<td>{$row['LagNavn']}</td>";
|
||||
echo "<td>{$row['Bedrift']}</td>";
|
||||
echo "<td>{$row['Kortnummer']}</td>";
|
||||
|
@ -2,6 +2,7 @@
|
||||
<br>
|
||||
<table>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Navn</th>
|
||||
<th>Bedrift</th>
|
||||
<th>Kortnummer</th>
|
||||
@ -12,12 +13,16 @@
|
||||
<th>Bestetid</th>
|
||||
</tr>
|
||||
<?php
|
||||
$iterator = 0;
|
||||
foreach ($teams as $row) {
|
||||
++$iterator;
|
||||
// Escape all values
|
||||
foreach ($row as $key => $value)
|
||||
{
|
||||
$row[$key] = htmlspecialchars($row[$key]);
|
||||
}
|
||||
echo '<tr>';
|
||||
echo "<td>{$iterator}</td>";
|
||||
echo "<td>{$row['LagNavn']}</td>";
|
||||
echo "<td>{$row['Bedrift']}</td>";
|
||||
echo "<td>{$row['Kortnummer']}</td>";
|
||||
|
@ -5,6 +5,6 @@ $model = $app->model('Teamtable');
|
||||
|
||||
$id = $model->addEmptyTeam();
|
||||
|
||||
$app->session->flash('Opprettet ny lagmal, <a href=' . "update.php?item=$id" . '>klikk her</a> for å endre på den', 'success', TRUE);
|
||||
$app->session->flash('Opprettet ny lagmal, <a class="success" href=' . "update.php?item=$id" . '>klikk her</a> for å endre på den', 'success', TRUE);
|
||||
|
||||
$app->redirect('index.php');
|
Reference in New Issue
Block a user