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
29
30
31
32
33
|
<?php require_once($LIBPATH . "libutil.php"); assert_rights("C"); require_once ($LIBPATH . "tableContent.php");
$itemsdir_table_feeder = array("ITEMSDIR_FEEDER:noFilter", "DbFeeder", array("TBL_ITEMSDIR", array("ID", "Titlu"), null, null, "AND", false, false,"")); $itemsDetailsFrm_feeder = array("ITEMSDETAILS_FEEDER", "DbFeeder", array("TBL_ITEMS", null, array("ID"), array("GET/ID"), "AND", true, true));
$table_items_feeder = array("STIRI_FEEDER", "DbFeeder", array("TBL_ITEMS", null, null, null, "AND", false, false, " AND MID = 1 ORDER BY OrderID DESC")); $table_items = array(array("Titlu", "Data", "Order ID", "Groupa"), array("Titlu", "Datas", "OrderID", "MID"), 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=items&action=act_delete", // deletion link "index.php?cnt_=items/itemsDetails", // details link "ID",// pass to detail "index.php?cnt_=items/itemsAdd", "", 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/items/" . $data[$i]->Imagine . "\" onerror=\"this.src='../images/items/noimg.jpg';\">";
} }
?>
|