[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r5450 - phpcompta/trunk/include/template
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r5450 - phpcompta/trunk/include/template |
Date: |
Sun, 29 Sep 2013 19:47:15 +0200 (CEST) |
Author: danydb
Date: 2013-09-29 19:47:15 +0200 (Sun, 29 Sep 2013)
New Revision: 5450
Modified:
phpcompta/trunk/include/template/result_cat_card_summary.php
Log:
Add quick filter (javascript) + sort on column
Modified: phpcompta/trunk/include/template/result_cat_card_summary.php
===================================================================
--- phpcompta/trunk/include/template/result_cat_card_summary.php
2013-09-29 17:27:09 UTC (rev 5449)
+++ phpcompta/trunk/include/template/result_cat_card_summary.php
2013-09-29 17:47:15 UTC (rev 5450)
@@ -1,10 +1,22 @@
<div class="content">
-<table >
+Filtre rapide :
+ <?php
+ $col="";$sp="";
+ for ($e=0;$e<count($aHeading);$e++) {$col.=$e.$sp; $sp=",";}
+ echo HtmlInput::filter_table("fiche_tb_id", $col, '1');
+ ?>
+<table id="fiche_tb_id" class="sortable">
<tr>
<?php
echo th('Détail');
for ($i=0;$i<count($aHeading);$i++) :
- echo th($aHeading[$i]->ad_text,'style="color:blue;padding: 0 5 1 10"');
+ $span="";$sort="";
+ if ($i==0)
+ {
+ $span='<span id="sorttable_sortfwdind"> ▾</span>';
+ $sort= 'class="sorttable_sorted"';
+ }
+ echo '<th style="color:blue;padding: 0 5 1 10"
'.$sort.'>'.$aHeading[$i]->ad_text.$span.'</th>';
endfor;
?>
</tr>
@@ -22,8 +34,14 @@
$detail=HtmlInput::card_detail($fiche->strAttribut(ATTR_DEF_QUICKCODE));
echo td($detail);
foreach($fiche->attribut as $attr) :
+ $sort="";
+
if ( $attr->ad_type != 'select'):
- echo td($attr->av_text,'style="padding: 0 10 1
10;white-space:nowrap;"');
+ if ($attr->ad_type=="date") :
+ // format YYYYMMDD
+ $sort='sorttable_customkey="'.format_date($attr->av_text,
"DD.MM.YYYY", "YYYYMMDD").'"';
+ endif;
+ echo td($attr->av_text,'style="padding: 0 10 1
10;white-space:nowrap;" '.$sort);
else:
$value=$cn->make_array($attr->ad_extra);
for ($e=0;$e<count($value);$e++):
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r5450 - phpcompta/trunk/include/template,
phpcompta-dev <=