32 $this->array = array();
45 function add($p_header,
$p_url, $p_sql_asc, $p_sql_desc, $p_get_asc, $p_get_desc)
50 'sql_asc' => $p_sql_asc,
51 'sql_desc' => $p_sql_desc,
52 'parm_asc' => $p_get_asc,
53 'parm_desc' => $p_get_desc,
54 'car_asc' =>
'<span>▲</span>',
55 'car_desc' =>
'<span>▼</span>'
69 if ($p_ind < 0 || $p_ind > $this->
nb)
71 $file = str_replace(
'extension.php',
'', $_SERVER[
'SCRIPT_FILENAME']);
73 $base = $this->array[$p_ind][
'url'];
75 $str .=
'<A style="display:inline" HREF="' .
$base .
'&ord=' . $this->array[$p_ind][
'parm_asc'] .
'">' .
76 $this->array[$p_ind][
'car_asc'] .
78 $this->array[$p_ind][
'head'] .
79 '<A style="display:inline" HREF="' .
$base .
'&ord=' . $this->array[$p_ind][
'parm_desc'] .
'">' .
80 $this->array[$p_ind][
'car_desc'] .
89 if ($p_get == $this->array[$i][
'parm_asc'])
91 $this->array[$i][
'car_asc'] =
'<span style="color:red">▲</span>';
92 return $this->array[$i][
'sql_asc'];
94 if ($p_get == $this->array[$i][
'parm_desc'])
96 $this->array[$i][
'car_desc'] =
'<span style="color:red">▼</span>';
97 return $this->array[$i][
'sql_desc'];
nb($p_number)
format the number for the CSV export
get_header($p_ind)
Returns the header (the value into th tags) with the symbol ascending and descending.
Description of class_syn_sort_table.
for($i=0;$i<=6;$i++) $ind
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...