mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 06:01:19 +00:00
put javascript into a separate file
This commit is contained in:
parent
3f0a455260
commit
5abe031222
|
@ -34,7 +34,7 @@ if ($user->isGuest()) {
|
||||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'cachedir'=>$settings->_cacheDir, 'previewWidthList'=>$settings->_previewWidthList));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'cachedir'=>$settings->_cacheDir, 'previewWidthList'=>$settings->_previewWidthList));
|
||||||
if($view) {
|
if($view) {
|
||||||
$view->show();
|
$view($_GET);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -148,6 +148,13 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style {
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
function js() { /* {{{ */
|
||||||
|
header('Content-Type: application/javascript');
|
||||||
|
|
||||||
|
$this->printFolderChooserJs("form1");
|
||||||
|
$this->printDocumentChooserJs("form2");
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
$this->dms = $this->params['dms'];
|
$this->dms = $this->params['dms'];
|
||||||
$this->user = $this->params['user'];
|
$this->user = $this->params['user'];
|
||||||
|
@ -167,7 +174,7 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
print "<form method=\"post\" action=\"../op/op.ManageNotify.php?type=folder&action=add\" name=\"form1\">";
|
print "<form method=\"post\" action=\"../op/op.ManageNotify.php?type=folder&action=add\" name=\"form1\">";
|
||||||
$this->contentSubHeading(getMLText("choose_target_folder"));
|
$this->contentSubHeading(getMLText("choose_target_folder"));
|
||||||
$this->printFolderChooser("form1",M_READ);
|
$this->printFolderChooserHtml("form1",M_READ);
|
||||||
print "<label class=\"checkbox\">";
|
print "<label class=\"checkbox\">";
|
||||||
print "<input type=\"checkbox\" name=\"recursefolder\" value=\"1\">";
|
print "<input type=\"checkbox\" name=\"recursefolder\" value=\"1\">";
|
||||||
print getMLText("include_subdirectories");
|
print getMLText("include_subdirectories");
|
||||||
|
@ -188,7 +195,7 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style {
|
||||||
$this->contentSubHeading(getMLText("choose_target_document"));
|
$this->contentSubHeading(getMLText("choose_target_document"));
|
||||||
/* 'form1' must be passed to printDocumentChooser() because the typeahead
|
/* 'form1' must be passed to printDocumentChooser() because the typeahead
|
||||||
* function is currently hardcoded on this value */
|
* function is currently hardcoded on this value */
|
||||||
$this->printDocumentChooser("form2");
|
$this->printDocumentChooserHtml("form2");
|
||||||
print "<br /><button type='submit' class='btn'><i class=\"icon-plus\"></i> ".getMLText("add")."</button>";
|
print "<br /><button type='submit' class='btn'><i class=\"icon-plus\"></i> ".getMLText("add")."</button>";
|
||||||
print "</form>";
|
print "</form>";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user