Exemplo n.º 1
0
</p><?php 
}
?>
    <table class="document-table">
    <?php 
$queryActivate = new httpQueryStr();
$queryActivateCategory = new httpQueryStr();
if (is_array($allArchives)) {
    foreach ($allArchives as $index => $archive) {
        if (!isset($id_archive)) {
            $id_archive = $index;
        }
        // Si le fichier n'est pas activé
        if (!in_array($archive, $allDbArchives)) {
            // Requête d'activation par catégorie
            $queryActivateCategory->add(array('indexForm' => $index, 'activeCat' => $archive));
            $queryActivateCategory->delete('active');
            // Requête d'activation sans catégorie
            $queryActivate->add(array('indexForm' => $index, 'active' => $archive));
            $queryActivate->delete('activeCat');
            ?>
    <tr>
        <td id="<?php 
            echo $index;
            ?>
" style="width: 68%">
            <!-- Activer par catégorie -->
            <!--        <a href="--><?php 
            //echo '?'.$queryActivateCategory.'#'.$index;
            ?>
<!--" class="activer" title="Activer par catégorie"></a>-->
Exemplo n.º 2
0
echo '?' . $queryAdd;
?>
" class="activer" title="Ajouter un utilisateur"></a>
    <h2>Comptes utilisateurs</h2>
<p>&nbsp;</p>
<p><img src="/img/grey-square.gif" width="800" height="1" alt="line" /></p>
   	<ul class="documentList active">
    <?php 
// Affichage du formulaire de création
if ($httpQuery->has('new') && !isset($confirm) && !isset($error)) {
    echo "<p>&nbsp;</p><h3>Nouveau compte utilisateur</h3>";
    include_once 'adminAccountForm.php';
}
foreach ($allUsers as $user) {
    $queryDelete->add(array('delete' => $user['id']));
    $queryEdit->add(array('edit' => $user['id']));
    $isActiveUser = $httpQuery->edit == $user['id'];
    ?>
       <li id="<?php 
    echo $user['id'];
    ?>
" class="<?php 
    if ($isActiveUser && isset($confirm)) {
        echo 'confirm';
    }
    if ($isActiveUser && isset($error)) {
        echo 'error';
    }
    ?>
">
       	<!-- Désactiver -->
Exemplo n.º 3
0
	<p class='error'><strong><?php 
    echo $globalError;
    ?>
</strong></p>
	<?php 
}
?>
    <ul class="documentList active">
	<?php 
$queryDesactivate = new httpQueryStr();
$queryEdit = new httpQueryStr();
$total = $allMediasAccess->count();
$i = 1;
foreach ($allMediasAccess as $mediaAccess) {
    $queryDesactivate->add(array('desactive' => $mediaAccess->getMediaId()));
    $queryEdit->add(array('edit' => $mediaAccess->getMediaId()));
    $queryEdit->add(array('nocache' => time()));
    $active_media = $httpQuery->edit === (string) $mediaAccess->getMediaId();
    ?>
        <li id="<?php 
    echo $mediaAccess->getMediaId();
    ?>
" class="<?php 
    if ($active_media && isset($confirm)) {
        echo 'confirm';
    }
    if ($active_media && isset($error)) {
        echo 'error';
    }
    ?>
">
Exemplo n.º 4
0
</p><?php 
}
?>
    <ul class="documentList">
    <?php 
$queryActivate = new httpQueryStr();
if (is_array($allImages)) {
    foreach ($allImages as $index => $image) {
        if (!isset($image_id)) {
            $image_id = $index;
        }
        // On retire le chemin courant vers la racine FTP
        // Si le fichier n'est pas activé
        if (!in_array($image, $allDbImages)) {
            // Constitution de la requête http
            $queryActivate->add(array('indexForm' => $index, 'active' => $image));
            ?>
    <li id="<?php 
            echo $index;
            ?>
">
       	<!-- Activer -->
        <a href="<?php 
            echo '?' . $queryActivate . '#' . $index;
            ?>
" class="activer" title="activate"></a>
        <img src="/img/icone_jpg.png" width="24" height="24" alt="" />
        <?php 
            $image = basename($image);
            echo substr($image, 0, strrpos($image, '.'));
            ?>
Exemplo n.º 5
0
}
?>
    <?php 
$queryDesactivate = new httpQueryStr();
$queryEdit = new httpQueryStr();
$total = $allArchiveAccess->count();
$current_type = 'new';
$first = true;
$current_cat = 'new';
$i = 1;
foreach ($allArchiveAccess as $archiveAcces) {
    $new_type = $archiveAcces->getTypeId() != $current_type;
    $new_cat = $archiveAcces->getCatId() != $current_cat;
    $last = $total == $i;
    $queryDesactivate->add(array('desactive' => $archiveAcces->getArchiveId()));
    $queryEdit->add(array('edit' => $archiveAcces->getArchiveId()));
    $queryEdit->add(array('nocache' => time()));
    $active_archive = $httpQuery->edit === (string) $archiveAcces->getArchiveId();
    ?>

        <?php 
    if ($new_type) {
        ?>
            <?php 
        if (!$first) {
            ?>
</ul><?php 
        }
        ?>
            <?php 
        if ($new_cat) {
Exemplo n.º 6
0
}
?>
    <ul class="documentList">
    <?php 
$queryActivate = new httpQueryStr();
if (is_array($allMedias)) {
    foreach ($allMedias as $index => $media) {
        if (!isset($media_id)) {
            $media_id = $index;
        }
        // On retire le chemin courant vers la racine FTP
        $media = str_replace(getFtpMediasRoot(), '', $media);
        // Si le fichier n'est pas activé
        if (!in_array($media, $allDbMedias)) {
            // Constitution de la requête http
            $queryActivate->add(array('indexForm' => $index, 'active' => $media));
            ?>
    <li id="<?php 
            echo $index;
            ?>
">
       	<!-- Activer -->
        <a href="<?php 
            echo '?' . $queryActivate . '#' . $index;
            ?>
" class="activer" title="activate"></a>
        <img src="/img/icone_<?php 
            echo strtolower(substr($media, -3));
            ?>
.jpg" width="24" height="24" alt="" />
        <p><?php 
Exemplo n.º 7
0
    echo $menu;
    ?>
" />&nbsp;
            <input type="submit" name="insert_software" value="Ajouter" />
        </form>
    <?php 
}
?>

    <ul class="documentList">
        <?php 
/** @var array $allSoftwares */
foreach ($allSoftwares as $software) {
    $queryEditSoft = new httpQueryStr(true, 'p=' . $httpQuery->p);
    $queryDeleteSoftware = new httpQueryStr(true, 'p=' . $httpQuery->p);
    $queryEditSoft->add(['t' => time()]);
    $queryEditSoft->editSoftware = $software->id_software;
    $queryDeleteSoftware->deleteSoftware = $software->id_software;
    $activeEntry = $httpQuery->editSoftware == $software->id_software;
    ?>
            <li <?php 
    if ($activeEntry && isset($software_confirm)) {
        echo 'class="confirm"';
    }
    ?>
>
                <!-- Supprimer -->
                <a href="<?php 
    echo '?' . $queryDeleteSoftware;
    ?>
" class="desactiver" title="Supprimer" onclick="return confirm('Supprimer le Software ?');"></a>
Exemplo n.º 8
0
?>
</strong></p>
    <?php 
$queryDesactivate = new httpQueryStr();
$queryEdit = new httpQueryStr();
$current_type = 'new';
$first = true;
$current_cat = 'new';
$total = $allDocumentAccess->count();
$i = 1;
foreach ($allDocumentAccess as $docAccess) {
    $new_type = $docAccess->getTypeId() != $current_type;
    $new_cat = $docAccess->getCatId() != $current_cat;
    $last = $total == $i;
    $queryDesactivate->add(array('desactive' => $docAccess->getDocumentId()));
    $queryEdit->add(array('edit' => $docAccess->getDocumentId()));
    $queryEdit->add(array('nocache' => time()));
    $active_document = $httpQuery->edit === (string) $docAccess->getDocumentId();
    ?>

        <?php 
    if ($new_type) {
        ?>
            <?php 
        if (!$first) {
            ?>
</ul><?php 
        }
        ?>
            <?php 
        if ($new_cat) {
Exemplo n.º 9
0
echo $_SERVER['REQUEST_URI'];
?>
" method="post" enctype="multipart/form-data">
        <input type="file" name="brochures[]" value="" multiple/>
    </form>
    <ul class="documentList">
        <?php 
$queryActivate = new httpQueryStr();
if (is_array($allDocuments)) {
    foreach ($allDocuments as $index => $document) {
        // On retire le chemin courant vers la racine FTP
        $document = str_replace(getFtpRoot(), '', $document);
        // Si le fichier n'est pas activé
        if (!in_array($document, $allDbDocs)) {
            // Constitution de la requête http
            $queryActivate->add(array('indexForm' => $index, 'active' => $document));
            ?>
        <li id="<?php 
            echo $index;
            ?>
">
        	<!-- Activer -->
            <a href="<?php 
            echo '?' . $queryActivate . '#' . $index;
            ?>
" class="activer" title="activer"></a>
            <img src="/img/icon-pdf-36x36.png" width="24" height="24" alt="" />
            <?php 
            echo basename(basename($document, '.pdf'), '.PDF');
            ?>