noalyss Version-9
noalyss-color.inc.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 * NOALYSS is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * NOALYSS is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with NOALYSS; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Copyright Author Dany De Bontridder danydb@noalyss.eu
19 *
20 */
21
22
23/* !
24 * \file
25 * \brief Manage the colors and apparence of noalyss
26 */
27if (!defined('ALLOWED'))
28 die('Appel direct ne sont pas permis');
29global $g_user;
31
32?>
33<div class="content">
34
35 <form method="post">
36 <?= dossier::hidden(); ?>
37 <div class="row">
38 <div class="col">
39 <h2><?= _("Apparence") ?></h2>
40 <?php
42 $noalyss_appearance->load();
43 if ($noalyss_appearance->from_post()) {
44 if (DEBUGNOALYSS > 1) {
45 echo "save appearance";
46 }
47 echo h2(_("Recharger la page pour voir la changements"),'class="notice"');
48 $noalyss_appearance->save();
49 }
50 ?>
51 <?php
52 echo $noalyss_appearance->input_form();
53 ?>
54
55
56 </div>
57 <div class="col">
58 <h2><?= _("Ecran") ?></h2>
59 <img src="image/default-screen.png" width="100%">
60 </div>
61 </div>
62 <div class="row">
63 <div class="col">
64 <?php
65 echo HtmlInput::submit("record_company", _("Sauve"), "", "button");
66 ?>
67 </div>
68
69 </div>
70
71 </form>
72</div>
h2($p_string, $p_class="", $raw="")
Definition: ac_common.php:68
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
manage the http input (get , post, request) and extract from an array
global $g_user
$noalyss_appearance
$desc width