-
Notifications
You must be signed in to change notification settings - Fork 0
/
s2.php
51 lines (36 loc) · 1.23 KB
/
s2.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/*
* DCE TOOLS - Copy dce
* - STEP 2 - select source dce
*/
require_once('settings.php');
require_once('db.php');
require_once('htmlheader.php');
$sourcedb = $_POST['sourcedb'];
$targetdb = $_POST['targetdb'];
echo "<h4>Ausgewählte Quelle:</h4>" . $sourcedb . "\n";
echo "<h4>Ausgewähltes Ziel:</h4>" . $targetdb . "\n";
echo "<br><br>\n";
echo "<h2>Select Source DCE:</h2>\n";
//Get Connection
$sourceconn=getconn($username, $password,$sourcedb);
$sql = "SELECT * FROM tx_dce_domain_model_dce";
$sourceresult = getresult($sourceconn,$sql);
echo "<form action='s3.php' method='post'>\n";
echo " <select name='sourcedce'size='1' '>\n";
if ($sourceresult->num_rows > 0) {
// output data of each row
while($row = $sourceresult->fetch_assoc()) {
echo " <option value='" .$row["uid"]. "'>".$row["title"]."</option> \n";
}
}
echo " </select>\n";
echo "<input type='hidden' id='sourcedb' name='sourcedb' value='" . $sourcedb . "' />\n";
echo "<input type='hidden' id='targetdb' name='targetdb' value='" . $targetdb . "' />\n";
echo "<br><br>\n";
echo " <button type='submit'>Weiter zu Schritt 3</button>\n";
echo "</form>\n";
//Close Connection
closeconn($sourceconn);
require_once('htmlfooter.php');
?>