Code: Select all
<img src="/uploads/images/#images_filename#" height="200">
Code: Select all
<img src="/uploads/images/#images_filename#" height="200">
Code: Select all
function nuOnProcessBrowseRows() {
$fileRoot = "/uploads/images/";
$fileNameColumn = 3; // 0 = ID, 1 = 1st column etc.
$imageColumn = 4; // column to display the image
$count = count($f->browse_rows);
for ($i = 0;$i < $count;$i++) {
$fileName = $f->browse_rows[$i][$fileNameColumn];
if ($fileName != '') {
$file = $fileRoot . '/' . $fileName;
if (file_exists($file)) {
$f->browse_rows[$i][$imageColumn] = '<img width="100" height="90" src="' . $fileRoot . $fileName . '?id=' . uniqid() . '">';
}
}
}
}
Code: Select all
$fileNameColumn = 1;
Code: Select all
function nuOnProcessBrowseRows() {
$fileRoot = "/uploads/images/";
$fileNameColumn = 2; // 0 = ID, 1 = 1st column etc.
$imageColumn = 1; // column to display the image
$count = count($f->browse_rows);
for ($i = 0;$i < $count;$i++) {
$fileName = $f->browse_rows[$i][$fileNameColumn];
if ($fileName != '') {
$f->browse_rows[$i][$imageColumn] = '<img width="100" height="90" src="' . $fileRoot . $fileName . '?id=' . uniqid() . '">';
}
}
}
Code: Select all
function nuOnProcessBrowseRows() {
$fileRoot = "/uploads/images/";
$imageColumn = 1; // column to display the image
$count = count($f->browse_rows);
for ($i = 0;$i < $count;$i++) {
$sqlfilename = "SELECT images.images_filename FROM images WHERE images.images_id = '#RECORD_ID#'";
$pdofilename = nuRunQuery($sqlfilename);
$filename = db_fetch_row($pdofilename);
nuDebug($filename);
if ($filename != '') {
$f->browse_rows[$i][$imageColumn] = '<img width="100" height="90" src="' . $fileRoot . $filename . '?id=' . uniqid() . '">';
}
}
}
Code: Select all
[0] :