mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-30 21:47:30 +00:00
remove all javascript from html output and place in a seperate file
this requires to change the popover into bootbox
This commit is contained in:
parent
c80d579072
commit
836fcd4457
|
@ -128,76 +128,6 @@ $(document).ready( function() {
|
|||
}
|
||||
});
|
||||
|
||||
$('body').on('click', 'button.removedocument', function(ev){
|
||||
ev.preventDefault();
|
||||
attr_rel = $(ev.currentTarget).attr('rel');
|
||||
attr_msg = $(ev.currentTarget).attr('msg');
|
||||
attr_formtoken = $(ev.currentTarget).attr('formtoken');
|
||||
id = attr_rel;
|
||||
$.get('../op/op.Ajax.php',
|
||||
{ command: 'deletedocument', id: id, formtoken: attr_formtoken },
|
||||
function(data) {
|
||||
// console.log(data);
|
||||
if(data.success) {
|
||||
$('#table-row-document-'+id).hide('slow');
|
||||
noty({
|
||||
text: attr_msg,
|
||||
type: 'success',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 1500,
|
||||
});
|
||||
} else {
|
||||
noty({
|
||||
text: data.message,
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 3500,
|
||||
});
|
||||
}
|
||||
},
|
||||
'json'
|
||||
);
|
||||
});
|
||||
|
||||
$('body').on('click', 'button.removefolder', function(ev){
|
||||
ev.preventDefault();
|
||||
attr_rel = $(ev.currentTarget).attr('rel');
|
||||
attr_msg = $(ev.currentTarget).attr('msg');
|
||||
attr_formtoken = $(ev.currentTarget).attr('formtoken');
|
||||
id = attr_rel;
|
||||
$.get('../op/op.Ajax.php',
|
||||
{ command: 'deletefolder', id: id, formtoken: attr_formtoken },
|
||||
function(data) {
|
||||
// console.log(data);
|
||||
if(data.success) {
|
||||
$('#table-row-folder-'+id).hide('slow');
|
||||
noty({
|
||||
text: attr_msg,
|
||||
type: 'success',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 1500,
|
||||
});
|
||||
} else {
|
||||
noty({
|
||||
text: data.message,
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 3500,
|
||||
});
|
||||
}
|
||||
},
|
||||
'json'
|
||||
);
|
||||
});
|
||||
|
||||
$('body').on('click', 'a.addtoclipboard', function(ev){
|
||||
ev.preventDefault();
|
||||
attr_rel = $(ev.currentTarget).attr('rel');
|
||||
|
|
|
@ -98,10 +98,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$this->extraheader[$type] .= $head;
|
||||
} /* }}} */
|
||||
|
||||
function htmlEndPage() { /* {{{ */
|
||||
$this->footNote();
|
||||
if($this->params['showmissingtranslations']) {
|
||||
$this->missingḺanguageKeys();
|
||||
function htmlEndPage($nofooter=false) { /* {{{ */
|
||||
if(!$nofooter) {
|
||||
$this->footNote();
|
||||
if($this->params['showmissingtranslations']) {
|
||||
$this->missingḺanguageKeys();
|
||||
}
|
||||
}
|
||||
echo '<script src="../styles/'.$this->theme.'/bootstrap/js/bootstrap.min.js"></script>'."\n";
|
||||
echo '<script src="../styles/'.$this->theme.'/datepicker/js/bootstrap-datepicker.js"></script>'."\n";
|
||||
|
@ -122,7 +124,7 @@ $(document).ready(function () {
|
|||
</script>";
|
||||
}
|
||||
if(method_exists($this, 'js'))
|
||||
echo '<script src="../out/out.'.$this->params['class'].'.php?action=js"></script>'."\n";
|
||||
echo '<script src="../out/out.'.$this->params['class'].'.php?action=js&'.$_SERVER['QUERY_STRING'].'"></script>'."\n";
|
||||
echo "</body>\n</html>\n";
|
||||
} /* }}} */
|
||||
|
||||
|
@ -864,8 +866,8 @@ $(document).ready(function () {
|
|||
}
|
||||
print "</select>";
|
||||
} /* }}} */
|
||||
|
||||
function printDocumentChooser($formName) { /* {{{ */
|
||||
|
||||
function printDocumentChooserHtml($formName) { /* {{{ */
|
||||
print "<input type=\"hidden\" id=\"docid".$formName."\" name=\"docid\" value=\"\">";
|
||||
print "<div class=\"input-append\">\n";
|
||||
print "<input type=\"text\" id=\"choosedocsearch\" data-target=\"docid".$formName."\" data-provide=\"typeahead\" name=\"docname".$formName."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" />";
|
||||
|
@ -884,7 +886,11 @@ $(document).ready(function () {
|
|||
<button class="btn btn-primary" data-dismiss="modal" aria-hidden="true"><?php printMLText("close") ?></button>
|
||||
</div>
|
||||
</div>
|
||||
<script language="JavaScript">
|
||||
<?php
|
||||
} /* }}} */
|
||||
|
||||
function printDocumentChooserJs($formName) { /* {{{ */
|
||||
?>
|
||||
modalDocChooser<?php echo $formName ?> = $('#docChooser<?php echo $formName ?>');
|
||||
function documentSelected<?php echo $formName ?>(id, name) {
|
||||
$('#docid<?php echo $formName ?>').val(id);
|
||||
|
@ -893,6 +899,16 @@ function documentSelected<?php echo $formName ?>(id, name) {
|
|||
}
|
||||
function folderSelected<?php echo $formName ?>(id, name) {
|
||||
}
|
||||
<?php
|
||||
} /* }}} */
|
||||
|
||||
function printDocumentChooser($formName) { /* {{{ */
|
||||
$this->printDocumentChooserHtml($formName);
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
<?php
|
||||
$this->printDocumentChooserJs($formName);
|
||||
?>
|
||||
</script>
|
||||
<?php
|
||||
} /* }}} */
|
||||
|
@ -1135,6 +1151,21 @@ function clearFilename<?php print $formName ?>() {
|
|||
exit;
|
||||
} /* }}} */
|
||||
|
||||
function printNewTreeNavigation($folderid=0, $accessmode=M_READ, $showdocs=0, $formid='form1', $expandtree=0, $orderby='') { /* {{{ */
|
||||
$this->printNewTreeNavigationHtml($folderid, $accessmode, $showdocs, $formid, $expandtree, $orderby);
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
<?php
|
||||
$this->printNewTreeNavigationJs($folderid, $accessmode, $showdocs, $formid, $expandtree, $orderby);
|
||||
?>
|
||||
</script>
|
||||
<?php
|
||||
} /* }}} */
|
||||
|
||||
function printNewTreeNavigationHtml($folderid=0, $accessmode=M_READ, $showdocs=0, $formid='form1', $expandtree=0, $orderby='') { /* {{{ */
|
||||
echo "<div id=\"jqtree".$formid."\" style=\"margin-left: 10px;\" data-url=\"../op/op.Ajax.php?command=subtree&showdocs=".$showdocs."&orderby=".$orderby."\"></div>\n";
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Create a tree of folders using jqtree.
|
||||
*
|
||||
|
@ -1147,7 +1178,7 @@ function clearFilename<?php print $formName ?>() {
|
|||
* @param boolean $showdocs set to true if tree shall contain documents
|
||||
* as well.
|
||||
*/
|
||||
function printNewTreeNavigation($folderid=0, $accessmode=M_READ, $showdocs=0, $formid='form1', $expandtree=0, $orderby='') { /* {{{ */
|
||||
function printNewTreeNavigationJs($folderid=0, $accessmode=M_READ, $showdocs=0, $formid='form1', $expandtree=0, $orderby='') { /* {{{ */
|
||||
function jqtree($path, $folder, $user, $accessmode, $showdocs=1, $expandtree=0, $orderby='') {
|
||||
if($path || $expandtree) {
|
||||
if($path)
|
||||
|
@ -1210,9 +1241,7 @@ function clearFilename<?php print $formName ?>() {
|
|||
$tree = array(array('label'=>$root->getName(), 'id'=>$root->getID(), 'load_on_demand'=>true, 'is_folder'=>true));
|
||||
}
|
||||
|
||||
echo "<div id=\"jqtree".$formid."\" style=\"margin-left: 10px;\" data-url=\"../op/op.Ajax.php?command=subtree&showdocs=".$showdocs."&orderby=".$orderby."\"></div>\n";
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
var data = <?php echo json_encode($tree); ?>;
|
||||
$(function() {
|
||||
$('#jqtree<?php echo $formid ?>').tree({
|
||||
|
@ -1237,7 +1266,6 @@ $(function() {
|
|||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
} /* }}} */
|
||||
|
||||
|
@ -1375,14 +1403,7 @@ $(function() {
|
|||
function printDeleteDocumentButton($document, $msg, $return=false){ /* {{{ */
|
||||
$docid = $document->getID();
|
||||
$content = '';
|
||||
$content .= '<a id="delete-document-btn-'.$docid.'" rel="'.$docid.'" msg="'.getMLText($msg).'"><i class="icon-remove"></i></a>';
|
||||
$this->addFooterJS("
|
||||
$('#delete-document-btn-".$docid."').popover({
|
||||
title: '".getMLText("rm_document")."',
|
||||
placement: 'left',
|
||||
html: true,
|
||||
content: \"<div>".htmlspecialchars(getMLText("confirm_rm_document", array ("documentname" => $document->getName())), ENT_QUOTES)."</div><div><button class='btn btn-danger removedocument' style='float: right; margin:10px 0px;' rel='".$docid."' msg='".getMLText($msg)."' formtoken='".createFormKey('removedocument')."' id='confirm-delete-document-btn-".$docid."'><i class='icon-remove'></i> ".getMLText("rm_document")."</button> <button type='button' class='btn' style='float: right; margin:10px 10px;' onclick='$("#delete-document-btn-".$docid."").popover("hide");'>".getMLText('cancel')."</button></div>\"});
|
||||
");
|
||||
$content .= '<a class="delete-document-btn" rel="'.$docid.'" msg="'.getMLText($msg).'"confirmmsg="'.htmlspecialchars(getMLText("confirm_rm_document", array ("documentname" => $document->getName())), ENT_QUOTES).'"><i class="icon-remove"></i></a>';
|
||||
if($return)
|
||||
return $content;
|
||||
else
|
||||
|
@ -1390,6 +1411,56 @@ $('#delete-document-btn-".$docid."').popover({
|
|||
return '';
|
||||
} /* }}} */
|
||||
|
||||
function printDeleteDocumentButtonJs(){ /* {{{ */
|
||||
echo "
|
||||
$(document).ready(function () {
|
||||
$('.delete-document-btn').click(function(ev) {
|
||||
id = $(ev.currentTarget).attr('rel');
|
||||
confirmmsg = $(ev.currentTarget).attr('confirmmsg');
|
||||
msg = $(ev.currentTarget).attr('msg');
|
||||
formtoken = '".createFormKey('removedocument')."';
|
||||
bootbox.dialog(confirmmsg, [{
|
||||
\"label\" : \"<i class='icon-remove'></i> ".getMLText("rm_document")."\",
|
||||
\"class\" : \"btn-danger\",
|
||||
\"callback\": function() {
|
||||
$.get('../op/op.Ajax.php',
|
||||
{ command: 'deletedocument', id: id, formtoken: formtoken },
|
||||
function(data) {
|
||||
if(data.success) {
|
||||
$('#table-row-document-'+id).hide('slow');
|
||||
noty({
|
||||
text: msg,
|
||||
type: 'success',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 1500,
|
||||
});
|
||||
} else {
|
||||
noty({
|
||||
text: data.message,
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 3500,
|
||||
});
|
||||
}
|
||||
},
|
||||
'json'
|
||||
);
|
||||
}
|
||||
}, {
|
||||
\"label\" : \"".getMLText("cancel")."\",
|
||||
\"class\" : \"btn-cancel\",
|
||||
\"callback\": function() {
|
||||
}
|
||||
}]);
|
||||
});
|
||||
});
|
||||
";
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Print button with link for deleting a folder
|
||||
*
|
||||
|
@ -1404,14 +1475,7 @@ $('#delete-document-btn-".$docid."').popover({
|
|||
function printDeleteFolderButton($folder, $msg, $return=false){ /* {{{ */
|
||||
$folderid = $folder->getID();
|
||||
$content = '';
|
||||
$content .= '<a id="delete-folder-btn-'.$folderid.'" rel="'.$folderid.'" msg="'.getMLText($msg).'"><i class="icon-remove"></i></a>';
|
||||
$this->addFooterJS("
|
||||
$('#delete-folder-btn-".$folderid."').popover({
|
||||
title: '".getMLText("rm_folder")."',
|
||||
placement: 'left',
|
||||
html: true,
|
||||
content: \"<div>".htmlspecialchars(getMLText("confirm_rm_folder", array ("foldername" => $folder->getName())), ENT_QUOTES)."</div><div><button class='btn btn-danger removefolder' style='float: right; margin:10px 0px;' rel='".$folderid."' msg='".getMLText($msg)."' formtoken='".createFormKey('removefolder')."' id='confirm-delete-folder-btn-".$folderid."'><i class='icon-remove'></i> ".getMLText("rm_folder")."</button> <button type='button' class='btn' style='float: right; margin:10px 10px;' onclick='$("#delete-folder-btn-".$folderid."").popover("hide");'>".getMLText('cancel')."</button></div>\"});
|
||||
");
|
||||
$content .= '<a class="delete-folder-btn" rel="'.$folderid.'" msg="'.getMLText($msg).'" confirmmsg="'.htmlspecialchars(getMLText("confirm_rm_folder", array ("foldername" => $folder->getName())), ENT_QUOTES).'"><i class="icon-remove"></i></a>';
|
||||
if($return)
|
||||
return $content;
|
||||
else
|
||||
|
@ -1419,6 +1483,56 @@ $('#delete-folder-btn-".$folderid."').popover({
|
|||
return '';
|
||||
} /* }}} */
|
||||
|
||||
function printDeleteFolderButtonJs(){ /* {{{ */
|
||||
echo "
|
||||
$(document).ready(function () {
|
||||
$('.delete-folder-btn').click(function(ev) {
|
||||
id = $(ev.currentTarget).attr('rel');
|
||||
confirmmsg = $(ev.currentTarget).attr('confirmmsg');
|
||||
msg = $(ev.currentTarget).attr('msg');
|
||||
formtoken = '".createFormKey('removefolder')."';
|
||||
bootbox.dialog(confirmmsg, [{
|
||||
\"label\" : \"<i class='icon-remove'></i> ".getMLText("rm_folder")."\",
|
||||
\"class\" : \"btn-danger\",
|
||||
\"callback\": function() {
|
||||
$.get('../op/op.Ajax.php',
|
||||
{ command: 'deletefolder', id: id, formtoken: formtoken },
|
||||
function(data) {
|
||||
if(data.success) {
|
||||
$('#table-row-folder-'+id).hide('slow');
|
||||
noty({
|
||||
text: msg,
|
||||
type: 'success',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 1500,
|
||||
});
|
||||
} else {
|
||||
noty({
|
||||
text: data.message,
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 3500,
|
||||
});
|
||||
}
|
||||
},
|
||||
'json'
|
||||
);
|
||||
}
|
||||
}, {
|
||||
\"label\" : \"".getMLText("cancel")."\",
|
||||
\"class\" : \"btn-cancel\",
|
||||
\"callback\": function() {
|
||||
}
|
||||
}]);
|
||||
});
|
||||
});
|
||||
";
|
||||
} /* }}} */
|
||||
|
||||
function printLockButton($document, $msglock, $msgunlock, $return=false) { /* {{{ */
|
||||
$docid = $document->getID();
|
||||
if($document->isLocked()) {
|
||||
|
@ -2034,11 +2148,10 @@ mayscript>
|
|||
*
|
||||
* @param object $document document
|
||||
*/
|
||||
protected function printTimeline($timelineurl, $height=300, $start='', $end='', $skip=array()) { /* {{{ */
|
||||
protected function printTimelineJs($timelineurl, $height=300, $start='', $end='', $skip=array()) { /* {{{ */
|
||||
if(!$timelineurl)
|
||||
return;
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
var timeline;
|
||||
var data;
|
||||
|
||||
|
@ -2087,10 +2200,20 @@ mayscript>
|
|||
}
|
||||
);
|
||||
});
|
||||
<?php
|
||||
} /* }}} */
|
||||
|
||||
</script>
|
||||
protected function printTimelineHtml($height) { /* {{{ */
|
||||
?>
|
||||
<div id="timeline" style="height: <?= $height ?>px;"></div>
|
||||
<?php
|
||||
} /* }}} */
|
||||
|
||||
protected function printTimeline($timelineurl, $height=300, $start='', $end='', $skip=array()) { /* {{{ */
|
||||
echo "<script type=\"text/javascript\">\n";
|
||||
$this->printTimelineJs($timelineurl, $height, $start, $end, $skip);
|
||||
echo "</script>";
|
||||
$this->printTimelineHtml($height);
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -31,6 +31,12 @@ require_once("class.Bootstrap.php");
|
|||
*/
|
||||
class SeedDMS_View_DocumentChooser extends SeedDMS_Bootstrap_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$folder = $this->params['folder'];
|
||||
$form = $this->params['form'];
|
||||
$this->printNewTreeNavigationJs($folder->getID(), M_READ, 1, $form);
|
||||
} /* }}} */
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
|
@ -39,9 +45,10 @@ class SeedDMS_View_DocumentChooser extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
$this->htmlStartPage(getMLText("choose_target_document"));
|
||||
$this->contentContainerStart();
|
||||
$this->printNewTreeNavigation($folder->getID(), M_READ, 1, $form);
|
||||
$this->printNewTreeNavigationHtml($folder->getID(), M_READ, 1, $form);
|
||||
$this->contentContainerEnd();
|
||||
echo "</body>\n</html>\n";
|
||||
$this->htmlEndPage(true);
|
||||
// echo "</body>\n</html>\n";
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -110,6 +110,14 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
echo json_encode($jsondata);
|
||||
} /* }}} */
|
||||
|
||||
function js() { /* {{{ */
|
||||
$document = $this->params['document'];
|
||||
|
||||
header('Content-Type: application/json');
|
||||
$this->printTimelineJs('out.ViewDocument.php?action=timelinedata&documentid='.$document->getID(), 300, '', date('Y-m-d'));
|
||||
$this->printDocumentChooserJs("form1");
|
||||
} /* }}} */
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
|
@ -1085,7 +1093,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
<table class="table-condensed">
|
||||
<tr>
|
||||
<td><?php printMLText("add_document_link");?>:</td>
|
||||
<td><?php $this->printDocumentChooser("form1");?></td>
|
||||
<td><?php $this->printDocumentChooserHtml("form1");?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if ($document->getAccessMode($user) >= M_READWRITE) {
|
||||
|
@ -1171,7 +1179,8 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
}
|
||||
$item['msg'] = $msg;
|
||||
}
|
||||
$this->printTimeline('out.ViewDocument.php?action=timelinedata&documentid='.$document->getID(), 300, '', date('Y-m-d'));
|
||||
// $this->printTimeline('out.ViewDocument.php?action=timelinedata&documentid='.$document->getID(), 300, '', date('Y-m-d'));
|
||||
$this->printTimelineHtml(300);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -71,6 +71,33 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
}
|
||||
} /* }}} */
|
||||
|
||||
function js() { /* {{{ */
|
||||
$user = $this->params['user'];
|
||||
$folder = $this->params['folder'];
|
||||
$orderby = $this->params['orderby'];
|
||||
$expandFolderTree = $this->params['expandFolderTree'];
|
||||
$enableDropUpload = $this->params['enableDropUpload'];
|
||||
|
||||
header('Content-Type: application/json');
|
||||
?>
|
||||
function folderSelected(id, name) {
|
||||
window.location = '../out/out.ViewFolder.php?folderid=' + id;
|
||||
}
|
||||
<?php
|
||||
$this->printNewTreeNavigationJs($folder->getID(), M_READ, 0, '', $expandFolderTree == 2, $orderby);
|
||||
|
||||
if (0 && $enableDropUpload && $folder->getAccessMode($user) >= M_READWRITE) {
|
||||
echo "SeedDMSUpload.setUrl('../op/op.Ajax.php');";
|
||||
echo "SeedDMSUpload.setAbortBtnLabel('".getMLText("cancel")."');";
|
||||
echo "SeedDMSUpload.setEditBtnLabel('".getMLText("edit_document_props")."');";
|
||||
echo "SeedDMSUpload.setMaxFileSize(".SeedDMS_Core_File::parse_filesize(ini_get("upload_max_filesize")).");";
|
||||
echo "SeedDMSUpload.setMaxFileSizeMsg('".getMLText("uploading_maxsize")."');";
|
||||
}
|
||||
|
||||
$this->printDeleteFolderButtonJs();
|
||||
$this->printDeleteDocumentButtonJs();
|
||||
} /* }}} */
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
|
@ -89,6 +116,8 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
$folderid = $folder->getId();
|
||||
|
||||
$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/bootbox/bootbox.min.js"></script>'."\n", 'js');
|
||||
|
||||
$this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))));
|
||||
|
||||
$this->globalNavigation($folder);
|
||||
|
@ -111,14 +140,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
if ($showtree==1){
|
||||
$this->contentHeading("<a href=\"../out/out.ViewFolder.php?folderid=". $folderid."&showtree=0\"><i class=\"icon-minus-sign\"></i></a>", true);
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function folderSelected(id, name) {
|
||||
window.location = '../out/out.ViewFolder.php?folderid=' + id;
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
$this->printNewTreeNavigation($folderid, M_READ, 0, '', $expandFolderTree == 2, $orderby);
|
||||
$this->printNewTreeNavigationHtml($folderid, M_READ, 0, '', $expandFolderTree == 2, $orderby);
|
||||
$this->contentContainerEnd();
|
||||
} else {
|
||||
$this->contentHeading("<a href=\"../out/out.ViewFolder.php?folderid=". $folderid."&showtree=1\"><i class=\"icon-plus-sign\"></i></a>", true);
|
||||
|
@ -198,11 +220,11 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
echo "</div>";
|
||||
echo "<div class=\"span4\">";
|
||||
$this->contentHeading(getMLText("dropupload"), true);
|
||||
$this->addFooterJS("SeedDMSUpload.setUrl('../op/op.Ajax.php');");
|
||||
$this->addFooterJS("SeedDMSUpload.setAbortBtnLabel('".getMLText("cancel")."');");
|
||||
$this->addFooterJS("SeedDMSUpload.setEditBtnLabel('".getMLText("edit_document_props")."');");
|
||||
$this->addFooterJS("SeedDMSUpload.setMaxFileSize(".SeedDMS_Core_File::parse_filesize(ini_get("upload_max_filesize")).");");
|
||||
$this->addFooterJS("SeedDMSUpload.setMaxFileSizeMsg('".getMLText("uploading_maxsize")."');");
|
||||
// $this->addFooterJS("SeedDMSUpload.setUrl('../op/op.Ajax.php');");
|
||||
// $this->addFooterJS("SeedDMSUpload.setAbortBtnLabel('".getMLText("cancel")."');");
|
||||
// $this->addFooterJS("SeedDMSUpload.setEditBtnLabel('".getMLText("edit_document_props")."');");
|
||||
// $this->addFooterJS("SeedDMSUpload.setMaxFileSize(".SeedDMS_Core_File::parse_filesize(ini_get("upload_max_filesize")).");");
|
||||
// $this->addFooterJS("SeedDMSUpload.setMaxFileSizeMsg('".getMLText("uploading_maxsize")."');");
|
||||
?>
|
||||
<div id="dragandrophandler" class="well alert" data-target="<?php echo $folder->getID(); ?>" data-formtoken="<?php echo createFormKey('adddocument'); ?>"><?php printMLText('drop_files_here'); ?></div>
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue
Block a user