..modules you must have seen the iframes used for realtime result display. In this tutorial I'm going to show you how to insert them into your module and how they function. what we..
Creates a blueprint/map of a server folder
<?php
session_cache_limiter('nocache');
header('Expires: '.gmdate('r',0));
header('Content-type: text/html');
$_DYNAMIC_ROOT = "../..";
include_once("../../header.php");
include_once("convertopt.php");
// find function
$bExists = false;
$aOptions = array();
$sFields = "";
for($x=0;$x<count($_CONVERT);$x++){
if($_CONVERT[$x]['function']==$_POST['function']){
$bExists = true;
for($y=0;$y<count($_CONVERT[$x]['fieldnames']);$y++){
// make fields
$sFields .= " <div class=\"modrow\" id=\"temp\">\n";
$sFields .= " <div class=\"modleft\">".$_CONVERT[$x]['fieldnames'][$y]."</div>\n";
$sFields .= " <div class=\"modright\">";
switch($_CONVERT[$x]['type'][$y]){
// input
case 0:
$sFields .= "<input type=\"text\" name=\"sInput".$y."\" value=\"\" size=\"35\" />";
break;
// textarea
case 1:
$sFields .= "<textarea rows=\"5\" cols=\"35\" name=\"sInput".$y."\"></textarea>";
break;
// input
default:
$sFields .= "<input type=\"text\" name=\"sInput".$y."\" value=\"\" size=\"35\" />";
}
$sFields .= " </div>\n";
$sFields .= " </div>\n";
}
break;
}
}
echo $sFields;
?>