1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php require_once($LIBPATH . "libutil.php"); assert_rights("C"); require_once ($LIBPATH . "tableContent.php"); $table_top20plus_feeder = array("TOP20PLUS_FEEDER", "DbFeeder", array("TBL_TOP20PLUS", null, array("type_of_list"), array($type_of_list), "AND", false, true, " ORDER BY up DESC")); $table_top20plus = array(array("Artist", "Piesa", "Activ", "Voturi"), array("artist", "song", "active", "up"), array(200, 200, 75, 75), "sortable", // table class "stSortableHeader", // title class "stNRow", // normal first row "stFRow", // normal next row "stTableRowOver", // row over class "mod.php?mod=top20plus&action=act_delete", // deletion link "index.php?cnt_=top20plus/top20plusDetails", // details link "ID",// pass to detail "index.php?cnt_=top20plus/top20plusAdd", "", array(1)); // add link
function table_top20plus_dataparser(&$data){ global $yesno; $count=count($data); for ($i=0;$i<$count;$i++){ $data[$i]->active= $yesno[$data[$i]->active]; //$data[$i]->Imagine = "<img width = \"50\" height=\"50\" src = \"../images/stiri/" . $data[$i]->Imagine . "\" onerror=\"this.src='../images/stiri/noimg.jpg';\">";
} }
?>
|