Example #1
0
 public static function hasRightClosePageWithError($handler)
 {
     if (hasRight($handler) == false) {
         die("You are not allowed here");
     }
     //FIXME
 }
Example #2
0
<?php

if (!hasRight('userview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
sendVarToJS('ldapEnable', config::byKey('ldap::enable'));
?>
<div id="div_administration">


    <!--********************Onglet utilisateur********************************-->
    <div class="tab-pane" id="user">
        <legend>{{Liste des utilisateurs :}}</legend>
        <?php 
if (config::byKey('ldap::enable') != '1') {
    ?>
            <a class="btn btn-success pull-right" id="bt_addUser"><i class="fa fa-plus-circle"></i> {{Ajouter un utilisateur}}</a>
            <a class="btn btn-default pull-right tooltips" id="bt_addTemporariUser" title="{{A utiliser pour laisser l'accès temporaire pour de l'assistance par exemple}}"><i class="fa fa-plus-circle"></i> {{Ajouter un utilisateur temporaire}}</a>
            <br/><br/>
        <?php 
}
?>
        <table class="table table-condensed table-bordered" id="table_user">
            <thead><th>{{Nom d'utilisateur}}</th><th>{{Actions}}</th><th>{{Actif}}</th><th>{{Droits}}</th><th>{{Clef API}}</th><th>{{Date de dernière connexion}}</th><th>{{Accès direct}}</th></thead>
            <tbody></tbody>
        </table>
        <div class="form-actions" style="height: 20px;">
            <a class="btn btn-success" id="bt_saveUser"><i class="fa fa-check-circle"></i> {{Sauvegarder}}</a>
        </div>
    </div>
</div>
Example #3
0
<?php

if (!hasRight('jeeNetworkview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
?>

<div class="row row-overflow">
    <div class="col-md-2 col-sm-3">
        <div class="bs-sidebar">
            <ul id="ul_jeeNetwork" class="nav nav-list bs-sidenav">
                <a id="bt_addJeeNetwork" class="btn btn-default" style="width : 100%;margin-top : 5px;margin-bottom: 5px;"><i class="fa fa-plus-circle"></i> {{Ajouter un Jeedom}}</a>
                <li class="filter" style="margin-bottom: 5px;"><input class="filter form-control input-sm" placeholder="{{Rechercher}}" style="width: 100%"/></li>
                <?php 
foreach (jeeNetwork::all() as $jeeNetwork) {
    echo '<li class="cursor li_jeeNetwork" data-jeeNetwork_id="' . $jeeNetwork->getId() . '"><a>' . $jeeNetwork->getName() . '</a></li>';
}
?>
           </ul>
       </div>
   </div>
   <div class="col-md-10 col-sm-9 jeeNetwork" style="display: none;" id="div_conf">

      <ul class="nav nav-tabs" role="tablist">
          <li class="active"><a href="#main" role="tab" data-toggle="tab">{{Général}}</a></li>
          <li><a href="#log"  role="tab" data-toggle="tab">{{Log et messages}}</a></li>
          <li><a href="#update" role="tab" data-toggle="tab">{{Mise à jour}}</a></li>
          <li><a href="#backup" role="tab" data-toggle="tab">{{Backup}}</a></li>
          <li><a href="#administration" role="tab" data-toggle="tab">{{Administration}}</a></li>
      </ul>
Example #4
0
<?php

if (!hasRight('messageview')) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
$selectPlugin = init('plugin');
if ($selectPlugin != '') {
    $listMessage = message::byPlugin($selectPlugin);
} else {
    $listMessage = message::all();
}
?>
<a class="btn btn-danger pull-right" id="bt_clearMessage"><i class="fa fa-trash-o icon-white"></i> {{Vider}}</a>
<select id="sel_plugin" class="form-control" style="width: 200px;">
    <option value="" selected>{{Tout}}</option>
    <?php 
foreach (message::listPlugin() as $plugin) {
    if ($selectPlugin == $plugin['plugin']) {
        echo '<option value="' . $plugin['plugin'] . '" selected>' . $plugin['plugin'] . '</option>';
    } else {
        echo '<option value="' . $plugin['plugin'] . '">' . $plugin['plugin'] . '</option>';
    }
}
?>
</select>

<table class="table table-condensed table-bordered tablesorter" id="table_message" style="margin-top: 5px;">
    <thead>
        <tr>
            <th data-sorter="false" data-filter="false"></th><th>{{Date et heure}}</th><th>{{Plugin}}</th><th>{{Description}}</th><th data-sorter="false" data-filter="false">{{Action}}</th>
        </tr>
Example #5
0
<?php

if (!hasRight('sysinfo', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
?>
<iframe id="frame_sysinfo" src="<?php 
echo jeedom::getCurrentSysInfoFolder();
?>
/index.php" style="width : 100%;height : 1200px;border : none;"></iframe>

<script>
  var hWindow = $(window).height() - $('header').height() - $('footer').height() - 50;
  $('#frame_sysinfo').height(hWindow);
</script>
Example #6
0
<?php

if (!hasRight('updateview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
?>
<br/>
<div class="row row-overflow">
    <div class="col-sm-8">
        {{Dernière vérification : }}<span class="label label-info" id="span_lastUpdateCheck" style="margin-bottom: 5px;"></span>

        <a class="btn btn-warning pull-right" id="bt_checkAllUpdate" style="margin-top:5px;"><i class="fa fa-refresh"></i> {{Vérifier les objets et mises à jour}}</a>
        <a class="btn btn-primary pull-right" id="bt_allChangelog" style="margin-top:5px;"><i class="fa fa-search-plus"></i> {{Changelog}}</a>
        <div class="btn-group pull-right" style="margin-top:5px;">
            <a href="#" class="bt_updateAll btn btn-default"  data-level="0" data-mode=""><i class="fa fa-check"></i> {{Mettre à jour}}</a>
            <div class="btn-group">
                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu">
                    <li><a href="#" class="bt_updateAll expertModeVisible" data-level="0" data-mode="force"> <i class="fa fa-gavel"></i> {{Tout forcer}}</a></li>
                    <li><a href="#" class="bt_updateAll" data-level="1" data-mode=""><i class="fa fa-cube"></i> {{Plugins seulement}}</a></li>
                    <li><a href="#" class="bt_updateAll expertModeVisible" data-level="1" data-mode="force"><i class="fa fa-cube"></i> <i class="fa fa-gavel"></i> {{Plugins seulement forcés}}</a></li>
                    <li><a href="#" class="bt_updateAll" data-level="-1" data-mode=""><i class="fa fa-database"></i> {{Jeedom seulement}}</a></li>
                    <li><a href="#" class="bt_updateAll expertModeVisible" data-level="-1" data-mode="force"><i class="fa fa-database"></i> <i class="fa fa-gavel"></i> {{Jeedom seulement forcé}}</a></li>
                    <li><a href="#" class="expertModeVisible" id="bt_reapplyUpdate"><i class="fa fa-retweet"></i> {{Réappliquer une mise à jour}}</a></li>
                    <li><a href="#" class="expertModeVisible" id="bt_updateSystem"><i class="fa fa-linux"></i> {{Mettre à jour l'OS}}</a></li>
                </ul>
            </div>
        </div>
        <br/><br/>
Example #7
0
<?php

if (!hasRight('pluginview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
global $JEEDOM_INTERNAL_CONFIG;
sendVarToJS('select_id', init('id', '-1'));
$plugins_list = plugin::listPlugin(false, true);
?>

<div style="position : fixed;height:100%;width:15px;top:50px;left:0px;z-index:998;background-color:#f6f6f6;" id="bt_displayPluginList"><i class="fa fa-arrow-circle-o-right" style="color : #b6b6b6;"></i></div>

<div class="row row-overflow">
    <div class="col-md-3 col-sm-4" id="sd_pluginList" style="z-index:999">
        <div class="bs-sidebar">
            <ul id="ul_plugin" class="nav nav-list bs-sidenav">
                <center>
                    <a class="btn btn-default tooltips" id="bt_displayMarket" style="display: inline-block;"><i class="fa fa-shopping-cart"></i> {{Market}}</a>
                    <span class="btn btn-default btn-file">
                         <i class="fa fa-cloud-upload"></i> {{Envoyer un plugin}}<input class="expertModeVisible" id="bt_uploadPlugin" type="file" name="file" data-url="core/ajax/plugin.ajax.php?action=pluginupload" style="display : inline-block;">
                    </span>
                </center>
                <li class="filter" style="margin-bottom: 5px;margin-top: 5px;"><input class="filter form-control input-sm" placeholder="{{Rechercher}}" style="width: 100%"/></li>
                <?php 
foreach ($plugins_list as $category_name => $category) {
    $icon = '';
    if (isset($JEEDOM_INTERNAL_CONFIG['plugin']['category'][$category_name]) && isset($JEEDOM_INTERNAL_CONFIG['plugin']['category'][$category_name]['icon'])) {
        $icon = $JEEDOM_INTERNAL_CONFIG['plugin']['category'][$category_name]['icon'];
    }
    $name = $category_name;
    if (isset($JEEDOM_INTERNAL_CONFIG['plugin']['category'][$category_name]) && isset($JEEDOM_INTERNAL_CONFIG['plugin']['category'][$category_name]['name'])) {
Example #8
0
<?php

if (!hasRight('planview')) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
$planHeader = null;
$planHeaders = planHeader::all();
if (init('plan_id') == '') {
    foreach ($planHeaders as $planHeader_select) {
        if ($planHeader_select->getId() == $_SESSION['user']->getOptions('defaultDashboardPlan')) {
            $planHeader = $planHeader_select;
            break;
        }
    }
} else {
    foreach ($planHeaders as $planHeader_select) {
        if ($planHeader_select->getId() == init('plan_id')) {
            $planHeader = $planHeader_select;
            break;
        }
    }
}
if (!is_object($planHeader) && count($planHeaders) > 0) {
    $planHeader = $planHeaders[0];
}
if (is_object($planHeader)) {
    sendVarToJS('planHeader_id', $planHeader->getId());
} else {
    sendVarToJS('planHeader_id', -1);
}
if (init('noControl') == '') {
Example #9
0
<?php

if (!hasRight('cronview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
?>
<span class="pull-left">
{{Processus cron Jeedom :}} <span class="label label-default"><span class="tooltips" id="span_jeecronMasterRuns" title="{{Nombre de processus Jeedom cron maître (doit toujours être inférieur à 2)}}"></span> |
<span id="span_jeecronRuns" class="tooltips" title="{{Nombre total de processus Jeedom en cours}}"></span> |
<span id="span_nbProcess" class="tooltips" title="{{Nombre total de processus en cours sur la machine}}"></span></span>
<br/>
<span>{{Charge moyenne}} <span class="label label-default"><span id="span_loadAvg1" class="tooltips" title="{{Charge moyenne du système sur la dernière minute}}"></span> |
<span id="span_loadAvg5" class="tooltips" title="{{Charge moyenne du système sur les 5 dernières minutes}}"></span> |
<span id="span_loadAvg15" class="tooltips" title="{{Charge moyenne du système sur les 15 dernières minutes}}"></span></span></span>
</span>

<a class="btn btn-success pull-right" id="bt_save" style="margin-top: 5px;"><i class="fa fa-check-circle"></i> {{Enregistrer}}</a>
<a class="btn btn-default pull-right" id="bt_addCron" style="margin-top: 5px;"><i class="fa fa-plus-circle"></i> {{Ajouter}}</a>
<a class="btn btn-default pull-right" id="bt_refreshCron" style="margin-top: 5px;"><i class="fa fa-refresh"></i> {{Rafraîchir}}</a>
<?php 
if (config::byKey('enableCron') == 0) {
    echo '<a class="btn btn-success pull-right" id="bt_changeCronState" data-state="1" style="margin-top: 5px;"><i class="fa fa-check"></i> {{Activer le système cron}}</a>';
} else {
    echo '<a class="btn btn-danger pull-right" id="bt_changeCronState" data-state="0" style="margin-top: 5px;"><i class="fa fa-times"></i> {{Désactiver le système cron}}</a>';
}
?>
<br/><br/><br/>
<table id="table_cron" class="table table-bordered table-condensed" >
    <thead>
        <tr>
            <th class="id" style="width: 40px;">#</th>
Example #10
0
<?php

if (!hasRight('backupview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
?>
<div id="backup">
    <div class="row row-overflow">
        <div class="col-sm-6">
            <legend>{{Sauvegardes}}</legend>
            <form class="form-horizontal">
                <fieldset>
                    <div class="form-group">
                        <label class="col-sm-4 col-xs-6 control-label">{{Sauvegardes}}</label>
                        <div class="col-sm-8 col-xs-6">
                            <a class="btn btn-success bt_backupJeedom"><i class="fa fa-refresh fa-spin" style="display : none;"></i> <i class="fa fa-floppy-o"></i> {{Lancer}}</a>
                            <?php 
if (config::byKey('backup::cloudUpload') == 1) {
    ?>
                                <a class="btn btn-default bt_backupJeedom" data-noCloudBackup="1" ><i class="fa fa-refresh fa-spin" style="display : none;"></i> <i class="fa fa-floppy-o"></i> Lancer sans envoi sur le cloud</a>
                                <?php 
}
?>
                            </div>
                        </div>
                        <div class="form-group expertModeVisible">
                            <label class="col-sm-4 col-xs-6 control-label">{{Emplacement des sauvegardes}}</label>
                            <div class="col-sm-4 col-xs-6">
                                <input type="text" class="configKey form-control" data-l1key="backup::path" />
                            </div>
                        </div>
Example #11
0
<?php 
if ($_SESSION['user']->getOptions('displayViewByDefault') == 1) {
    echo '<div class="col-lg-10 col-md-9 col-sm-8 div_displayViewContainer">';
} else {
    echo '<div class="col-lg-12 col-md-12 col-sm-12 div_displayViewContainer">';
}
?>
<i class='fa fa-picture-o cursor tooltips pull-left bt_displayView' data-display='<?php 
echo $_SESSION['user']->getOptions('displayViewByDefault');
?>
' title="{{Afficher/Masquer les vues}}"></i>

<legend style="height: 35px;color : #563d7c;">Vue <?php 
echo $view->getName();
if (init('noControl') == '') {
    if (hasRight('viewedit', true)) {
        ?>
 <a href="index.php?v=d&p=view_edit&view_id=<?php 
        echo $view->getId();
        ?>
" class="btn btn-warning btn-xs pull-right"><i class="fa fa-pencil"></i> {{Edition complète}}</a><?php 
    }
    ?>

	<i class="fa fa-pencil pull-right cursor" id="bt_editViewWidgetOrder" data-mode="0"></i>
			<?php 
}
?>
		</legend>
		<div class="row div_displayView"></div>
	</div>
Example #12
0
<?php

if (!hasRight('administrationview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
sendVarToJS('ldapEnable', config::byKey('ldap::enable'));
?>
<div id="config">
    <div class="panel-group" id="accordionConfiguration">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">
                    <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionConfiguration" href="#config_generale">
                        {{Configuration générale}}
                    </a>
                </h3>
            </div>
            <div id="config_generale" class="panel-collapse collapse in">
                <div class="panel-body">
                    <form class="form-horizontal">
                        <fieldset>
                            <div class="form-group expertModeVisible">
                                <label class="col-lg-2 col-md-3 col-sm-4 col-xs-6 control-label">{{Clef API}}</label>
                                <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">
                                    <p class="form-control-static" id="in_keyAPI"><?php 
echo config::byKey('api');
?>
</p>
                                </div>
                                <div class="col-lg-1 col-md-2 col-sm-3">
                                    <a class="btn btn-default form-control" id="bt_genKeyAPI">{{Générer}}</a>
Example #13
0
<?php

if (!hasRight('customview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
?>
<div class="alert alert-warning">{{Attention tout ce que vous écrivez ici est global et inclus sur toutes les pages, la moindre erreur peut rendre votre jeedom non fonctionel}}</div>
<div role="tabpanel">
    <ul class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#desktop" aria-controls="home" role="tab" data-toggle="tab">Desktop</a></li>
        <li><a href="#mobile" aria-controls="profile" role="tab" data-toggle="tab">Mobile</a></li>
    </ul>
    <div class="tab-content">
        <div role="tabpanel" class="tab-pane active" id="desktop">
            <div class="row row-overflow">
                <div class="col-xs-6">
                    <legend>Javascript
                        <a class="btn btn-success pull-right btn-xs saveCustom" data-version="desktop" data-type="js" style="margin-top: 5px;"><i class="fa fa-check-circle"></i> {{Sauvegarder}}</a>
                    </legend>
                    <textarea class='form-control' id='ta_jsDesktopContent' style='height: 500px;'><?php 
if (file_exists(dirname(__FILE__) . '/../custom/custom.js')) {
    echo trim(file_get_contents(dirname(__FILE__) . '/../custom/custom.js'));
}
?>
</textarea>
                </div>
                <div class="col-xs-6">
                    <legend>CSS
                        <a class="btn btn-success pull-right btn-xs saveCustom" data-version="desktop" data-type="css" style="margin-top: 5px;"><i class="fa fa-check-circle"></i> {{Sauvegarder}}</a>
                    </legend>
                    <textarea class='form-control' id='ta_cssDesktopContent' style='height: 500px;'><?php 
Example #14
0
												<?php 
    } else {
        if (init('p') == 'scenarioAssist') {
            echo '<a class="cursor tooltips" target="_blank" href="https://jeedom.fr/doc/documentation/core/fr_FR/doc-core-scenario.html" title="{{Aide sur la page en cours}}"><i class="fa fa-question-circle" ></i></a>';
        } else {
            if (init('p') == 'view_edit') {
                echo '<a class="cursor tooltips" target="_blank" href="https://jeedom.fr/doc/documentation/core/fr_FR/doc-core-view.html" title="{{Aide sur la page en cours}}"><i class="fa fa-question-circle" ></i></a>';
            } else {
                echo '<a class="cursor tooltips" target="_blank" href="https://jeedom.fr/doc/documentation/core/fr_FR/doc-core-' . init('p') . '.html" title="{{Aide sur la page en cours}}"><i class="fa fa-question-circle" ></i></a>';
            }
        }
    }
    ?>
											</li>
											<?php 
    if (hasRight('reportsend', true)) {
        ?>
											<li>
												<a class="bt_reportBug cursor tooltips" title="{{Envoyer un rapport de bug}}">
													<i class="fa fa-exclamation-circle" ></i>
												</a>
											</li>
											<?php 
    }
    ?>
										</ul>
									</nav><!--/.nav-collapse -->
								</div>
							</header>
							<main class="container-fluid" id="div_mainContainer">
								<div style="display: none;width : 100%" id="div_alert"></div>
Example #15
0
<?php

if (!hasRight('health', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
?>
<legend>{{Santé de Jeedom}}</legend>
<table class="table table-condensed table-bordered">
	<thead><tr><th style="width : 250px;"></th><th style="width : 150px;">{{Résultat}}</th><th>{{Conseil}}</th></tr></thead>
	<tbody>
	<tr>
			<td style="font-weight : bold;">{{Système à jour}}</td>
			<?php 
$nbNeedUpdate = update::nbNeedUpdate();
if ($nbNeedUpdate > 0) {
    echo '<td class="alert alert-danger">' . $nbNeedUpdate . '</td>';
    echo '<td></td>';
} else {
    echo '<td class="alert alert-success">{{OK}}</td>';
    echo '<td></td>';
}
?>
		</tr>

		<tr>
			<td style="font-weight : bold;">{{Lancement des crons}}</td>
			<?php 
if (!cron::ok()) {
    echo '<td class="alert alert-danger">{{NOK}}</td>';
    echo '<td></td>';
} else {
Example #16
0
<?php

if (!hasRight('objectview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
sendVarToJS('select_id', init('id', '-1'));
?>

<div style="position : fixed;height:100%;width:15px;top:50px;left:0px;z-index:998;background-color:#f6f6f6;" class="div_smallSideBar" id="bt_displayObject"><i class="fa fa-arrow-circle-o-right" style="color : #b6b6b6;"></i></div>

<div class="row row-overflow">
    <div class="col-md-2 col-sm-3" id="sd_objectList" style="z-index:999">
        <div class="bs-sidebar">
            <ul id="ul_object" class="nav nav-list bs-sidenav">
                <a id="bt_addObject" class="btn btn-default" style="width : 100%;margin-top : 5px;margin-bottom: 5px;"><i class="fa fa-plus-circle"></i> {{Ajouter objet}}</a>
                <li class="filter" style="margin-bottom: 5px;"><input class="filter form-control input-sm" placeholder="{{Rechercher}}" style="width: 100%"/></li>
                <?php 
$allObject = object::buildTree(null, false);
foreach ($allObject as $object) {
    $margin = 15 * $object->parentNumber();
    echo '<li class="cursor li_object bt_sortable" data-object_id="' . $object->getId() . '">';
    echo '<i class="fa fa-arrows-v pull-left cursor"></i>';
    echo '<a style="position:relative;left:' . $margin . 'px;">';
    echo $object->getHumanName(true, true);
    echo '</a>';
    echo '</li>';
}
?>
           </ul>
       </div>
   </div>
Example #17
0
<?php

if (!hasRight('logview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
$page = init('page', 1);
$logfile = init('logfile', 'core');
$list_logfile = array();
$dir = opendir('log/');
$logExist = false;
while ($file = readdir($dir)) {
    if ($file != '.' && $file != '..' && !is_dir('log/' . $file)) {
        $list_logfile[] = $file;
        if ($logfile == $file) {
            $logExist = true;
        }
    }
}
natcasesort($list_logfile);
if ((!$logExist || $logfile == '') && count($list_logfile) > 0) {
    $logfile = $list_logfile[0];
}
if ($logfile == '') {
    throw new Exception('No log file');
}
?>
<a class="btn btn-danger pull-right" id="bt_removeAllLog"><i class="fa fa-trash-o"></i> {{Supprimer tous les logs}}</a>
<a class="btn btn-danger pull-right" id="bt_removeLog"><i class="fa fa-trash-o"></i> {{Supprimer}}</a>
<a class="btn btn-warning pull-right" id="bt_clearLog"><i class="fa fa-times"></i> {{Vider}}</a>
<a class="btn btn-success pull-right" id="bt_downloadLog"><i class="fa fa-cloud-download"></i> {{Télécharger}}</a>
<a class="btn btn-primary pull-right" id="bt_refreshLog"><i class="fa fa-refresh"></i> {{Rafraîchir}}</a>
Example #18
0
<?php

if (!hasRight('interactview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
$interacts = array();
$interacts[-1] = interactDef::all(null);
$interactListGroup = interactDef::listGroup();
if (is_array($interactListGroup)) {
    foreach ($interactListGroup as $group) {
        $interacts[$group['group']] = interactDef::all($group['group']);
    }
}
?>

<div style="position : fixed;height:100%;width:15px;top:50px;left:0px;z-index:998;background-color:#f6f6f6;" id="bt_displayInteractList"><i class="fa fa-arrow-circle-o-right" style="color : #b6b6b6;"></i></div>

<div class="row row-overflow">
    <div class="col-lg-2 col-md-3 col-sm-4" id="div_listInteract" style="z-index:999">
        <div class="bs-sidebar">

            <a id="bt_addInteract" class="btn btn-default" style="width : 100%;margin-top : 5px;margin-bottom: 5px;"><i class="fa fa-plus-circle"></i> {{Ajouter interaction}}</a>
            <div class="row">
                <div class="col-xs-6">
                    <a id="bt_regenerateInteract" class="btn btn-warning" style="width : 100%;margin-top : 5px;margin-bottom: 5px;text-shadow : none;"><i class="fa fa-refresh"></i> {{Regénérer}}</a>
                </div>
                <div class="col-xs-6">
                    <a id="bt_testInteract" class="btn btn-primary" style="width : 100%;margin-top : 5px;margin-bottom: 5px;text-shadow : none;"><i class="fa fa-comment-o"></i> {{Tester}}</a>
                </div>
            </div>
Example #19
0
<?php

if (!hasRight('scenarioview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
$scenarios = array();
$scenarios[-1] = scenario::all(null);
$scenarioListGroup = scenario::listGroup();
if (is_array($scenarioListGroup)) {
    foreach ($scenarioListGroup as $group) {
        $scenarios[$group['group']] = scenario::all($group['group']);
    }
}
?>

<div style="position : fixed;height:100%;width:15px;top:50px;left:0px;z-index:998;background-color:#f6f6f6;" id="bt_displayScenarioList"><i class="fa fa-arrow-circle-o-right" style="color : #b6b6b6;"></i></div>

<div class="row row-overflow">
    <div class="col-lg-2 col-md-3 col-sm-4" id="div_listScenario" style="z-index:999">
        <div class="bs-sidebar nav nav-list bs-sidenav">
            <a class="btn btn-success pull-right form-control" id="bt_switchToExpertMode" href="index.php?v=d&p=scenario" style="text-shadow: none;"><i class="fa fa-toggle-off"></i> {{Interface simple}}</a>
            <center>
                <div class="col-xs-6">
                    <?php 
if (config::byKey('enableScenario') == 0) {
    echo '<a class="btn btn-sm btn-success expertModeVisible" id="bt_changeAllScenarioState" data-state="1" style="margin-top : 3px;text-shadow: none;" ><i class="fa fa-check"></i> {{Act. scénarios}}</a>';
} else {
    echo '<a class="btn btn-sm btn-danger expertModeVisible" id="bt_changeAllScenarioState" data-state="0" style="margin-top : 3px;text-shadow: none;" ><i class="fa fa-times"></i> {{Désac. scénarios}}</a>';
}
?>
               </div>
Example #20
0
<?php

if (!hasRight('dashboardview')) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
if (init('object_id') == '') {
    $object = object::byId($_SESSION['user']->getOptions('defaultDashboardObject'));
} else {
    $object = object::byId(init('object_id'));
}
if (!is_object($object)) {
    $object = object::rootObject();
}
if (!is_object($object)) {
    throw new Exception('{{Aucun objet racine trouvé. Pour en créer un, allez dans Général -> Objet.<br/> Si vous ne savez pas quoi faire ou que c\'est la première fois que vous utilisez Jeedom n\'hésitez pas à consulter cette <a href="http://jeedom.fr/premier_pas.php" target="_blank">page</a>}}');
}
$child_object = object::buildTree($object);
$parentNumber = array();
?>

<div class="row row-overflow">
	<?php 
if ($_SESSION['user']->getOptions('displayObjetByDefault') == 1) {
    echo '<div class="col-lg-2 col-md-3 col-sm-4" id="div_displayObjectList">';
} else {
    echo '<div class="col-lg-2 col-md-3 col-sm-4" style="display:none;" id="div_displayObjectList">';
}
?>

	<div class="bs-sidebar">
		<ul id="ul_object" class="nav nav-list bs-sidenav">
Example #21
0
<?php

if (!hasRight('displayview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
$nbEqlogic = 0;
$nbCmd = 0;
$objects = object::all();
$eqLogics = array();
$cmds = array();
$eqLogics[-1] = eqLogic::byObjectId(null, false);
foreach ($eqLogics[-1] as $eqLogic) {
    $cmds[$eqLogic->getId()] = $eqLogic->getCmd();
    $nbCmd += count($cmds[$eqLogic->getId()]);
}
$nbEqlogic += count($eqLogics[-1]);
foreach ($objects as $object) {
    $eqLogics[$object->getId()] = $object->getEqLogic(false, false);
    foreach ($eqLogics[$object->getId()] as $eqLogic) {
        $cmds[$eqLogic->getId()] = $eqLogic->getCmd();
        $nbCmd += count($cmds[$eqLogic->getId()]);
    }
    $nbEqlogic += count($eqLogics[$object->getId()]);
}
?>
<style>
	.eqLogicSortable{
		list-style-type: none;
		min-height: 20px;
		padding-left: 0px;
	}
Example #22
0
<?php

if (!hasRight('viewedit')) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
?>

<style>
    .viewZone{
        padding: 9.5px;
        margin: 0 0px 5px;
        font-size: 13px;
        line-height: 20px;
        background-color: #f5f5f5;
        border: 1px solid #ccc;
        border: 1px solid rgba(0,0,0,0.15);
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
    }
</style>

<div class="row row-overflow">
    <div class="col-lg-2 col-md-3 col-sm-4">
        <div class="bs-sidebar">
            <ul id="ul_view" class="nav nav-list bs-sidenav">
                <a id="bt_addView" class="btn btn-default" style="width : 100%;margin-top : 5px;margin-bottom: 5px;"><i class="fa fa-plus-circle"></i> {{Créer une vue}}</a>
                <li class="filter" style="margin-bottom: 5px;"><input class="filter form-control input-sm" placeholder="{{Rechercher}}" style="width: 100%"/></li>
                <?php 
foreach (view::all() as $view) {
    echo '<li class="cursor li_view" data-view_id="' . $view->getId() . '"><a>' . $view->getName() . '</a></li>';
Example #23
0
<?php

if (!hasRight('securityview', true)) {
    throw new Exception('{{401 - Accès non autorisé}}');
}
?>
<ul class="nav nav-tabs" id="security_tab">
    <li class="active"><a href="#status">{{Statut}}</a></li>
    <li><a href="#config">{{Configuration}}</a></li>
</ul>


<div class="tab-content">
    <div class="tab-pane active" id="status">
        <br/>
        <table id="table_security" class="table table-bordered table-condensed tablesorter" >
            <thead>
                <tr>
                    <th class="ip" style="width: 80px;">{{IP}}</th>
                    <th class="username">{{Utilisateur}}</th>
                    <th class="username">{{Localisation}}</th>
                    <th class="failure">{{Echec de connexion}}</th>
                    <th class="datetime">{{Date}}</th>
                    <th class="username">{{Statut}}</th>
                    <th class="username">{{Informations}}</th>
                    <th class="username" style="width: 200px;">{{Action}}</th>
                </tr>
            </thead>
            <tbody>
                <?php 
foreach (connection::all() as $connection) {