Changeset 461

Show
Ignore:
Timestamp:
11/21/08 18:37:11 (2 months ago)
Author:
arnaud
Message:

Paramètres : possibilité de définir le listing simple à l'agence. Reprise du paramètre sur l'accueil

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/apps/intranet/modules/agency/templates/editSuccess.php

    r349 r461  
    3030  <th>Propositions</th> 
    3131  <td><?php echo $form->myInputByAgencyId('searchshow_hide') ?></td> 
     32</tr> 
     33</tbody> 
     34</table> 
     35 
     36<?php echo tabs_begin(ucfirst('ventes')) ?> 
     37<h3>ParamÚtres</h3> 
     38<table> 
     39<tbody> 
     40<tr> 
     41  <th width="120">Affichage par défaut</th> 
     42  <td><?php echo radiobutton_tag('param[sales_result]', 0, (!ParamPeer::getValueByName('sales_result', $sf_user->getSubscriber()->getAgencyId(), false)) ) ?> mosaïque</td> 
     43  <td><?php echo radiobutton_tag('param[sales_result]', 1, (ParamPeer::getValueByName('sales_result', $sf_user->getSubscriber()->getAgencyId(), false)) ) ?> liste</td> 
    3244</tr> 
    3345</tbody> 
  • trunk/apps/intranet/modules/homepage/templates/indexSuccess.php

    r456 r461  
    143143       $num = SalesPeer::doCountNew(date('Y-m-d', mktime(0, 0, 0, date('m'), date('d')-7, date('Y'))), date('Y-m-d'), 1); 
    144144       if($num>0) echo '<span class="highlight">'; 
    145        echo link_to($num, 'sales/list?search_start_at='.date('Y-m-d', mktime(0, 0, 0, date('m'), date('d')-7, date('Y'))).'&search_end_at='.date('Y-m-d').'&search_file=1&search=1&search_step_id=1'); 
     145       echo link_to($num, 'sales/list?search_start_at='.date('Y-m-d', mktime(0, 0, 0, date('m'), date('d')-7, date('Y'))).'&search_end_at='.date('Y-m-d').'&search_file=1&search=1&search_step_id=1&search_simple='.(ParamPeer::getValueByName('sales_result', null, $sf_user->getSubscriber()->getId()) ? ParamPeer::getValueByName('sales_result', null, $sf_user->getSubscriber()->getId()) : ParamPeer::getValueByName('sales_result', $sf_user->getSubscriber()->getAgencyId(), null) ? ParamPeer::getValueByName('sales_result', $sf_user->getSubscriber()->getAgencyId(), null) : 0 )); 
    146146       if($num>0) echo '</span>'; 
    147147     ?></td> 
     
    150150       $num = SalesPeer::doCountNew('1997-01-01', date('Y-m-d'), 1); 
    151151       if($num>0) echo '<span class="highlight">'; 
    152        echo link_to($num, 'sales/list?search_start_at=1997-01-01&search_end_at='.date('Y-m-d').'&search_file=1&search=1&search_step_id=1'); 
     152       echo link_to($num, 'sales/list?search_start_at=1997-01-01&search_end_at='.date('Y-m-d').'&search_file=1&search=1&search_step_id=1&search_simple='.(ParamPeer::getValueByName('sales_result', null, $sf_user->getSubscriber()->getId()) ? ParamPeer::getValueByName('sales_result', null, $sf_user->getSubscriber()->getId()) : ParamPeer::getValueByName('sales_result', $sf_user->getSubscriber()->getAgencyId(), null) ? ParamPeer::getValueByName('sales_result', $sf_user->getSubscriber()->getAgencyId(), null) : 0 )); 
    153153       if($num>0) echo '</span>'; 
    154154     ?></td>