mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-26 19:47:27 +00:00
allow batch operation on fulltext search result
This commit is contained in:
parent
d271dfbf1f
commit
748041ffd8
|
@ -643,53 +643,9 @@ function typeahead() { /* {{{ */
|
|||
$this->formSubmit("<i class=\"fa fa-search\"></i> ".getMLText('search'));
|
||||
?>
|
||||
</form>
|
||||
<?php
|
||||
if($totaldocs) {
|
||||
ob_start();
|
||||
$this->formField(
|
||||
getMLText("include_content"),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'checkbox',
|
||||
'name'=>'includecontent',
|
||||
'id'=>'includecontent',
|
||||
'value'=>1,
|
||||
)
|
||||
);
|
||||
//$this->formSubmit("<i class=\"fa fa-download\"></i> ".getMLText('export'));
|
||||
print $this->html_link('Search', array_merge($_GET, array('action'=>'export')), array('class'=>'btn btn-primary', 'id'=>'export'), "<i class=\"fa fa-download\"></i> ".getMLText("export"), false, true)."\n";
|
||||
$content = ob_get_clean();
|
||||
$this->printAccordion(getMLText('export'), $content);
|
||||
}
|
||||
|
||||
if($total) {
|
||||
ob_start();
|
||||
$users = $dms->getAllUsers();
|
||||
$options = array();
|
||||
$options[] = array("-1", getMLText("choose_user"));
|
||||
foreach ($users as $currUser) {
|
||||
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin().' - '.$currUser->getFullName()), false, array(array('data-subtitle', htmlspecialchars($currUser->getEmail()))));
|
||||
}
|
||||
$this->formField(
|
||||
null, //getMLText("selection"),
|
||||
array(
|
||||
'element'=>'select',
|
||||
'id'=>'newowner',
|
||||
'class'=>'chzn-select',
|
||||
'options'=>$options,
|
||||
'placeholder'=>getMLText('select_users'),
|
||||
)
|
||||
);
|
||||
print $this->html_link('Search', array_merge($_GET, array('action'=>'changeowner')), array('class'=>'btn btn-primary', 'id'=>'changeowner'), "<i class=\"fa fa-user\"></i> ".getMLText("batch_change_owner"), false, true)."\n";
|
||||
$content = ob_get_clean();
|
||||
$this->printAccordion(getMLText('batch_change_owner'), $content);
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
// }}}
|
||||
// }}}
|
||||
|
||||
// Fulltext search Form {{{
|
||||
if($enablefullsearch) {
|
||||
|
@ -843,6 +799,54 @@ function typeahead() { /* {{{ */
|
|||
if($this->query) {
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
/* Batch operations {{{ */
|
||||
if($total)
|
||||
$this->contentHeading(getMLText('batch_operation'));
|
||||
if($totaldocs) {
|
||||
ob_start();
|
||||
$this->formField(
|
||||
getMLText("include_content"),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'checkbox',
|
||||
'name'=>'includecontent',
|
||||
'id'=>'includecontent',
|
||||
'value'=>1,
|
||||
)
|
||||
);
|
||||
//$this->formSubmit("<i class=\"fa fa-download\"></i> ".getMLText('export'));
|
||||
print $this->html_link('Search', array_merge($_GET, array('action'=>'export')), array('class'=>'btn btn-primary', 'id'=>'export'), "<i class=\"fa fa-download\"></i> ".getMLText("export"), false, true)."\n";
|
||||
$content = ob_get_clean();
|
||||
$this->printAccordion(getMLText('export'), $content);
|
||||
}
|
||||
|
||||
if($user->isAdmin() && $total) {
|
||||
ob_start();
|
||||
$users = $dms->getAllUsers();
|
||||
$options = array();
|
||||
$options[] = array("-1", getMLText("choose_user"));
|
||||
foreach ($users as $currUser) {
|
||||
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin().' - '.$currUser->getFullName()), false, array(array('data-subtitle', htmlspecialchars($currUser->getEmail()))));
|
||||
}
|
||||
$this->formField(
|
||||
null, //getMLText("selection"),
|
||||
array(
|
||||
'element'=>'select',
|
||||
'id'=>'newowner',
|
||||
'class'=>'chzn-select',
|
||||
'options'=>$options,
|
||||
'placeholder'=>getMLText('select_users'),
|
||||
)
|
||||
);
|
||||
print $this->html_link('Search', array_merge($_GET, array('action'=>'changeowner')), array('class'=>'btn btn-primary', 'id'=>'changeowner'), "<i class=\"fa fa-user\"></i> ".getMLText("batch_change_owner"), false, true)."\n";
|
||||
$content = ob_get_clean();
|
||||
$this->printAccordion(getMLText('batch_change_owner'), $content);
|
||||
}
|
||||
// }}}
|
||||
|
||||
?>
|
||||
<?php
|
||||
$this->columnEnd();
|
||||
$this->columnStart(8);
|
||||
if($batchmsg = $this->getParam('batchmsg')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user