C:\xampp\htdocs\kptv2\admin\modules\albums\table_albums.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
require_once($LIBPATH "libutil.php");
assert_rights("D");
require_once (
$LIBPATH  "tableContent.php");
$table_albums_feeder = array("ALBUMS_FEEDER""DbFeeder", array("TBL_ALBUMS"nullnullnull"AND"falsefalse,"ORDER by OrderID"));
$table_albums = array(array("Ordinea""Nume""Imagine"), array("OrderID""NameRO""ImgID"),  array(30,  20075),
    
"sortable"// table class
    
"stSortableHeader"// title class
    
"stNRow"// normal first row
    
"stFRow"// normal next row
    
"stTableRowOver",  // row over class
    
"mod.php?mod=albums&action=act_delete"// deletion link
    
"index.php?cnt_=albums/albumsDetails"// details link
    
"ID",// pass to detail
    
"index.php?cnt_=albums/albumsAdd""", array(1)); // add link

function table_albums_dataparser(&$data){

$count=count($data);
for (
$i=0;$i<$count;$i++){
$data[$i]->ImgID "<img width = \"50\" height=\"50\" src = \"../images/" "thb_" $data[$i]->ImgID "\" onerror=\"this.src='../images/nopic.jpg';\">";
}
}
?>
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586