Le template des tableaux

More
14 years 6 months ago #256 by micker
Replied by micker on topic Le template des tableaux
hello mille merci !!!!
voici la solution complette !
Code:
<?php /** * @version 1.5 beta 3 $Id: default_items.php 64 2009-08-18 14:17:32Z vistamedia $ * @package Joomla * @subpackage FLEXIcontent * @copyright (C) 2009 Emmanuel Danan - www.vistamedia.fr * @license GNU/GPL v2 * * FLEXIcontent is a derivative work of the excellent QuickFAQ component * @copyright (C) 2008 Christoph Lukes * see www.schlu.net for more information * * FLEXIcontent is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ defined( '_JEXEC' ) or die( 'Restricted access' ); // first define the template name $tmpl = '.category.bijou'; ?> <script type="text/javascript"> function tableOrdering( order, dir, task ) { var form = document.getElementById("adminForm"); form.filter_order.value = order; form.filter_order_Dir.value = dir; document.getElementById("adminForm").submit( task ); } </script> <?php if ((($this->params->get('use_filters', 0)) && $this->filters) || ($this->params->get('use_search')) || ($this->params->get('show_alpha', 1))) : ?> <form action="<?php echo $this->action; ?>" method="post" id="adminForm"> <?php if ((($this->params->get('use_filters', 0)) && $this->filters) || ($this->params->get('use_search'))) : ?> <div id="fc_filter" class="floattext"> <?php if ($this->params->get('use_search')) : ?> <div class="fc_fleft"> <input type="text" name="filter" id="filter" value="<?php echo $this->lists['filter'];?>" class="text_area" onchange="document.getElementById('adminForm').submit();" /> <button onclick="document.getElementById('adminForm').submit();"><?php echo JText::_( 'FLEXI_GO' ); ?></button> <button onclick="document.getElementById('filter').value='';document.getElementById('adminForm').submit();"><?php echo JText::_( 'FLEXI_RESET' ); ?></button> </div> <?php endif; ?> <?php if ($this->filters) : ?> <div class="fc_fright"> <?php foreach ($this->filters as $filt) : echo '<span class="filter">'; echo $filt->html; echo '</span>'; endforeach; ?> </div> <?php endif; ?> </div> <?php endif; ?> <?php if ($this->params->get('show_alpha', 1)) : echo $this->loadTemplate('alpha'); endif; ?> <input type="hidden" name="option" value="com_flexicontent" /> <input type="hidden" name="filter_order" value="<?php echo $this->lists['filter_order']; ?>" /> <input type="hidden" name="filter_order_Dir" value="" /> <input type="hidden" name="view" value="category" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="id" value="<?php echo $this->category->id; ?>" /> </form> <?php endif; ?> <?php if ($this->items) : ?> <table id="flexitable" class="faqitemtable" width="100%" border="0" cellspacing="0" cellpadding="0" summary="flexicontent"> <thead> <tr> <th>Artistes</th> <th>Genre</th> <th>Date</th> <th>Heure</th> <th>Tarifs</th> </tr> </thead> <tbody> <?php foreach ($this->items as $item) : ?> <tr> <td> <?php if ($this->params->get('link_titles', 0)) : ?> [url=<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $this->category->slug)); ?>]<?php echo $this->escape($item->title); ?>[/url] <?php else : echo $this->escape($item->title); endif; ?> </td> <?php if ($this->items[0]->fields) : ?> <td> <?php foreach ($item->fields as $field) : // step 1 : start the loop on the object if (in_array('Genre'.$tmpl, $field->positions)) : // step 2 : assigned to this group ?> <?php echo $field->display ? $field->display : ''; endif; // end step 2 endforeach; // end step 1 ?> </td> <td> <?php foreach ($item->fields as $field) : // step 1 : start the loop on the object if (in_array('Date'.$tmpl, $field->positions)) : // step 2 : assigned to this group ?> <?php echo $field->display ? $field->display : ''; endif; // end step 2 endforeach; // end step 1 ?> </td> <td> <?php foreach ($item->fields as $field) : // step 1 : start the loop on the object if (in_array('Heure'.$tmpl, $field->positions)) : // step 2 : assigned to this group ?> <?php echo $field->display ? $field->display : ''; endif; // end step 2 endforeach; // end step 1 ?> </td> <td> <?php foreach ($item->fields as $field) : // step 1 : start the loop on the object if (in_array('Tarif'.$tmpl, $field->positions)) : // step 2 : assigned to this group ?> <?php echo $field->display ? $field->display : ''; endif; // end step 2 endforeach; // end step 1 ?> </td> <?php endif; ?> </tr> <?php endforeach; ?> </table> <?php endif; ?>
si c'est valider par les modos on peut le rajouter dans le tutoriel sur les templates !
juste que les plugin ne fonctionnent peut être pas dans les tableaux ?
a suivre

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #260 by Doywan
Replied by Doywan on topic Le template des tableaux
Il n'y a aucune raison que les plugins ne fonctionne pas. Content que ça marche, on a réussi finalement. ;)

Dev et rédacteur en chef Fonky les bons tuyaux
www.fonkyt.com - magasine online de l'événementiel culturel et loisirs d'Orléans et son agglO

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #265 by micker
Replied by micker on topic Le template des tableaux
truc et astuce ici avec remerciment !
<!-- l --><a class="postlink-local" href=" www.flexicontent.org/phpbb/viewtopic.php?f=10&t=61 ">viewtopic.php?f=10&t=61

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.308 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline