<commit_before><?php

$title = 'Mes annonces';
$this->headTitle($title);
?>
<h1><?php echo $this->escapeHtml($title); ?></h1>

<?php if($pagination->getTotalItemCount() == 0)
        echo "Vous n'avez encore aucune annonce";
    else 
echo"
<table class=\"table\">
 <tr>
    <th>Date</th>
    <th>Photo</th>
    <th>Titre</th>
    <th>Prix</th>
    <th>Catégorie</th>
    <th>Département</th>
    <th>Actions</th>
</tr>"?>

<?php foreach ($pagination as $annonce) : ?>
<tr class="tableSurvol" onclick="document.location='<?php echo $this->url('annonce',array('action'=>'annonce', 'id' => $annonce->id_annonce));?>'">

    <td><?php echo $this->escapeHtml($annonce->date_modif);?></td>
    
    <td><img src="<?php
        if($meta[$annonce->id_annonce]['photo'])
            echo $this->basePath() . "/photos/" . $meta[$annonce->id_annonce]['photo']->id_photo ;
        else
            echo $this->basePath() . "/photos/no-image.png";
    ?>" class="miniature" /></td>
    <td><?php echo $this->escapeHtml($annonce->titre);?></td>
    <td><?php echo $this->escapeHtml($annonce->prix);?></td>
    <td><?php echo $this->escapeHtml($meta[$annonce->id_annonce]['categorie']->lib_cat);?></td>
    <td><?php echo $this->escapeHtml($meta[$annonce->id_annonce]['departement']->lib_dept);?></td>
    
    <td>
        <a href="<?php echo $this->url('annonce',
            array('action'=>'edit', 'id' => $annonce->id_annonce));?>">Modifier</a>
        <a href="<?php echo $this->url('annonce',
            array('action'=>'delete', 'id' => $annonce->id_annonce));?>">Supprimer</a>
    </td>
</tr>
<?php endforeach; ?>
</table>
<?php echo $this->paginationControl($this->pagination, 'Sliding', 'partial/paginator.phtml', array('route' => 'utilisateur', 'action'=>'mesannonces','param' => $this->param)); ?><commit_msg>modfis affichage mesannonces<commit_after><?php

$title = 'Mes annonces';
$this->headTitle($title);
?>
<h1><?php echo $this->escapeHtml($title); ?></h1>

<?php if($pagination->getTotalItemCount() == 0)
        echo "Vous n'avez encore aucune annonce";
    else 
echo"
<table class=\"table\">
 <tr>
    <th>Date</th>
    <th>Photo</th>
    <th>Titre</th>
    <th>Prix</th>
    <th>Catégorie</th>
    <th>Département</th>
    <th>Actions</th>
</tr>"?>

<?php foreach ($pagination as $annonce) : ?>
<tr class="tableSurvol" onclick="document.location='<?php echo $this->url('annonce',array('action'=>'annonce', 'id' => $annonce->id_annonce));?>'">

    <td><?php echo $this->escapeHtml($annonce->date_modif);?></td>
    
    <td><img src="<?php
        if($meta[$annonce->id_annonce]['photo'])
            echo $this->basePath() . "/photos/" . $meta[$annonce->id_annonce]['photo']->id_photo ;
        else
            echo $this->basePath() . "/photos/no-image.png";
    ?>" class="miniature" /></td>
    <td><?php echo $this->escapeHtml($annonce->titre);?></td>
    <td><?php echo $this->escapeHtml($annonce->prix);?></td>
    <td><?php echo $this->escapeHtml($meta[$annonce->id_annonce]['categorie']->lib_cat);?></td>
    <td><?php echo $this->escapeHtml($meta[$annonce->id_annonce]['departement']->lib_dept);?></td>
    
    <td>
        <a class="btn btn-primary" href="<?php echo $this->url('annonce',
            array('action'=>'edit', 'id' => $annonce->id_annonce));?>"><i class="icon-black icon-edit"></i> Modifier</a>
        <a class="btn btn-danger" href="<?php echo $this->url('annonce',
            array('action'=>'delete', 'id' => $annonce->id_annonce));?>"><i class="icon-black icon-remove"></i> Supprimer</a>
    </td>
</tr>
<?php endforeach; ?>
</table>
<?php echo $this->paginationControl($this->pagination, 'Sliding', 'partial/paginator.phtml', array('route' => 'utilisateur', 'action'=>'mesannonces','param' => $this->param)); ?>
{'fraction_non_alphanumeric': 0.25292864749733757, 'fraction_numerical': 0.001597444089456869, 'mean_word_length': 4.182068965517241, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 195, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7318814', 'n_tokens_mistral': 1361, 'n_tokens_neox': 1380, 'n_words': 212}