[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r633 - in trunk/rapport_avance: . include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r633 - in trunk/rapport_avance: . include |
Date: |
Fri, 20 Dec 2013 14:11:34 +0100 (CET) |
Author: danydb
Date: 2013-12-20 14:11:34 +0100 (Fri, 20 Dec 2013)
New Revision: 633
Modified:
trunk/rapport_avance/ajax_rapav_listing_display.php
trunk/rapport_avance/include/class_rapav_listing_compute.php
Log:
Sort table
Modified: trunk/rapport_avance/ajax_rapav_listing_display.php
===================================================================
--- trunk/rapport_avance/ajax_rapav_listing_display.php 2013-12-20 12:24:10 UTC
(rev 632)
+++ trunk/rapport_avance/ajax_rapav_listing_display.php 2013-12-20 13:11:34 UTC
(rev 633)
@@ -22,5 +22,5 @@
echo HtmlInput::button_action("Retour","$('declaration_list_div').show();
$('declaration_display_div').hide();",'rt'.$_GET['d_id'],'smallbutton');
echo '</div>';
-
+echo create_script('sorttable.makeSortable($("_tb"))');
?>
\ No newline at end of file
Modified: trunk/rapport_avance/include/class_rapav_listing_compute.php
===================================================================
--- trunk/rapport_avance/include/class_rapav_listing_compute.php
2013-12-20 12:24:10 UTC (rev 632)
+++ trunk/rapport_avance/include/class_rapav_listing_compute.php
2013-12-20 13:11:34 UTC (rev 633)
@@ -182,10 +182,10 @@
}
$col_range=implode(",",$col);
echo "Filtre ".HtmlInput::filter_table($form_name."_tb",
$col_range, 1);
- echo '<table id="'.$form_name.'_tb" style="min-width:100%"
class="result">';
+ echo '<table id="'.$form_name.'_tb" style="min-width:100%"
class="sortable">';
echo '<tr>';
if ( $with_sel ) {
- echo '<TH><INPUT TYPE="CHECKBOX"
onclick="toggle_checkbox(\''.$form_name.'\')"></TH>';
+ echo '<TH sorttable_customkey="1" ><INPUT TYPE="CHECKBOX"
onclick="toggle_checkbox(\''.$form_name.'\')">'.HtmlInput::infobulle(17).'</TH>';
}
for ($e=0;$e<$nb_detail;$e++)
{
@@ -208,11 +208,11 @@
if ($e==0 && $with_sel)
{
$check_box=new ICheckBox("selected_card[]",
$fiche->lf_id);
- echo td($check_box->input());
+ echo td($check_box->input(),' sorttable_customkey="1" ');
}
echo (($detail->ld_value_numeric !==
null)?td(nbm($detail->ld_value_numeric),'class="num"'):"");
echo (($detail->ld_value_text !==
null)?td($detail->ld_value_text):"");
- echo (($detail->ld_value_date!==
null)?td($detail->ld_value_date):"");
+ echo (($detail->ld_value_date!==
null)?td($detail->ld_value_date,'
sorttable_customkey="'.$detail->ld_value_date.'"'):"");
}
if ( $fiche->lf_filename != "")
{
---
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] r633 - in trunk/rapport_avance: . include,
phpcompta-dev <=