Go to the documentation of this file.00001 <?php
00002
00003
00004 ?><div class="content">
00005 <?php echo _("Filtre")?> :
00006 <?php
00007 $col="";$sp="";
00008 for ($e=0;$e<count($aHeading);$e++) {$col.=$sp.$e; $sp=",";}
00009 echo HtmlInput::filter_table("fiche_tb_id", $col, '1');
00010 ?>
00011 <table id="fiche_tb_id" class="sortable">
00012 <tr>
00013 <?php
00014 echo th(_('Détail'));
00015 for ($i=0;$i<count($aHeading);$i++) :
00016 $span="";$sort="";
00017 if ($i==0)
00018 {
00019 $span='<span id="sorttable_sortfwdind"> ▾</span>';
00020 $sort= 'class="sorttable_sorted"';
00021 }
00022 echo '<th style="color:blue;padding: 0 5 1 10" '.$sort.'>'.$aHeading[$i]->ad_text.$span.'</th>';
00023 endfor;
00024 ?>
00025 </tr>
00026 <?php
00027 $e=0;
00028 foreach ($array as $row ) :
00029 $e++;
00030 if ($e%2==0)
00031 echo '<tr class="odd">';
00032 else
00033 echo '<tr class="even">';
00034 $fiche=new Fiche($cn);
00035 $fiche->id=$row['f_id'];
00036 $fiche->getAttribut();
00037 $detail=HtmlInput::card_detail($fiche->strAttribut(ATTR_DEF_QUICKCODE));
00038 echo td($detail);
00039 foreach($fiche->attribut as $attr) :
00040 $sort="";
00041
00042 if ( $attr->ad_type != 'select'):
00043 if ($attr->ad_type=="date") :
00044
00045 $sort='sorttable_customkey="'.format_date($attr->av_text, "DD.MM.YYYY", "YYYYMMDD").'"';
00046 endif;
00047 echo td($attr->av_text,'style="padding: 0 10 1 10;white-space:nowrap;" '.$sort);
00048 else:
00049 $value=$cn->make_array($attr->ad_extra);
00050 for ($e=0;$e<count($value);$e++):
00051 if ( $value[$e]['value']==$attr->av_text):
00052 echo td($value[$e]['label'],'style="padding: 0 10 1 10;white-space:nowrap;"');
00053 break;
00054 endif;
00055 endfor;
00056
00057 endif;
00058 endforeach;
00059 echo '</tr>';
00060 endforeach;
00061
00062 ?>
00063 </table>
00064
00065
00066
00067 </div>