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_stiri_feeder = array("STIRI_FEEDER", "DbFeeder", array("TBL_STIRI", null, null, null, "AND", false, false, " ORDER BY Stickys DESC, Datas DESC")); $table_stiri = array(array("Titlu", "Data", "Sticky", "Imagine"), array("Titlu", "Datas", "Stickys", "Imagine"), array(300, 150, 75, 75), "sortable", // table class "stSortableHeader", // title class "stNRow", // normal first row "stFRow", // normal next row "stTableRowOver", // row over class "mod.php?mod=stiri&action=act_delete", // deletion link "index.php?cnt_=stiri/stiriDetails", // details link "ID",// pass to detail "index.php?cnt_=stiri/stiriAdd", "", array(1)); // add link
function table_stiri_dataparser(&$data){ global $yesno; $count=count($data); for ($i=0;$i<$count;$i++){ $data[$i]->Stickys = $yesno[$data[$i]->Stickys]; $data[$i]->Imagine = "<img width = \"50\" height=\"50\" src = \"../images/stiri/" . $data[$i]->Imagine . "\" onerror=\"this.src='../images/stiri/noimg.jpg';\">";
} }
?>
|