mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
seperate html from javascript
This commit is contained in:
parent
253075e418
commit
b21237e87a
|
@ -47,6 +47,17 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
||||||
return $str;
|
return $str;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
function js() { /* {{{ */
|
||||||
|
$user = $this->params['user'];
|
||||||
|
$folder = $this->params['folder'];
|
||||||
|
|
||||||
|
header('Content-Type: application/json');
|
||||||
|
|
||||||
|
$this->printFolderChooserJs("form1");
|
||||||
|
$this->printDeleteFolderButtonJs();
|
||||||
|
$this->printDeleteDocumentButtonJs();
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
$user = $this->params['user'];
|
$user = $this->params['user'];
|
||||||
|
@ -82,6 +93,8 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
||||||
$cachedir = $this->params['cachedir'];
|
$cachedir = $this->params['cachedir'];
|
||||||
$previewwidth = $this->params['previewWidthList'];
|
$previewwidth = $this->params['previewWidthList'];
|
||||||
|
|
||||||
|
$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/bootbox/bootbox.min.js"></script>'."\n", 'js');
|
||||||
|
|
||||||
$this->htmlStartPage(getMLText("search_results"));
|
$this->htmlStartPage(getMLText("search_results"));
|
||||||
$this->globalNavigation();
|
$this->globalNavigation();
|
||||||
$this->contentStart();
|
$this->contentStart();
|
||||||
|
@ -102,7 +115,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane <?php echo ($fullsearch == false) ? 'active' : ''; ?>" id="database">
|
<div class="tab-pane <?php echo ($fullsearch == false) ? 'active' : ''; ?>" id="database">
|
||||||
<form action="../op/op.Search.php" name="form1" onsubmit="return checkForm();">
|
<form _action="../op/op.Search.php" name="form1">
|
||||||
<?php
|
<?php
|
||||||
// Database search Form {{{
|
// Database search Form {{{
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
|
@ -154,7 +167,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("under_folder")?>:</td>
|
<td><?php printMLText("under_folder")?>:</td>
|
||||||
<td><?php $this->printFolderChooser("form1", M_READ, -1, $startfolder);?></td>
|
<td><?php $this->printFolderChooserHtml("form1", M_READ, -1, $startfolder);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("creation_date");?>:</td>
|
<td><?php printMLText("creation_date");?>:</td>
|
||||||
|
@ -355,7 +368,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
||||||
echo "<div class=\"tab-pane ".(($fullsearch == true) ? 'active' : '')."\" id=\"fulltext\">\n";
|
echo "<div class=\"tab-pane ".(($fullsearch == true) ? 'active' : '')."\" id=\"fulltext\">\n";
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
?>
|
?>
|
||||||
<form action="../op/op.Search.php" name="form2" onsubmit="return checkForm();" style="min-height: 330px;">
|
<form _action="../op/op.Search.php" name="form2" style="min-height: 330px;">
|
||||||
<input type="hidden" name="fullsearch" value="1" />
|
<input type="hidden" name="fullsearch" value="1" />
|
||||||
<table class="table-condensed">
|
<table class="table-condensed">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user