Hi all,
Need some help here, in the TWGXplorer, when you go to edit a file. I would like to incorporate CKEditor into the software. I have done this, but what I need to do is have an IF statement.
IF
file_extension = .xls then open edit.php
else
open edit1.php.
Can anyone advise on the coding here please. I know it must go into include/fun_list.php
Code:
// EDIT
if(get_is_editable($dir, $item)) {
if($allow && $is_writable) {
echo "<td><a href=\"".make_html_link("edit",$dir,$item)."\">";
echo "<img class='bsprites edit_gif' align=\"middle\" ";
echo "src=\""._QUIXPLORER_URL."/_img/_.gif\" alt=\"".$GLOBALS["messages"]["editlink"]."\" title=\"";
echo $GLOBALS["messages"]["editlink"]."\"></a></td>\n";
}
else {
echo "<td><img class='bsprites edit__gif' ";
echo "src=\""._QUIXPLORER_URL."/_img/_.gif\" alt=\"".$GLOBALS["messages"]["editlink"]."\" title=\"";
echo $GLOBALS["messages"]["editlink"]."\"></td>\n";
}
but unsure how to insert IF and ELSE command and point it to my duplicated fun_edit1.php file.