Changeset 1714


Ignore:
Timestamp:
Oct 10, 2010, 9:30:35 PM (11 years ago)
Author:
roux
Message:

refacto boite alertes pour noresults

Location:
cpc/trunk/project/apps/frontend/modules/solr/templates
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/solr/templates/noresultsSuccess.php

    r1697 r1714  
    1 <div>
     1<div class="solr">
     2<?php include_partial('solr/follow', array('query' => $query, 'selected' => array(), 'norss' => true, 'zero' => true)); ?>
    23<?php include_partial('solr/searchbox'); ?>
    34<p>Désolé, nous n'avons pas trouvé de résultat pour votre recherche.</p>
    45<?php include_component('parlementaire', 'search', array('query' => $query, 'msg'=>"Peut être recherchiez vous l'un de ces députés :")); ?>
    5 <p><a href="<?php echo url_for('alerte/create?query='.urlencode($query)); ?>"><?php echo image_tag('xneth/email.png', 'alt="Email :"'); ?>
    6 Etre alerté par email lorsque cette recherche comportera un résultat</a></p>
    76</div>
  • cpc/trunk/project/apps/frontend/modules/solr/templates/searchSuccess.php

    r1709 r1714  
    214214?>
    215215</div>
    216 <div class="options">
    217   <div class="mail">
    218   <h3 class="aligncenter">S'abonner aux résultats<br/>de cette recherche</h3>
    219 <?php $args = '';
    220   foreach(array_keys($selected) as $k) {
    221     if (!is_array($selected[$k]) || $k == 'date')
    222       continue;
    223     if ($args)
    224       $args .= '&';
    225     $args.= "$k=".implode(',', array_keys($selected[$k]));
    226   } ?>
    227 <table width=100% style="text-align: center"><tr>
    228        <td><a href="<?php echo url_for('alerte/create?filter='.urlencode($args).'&query='.urlencode($query)); ?>"><?php echo image_tag('xneth/email.png', 'alt="Email"'); ?></a><br/><a href="<?php echo url_for('alerte/create?filter='.urlencode($args).'&query='.urlencode($query)); ?>">par email</a></td>
    229        <td><a href="<?php $newargs_rss = $selected; $newargs_rss['format']['rss'] = 'rss'; if (isset($newargs_rss['date'])) unset($newargs_rss['date']); if (isset($newargs_rss['sort'])) unset($newargs_rss['sort']); echo url_for(url_search($query, $newargs_rss)); ?>"><?php echo image_tag('xneth/rss_obliq.png', 'alt="Flux rss"'); ?></a><br/><a href="<?php echo url_for(url_search($query, $newargs_rss)); ?>">par RSS</a></td>
    230 </tr></table></div></div>
     216<?php include_partial('solr/follow', array('query' => $query, 'selected' => $selected)); ?>
    231217<?php endif;
    232218global $facetName2HumanName;
Note: See TracChangeset for help on using the changeset viewer.