34 $this->array = array();
47 function add($p_header,
$p_url, $p_sql_asc, $p_sql_desc, $p_get_asc, $p_get_desc)
52 'sql_asc' => $p_sql_asc,
53 'sql_desc' => $p_sql_desc,
54 'parm_asc' => $p_get_asc,
55 'parm_desc' => $p_get_desc,
56 'car_asc' =>
'<span style="font-size:70%">▲</span>',
57 'car_desc' =>
'<span style="font-size:70%">▼</span>'
71 if ($p_ind < 0 || $p_ind > $this->
nb)
73 $file = str_replace(
'extension.php',
'', $_SERVER[
'PHP_SELF']);
75 $base = $this->array[$p_ind][
'url'];
76 $str = $this->array[$p_ind][
'head'] .
'';
77 $str .=
'<A style="display:inline;text-decoration:none" HREF="' .
$base .
'&ord=' . $this->array[$p_ind][
'parm_asc'] .
'">' .
78 $this->array[$p_ind][
'car_asc'] .
81 '<A style="display:inline;text-decoration:none" HREF="' .
$base .
'&ord=' . $this->array[$p_ind][
'parm_desc'] .
'">' .
82 $this->array[$p_ind][
'car_desc'] .
91 if ($p_get == $this->array[
$i][
'parm_asc'])
93 $this->array[
$i][
'car_asc'] =
'<span style="color:red;font-size:70%">▲</span>';
94 return $this->array[
$i][
'sql_asc'];
96 if ($p_get == $this->array[
$i][
'parm_desc'])
98 $this->array[
$i][
'car_desc'] =
'<span style="color:red;font-size:70%">▼</span>';
99 return $this->array[
$i][
'sql_desc'];
nb($p_number)
format the number for the CSV export
for($i=0;$i<=6;$i++) $ind
Description of class_syn_sort_table.
get_header($p_ind)
Returns the header (the value into th tags) with the symbol ascending and descending.
add($p_header, $p_url, $p_sql_asc, $p_sql_desc, $p_get_asc, $p_get_desc)
add row of a header in the internal array ($this->array) , it uses the $_GET['ord'] parameter,