/**
  * Cette classe est un singleton
  * @return ActionsAdminModules une instance de ActionsAdminModules
  */
 public static function instance()
 {
     if (self::$instance === false) {
         self::$instance = new ActionsAdminModules();
     }
     return self::$instance;
 }
Beispiel #2
0
</button>
                </div>
            </form>
            </div>
            
        </div>
</div>
        
</div>
    
<div id="module_bloc" style="display:none">
test
</div>

<?php 
ActionsAdminModules::instance()->inclure_module_admin("promo_bottom");
?>

<?php 
require_once "pied.php";
?>
<link type="text/css" href="js/jquery-ui-1.9.1/css/ui-lightness/jquery-ui-1.9.1.custom.min.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-ui-1.9.1/js/jquery-ui-1.9.1.custom.min.js"></script>
<script type="text/javascript">

jQuery(function($)
{
    /*modal*/
    var cancelModal = false;
    $('#deleteModal').on('show', function (e, x)
    {
Beispiel #3
0
    <link rel="shortcut icon" href="favicon.ico" />
    
    <meta charset="utf-8">
    <title>Thelia - Back Office</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
<!-- Le styles -->
    <link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/bootstrap-responsive.css" rel="stylesheet">
    
    <link href="css/styles.css" rel="stylesheet">
    
    <!-- Le javascript
    ================================================== -->
    <script src="js/jquery.js"></script>
    <script src="js/bootstrap.js"></script>
    <script src="js/general.js"></script>
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
		
<?php 
ActionsAdminModules::instance()->inclure_module_admin("title");
    echo trad('Ajoutauto', 'admin');
    ?>
</td>
				        <td><input type="checkbox" name="ajoutrub" value="1" checked="checked" /><?php 
    echo trad('Ajout_carac_toutes_rubriques', 'admin');
    ?>
</td>
				   	</tr>
				   	<?php 
}
?>
				</table>
			</div>

			<?php 
ActionsAdminModules::instance()->inclure_module_admin("caracteristiquemodifier");
?>

			<?php 
if ($id != "") {
    ?>
				<div class="flottant">

					<div class="entete_liste_config">
						<div class="titre"><?php 
    echo trad('INFORMATIONS_SUR_CARACTERISTIQUE', 'admin');
    ?>
</div>
					</div>

					<table width="100%" cellpadding="5" cellspacing="0">
    ?>
</li>
				<li class="cellule"><input type="text" name="urlreecrite" value="<?php 
    echo htmlspecialchars(rewrite_cont("{$contenu->id}", $lang));
    ?>
" class="form_long" /></li>
			</ul>

		<div class="bloc_fleche" style="cursor:pointer" onclick="$('#pliantsinfos').hide();"><img src="gfx/fleche_accordeon_up.gif" /></div>

</div>
 <?php 
}
?>
 <?php 
ActionsAdminModules::instance()->inclure_module_admin("contenumodifier");
?>
   </form>

</div>
 <?php 
if ($id != "") {
    ?>
<!-- bloc de gestion des photos et documents / colonne de droite -->
<div id="bloc_photos">
<!-- début du bloc Boite à outils du contenu -->
<div class="entete">
	<div class="titre"><?php 
    echo trad('BOITE_OUTILS', 'admin');
    ?>
</div>
Beispiel #6
0
function afficher_liste_plugins($type, $label)
{
    ?>
    <div class="bigtable">
    <table class="table table-striped">
        <thead>
        <caption><h4><?php 
    echo $label;
    ?>
</h4></caption> 
        </thead>
        <tbody>
            <?php 
    foreach (ActionsAdminModules::instance()->lister($type) as $plugin) {
        ?>
            <?php 
        $documentation = '';
        if (trim($plugin->xml->documentation) != "") {
            $doc_file = sprintf("%s/%s", ActionsAdminModules::instance()->lire_chemin_module($plugin->nom), $plugin->xml->documentation);
            if (file_exists($doc_file)) {
                $documentation = sprintf("%s/%s/%s", ActionsAdminModules::instance()->lire_url_base(), $plugin->nom, $plugin->xml->documentation);
            }
        }
        ?>
            <tr class="<?php 
        if ($plugin->actif != 1) {
            echo "warning";
        } else {
            echo "success";
        }
        ?>
">
                <td class="span9">
                    <strong><?php 
        echo ActionsAdminModules::instance()->lire_titre_module($plugin);
        echo $plugin->xml->version != '' ? " v" . $plugin->xml->version : '';
        ?>
</strong>
                    <p><small><?php 
        echo $plugin->xml->descriptif->description != "" ? $plugin->xml->descriptif->description : trad('Description non disponible', 'admin');
        ?>
</small></p>
                </td>
                <td>
                    <?php 
        if ($plugin->activable && $plugin->type != Modules::FILTRE) {
            ?>
                        <a href="plugins_modifier.php?nom=<?php 
            echo $plugin->nom;
            ?>
&actif=0"><?php 
            echo trad('Editer', 'admin');
            ?>
</a>
                    <?php 
        }
        ?>
                </td>
                <td>
                    <?php 
        if ($plugin->actif) {
            ?>
                        <a href="plugins.php?action=desactiver&nom=<?php 
            echo $plugin->nom;
            ?>
"><?php 
            echo trad('Desactiver', 'admin');
            ?>
</a>
                    <?php 
        } elseif ($plugin->activable) {
            ?>
                        <a href="plugins.php?action=activer&nom=<?php 
            echo $plugin->nom;
            ?>
"><?php 
            echo trad('Activer', 'admin');
            ?>
</a>
                    <?php 
        } else {
            ?>
                        <?php 
            if (!empty($plugin->xml->thelia)) {
                ?>
                            <?php 
                echo trad('Nécessite Thelia %s', 'admin', $plugin->xml->thelia);
                ?>
                        <?php 
            } else {
                ?>
                            <?php 
                echo trad('Incompatible', 'admin');
                ?>
                        <?php 
            }
            ?>
                    <?php 
        }
        ?>
                </td>
                <td>
                   <?php 
        if (!empty($documentation)) {
            ?>
                        <a href="<?php 
            echo $documentation;
            ?>
" target="_doc_module" title="<?php 
            echo trad("Lire la documentation ce plugin");
            ?>
"><?php 
            echo trad('Documentation', 'admin');
            ?>
</a>
                    <?php 
        }
        ?>
                </td>
                <td>
                    <a href="plugins.php?id=<?php 
        echo $plugin->id;
        ?>
&action=modclassement&type=M"><i class="icon-arrow-up"></i></a>
                    <span class="object_classement_editable" object-action="changeClassementPlugin" object-id="<?php 
        echo $plugin->id;
        ?>
"><?php 
        echo $plugin->classement;
        ?>
</span>
                    <a href="plugins.php?id=<?php 
        echo $plugin->id;
        ?>
&action=modclassement&type=D"><i class="icon-arrow-down"></i></a>
                </td>
                <td>
                    <div class="btn-group">
                        <a class="btn btn-mini" href="plugins.php?action=supprimer&nom=<?php 
        echo $plugin->nom;
        ?>
" title="<?php 
        echo trad("Supprimer ce plugin", 'admin');
        ?>
" ><i class="icon-trash"></i></a>
                    </div>
                </td>
            </tr>
            <?php 
    }
    ?>
        </tbody>
    </table>
</div>
<?php 
}
            </table>

        </div>
        <div class="modal-footer">
            <a class="btn" data-dismiss="modal" aria-hidden="true"><?php 
echo trad('Cancel', 'admin');
?>
</a>
            <button class="btn btn-primary" id="btn_ajout_produit" style="display: none;"><?php 
echo trad('Ajouter', 'admin');
?>
</button>
        </div>
    </div>
<?php 
ActionsAdminModules::instance()->inclure_module_admin("commande_creer_bottom");
?>
    
<?php 
require_once "pied.php";
?>

    
<script type="text/javascript">

/*variables from PHP*/
var PHP_verifstock = <?php 
echo Variable::lire("verifstock", 0) == 1 ? 'true' : 'false';
?>
;
Beispiel #8
0
    $_SESSION['rapportInstallModules'] = array();
    $repertoirePlugin = __DIR__ . "/../client/plugins/";
    $lienModules = isset($_REQUEST['modules']) ? $_REQUEST['modules'] : array();
    foreach ($lienModules as $lienModule) {
        $nomModule = substr($lienModule, strrpos($lienModule, '/') + 1, strrpos($lienModule, '.zip') - strrpos($lienModule, '/') - 1);
        if ($fichierModule = file_get_contents($lienModule)) {
            file_put_contents($repertoirePlugin . $nomModule . '.zip', $fichierModule);
            $archive = new PclZip($repertoirePlugin . $nomModule . '.zip');
            $resul = $archive->extract(PCLZIP_OPT_PATH, $repertoirePlugin);
            @unlink($repertoirePlugin . $nomModule . '.zip');
            if ($resul == 0) {
                $_SESSION['rapportInstallModules'][] = "Echec à l'installation du module {$nomModule}. Vous devrez l'installer manuellement.";
            } elseif (isset($_REQUEST['active_' . $nomModule]) && $_REQUEST['active_' . $nomModule] == 1) {
                /*le module doit être activé*/
                ActionsAdminModules::instance()->mettre_a_jour();
                ActionsAdminModules::instance()->activer($nomModule);
                $_SESSION['rapportInstallModules'][] = "Module {$nomModule} installé et activé.";
            } else {
                $_SESSION['rapportInstallModules'][] = "Module {$nomModule} installé.";
            }
        }
    }
}
$_SESSION['etape'] = 6;
include __DIR__ . "/entete.php";
?>
<div id="chapeau"style="overflow:hidden;zoom: 1">
<h2>Fin de l'installation</h2>

<br />
Beispiel #9
0
                        ActionsAdminModules::instance()->installer($plugin, $plugin_name);
                    } else {
                        throw new TheliaException(trad("L'envoi du fichier a échoué", 'admin'), TheliaException::MODULE_ECHEC_UPLOAD);
                    }
                }
                break;
            case 'modclassement':
                $module = new Modules($id);
                $module->changer_classement($id, $type);
                redirige("plugins.php#mod_{$id}");
                break;
        }
        redirige($_SERVER['PHP_SELF']);
    }
    // Mise a jour de la base suivant le contenu du repertoire plugins
    ActionsAdminModules::instance()->mettre_a_jour();
} catch (Exception $ex) {
    $message_erreur = $ex->getMessage() . ' (erreur ' . $ex->getCode() . ')';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<?php 
require_once "title.php";
?>

<script src="../lib/jquery/jeditable.js" type="text/javascript"></script>

<script type="text/javascript">
                    <td><?php 
echo trad('Gestion_droit', 'admin');
?>
</td>
                    <td><a class="btn btn-mini" href="droits.php"><i class="icon-edit"></i></a></td>
                </tr>
                <tr>
                    <td><?php 
echo trad('Gestion_mail', 'admin');
?>
</td>
                    <td><a class="btn btn-mini" href="smtp.php"><i class="icon-edit"></i></a></td>
                </tr>
                <tr>
                    <td><?php 
echo trad('Gestion_langue', 'admin');
?>
</td>
                    <td><a class="btn btn-mini" href="langue.php"><i class="icon-edit"></i></a></td>
                </tr>
            </table>
            </div>
        </div>
    </div>
<?php 
ActionsAdminModules::instance()->inclure_module_admin("configuration_bottom");
require_once "pied.php";
?>
 
</body>
</html>
Beispiel #11
0
function afficher_liste_plugins($type, $label)
{
    ?>
	<tr>
		<th class="entete_configuration" colspan="6"><a id="T<?php 
    echo $type;
    ?>
"></a><?php 
    echo $label;
    ?>
</th>
	</tr>
	<?php 
    $liste = ActionsAdminModules::instance()->lister($type);
    $fond = 'fonce';
    foreach ($liste as $plugin) {
        $titre = ActionsAdminModules::instance()->lire_titre_module($plugin);
        $description = (string) $plugin->xml->descriptif->chapo;
        $documentation = '';
        if (trim($plugin->xml->documentation) != "") {
            $doc_file = sprintf("%s/%s", ActionsAdminModules::instance()->lire_chemin_module($plugin->nom), $plugin->xml->documentation);
            if (file_exists($doc_file)) {
                $documentation = sprintf("%s/%s/%s", ActionsAdminModules::instance()->lire_url_base(), $plugin->nom, $plugin->xml->documentation);
            }
        }
        if (empty($description)) {
            $description = (string) $plugin->xml->descriptif->description;
        }
        if (empty($description)) {
            $description = trad('Description non disponible', 'admin');
        }
        ?>
		<tr class="<?php 
        echo $fond;
        if ($plugin->actif != 1) {
            echo " plugininactif";
        }
        ?>
">

			<td class="titre">
				<a name="mod_<?php 
        echo $plugin->id;
        ?>
"></a>
				<?php 
        echo $titre;
        echo $plugin->xml->version != '' ? " v" . $plugin->xml->version : '';
        ?>
			</td>

			<td rowspan="2" style="width: 50px;">
				<?php 
        if ($plugin->activable && $plugin->type != Modules::FILTRE) {
            ?>
					<a href="plugins_modifier.php?nom=<?php 
            echo $plugin->nom;
            ?>
&actif=0" class="txt_vert_11"><?php 
            echo trad('Editer', 'admin');
            ?>
</a>&nbsp;
				<?php 
        }
        ?>
			</td>

			<td rowspan="2" style="width: 50px;">
				<?php 
        if ($plugin->actif) {
            ?>
					<a href="plugins.php?action=desactiver&nom=<?php 
            echo $plugin->nom;
            ?>
&actif=0#T<?php 
            echo $type;
            ?>
" class="txt_vert_11"><?php 
            echo trad('Desactiver', 'admin');
            ?>
</a>&nbsp;
				<?php 
        } else {
            if ($plugin->activable) {
                ?>
					<a href="plugins.php?action=activer&nom=<?php 
                echo $plugin->nom;
                ?>
&actif=1#T<?php 
                echo $type;
                ?>
" class="txt_vert_11"><?php 
                echo trad('Activer', 'admin');
                ?>
</a>&nbsp;
				<?php 
            } else {
                ?>
					<span style="text-align: center; color: #f00; font-weight: bold"><?php 
                if (!empty($plugin->xml->thelia)) {
                    echo trad('Nécessite Thelia %s', 'admin', $plugin->xml->thelia);
                } else {
                    echo trad('Incompatible', 'admin');
                }
                ?>
</span>&nbsp;
				<?php 
            }
        }
        ?>
			</td>

			<td rowspan="2" style="width: 30px; text-align: center;">
				<?php 
        if (!empty($documentation)) {
            ?>
					<a href="<?php 
            echo $documentation;
            ?>
" target="_doc_module" title="<?php 
            echo trad("Lire la documentation ce plugin");
            ?>
"><?php 
            echo trad('Documentation', 'admin');
            ?>
</a>
				<?php 
        }
        ?>
			</td>

			<td rowspan="2" style="width: 30px; text-align: center;">
			 <div class="bloc_classement">
			    <div class="classement"><a href="plugins.php?id=<?php 
        echo $plugin->id;
        ?>
&action=modclassement&type=M"><img src="gfx/up.gif" border="0" /></a></div>
			    <div class="classement"><span id="classementplugin_<?php 
        echo $plugin->id;
        ?>
" class="classement_edit"><?php 
        echo $plugin->classement;
        ?>
</span></div>
			    <div class="classement"><a href="plugins.php?id=<?php 
        echo $plugin->id;
        ?>
&action=modclassement&type=D"><img src="gfx/dn.gif" border="0" /></a></div>
			 </div>
			</td>

			<td rowspan="2" style="width: 30px; text-align: center;">
				<a href="plugins.php?action=supprimer&nom=<?php 
        echo $plugin->nom;
        ?>
#T<?php 
        echo $type;
        ?>
" title="<?php 
        echo trad("Supprimer ce plugin", 'admin');
        ?>
" onclick="return supprimer('<?php 
        echo str_replace("'", "\\'", $titre);
        ?>
');"><img src="gfx/supprimer.gif" width="9" height="9" border="0" /></a>
			</td>
		</tr>

		<tr class="<?php 
        echo $fond;
        ?>
 modules_info<?php 
        if ($plugin->actif != 1) {
            echo " plugininactif";
        }
        ?>
">
			<td><span style="font-size: 0.9em"><?php 
        echo $description;
        ?>
 (ID : <?php 
        echo $plugin->id;
        ?>
)</span></td>
		</tr>
		<?php 
        $fond = $fond == 'fonce' ? 'claire' : 'fonce';
    }
    if (empty($liste)) {
        ?>
		<tr class="claire">
			<td colspan="6"><?php 
        echo trad('Aucunplugin', 'admin');
        ?>
</td>
		</tr>
		<?php 
    }
    ?>
	<tr>
		<td colspan="6" class="separateur"></td>
	</tr>
	<?php 
}
Beispiel #12
0
            </div>
        </div>

    </div>
</div>

<div class="row-fluid">
    <div class="span12">
        <?php 
ActionsAdminModules::instance()->inclure_module_admin("recherche");
?>
    </div>
</div>

<?php 
ActionsAdminModules::instance()->inclure_module_admin("recherche_bottom");
?>
    
<?php 
require_once "pied.php";
?>
<link type="text/css" href="js/jquery-ui-1.9.1/css/ui-lightness/jquery-ui-1.9.1.custom.min.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-ui-1.9.1/js/jquery-ui-1.9.1.custom.min.js"></script>
<script type="text/javascript">

jQuery(function($)
{
    /*modal*/
    $('.js-delete-client').click(function()
    {
        $('#clientDelationInfo').html($(this).attr('client-ref') + ' - ' + $(this).attr('client-info'));
                            </div>
                        </div>
                        <?php 
}
?>
                    </div>
                    <div id="moduleTab" class="tab-pane <?php 
if ($tab == "moduleTab") {
    echo "active";
}
?>
">
                        <div class="row-fluid">
                            <div class="span12">
                                <?php 
ActionsAdminModules::instance()->inclure_module_admin("rubriquemodifier");
?>
                            </div>
                        </div>
                    </div>
                </div>
                <p>
                    <button class="btn btn-large btn-block btn-primary" type="submit"><?php 
echo trad('VALIDER_LES_MODIFICATIONS', 'admin');
?>
</button>
                </p>
            </form>
        </div>
    </div>
<!-- form not saved -->
Beispiel #14
0
            </table>
        </div>
        <div class="modal-footer">
            <a class="btn" data-dismiss="modal" aria-hidden="true"><?php 
echo trad('Cancel', 'admin');
?>
</a>
            <button type="submit" class="btn btn-primary"><?php 
echo trad('Ajouter', 'admin');
?>
</button>
        </div>
        </form>
    </div>
<?php 
ActionsAdminModules::instance()->inclure_module_admin("message_bottom");
require_once "pied.php";
?>
 
<script type="text/javascript">
    $(document).ready(function(){
        $(".js-delete-message").click(function(){
            $("#messageDelationInfo").html($(this).attr("message-intitule"));
            $("#messageDelationLink").attr("href","message.php?action=supprimer&id="+$(this).attr("message-id"));
            $("#deleteMessage").modal("show");
        })
    });
    <?php 
if ($errorCode == TheliaAdminException::MESSAGE_NAME_EMPTY || $errorCode == TheliaAdminException::MESSAGE_ALREADY_EXISTS) {
    ?>
        $('#messageAddModal').modal('show');
Beispiel #15
0
if (!est_autorise("acces_modules")) {
    exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php 
require_once "title.php";
?>
</head>

<body>
<div id="wrapper">
<div id="subwrapper">

<?php 
$menu = "plugins";
require_once "entete.php";
try {
    require_once ActionsAdminModules::instance()->trouver_fichier_admin($nom);
} catch (Exception $e) {
    die($e->getMessage());
}
require_once "pied.php";
?>
</div>
</div>
</body>
</html>
Beispiel #16
0
            </div>
            <div class="modal-footer">
                <a class="btn" data-dismiss="modal" aria-hidden="true"><?php 
echo trad('Cancel', 'admin');
?>
</a>
                <button type="submit" class="btn btn-primary"><?php 
echo trad('Ajouter', 'admin');
?>
</button>
            </div>
            </form>
        </div>
<?php 
ActionsAdminModules::instance()->inclure_module_admin("parcourir_bottom");
?>
           
<?php 
require_once "pied.php";
?>
 
<script type="text/javascript" src="js/Thelia.js"></script>
<script type="text/javascript" src="js/jeditable.min.js"></script>
<script>
$(document).ready(function(){

    //put online/offline category
    $(".categoryDisplay").click(function(){
        $.ajax({
           url : 'ajax/rubrique.php',
            </table>
        </div>
        <div class="modal-footer">
            <a class="btn" data-dismiss="modal" aria-hidden="true"><?php 
echo trad('Cancel', 'admin');
?>
</a>
            <button type="submit" class="btn btn-primary"><?php 
echo trad('Ajouter', 'admin');
?>
</button>
        </div>
        </form>
    </div>
<?php 
ActionsAdminModules::instance()->inclure_module_admin("declinaison_modifier_bottom");
require_once "pied.php";
?>
 
<script type="text/javascript" src="js/Thelia.js"></script>
<script type="text/javascript" src="js/jeditable.min.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $(".js-delete-declidisp").click(function(e){
            e.preventDefault();
            $("#deleteLink").attr("href","declinaison_modifier.php?id=<?php 
echo $declinaison->id;
?>
&declidisp_id="+$(this).attr("declidisp-id")+"&action=delDeclidisp&lang=<?php 
echo $lang;
?>
</li>
	</ul>
	<ul class="ligne_claire_BlocDescription">
		<li class="designation" style="width:290px;"><?php 
echo trad('Telephone', 'admin');
?>
</li>
		<li><?php 
echo $adr->tel;
?>
</li>
	</ul>
</div>

<?php 
ActionsAdminModules::instance()->inclure_module_admin("commandedetails");
?>

</div>
<!-- fin du bloc description -->
<!-- bloc colonne de droite -->
<div id="bloc_colonne_droite">
	<div class="entete_client">
		<div class="titre"><?php 
echo trad('STATUT_REGLEMENT', 'admin');
?>
</div>
		<div class="statut">
					<form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
Beispiel #19
0
function modifier_transports($idtransport)
{
    $transzone = new Transzone();
    $zone = new Zone();
    $tr = new Modules();
    if ($tr->charger_id($_GET['id'])) {
        $zone = new Zone();
        ?>
		<div class="entete_liste_config" style="margin-top:15px;">
			<div class="titre"><?php 
        echo trad('MODIFICATION_TRANSPORT', 'admin') . ' ' . ActionsAdminModules::instance()->lire_titre_module($tr);
        ?>
</div>
		</div>

		<ul class="ligne1">
			<li style="width:250px;">
				<select class="form_select" id="zone">
				<?php 
        $query = "select * from {$zone->table}";
        $resul = $transzone->query($query);
        while ($resul && ($row = $transzone->fetch_object($resul))) {
            $test = new Transzone();
            if (!$test->charger($idtransport, $row->id)) {
                ?>
		     	<option value="<?php 
                echo $row->id;
                ?>
"><?php 
                echo $row->nom;
                ?>
</option>
		     	<?php 
            }
        }
        ?>
				</select>
			</li>
			<li><a href="javascript:ajouter($('#zone').val())"><?php 
        echo trad('AJOUTER_ZONE', 'admin');
        ?>
</a></li>
		</ul>

		<?php 
        $query = "select * from {$transzone->table} where transport=\"" . $idtransport . "\"";
        $resul = $transzone->query($query);
        $i = 0;
        while ($resul && ($row = $transzone->fetch_object($resul))) {
            $zone = new Zone();
            $zone->charger($row->zone);
            $fond = "ligne_" . ($i++ % 2 ? "fonce" : "claire") . "_BlocDescription";
            ?>
			<ul class="<?php 
            echo $fond;
            ?>
">
					<li style="width:492px;"><?php 
            echo $zone->nom;
            ?>
</li>
					<li style="width:32px;"><a href="javascript:supprimer(<?php 
            echo $row->id;
            ?>
)"><?php 
            echo trad('Supprimer', 'admin');
            ?>
</a></li>
			</ul>
			<?php 
        }
    }
}
Beispiel #20
0
            </div>
            <div class="modal-footer">
                <a class="btn" data-dismiss="modal" aria-hidden="true"><?php 
echo trad('Cancel', 'admin');
?>
</a>
                <button type="submit" class="btn btn-primary"><?php 
echo trad('Ajouter', 'admin');
?>
</button>
            </div>
            </form>
        </div>
<?php 
ActionsAdminModules::instance()->inclure_module_admin("listdos_bottom");
?>
        
<?php 
require_once "pied.php";
?>
 
<script type="text/javascript" src="js/Thelia.js"></script>
<script type="text/javascript" src="js/jeditable.min.js"></script>
<script>
$(document).ready(function(){

    //put online/offline folder
    $(".folderDisplay").click(function(){
        $.ajax({
           url : 'ajax/dossier.php',
Beispiel #21
0
</div>
</div><!-- fin div id=wrapper -->
<hr>
<?php 
ActionsAdminModules::instance()->inclure_module_admin("pied_top");
?>
      <footer class="modal-footer">
				<div class="container">
					<p>&copy; Thelia 2012 
					- <a href="http://www.openstudio.fr/" target="_blank">&Eacute;dit&eacute; par OpenStudio</a>
					- <a href="http://forum.thelia.net/" target="_blank">Forum Thelia</a>
					- <a href="http://contrib.thelia.net/" target="_blank">Contributions Thelia</a>
                                        <span class="pull-right">interface par <a target="_blank" href="http://www.steaw-webdesign.com/">Steaw-Webdesign</a></span>
					</p>
                                        
				</div>
      </footer>
</div> <!-- fin div class=bg-image -->
    
     <?php 
ActionsAdminModules::instance()->inclure_module_admin("post");
// Le parametre est passé par reference: utiliser un variable intermédiaire
$tmp = "";
Tlog::ecrire($tmp);
echo $tmp;
 public function changePermissions($profil, $generalPermissions, $pluginsPermissions)
 {
     $this->verifyLoaded();
     if ($generalPermissions === null) {
         $generalPermissions = array();
     }
     if ($pluginsPermissions === null) {
         $pluginsPermissions = array();
     }
     $testProfil = new Profil();
     if (!$testProfil->charger_id($profil) && $profil != 0) {
         throw new TheliaAdminException('Incorrect parameter $profil : could not load Profil.', TheliaAdminException::PROFIL_NOT_FOUND);
     }
     if ($profil != 0) {
         $this->profil = $profil;
         $this->maj();
     }
     if ($this->profil != ProfilAdmin::ID_PROFIL_SUPERADMINISTRATEUR) {
         foreach ($this->query_liste("SELECT * FROM " . Autorisation::TABLE) as $row) {
             $autorisation_administrateur = new Autorisation_administrateur();
             $autorisation_administrateur->charger($row->id, $this->id);
             if (array_key_exists($row->id, $generalPermissions) && $generalPermissions[$row->id] == 'on') {
                 if (!$autorisation_administrateur->id) {
                     $autorisation_administrateur->administrateur = $this->id;
                     $autorisation_administrateur->autorisation = $row->id;
                     $autorisation_administrateur->lecture = 0;
                     $autorisation_administrateur->ecriture = 0;
                     $autorisation_administrateur->id = $autorisation_administrateur->add();
                 }
                 $autorisation_administrateur->lecture = 1;
                 $autorisation_administrateur->ecriture = 1;
                 $autorisation_administrateur->maj();
             } else {
                 if ($autorisation_administrateur->id) {
                     $autorisation_administrateur->lecture = 0;
                     $autorisation_administrateur->ecriture = 0;
                     $autorisation_administrateur->maj();
                 }
             }
         }
         foreach (ActionsAdminModules::instance()->lister(false, true) as $module) {
             if (ActionsAdminModules::instance()->est_administrable($module->nom)) {
                 $autorisation_modules = new Autorisation_modules();
                 $autorisation_modules->charger($module->id, $this->id);
                 if (array_key_exists($module->id, $pluginsPermissions) && $pluginsPermissions[$module->id] == 'on') {
                     if (!$autorisation_modules->id) {
                         $autorisation_modules->administrateur = $this->id;
                         $autorisation_modules->module = $module->id;
                         $autorisation_modules->id = $autorisation_modules->add();
                     }
                     $autorisation_modules->autorise = 1;
                     $autorisation_modules->maj();
                 } else {
                     if ($autorisation_modules->id) {
                         $autorisation_modules->autorise = 0;
                         $autorisation_modules->maj();
                     }
                 }
             }
         }
     }
     ActionsModules::instance()->appel_module("changePermissionsAdmin", new Administrateur($this->id));
     redirige('gestadm_droits.php?administrateur=' . $this->id);
 }
Beispiel #23
0
        }
        ?>
                <?php 
    }
    ?>
            </ul>
        <?php 
}
?>
    </div>

    <div id="wrapper" class="container"> <!--div id="subwrapper"> -->
<div class="<?php 
if (preg_match("`([^\\/]*).php`", $_SERVER['PHP_SELF'], $page) && in_array($page[1], $cataloguePage)) {
    echo "catalogue";
}
?>
">

<?php 
if (ActionsAdminModules::instance()->inclure_module_admin("entete_bottom")) {
    ?>
    <div class="row-fluid">
        <div class="span12">
            <?php 
    ActionsAdminModules::instance()->inclure_module_admin("entete_bottom");
    ?>
        </div>
    </div>
<?php 
}
?>
" style="width:30px" onclick="(document.getElementById('radio_expiration_1').checked='checked')" /><input type="radio" name="expiration" id="radio_expiration_1" value="1" <?php 
echo $nillimdate;
?>
 />
			   &nbsp; N'expire pas
			   <input type="radio" name="expiration" value="0" <?php 
echo $illimdate;
?>
 /></li>
	</ul>
</div>

<div class="patchplugin">
<?php 
ActionsAdminModules::instance()->inclure_module_admin("promomodifier");
?>
</div>

</form>


</div>
<!-- fin du bloc description -->

   </div>
   <?php 
require_once "pied.php";
?>
   </div>
   </div>
echo trad('Cancel', 'admin');
?>
</a>
                    <button type="submit" class="btn btn-primary"><?php 
echo trad('Ajouter', 'admin');
?>
</button>
                </div>
            </form>
            </div>
            
        </div>
    </div>

<?php 
ActionsAdminModules::instance()->inclure_module_admin("client_visualiser");
?>
    
<?php 
require_once "pied.php";
?>

    
<script type="text/javascript">

jQuery(function($)
{
    $('.js-delete-order').click(function()
    {
        $('#orderCancellationInfo').html('Ref. ' + $(this).attr('order-ref'));
        $('#orderCancellationLink').attr('href', 'client_visualiser.php?action=deleteOrder&id=' + $(this).attr('order-id') + '&ref=<?php 
Beispiel #26
0
		<?php 
$menu = "accueil";
require_once "entete.php";
?>

		<div id="contenu_int">
			 <?php 
if (est_autorise("acces_commandes")) {
    ?>
				<img src="graph.php" id="graph_accueil" alt="-" />
			<?php 
}
?>

			<?php 
ActionsAdminModules::instance()->inclure_module_admin("accueil");
?>

			<div id="bloc_informations">
				<?php 
if (est_autorise("acces_clients") || est_autorise("acces_catalogue") || est_autorise("acces_commandes")) {
    ?>
				<ul>
					<li class="entete"><?php 
    echo trad('INFORMATIONS_SITE', 'admin');
    ?>
</li>

					 <?php 
    if (est_autorise("acces_clients")) {
        ?>
Beispiel #27
0
</div>
		</div>

<?php 
$liste = ActionsAdminModules::instance()->lister(2, true);
$i = 0;
foreach ($liste as $module) {
    $fond = "ligne_" . ($i % 2 ? 'fonce' : 'claire') . "_BlocDescription";
    ?>

		<ul class="<?php 
    echo $fond;
    ?>
">
			<li style="width:534px;"><?php 
    echo ActionsAdminModules::instance()->lire_titre_module($module);
    ?>
</li>
			<li style="width:32px;"><a href="transport.php?id=<?php 
    echo $module->id;
    ?>
#lzone"><?php 
    echo trad('editer', 'admin');
    ?>
</a></li>
		</ul>
<?php 
    $i++;
}
?>
</div>
?>
</p>
    </div>
    <div class="modal-footer">
        <a class="btn" data-dismiss="modal" aria-hidden="true"><?php 
echo trad('Non', 'admin');
?>
</a>
        <a class="btn btn-primary" id="changeLangLink"><?php 
echo trad('Oui', 'admin');
?>
</a>
    </div>
</div>
<?php 
ActionsAdminModules::instance()->inclure_module_admin("dossier_modifier_bottom");
require_once "pied.php";
?>
 
<script type="text/javascript">
$(document).ready(function(){
    var form = 0;

    $("#formulaire").change(function(){
        form=1;
    });

    $(".change-page").click(function(e){
        if(form == 1){            
            e.preventDefault();
            $("#changeLangLink").attr("href",$(this).attr('href') + '&tab=' + $("ul#mainTabs li.active a").attr('href').substr(1));
Beispiel #29
0
        </div>
        <div class="modal-footer">
            <a class="btn" data-dismiss="modal" aria-hidden="true"><?php 
echo trad('Cancel', 'admin');
?>
</a>
            <button type="submit" class="btn btn-primary"><?php 
echo trad('Ajouter', 'admin');
?>
</button>
        </div>
    </form>
    </div>

<?php 
ActionsAdminModules::instance()->inclure_module_admin("droits_bottom");
?>
    
    
<?php 
require_once "pied.php";
?>
 
    
    
<script stype="text/javascript">
jQuery(function($)
{
    $('select[name="profil"]').change(function(e)
    {
        window.location = 'droits.php?profil=' + $(this).val();
Beispiel #30
0
        ?>
"><i class="icon-trash"></i></a></td>
                    </tr>
                    <?php 
    }
    ?>
                </tbody>
            </table>
        </div>
    </div>
    <?php 
}
?>
    
<?php 
ActionsAdminModules::instance()->inclure_module_admin("transport_bottom");
?>
    
<?php 
require_once "pied.php";
?>
 
    <?php 
if (false !== ($id = $request->query->get("id", false))) {
    ?>
    <script type="text/javascript">
        $(document).ready(function(){
           $("#addZone").live("click", function(e){
              e.preventDefault(); 
              var zoneid = $("#zone").val();
              $.ajax({