source: contrib/Dms/out/out.AddSubFolder.php @ 3526

Revision 3526, 2.0 KB checked in by afernandes, 14 years ago (diff)

Ticket #1416 - Disponibilizado modulos Timesheet e DMS para a comunidade.

  • Property svn:executable set to *
Line 
1<?php
2include("../inc/inc.Settings.php");
3include("../inc/inc.AccessUtils.php");
4include("../inc/inc.ClassAccess.php");
5include("../inc/inc.ClassDocument.php");
6include("../inc/inc.ClassFolder.php");
7include("../inc/inc.ClassGroup.php");
8include("../inc/inc.ClassUser.php");
9include("../inc/inc.DBAccess.php");
10include("../inc/inc.FileUtils.php");
11include("../inc/inc.Language.php");
12include("../inc/inc.OutUtils.php");
13
14include("../inc/inc.Authentication.php");
15
16
17
18
19$folderid = (isset($_GET['folderid'])) ? (int) $_GET['folderid'] : 1;
20$folder = getFolder($folderid);
21
22
23if ($folder->getAccessMode($user) < M_READWRITE)
24        die("accesso denegado");
25
26
27printHTMLHead( getMLText("folder_title", array("foldername" => $folder->getName()) ) );
28?>
29
30<script language="JavaScript">
31function checkForm()
32{
33        msg = "";
34        if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
35        if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
36        if (msg != "")
37        {
38                alert(msg);
39                return false;
40        }
41        else
42                return true;
43}
44</script>
45
46<?php
47printTitleBar($folder);
48printFolderPageStart($folder);
49printPageHeader(lang(getMLText("add_subfolder")) . ": " . $folder->getName());
50
51printStartBox(lang(getMLText("add_subfolder")));
52?>
53
54<form action="../op/op.AddSubFolder.php" name="form1" onsubmit="return checkForm();">
55        <input type="Hidden" name="folderid" value="<?php print $folderid;?>">
56        <table border="0" width="100%">
57                <tr>
58                        <td class="inputDescription" width="150px"><?php echo lang("name");?>:</td>
59                        <td><input name="fname" style="width: 100%;"></td>
60                </tr>
61                <tr>
62                        <td valign="top" class="inputDescription"><?php echo lang("comment");?>:</td>
63                        <td><textarea name="comment" rows="4" style="width: 100%;"></textarea></td>
64                </tr>
65                <tr>
66                        <td class="inputDescription"><?php echo lang("sequence");?>:</td>
67                        <td><?php printSequenceChooser($folder->getSubFolders());?></td>
68                </tr>
69                <tr>
70                        <td colspan="2"><br><input type="Submit"></td>
71                </tr>
72        </table>
73</form>
74
75
76<?php
77
78printEndBox();
79printFolderPageEnd($folder);
80printHTMLFoot();
81
82?>
Note: See TracBrowser for help on using the repository browser.