2013-08-09 00:44:43 +02:00
|
|
|
<?php if(!class_exists('raintpl')){exit;}?><!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
2013-08-13 19:37:11 +02:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<title><?php echo $instance_title;?></title>
|
|
|
|
<link rel="stylesheet" media="screen" type="text/css" href="tpl/./css/style.css" />
|
|
|
|
<link rel="icon" href="tpl/./favicon.ico" />
|
2013-08-09 00:44:43 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2013-08-09 23:43:56 +02:00
|
|
|
<?php if( !$connection ){ ?>
|
|
|
|
|
2013-08-12 09:52:50 +02:00
|
|
|
<h1 id="title"><a href="<?php echo $base_url;?>"><?php echo $instance_title;?></a></h1>
|
2013-08-09 23:43:56 +02:00
|
|
|
|
|
|
|
<div id="menu">
|
|
|
|
<ul>
|
|
|
|
<li><a href="index.php?do=new_invoice">Add a bill</a></li>
|
|
|
|
<li><a href="index.php?do=password">Change your password</a></li>
|
|
|
|
<li><a href="index.php?do=paybacks">See paybacks</a></li>
|
2013-08-11 22:25:25 +02:00
|
|
|
<li><a href="index.php?do=disconnect">Disconnect</a></li>
|
2013-08-09 23:43:56 +02:00
|
|
|
</ul>
|
2013-08-11 22:25:25 +02:00
|
|
|
<?php if( $current_user->getAdmin() == 1 ){ ?>
|
2013-08-09 23:43:56 +02:00
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><a href="index.php?do=manage_paybacks">Manage paybacks</a></li>
|
|
|
|
<li><a href="index.php?do=edit_users">Edit users</a></li>
|
2013-08-12 09:52:50 +02:00
|
|
|
<li><a href="index.php?do=edit_notice">Edit notice on homepage</a></li>
|
|
|
|
<li><a href="index.php?do=settings">Settings</a></li>
|
2013-08-09 23:43:56 +02:00
|
|
|
</ul>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|