Ok So I have this REALLY long link list that is dynamic. It shows what images have been uploaded. Because this list is so long, I want to put it into a container. So I thought I'd use a textarea becuase I can control the rows and columns.
They way I'd like it to work is have a table with two columns. Inthe left cloumn I wish to have this textarea box populated with links to the images. These are text link the the link names are the filenames themselves. Upon Clicking one of these link results in the actual image being displayed inthe right column.
I got everything working except for the text area. It spits out the html code instead of the wsiyg.... format. You cannot click..its just html code.
Here's the PHP of the image link list
$html_img_lst = "<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
for ($i = 0; $i < count($files); $i++) {
////$html_img_lst .= "<tr><td><a href=\"javascript:getImage('".$files[$i]['name']."');\">".$files[$i]['name']."</a></td><td align='right'>".format_size($files[$i]['size'])."</td></tr>\n";
$html_img_lst .= "<tr><td><a href=\"javascript:getImage('".$files[$i]['name']."');\">".$files[$i]['display']."</a></td><td align='right'>".format_size($files[$i]['size'])."</td></tr>\n";
}
$html_img_lst .= "</table>";
} else { // end if is array
$empty = 1;
And when I call it in the page via html coding:
<td>
<div class="ImagePreviewArea">
<textarea rows="10" cols="35">
<?php if($empty==1){ echo $lang['admin']['filemanager']['no_imgs']; } else { echo $html_img_lst; } ?>
</textarea>
</div>
What should I do to make it so I am getting text links in this list to click on rather than html source code?