mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-28 20:47:28 +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'));
|
$this->formSubmit("<i class=\"fa fa-search\"></i> ".getMLText('search'));
|
||||||
?>
|
?>
|
||||||
</form>
|
</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>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
// }}}
|
// }}}
|
||||||
// }}}
|
|
||||||
|
|
||||||
// Fulltext search Form {{{
|
// Fulltext search Form {{{
|
||||||
if($enablefullsearch) {
|
if($enablefullsearch) {
|
||||||
|
@ -843,6 +799,54 @@ function typeahead() { /* {{{ */
|
||||||
if($this->query) {
|
if($this->query) {
|
||||||
echo "</div>\n";
|
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->columnEnd();
|
||||||
$this->columnStart(8);
|
$this->columnStart(8);
|
||||||
if($batchmsg = $this->getParam('batchmsg')) {
|
if($batchmsg = $this->getParam('batchmsg')) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user