Changeset 461
- Timestamp:
- 11/21/08 18:37:11 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/apps/intranet/modules/agency/templates/editSuccess.php
r349 r461 30 30 <th>Propositions</th> 31 31 <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> 32 44 </tr> 33 45 </tbody> trunk/apps/intranet/modules/homepage/templates/indexSuccess.php
r456 r461 143 143 $num = SalesPeer::doCountNew(date('Y-m-d', mktime(0, 0, 0, date('m'), date('d')-7, date('Y'))), date('Y-m-d'), 1); 144 144 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 )); 146 146 if($num>0) echo '</span>'; 147 147 ?></td> … … 150 150 $num = SalesPeer::doCountNew('1997-01-01', date('Y-m-d'), 1); 151 151 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 )); 153 153 if($num>0) echo '</span>'; 154 154 ?></td>
