addgroups.php
1.51 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
require_once("../../config/dmsDefaults.php");
require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
global $default;
if(checkSession())
{
// include the page template (with navbar)
require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
// when email button sent..send email
if ($submit)
{
//$success = $
//if successful ..rerender the page
if($success == True)
{
$Center = "<br>Group Successfully Added</br>";
$oPatternCustom = & new PatternCustom();
$oPatternCustom->setHtml($Center);
$main->setCentralPayload($oPatternCustom);
$main->render();
}
Else
{
$Center = "<br>Group Addition Unsuccessful</br>";
$oPatternCustom = & new PatternCustom();
$oPatternCustom->setHtml($Center);
$main->setCentralPayload($oPatternCustom);
$main->render();
}
}
$Center = "
<br>
</br>
<TABLE BORDER=\"0\" CELLSPACING=\"2\" CELLPADDING=\"2\">
<tr>
<td>New Group: <TD WIDTH=\"100%\"><INPUT type=\"Text\" name=\"group\" size=\"30\"></td></td>
</tr>
<tr>
<tr>
<td><center><TD WIDTH=\"80%\"><INPUT type=\"Submit\" name=\"submit\" value=\"Add Group\"></center></td></td>
</tr>
</table>
";
$oPatternListBox = & new PatternListBox("units_lookup", "name", "id", "Units");
//echo "<html><head></head><body>" . $oPatternListBox->render() . "</body></html>";
$oPatternCustom = & new PatternCustom();
$oPatternCustom->setHtml($Center);
$main->setCentralPayload($oPatternCustom);
$main->setFormAction($_SERVER["PHP_SELF"]);
$main->render();
}
?>