Archived
1
0
This repository has been archived on 2020-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
old/application/views/sudoku.php

42 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2018-10-16 16:28:42 +00:00
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<style>
table input {
border: 1px solid rgba(0, 0, 0, 0.25);
width: 50px;
height: 50px;
font-size: 50px;
}
.row-2, .row-5 {
border-bottom: 1px solid rgba(0, 0, 0, 0.75);
}
.col-2, .col-5 {
border-right: 1px solid rgba(0, 0, 0, 0.75);
}
</style>
<section class="container">
<div class="row">
<form method="post">
<table>
<?php for($i = 0; $i < 9; $i++) { ?>
<tr class="row-<?= $i; ?>">
<?php
for ($j=0; $j < 9; $j++) {
?>
<td class="col-<?= $j; ?>">
<input type="text" maxlength="1" name="field-<?= $i; ?>-<?= $j; ?>">
</td>
<?php
}
?>
</tr>
<?php
} ?>
</table>
<input type="text" name="sudoku" value="true" style="display:none">
<input type="submit" name="submit" class="btn btn-primary" value="Absenden">
</form>
</div>
</section>