index e7d3430f9dec5661ffbc5d2b06bc7c5e5a766506..4272f76ea21fbc064e0af1e72ad0216d412f0cb6 100644 (file)
+<?php
+require_once("../../../include/autoload.inc");
+restore_error_handler();
+session_start();
+?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<button onclick='updateObjectListViewportSize();'>Tester</button>
-<a href="?d=hf">No Footer & Header</a> -
-<a href="?d=f">No Footer</a> -
-<a href="?d=h">No Header</a> -
-<a href="?d=">Normal</a>
<?php
/* This is good for testing... */
}
-/* Initiate autoloader... */
-require_once("../../include/autoload.inc");
-restore_error_handler();
+function get_smarty()
+{
+ echo "Smarty fake in each ./tests/ListTest[1-9]/index.php";
+ date_default_timezone_set("europe/berlin");
+ $smarty = new smarty;
+ /* Set template compile directory */
+ $smarty->compile_dir= '/var/spool/gosa/';
+ $smarty->template_dir = '../';
+ $smarty->caching= false;
+ $smarty->php_handling= SMARTY_PHP_REMOVE;
+ return($smarty);
+}
+
+
try {
/* Get new test instance of the Configuration */
$cr= Registry::getInstance("ConfigManager");
- $cr->load("../../gosa.conf");
-
- /* Get a new test instance of ObjectListViewports */
- $vp= new ObjectListViewport("plugin/sample");
- if(isset($_GET['d']) && preg_match("/f/",$_GET['d'])){
- $vp->enableFooter(FALSE);
- }
- if(isset($_GET['d']) && preg_match("/h/",$_GET['d'])){
- $vp->enableHeader(FALSE);
- }
+ $cr->load("../../../gosa.conf");
+
+ /* Get a new test instance of ObjectListViewports */
+ if(!isset($_SESSION['vp3'])){
+ $_SESSION['vp3'] = new ObjectListViewport("plugin/sample",TRUE);
+ }
+ $vp = $_SESSION['vp3'];
$content= $vp->render();
} catch (Exception $e) {
}
?>
- <table style='height:90%;width:90%;background-color: rgb(170, 170, 170);' cellspacing=1 cellpadding=0>
+ <table style='height:90%;width:90%;' cellpadding=0>
<tr>
<td>
<?php echo $content; ?>