Esthetic : menu administration

This commit is contained in:
Dany De Bontridder 2018-02-12 20:22:04 +01:00
parent 98a48dad32
commit ad3db6e6fa
8 changed files with 59 additions and 16 deletions

View file

@ -46,7 +46,7 @@ if ($User->admin != 1)
echo _("Vous n'êtes pas administateur");
echo "</h2>";
$reconnect=http_build_query(array("reconnect"=>1,"backurl"=>"admin-noalyss.php?action=upgrade"));
echo '<a href="index.php?'.$reconnect.'">';
echo '<a href="'.NOALYSS_URL.'/index.php?'.$reconnect.'">';
echo _("Connectez-vous comme administrateur");
echo '</a>';
html_page_stop();
@ -59,7 +59,7 @@ if ( $action== 'backup') {
require_once NOALYSS_INCLUDE."/backup.inc.php";
exit();
}
html_page_start();
html_page_start($_SESSION['g_theme']);
load_all_script();
echo '<H2 class="info"> '._('Administration').'</H2>';
echo '<div class="topmenu">';
@ -191,19 +191,16 @@ hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #0
echo $html->saveHTML();
}
//------------------------------------------------------------------------------
// Upgrade
//------------------------------------------------------------------------------
if ( $action == "upgrade" ) {
?>
<form method="get" id="frm_upg_all" onsubmit="return confirm_box('frm_upg_all','<?php echo _('Confirmez')?>')">
<input type="hidden" name="sb" value="upg_all">
<input type="hidden" name="action" value="upgrade">
<input type="submit" class="button" name="submit_upg_all" id="submit_upg_all" value="<?php echo _('Tout mettre à jour')?>">
</form>
<?php
require_once NOALYSS_INCLUDE."/upgrade.inc.php";
}
?>
</DIV>
<?php
html_page_stop();
?>

View file

@ -24,7 +24,7 @@
*/
if ( !defined ('ALLOWED')) die('Forbidden');
?>
<DIV class="content" style="width:80%;margin-left:10%">
<DIV class="content">
<span class="notice">Liste limitée aux 100 dernières connexions</span>
<?php

View file

@ -0,0 +1,46 @@
<?php
/*
* This file is part of NOALYSS.
*
* PhpCompta is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* PhpCompta is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PhpCompta; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
// Copyright (2018) Author Dany De Bontridder <dany@alchimerys.be>
/**
* @file
* @brief contains the class Package_Repository
*/
class Package_Repository
{
private $content;
function __construct()
{
$this->content=@file_get_content(NOALYSS_PACKAGE."/web.xml");
}
function get_noalyss_info()
{
}
function get_plugin_info()
{
}
function get_template_info()
{
}
}

View file

@ -45,7 +45,7 @@ if ( isset ($_POST['upd']) && isNumber($dossier_id) == 1 && $dossier_id != -1)
$dos->set_parameter("max_email", $max_email);
$dos->save();
}
echo '<div class="content" style="width:80%;margin-left:10%">';
echo '<div class="content">';
/*
* check and add an new folder
*/

View file

@ -145,7 +145,7 @@ function MenuAdmin()
);
}
$menu=ShowItem($item,'H',"mtitle","mtitle",$def,' style="width:80%;margin-left:10%" ');
$menu=ShowItem($item,'H',"mtitle","mtitle",$def);
return $menu;
}

View file

@ -254,7 +254,7 @@ $Res = $cn->exec_sql("select mod_id,mod_name,mod_desc from
modeledef $sql_order");
$count = Database::num_row($Res);
echo '<div class="content" style="width:80%;margin-left:10%">';
echo '<div class="content">';
echo "<H2>"._('Modèles')."</H2>";
if ($sa == 'list')
{

View file

@ -72,7 +72,7 @@ if ( isset ($_REQUEST['sa'] ))
// Restore a folder (dossier)
if ( $_REQUEST['t']=='d')
{
echo '<div class="content" style="width:80%;margin-left:10%">';
echo '<div class="content">';
$cn=new Database();
$id=$cn->get_next_seq('dossier_id');

View file

@ -29,7 +29,7 @@ if ( !defined ('ALLOWED')) die('Forbidden');
require_once NOALYSS_INCLUDE.'/lib/sort_table.class.php';
require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
$http=new HttpInput();
echo '<div class="content" style="width:80%;margin-left:10%">';
echo '<div class="content" >';
/******************************************************/
// Add user
/******************************************************/