<?php
/* +----------------------------------------------------------------------+
| Netautor Professional Application Server |
+----------------------------------------------------------------------+
| Copyright (C) 1998-2005 digiconcept GmbH. <www.digiconcept.net> |
+----------------------------------------------------------------------+
| This file is subject to license, that is bundled with this package |
| in the file LICENSE.TXT, and is available at through the |
| world-wide-web at http://www.netautor.com/license/ |
| |
| If you did not receive a copy of the license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| hide@address.com so we can mail you a copy. |
+----------------------------------------------------------------------+
| Authors: Stefan Rottensteiner <hide@address.com> |
| Marek Kadziela <hide@address.com> |
| Gregor Wollner |
| Christian Unger |
| Helli Kleinhans |
+----------------------------------------------------------------------+*/
/**
* A simple tool to reconstruct MDOCS from the search tables
*
* @author Stefan Rottensteiner
* @version $Revision: 1.6 $
*/
require_once('../../../include/init.inc');
if(!$USER->check_feature('Admin') && !$USER->check_feature('ac_database'))
{
$USER->login_call();
}
includeNaPro('mdb');
/* Vom User eigegebene Werte gege. bereinigen */
$_POST['CFG']['MDOC_ID'] = preg_replace('/[^0-9,]/','',$_POST['CFG']['MDOC_ID']);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>digiconcept/netautor/reconstructor</title>
</head>
<link rel="stylesheet" type="TEXT/CSS" media="screen" href="style.css">
<body >
<font class="text">
<table border="0" cellspacing="0" cellpadding="1">
<form action="reconstruct_action.php" method="post" name="reconstruct_cfg" id="reconstruct_cfg" target="reconstruct_action">
<tr>
<td class="text">
... by schemata
</td>
</tr>
<tr>
<td>
<select name="CFG[SCHEMATA][]" size="5" multiple class="select" style="width: 260px;">
<option value='' ></option>
<?php
$SCHEMATA = mdb_list_dbs($sql_world);
foreach ($SCHEMATA as $index => $schema)
{
$opt_value = $schema['mn_naid'];
$opt_text = $schema['mn_name'];
$opt_selected= (in_array($opt_value,$_POST['CFG']['SCHEMATA'])?'selected':'');
echo "<option value='$opt_value' $opt_selected >$opt_text</option>";
}
?>
</select>
</td>
</tr>
<tr><td colspan="2"><hr></td></tr>
<tr>
<td class="text">
... by document id(s)
</td>
</tr>
<tr>
<td class="text">
<textarea style="width: 260px;" class="input" rows="5" cols="40" name="CFG[MDOC_ID]" ><?php echo $_POST['CFG']['MDOC_ID'];?></textarea>
</td>
</tr>
<tr><td colspan="2"><hr></td></tr>
<tr>
<td class="text">
<input class="button" type="submit" name="RECONSTRUCT_ACTION" value="RECONSTRUCT" >
</td>
</tr>
</form>
</table>
</font>
</body>
</html>