Schulsicht

This commit is contained in:
2018-04-04 17:35:13 +02:00
parent 1e9a4e65c5
commit 4c83767fe7
11 changed files with 266 additions and 21 deletions

View File

@@ -1,21 +1,21 @@
<?php
//debug($budget);
//debug($data);
for($i=0;$i<sizeof($data);$i++) {
$data[$i][0] = $this->Html->link($data[$i][0],array('controller' => 'schools', 'action' => 'showbudgets',$data[$i][0]));
}
echo '<h2>' . $budget['wl_kurz_bezeichnung'] .'</h2>';
//debug($data);
?>
<div class="controls">
<button name="load" id="load" class="intext-btn">Load</button>
<button name="save" id="save" class="intext-btn">Save</button>
<label><input name="autosave" id="autosave" checked="checked" autocomplete="off" type="checkbox">Autosave</label>
</div>
<pre id="example1console" class="console">Data loaded</pre>
<div id="editbudget"></div>
<script>
var data = <?php echo json_encode($data); ?>;
var container = document.getElementById('editbudget');
var exampleConsole = document.getElementById('example1console');
var autosave = document.getElementById('autosave');
var load = document.getElementById('load');
var save = document.getElementById('save');
var autosaveNotification;
@@ -24,11 +24,12 @@ var data = <?php echo json_encode($data); ?>;
var hot = new Handsontable(container, {
data: data,
width: 1400,
height: 1000,
height: 800,
rowHeaders: true,
wordWrap: false,
colHeaders: ['SNR','Name','Count','Comment'] ,
colWidths: ['50','500','50','500'],
columns: [{renderer: "html", readOnly: true},{renderer: "text", readOnly: true},{renderer: "text"},{renderer: "text"}],
filters: true,
dropdownMenu: true
});