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_top20_feeder = array("TOP20_FEEDER", "DbFeeder", array("TBL_TOP20", null, array("type_of_list"), array($type_of_list), "AND", false, true, " Order by prev_month =0, prev_month asc")); $table_top20 = array(array("Artist", "Piesa", "Activ", "Voturi", "Luna trecuta"), array("artist", "song", "active", "up", "prev_month"), array(200, 200, 75, 75, 75), "sortable", // table class "stSortableHeader", // title class "stNRow", // normal first row "stFRow", // normal next row "stTableRowOver", // row over class "mod.php?mod=top20&action=act_delete", // deletion link "index.php?cnt_=top20/top20Details", // details link "ID",// pass to detail "index.php?cnt_=top20/top20Add", "", array(1)); // add link
function table_top20_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';\">";
} }
?>
|