..used one or more 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..
THC xConverter is a tool that makes use of (php) functions in order to calculate, fetch, convert and encrypt data
<?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;
?>