Location: PHPKode > scripts > Bohemian Image Gallery > w3easyAdmin/modules/w3eA_kcf_frame.php
<?php
$action		= $_SERVER['PHP_SELF'];
$charset	= "utf-8";
// POST
$lang   	= $_POST['lang'];
$type   	= $_POST['type'];

if ($type == "") {$type = "files";}
if ($lang == "") {$lang = "en";}

// <iframe src='kcfinder/browse.php?type=$type&amp;lang=$lang' width='778' height='450' frameborder='0' scrolling='no'>kcfinder</iframe>
if (file_exists("kcfinder/browse.php")){
	$kcf_iframe  = "<iframe src='kcfinder/browse.php?type=$type&amp;lang=$lang' ";
	$kcf_iframe .= "width='778' height='450' frameborder='0' scrolling='no'>kcfinder</iframe>";
}
else {
	$kcf_iframe  = "<div style='width:550px; margin:30px auto; padding:10px; border:2px solid #33cc33;'>\n";
	$kcf_iframe .= "<p><strong>The KCFinder file manager was not found.</strong></p>";
	$kcf_iframe .= "<p>Make sure, that the KCFinder scriptfolder is in the 'w3easyAdmin/modules/' directory.</p>";
	$kcf_iframe .= "<p>Presumably you could download the KCFinder from it's website ";
	$kcf_iframe .= "<a href='http://kcfinder.sunhater.com/' target='_blank'>kcfinder.sunhater.com/</a>.</p>";
	$kcf_iframe .= "<p>Read in the w3easyAdmin help file how to integrate the KCFinder.</p></div>";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>KCFinder w3easyAdmin GUI</title>
<style type='text/css'>
*          {margin:0; padding:0; font-family:Arial, Verdana, Geneva, Helvetica, sans-serif;}
body       {background:#C7C7C7; background-image:url(../styles/verlauf_grau2.bmp); background-repeat:repeat-x;}
h1         {font-size:26px; color:#33cc33; margin:0 0 20px 0;}
p          {margin:10px 0;}
select     {width:55%;}
table      {width:778px; margin:0 0 10px 0;}
td         {width:35%;}
.sep       {width:5%;}
.submit    {width:20%; text-align:right;}
#left      {width:0; padding:0 0 10px 5px; visibility:hidden;}
#middle    {width:828px; padding:10px 15px;}
#right     {width:160px;}
#kcf_div   {width:778px; margin:10px auto; padding:10px; border:1px solid #fff; 
            background-image:url(../styles/verlauf_grau.bmp); background-repeat:repeat-x;}
</style>
</head>
<body>
<?php
echo <<<HEREDOC
<div id='kcf_div'>
<h1>KCFinder w3easyAdmin GUI</h1>
<form class='editform' action='$action' method='POST' accept-charset='$charset'>
<table summary=''>
<tr><td>Directory:  
<select name='type'>
<option selected>$type</option><option>files</option><option>images</option><option>flash</option>
</select></td>
<td class='sep'></td>
<td>Language:  
<select name='lang'>
<option selected>$lang</option><option>en</option><option>de</option><option>fr</option>
</select></td>
<td class='sep'></td>
<td class='submit'><input type='submit' value='submit data'></td>
</tr>
</table>
</form>
$kcf_iframe
</div>
HEREDOC;
?>
</body>
</html>
Return current item: Bohemian Image Gallery