Beispiel #1
0
<?php

require_once __DIR__ . '/../auth.php';
$request = Symfony\Component\HttpFoundation\Request::createFromGlobals();
if ($request->isXmlHttpRequest() === false) {
    redirige("../accueil.php");
}
if (!est_autorise("acces_contenu")) {
    exit;
}
switch ($request->query->get('action')) {
    case 'changeDisplay':
        FolderAdmin::getInstance($request->query->get('folder_id'))->display($request->query->get('display'));
        break;
}
Beispiel #2
0
?>
</th>
                            <th><?php 
echo trad('Classement', 'admin');
?>
</th>
                            <th></th>
                            <th><?php 
echo trad('Suppr', 'admin');
?>
</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
foreach (FolderAdmin::getInstance()->getList($parent, 'classement', 'ASC', '') as $dossier) {
    ?>
                            <tr>
                                <td><?php 
    echo $dossier["titre"];
    ?>
</td>
                                <td><input type="checkbox" folder-id="<?php 
    echo $dossier["id"];
    ?>
" class="folderDisplay" <?php 
    if ($dossier["ligne"]) {
        echo 'checked="checked"';
    }
    ?>
></td>
                            <div class="span6 offset4">
                                <?php 
for ($i = 1; $i <= FolderAdmin::getInstance()->getDocumentFile()->getNumberUpload(); $i++) {
    ?>
                                    <input type="file" name="document_<?php 
    echo $i;
    ?>
" class="input-large">
                                    <br >
                                <?php 
}
?>
                            </div>
                        </div>
                        <?php 
foreach (FolderAdmin::getInstance($dossier->id)->getDocumentList($lang) as $document) {
    ?>
                        <div class="row-fluid js-bloc-document" js-document-id="<?php 
    echo $document['id'];
    ?>
">
                            <div class="span3" style="position: relative;">
                                <p class="js-document">
                                    <a target="_blank" href="<?php 
    echo $document["fichier"];
    ?>
"><?php 
    echo $document["nomFichier"];
    ?>
</a>
                                </p>
 public function getContentListe($id, $title)
 {
     $this->addValue("listdos.php", trad('Gestion_contenu', 'admin'));
     foreach (FolderAdmin::getInstance()->getBreadcrumbList($id) as $breadcrumb) {
         $this->addValue("listdos.php?parent=" . $breadcrumb->dossier, $breadcrumb->titre);
     }
     $this->addValue("", $title);
     return $this->getBreadcrumb();
 }