ACC SHELL
<?php
$gallery = new gallery;
if($_POST['button'] == 'ulozit'){
$gallery->setting($_POST['nahlad'],$_POST['n_width'],$_POST['n_height'],$_POST['foto'],$_POST['f_size'],$_POST['footer'],$_POST['pagenum']);
}
$gallery->select_settint();
?>
<h1 class="gallery_h">Galerie</h1>
<form id="galler_setting_form" name="form" method="post" action="default.php?page=gallery/setting">
<h2>Náhled</h2>
<div>
<label>ąírka: </label>
<input type="text" name="n_width" value="<?= $gallery->setting['s_width'] ?>" />
</div>
<div>
<label>výąka: </label>
<input type="text" name="n_height" value="<?= $gallery->setting['s_height'] ?>" />
</div>
<div>
<label>počet na stránku: </label>
<input type="text" name="pagenum" value="<?= $gallery->setting['pagenum'] ?>" />
</div>
<h2>Fotografie</h2>
<div>
<select name="foto">
<option value="width" <?= $gallery->setting['f_width'] != 0 ? 'selected="selected"' : '' ?>>ąírka</option>
<option value="height" <?= $gallery->setting['f_height'] != 0 ? 'selected="selected"' : '' ?>>výąka</option>
</select>
<input type="text" name="f_size" value="<?= $gallery->setting['f_width'] != 0 ? $gallery->setting['f_width'] : $gallery->setting['f_height'] ?>" />
</div>
<h2>Patička</h2>
<div>
<label for="footer">zobrazovat paticu: </label>
<input id="footer" type="checkbox" name="footer" value="1" <?= $gallery->setting['footer'] == 1 ? 'checked="checked"' : '' ?> />
</div>
<input id="setting_button" type="submit" name="button" value="ulozit" />
</form>
<div class="gallery_setting_msg"><?= $gallery->msg ?></div>
ACC SHELL 2018