C:\xampp\htdocs\kptv\admin\modules\articles\table_articles.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
<?php
require_once($LIBPATH "libutil.php");
assert_rights("C");
require_once (
$LIBPATH  "tableContent.php");
$table_articles_feeder = array("PAGES_FEEDER""DbFeeder", array("TBL_ARTICLES"nullnullnull"AND"falsefalse" ORDER BY OrderID"));
$table_articles = array(array("Ordinea""Title RO""Imagine"), array("OrderID""NameRO""ImgID"),  array(30,  30075),
    
"sortable"// table class
    
"stSortableHeader"// title class
    
"stNRow"// normal first row
    
"stFRow"// normal next row
    
"stTableRowOver",  // row over class
    
"mod.php?mod=articles&action=act_delete"// deletion link
    
"index.php?cnt_=articles/articleDetails"// details link
    
"ID",// pass to detail
    
"index.php?cnt_=articles/articleAdd""", array(1)); // add link


function table_articles_dataparser(&$data){

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

?>
x

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