mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-07 07:06:26 +02:00
first refonte
This commit is contained in:
commit
9e9cd47b91
226 changed files with 34307 additions and 0 deletions
21
templates/incs/footer.php
Executable file
21
templates/incs/footer.php
Executable file
|
@ -0,0 +1,21 @@
|
|||
<footer class="text-center">
|
||||
RaspiSMS a été créé pour vous par le site <a href="http://raspbian-france.fr">Raspbian-France</a>, site dédié à la Raspberry Pi<br/>
|
||||
Copyright 2014. RaspiSMS est un programme sous <a href="https://www.gnu.org/licenses/gpl.txt" rel="nofollow">licence GNU GPL</a>.<br/>
|
||||
</footer>
|
||||
<?php if (RASPISMS_SETTINGS_SMS_RECEPTION_SOUND) { ?>
|
||||
<audio id="reception-sound">
|
||||
<source src="<?php echo HTTP_PWD_SOUND; ?>/sounds/receptionSound.ogg" type="audio/ogg">
|
||||
<source src="<?php echo HTTP_PWD_SOUND; ?>/sounds/receptionSound.mp3" type="audio/mpeg">
|
||||
<source src="<?php echo HTTP_PWD_SOUND; ?>/sounds/receptionSound.wav" type="audio/wav">
|
||||
</audio>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (ENVIRONMENT == 'dev') { ?>
|
||||
<script>
|
||||
<?php while ($message = \modules\DescartesSessionMessages\internals\DescartesSessionMessages::getNext()) { ?>
|
||||
alert('<?php echo $message['type'] . ' : ' . $message['text']; ?>');
|
||||
<?php } ?>
|
||||
</script>
|
||||
<?php } ?>
|
||||
</body>
|
||||
</html>
|
63
templates/incs/head.php
Executable file
63
templates/incs/head.php
Executable file
|
@ -0,0 +1,63 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo !empty($title) ? $title . ' - ' . WEBSITE_TITLE : WEBSITE_TITLE; ?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="author" content="<?php echo WEBSITE_AUTHOR; ?>" />
|
||||
<link rel="icon" type="image/png" href="<?php echo HTTP_PWD_IMG; ?>/favicon.png" />
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="<?php echo HTTP_PWD_CSS; ?>/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!-- Custom CSS Theme -->
|
||||
<link href="<?php echo HTTP_PWD_CSS; ?>/css/sb-admin.css" rel="stylesheet">
|
||||
<!-- Morris Charts CSS -->
|
||||
<link href="<?php echo HTTP_PWD_CSS; ?>/css/plugins/morris.css" rel="stylesheet">
|
||||
<!-- Custom Fonts -->
|
||||
<link href="<?php echo HTTP_PWD_FONT; ?>/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
|
||||
<!-- Custom CSS site -->
|
||||
<link href="<?php echo HTTP_PWD_CSS; ?>/css/style.css" rel="stylesheet">
|
||||
<?php
|
||||
$this->render('incs/phptojs');
|
||||
?>
|
||||
<script src="<?php echo HTTP_PWD_JS; ?>/js/jquery.js"></script>
|
||||
<script src="<?php echo HTTP_PWD_JS; ?>/js/bootstrap.min.js"></script>
|
||||
<script src="<?php echo HTTP_PWD_JS; ?>/js/plugins/morris/raphael.min.js"></script>
|
||||
<script src="<?php echo HTTP_PWD_JS; ?>/js/plugins/morris/morris.min.js"></script>
|
||||
<script src="<?php echo HTTP_PWD_JS; ?>/js/Autolinker.min.js"></script>
|
||||
<!-- Magic Suggest JS and CSS -->
|
||||
<script src="<?php echo HTTP_PWD_JS; ?>/js/magicsuggest.min.js"></script>
|
||||
<link href="<?php echo HTTP_PWD_CC; ?>/css/magicsuggest.css" rel="stylesheet">
|
||||
<!-- \Datetime Picked JS and CSS -->
|
||||
<script src="<?php echo HTTP_PWD_JS; ?>/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script src="<?php echo HTTP_PWD_JS; ?>/js/locales/bootstrap-datetimepicker.fr.js"></script>
|
||||
<link href="<?php echo HTTP_PWD_CSS; ?>/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
|
||||
<!-- International Phone Number, JS and CSS -->
|
||||
<script src="<?php echo HTTP_PWD_JS; ?>/js/intlTelInput/intlTelInput.min.js"></script>
|
||||
<link href="<?php echo HTTP_PWD_CSS; ?>/css/intlTelInput.css" rel="stylesheet">
|
||||
|
||||
<!-- Custom JS -->
|
||||
<script src="<?php echo HTTP_PWD_JS; ?>/js/custom.js"></script>
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<script>
|
||||
jQuery(document).ready(function ()
|
||||
{
|
||||
<?php if (!empty($_SESSION['errormessage'])) { ?>
|
||||
showMessage('<?php $this->s($_SESSION['errormessage'], false, true); ?>', 0);
|
||||
<?php unset($_SESSION['errormessage']); ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (!empty($_SESSION['successmessage'])) { ?>
|
||||
showMessage('<?php $this->s($_SESSION['successmessage'], false, true); ?>', 1);
|
||||
<?php unset($_SESSION['successmessage']); ?>
|
||||
<?php } ?>
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="popup-alerts-container"></div>
|
82
templates/incs/nav.php
Executable file
82
templates/incs/nav.php
Executable file
|
@ -0,0 +1,82 @@
|
|||
<!-- Navigation -->
|
||||
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="<?php echo \Router::url('Dashboard', 'show'); ?>">RaspiSMS</a>
|
||||
</div>
|
||||
<!-- Top Menu Items -->
|
||||
<ul class="nav navbar-right top-nav">
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-fw fa-user"></i> <?php $this->s($_SESSION['user']['email'] ?? 'Mon compte'); ?> <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="<?php echo \Router::url('Account', 'show'); ?>"><i class="fa fa-fw fa-user"></i> Profil</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li>
|
||||
<a href="<?php echo \Router::url('Account', 'logout'); ?>"><i class="fa fa-fw fa-power-off"></i> Déconnexion</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
|
||||
<div class="collapse navbar-collapse navbar-ex1-collapse">
|
||||
<ul class="nav navbar-nav side-nav">
|
||||
<li <?php echo $page == 'dashboard' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \Router::url('Dashboard', 'show'); ?>"><i class="fa fa-fw fa-dashboard"></i> Dashboard</a>
|
||||
</li>
|
||||
<li <?php echo $page == 'scheduleds' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \Router::url('Scheduled', 'list'); ?>"><i class="fa fa-fw fa-envelope"></i> SMS</a>
|
||||
</li>
|
||||
<li <?php echo $page == 'discussions' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \Router::url('Discussion', 'list'); ?>"><i class="fa fa-fw fa-comments"></i> Discussions</a>
|
||||
</li>
|
||||
<li <?php echo $page == 'commands' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \Router::url('Command', 'list'); ?>"><i class="fa fa-fw fa-terminal"></i> Commandes</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;" data-toggle="collapse" data-target="#repertoire"><i class="fa fa-fw fa-book"></i> Répertoire <i class="fa fa-fw fa-caret-down"></i></a>
|
||||
<ul id="repertoire" class="collapse <?php echo in_array($page, array('contacts', 'groupes')) ? 'in' : ''; ?>">
|
||||
<li <?php echo $page == 'contacts' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \Router::url('Contact', 'list'); ?>"><i class="fa fa-fw fa-user"></i> Contacts</a>
|
||||
</li>
|
||||
<li <?php echo $page == 'groupes' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \Router::url('Groupe', 'list'); ?>"><i class="fa fa-fw fa-group"></i> Groupes</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;" data-toggle="collapse" data-target="#logs"><i class="fa fa-fw fa-file-text"></i> Logs <i class="fa fa-fw fa-caret-down"></i></a>
|
||||
<ul id="logs" class="collapse <?php echo in_array($page, array('sendeds', 'receiveds', 'events', 'smsstop')) ? 'in' : ''; ?>">
|
||||
<li <?php echo $page == 'sendeds' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \Router::url('Sended', 'list'); ?>"><i class="fa fa-fw fa-send"></i> SMS envoyés</a>
|
||||
</li>
|
||||
<li <?php echo $page == 'receiveds' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \Router::url('Received', 'list'); ?>"><i class="fa fa-fw fa-download"></i> SMS reçus</a>
|
||||
</li>
|
||||
<li <?php echo $page == 'smsstop' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \Router::url('SMSStop', 'list'); ?>"><i class="fa fa-fw fa-ban"></i> SMS STOP</a>
|
||||
</li>
|
||||
<li <?php echo $page == 'events' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \Router::url('Event', 'list'); ?>"><i class="fa fa-fw fa-clock-o"></i> Évènements</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li <?php echo $page == 'users' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \Router::url('User', 'list'); ?>"><i class="fa fa-fw fa-user"></i> Utilisateurs</a>
|
||||
</li>
|
||||
<?php if ($_SESSION['user']['admin']) { ?>
|
||||
<li <?php echo $page == 'settings' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \Router::url('Setting', 'show'); ?>"><i class="fa fa-fw fa-cogs"></i> Réglages</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.navbar-collapse -->
|
||||
</nav>
|
3
templates/incs/phptojs.php
Executable file
3
templates/incs/phptojs.php
Executable file
|
@ -0,0 +1,3 @@
|
|||
<script>
|
||||
var HTTP_PWD = '<?php echo addslashes(HTTP_PWD); ?>';
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue