Skip to content

Commit

Permalink
affichage de tout le monde temporairement sur la page des documents
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.iariss.fr/erp@146 55463ab2-4f42-40d6-a48e-481de4af6215
  • Loading branch information
m.mure authored and MichaelMure committed Jun 4, 2011
1 parent c9f8a4d commit 6e41ce3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions apps/frontend/modules/annuaire/actions/actions.class.php
Expand Up @@ -96,13 +96,6 @@ public function executeEdit(sfWebRequest $request)
}
}

public function executeLogout(sfWebRequest $request)
{
$this->getResponse()->setStatusCode(401);
return sfView::HEADER_ONLY;
//$this->redirect('@annuaire.index');
}

public function executeDocument(sfWebRequest $request)
{
$this->forward404Unless($this->user = Membre::getProfile($_SERVER['PHP_AUTH_USER']));
Expand All @@ -120,7 +113,8 @@ public function executeDocument(sfWebRequest $request)
->createQuery('a')
->where('a.status != ?', 'Ancien')
->select('a.id, a.nom, a.prenom, a.tel_mobile, a.carte_ID, a.just_domicile, a.quittance, a.cotisation, a.reglement_interieur, a.convention_etudiant')
->where('a.nom != ?', '')
/* Désactivation temporaire
* ->where('a.nom != ?', '') */
->orderBy('a.nom')
->execute();
}
Expand Down
4 changes: 2 additions & 2 deletions apps/frontend/modules/annuaire/templates/documentSuccess.php
Expand Up @@ -16,8 +16,8 @@
<tbody>
<?php foreach ($membres as $membre): ?>
<tr>
<td><?php if($user->isAdmin() || $membre->getId() == $user->getId()) echo link_to($membre->getPrenom().' '.$membre->getNom(), '@annuaire?action=show&id='.$membre->getId());
else echo $membre->getPrenom().' '.$membre->getNom(); ?></td>
<td><?php if($user->isAdmin() || $membre->getId() == $user->getId()) echo link_to($membre, '@annuaire?action=show&id='.$membre->getId());
else echo $membre; ?></td>
<td><?php echo $membre->getTelMobile() ?></td>
<td class='<?php echo $membre->getcarteId() ? 'vert' : 'rouge' ?>'><?php echo $membre->getcarteId() ? 'oui' : 'non' ?></td>
<td class='<?php echo $membre->getQuittance() ? 'vert' : 'rouge' ?>'><?php echo $membre->getQuittance() ? 'oui' : 'non' ?></td>
Expand Down

0 comments on commit 6e41ce3

Please sign in to comment.