function loadTabImgs($dir) {
$ignoreTabImgs = '.|..|.htaccess|index.php|.tmp';
$tab_images = makefilelist(TAB_FOLDER.$dir, $ignoreTabImgs, true, 'files', '.png,.gif,.jpg,.jpeg');
return (isset($tab_images)) ? $tab_images : false;
}
$tab_images = loadTabImgs(TAB_FOLDER);
if (is_array($tab_images) && count($tab_images) > 0) {
echo "<div align='center'><h4><strong>Uploaded Image Names For Textarea</strong></h4></div>n";
echo "<div align='center'><table align='center' border='1'><tr>n";
$i = 0;
foreach($tab_images as $img_name) {
echo "<td><b>$img_name</b></td>n";
$i++;
}
}
echo "</tr></table></div>n";
$tab_images = loadTabImgs(TAB_FOLDER);
if (is_array($tab_images) && count($tab_images) > 0) {
echo "<div align='center'><table align='center' border='1'><tr>n";
echo "<td bgcolor='#840000' colspan='6' align='center'><span style='color:white;'><h4><strong>Uploaded Image Names For Textarea</strong></h4></span></td></tr><tr>n";
$i = 1;
foreach($tab_images as $img_name) {
echo "<td bgcolor='#B7DBFF' align='center'><b>$img_name </b></td>n";
if ($i == 6 || $i ==12 || $i ==18) {
echo "</tr><tr>n";
}
$i++;
}
}
echo "</tr></table></div>n";
Category Forum
Code Snippet and functions - 9Labels
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions