C:\xampp\htdocs\kptv2\admin\modules\gallery\table_gallery.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
25
26
27
<?php
require_once($LIBPATH "libutil.php");
assert_rights("E");
require_once (
$LIBPATH  "tableContent.php");
$table_gallery_feeder = array("GALLERY_FEEDER""DbFeeder", array("TBL_GALLERY"nullnullnull"AND"falsefalse));

$table_gallery = array(array("ID""Nume""Galeria""Afisata""Imagine""Data si Ora"),
    array(
"ID","NameRO""AlbumID""Publish""Image""Date"),  array(302008080808050),
    
"sortable"// table class
    
"stSortableHeader"// title class
    
"stNRow"// normal first row
    
"stFRow"// normal next row
    
"stTableRowOver",  // row over class
    
"mod.php?mod=gallery&action=act_delete"// deletion link
    
"index.php?cnt_=gallery/galleryDetails"// details link
    
"ID",// pass to detail
    
"index.php?cnt_=gallery/galleryAdd""", array(1)); // add link

function table_gallery_dataparser(&$data) {
    
$yesNo = array("Nu""Da");
    
$count count($data);
    for(
$i 0$i $count$i++) {
        
$data[$i]->Publish $yesNo[$data[$i]->Publish];
        
$data[$i]->Image "<img width = \"50\" height=\"50\" src = \"../images/galerie/" $data[$i]->Image "\">";
    }
}
?>
x

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