mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
???
This commit is contained in:
parent
bdc3a28dcf
commit
a71cb01c85
|
@ -44,7 +44,7 @@ switch($type) {
|
|||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'rootfolder'=>$rootfolder, 'type'=>$type, 'data'=>$data));
|
||||
if($view) {
|
||||
$view->show();
|
||||
$view($_GET);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ else $mode='web';
|
|||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'logname'=>$logname, 'mode'=>$mode, 'contentdir'=>$settings->_contentDir));
|
||||
if($view) {
|
||||
$view->show();
|
||||
$view($_GET);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ $rootfolder = $dms->getFolder($settings->_rootFolderID);
|
|||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'rootfolder'=>$rootfolder));
|
||||
if($view) {
|
||||
$view->show();
|
||||
$view($_GET);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,6 +32,8 @@ require_once("class.Bootstrap.php");
|
|||
class SeedDMS_View_BackupTools extends SeedDMS_Bootstrap_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/json');
|
||||
|
||||
$this->printFolderChooserJs("form1");
|
||||
$this->printFolderChooserJs("form2");
|
||||
$this->printFolderChooserJs("form3");
|
||||
|
|
|
@ -30,68 +30,14 @@ require_once("class.Bootstrap.php");
|
|||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Charts extends SeedDMS_Bootstrap_Style {
|
||||
var $dms;
|
||||
var $folder_count;
|
||||
var $document_count;
|
||||
var $file_count;
|
||||
var $storage_size;
|
||||
|
||||
function show() { /* {{{ */
|
||||
$this->dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
$rootfolder = $this->params['rootfolder'];
|
||||
function js() { /* {{{ */
|
||||
$data = $this->params['data'];
|
||||
$type = $this->params['type'];
|
||||
|
||||
$this->htmlAddHeader(
|
||||
'<script type="text/javascript" src="../styles/bootstrap/flot/jquery.flot.min.js"></script>'."\n".
|
||||
'<script type="text/javascript" src="../styles/bootstrap/flot/jquery.flot.pie.min.js"></script>'."\n".
|
||||
'<script type="text/javascript" src="../styles/bootstrap/flot/jquery.flot.categories.min.js"></script>'."\n".
|
||||
'<script type="text/javascript" src="../styles/bootstrap/flot/jquery.flot.time.min.js"></script>'."\n");
|
||||
|
||||
$this->htmlStartPage(getMLText("folders_and_documents_statistic"));
|
||||
$this->globalNavigation();
|
||||
$this->contentStart();
|
||||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
||||
header('Content-Type: application/json');
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
echo "<div class=\"row-fluid\">\n";
|
||||
|
||||
echo "<div class=\"span3\">\n";
|
||||
$this->contentHeading(getMLText("chart_selection"));
|
||||
echo "<div class=\"well\">\n";
|
||||
foreach(array('docsperuser', 'sizeperuser', 'docspermimetype', 'docspercategory', 'docsperstatus', 'docspermonth', 'docsaccumulated') as $atype) {
|
||||
echo "<div><a href=\"?type=".$atype."\">".getMLText('chart_'.$atype.'_title')."</a></div>\n";
|
||||
}
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
if(in_array($type, array('docspermonth', 'docsaccumulated'))) {
|
||||
echo "<div class=\"span9\">\n";
|
||||
} else {
|
||||
echo "<div class=\"span6\">\n";
|
||||
}
|
||||
$this->contentHeading(getMLText('chart_'.$type.'_title'));
|
||||
echo "<div class=\"well\">\n";
|
||||
?>
|
||||
<div id="chart" style="height: 400px;" class="chart"></div>
|
||||
<?php
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
if(!in_array($type, array('docspermonth', 'docsaccumulated'))) {
|
||||
echo "<div class=\"span3\">\n";
|
||||
$this->contentHeading(getMLText('legend'));
|
||||
echo "<div class=\"well\" id=\"legend\">\n";
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$("<div id='tooltip'></div>").css({
|
||||
position: "absolute",
|
||||
display: "none",
|
||||
|
@ -235,9 +181,62 @@ $(document).ready( function() {
|
|||
});
|
||||
<?php
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
function show() { /* {{{ */
|
||||
$this->dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
$rootfolder = $this->params['rootfolder'];
|
||||
$data = $this->params['data'];
|
||||
$type = $this->params['type'];
|
||||
|
||||
$this->htmlAddHeader(
|
||||
'<script type="text/javascript" src="../styles/bootstrap/flot/jquery.flot.min.js"></script>'."\n".
|
||||
'<script type="text/javascript" src="../styles/bootstrap/flot/jquery.flot.pie.min.js"></script>'."\n".
|
||||
'<script type="text/javascript" src="../styles/bootstrap/flot/jquery.flot.categories.min.js"></script>'."\n".
|
||||
'<script type="text/javascript" src="../styles/bootstrap/flot/jquery.flot.time.min.js"></script>'."\n");
|
||||
|
||||
$this->htmlStartPage(getMLText("folders_and_documents_statistic"));
|
||||
$this->globalNavigation();
|
||||
$this->contentStart();
|
||||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
||||
|
||||
?>
|
||||
</script>
|
||||
|
||||
<?php
|
||||
echo "<div class=\"row-fluid\">\n";
|
||||
|
||||
echo "<div class=\"span3\">\n";
|
||||
$this->contentHeading(getMLText("chart_selection"));
|
||||
echo "<div class=\"well\">\n";
|
||||
foreach(array('docsperuser', 'sizeperuser', 'docspermimetype', 'docspercategory', 'docsperstatus', 'docspermonth', 'docsaccumulated') as $atype) {
|
||||
echo "<div><a href=\"?type=".$atype."\">".getMLText('chart_'.$atype.'_title')."</a></div>\n";
|
||||
}
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
if(in_array($type, array('docspermonth', 'docsaccumulated'))) {
|
||||
echo "<div class=\"span9\">\n";
|
||||
} else {
|
||||
echo "<div class=\"span6\">\n";
|
||||
}
|
||||
$this->contentHeading(getMLText('chart_'.$type.'_title'));
|
||||
echo "<div class=\"well\">\n";
|
||||
?>
|
||||
<div id="chart" style="height: 400px;" class="chart"></div>
|
||||
<?php
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
if(!in_array($type, array('docspermonth', 'docsaccumulated'))) {
|
||||
echo "<div class=\"span3\">\n";
|
||||
$this->contentHeading(getMLText('legend'));
|
||||
echo "<div class=\"well\" id=\"legend\">\n";
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
|
|
|
@ -67,7 +67,10 @@ class SeedDMS_View_LogManagement extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
if ($print_header) printMLText("empty_notify_list");
|
||||
else print "<tr><td><i class=\"icon-arrow-up\"></i></td><td colspan=\"2\"><button type=\"submit\" class=\"btn\"><i class=\"icon-remove\"></i> ".getMLText('remove_marked_files')."</button></td></tr></table></form>\n";
|
||||
echo "<script>\n";
|
||||
} /* }}} */
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/json');
|
||||
?>
|
||||
$(document).ready( function() {
|
||||
$('i.icon-arrow-up').on('click', function(e) {
|
||||
|
@ -78,7 +81,6 @@ $(document).ready( function() {
|
|||
|
||||
});
|
||||
<?php
|
||||
echo "</script>\n";
|
||||
} /* }}} */
|
||||
|
||||
function show() { /* {{{ */
|
||||
|
|
|
@ -175,20 +175,6 @@ class SeedDMS_View_Statistic extends SeedDMS_Bootstrap_Style {
|
|||
}
|
||||
</style>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
function showDocument(id) {
|
||||
url = "out.DetailedStatistic.php?documentid=" + id;
|
||||
alert(url);
|
||||
}
|
||||
|
||||
function showFolder(id) {
|
||||
url = "out.DetailedStatistic.php?folderid=" + id;
|
||||
alert(url);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
||||
$this->contentHeading(getMLText("folders_and_documents_statistic"));
|
||||
|
|
|
@ -30,11 +30,6 @@ require_once("class.Bootstrap.php");
|
|||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Timeline extends SeedDMS_Bootstrap_Style {
|
||||
var $dms;
|
||||
var $folder_count;
|
||||
var $document_count;
|
||||
var $file_count;
|
||||
var $storage_size;
|
||||
|
||||
function iteminfo() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -130,6 +125,30 @@ class SeedDMS_View_Timeline extends SeedDMS_Bootstrap_Style {
|
|||
echo json_encode($jsondata);
|
||||
} /* }}} */
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/json');
|
||||
?>
|
||||
$(document).ready(function () {
|
||||
$('#update').click(function(ev){
|
||||
ev.preventDefault();
|
||||
$.getJSON(
|
||||
'out.Timeline.php?action=data&' + $('#form1').serialize(),
|
||||
function(data) {
|
||||
$.each( data, function( key, val ) {
|
||||
val.start = new Date(val.start);
|
||||
});
|
||||
timeline.setData(data);
|
||||
timeline.redraw();
|
||||
// timeline.setVisibleChartRange(0,0);
|
||||
}
|
||||
);
|
||||
});
|
||||
});
|
||||
<?php
|
||||
$timelineurl = 'out.Timeline.php?action=data&fromdate='.date('Y-m-d', $from).'&todate='.date('Y-m-d', $to).'&skip='.urldecode(http_build_query(array('skip'=>$skip)));
|
||||
$this->printTimelineJs($timelineurl, 550, ''/*date('Y-m-d', $from)*/, ''/*date('Y-m-d', $to+1)*/, $skip);
|
||||
} /* }}} */
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
|
@ -160,11 +179,11 @@ class SeedDMS_View_Timeline extends SeedDMS_Bootstrap_Style {
|
|||
?>
|
||||
|
||||
<?php
|
||||
echo "<div class=\"row-fluid\">\n";
|
||||
echo "<div class=\"row-fluid\">\n";
|
||||
|
||||
echo "<div class=\"span3\">\n";
|
||||
$this->contentHeading(getMLText("timeline"));
|
||||
echo "<div class=\"well\">\n";
|
||||
echo "<div class=\"span3\">\n";
|
||||
$this->contentHeading(getMLText("timeline"));
|
||||
echo "<div class=\"well\">\n";
|
||||
?>
|
||||
<form action="../out/out.Timeline.php" class="form form-inline" name="form1" id="form1">
|
||||
<div class="control-group">
|
||||
|
@ -200,39 +219,18 @@ echo "<div class=\"well\">\n";
|
|||
</div>
|
||||
</form>
|
||||
<?php
|
||||
$timelineurl = 'out.Timeline.php?action=data&fromdate='.date('Y-m-d', $from).'&todate='.date('Y-m-d', $to).'&skip='.urldecode(http_build_query(array('skip'=>$skip)));
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#update').click(function(ev){
|
||||
ev.preventDefault();
|
||||
$.getJSON(
|
||||
'out.Timeline.php?action=data&' + $('#form1').serialize(),
|
||||
function(data) {
|
||||
$.each( data, function( key, val ) {
|
||||
val.start = new Date(val.start);
|
||||
});
|
||||
timeline.setData(data);
|
||||
timeline.redraw();
|
||||
// timeline.setVisibleChartRange(0,0);
|
||||
}
|
||||
);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
echo "</div>\n";
|
||||
echo "<div class=\"ajax\" data-view=\"Timeline\" data-action=\"iteminfo\" ></div>";
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
echo "<div class=\"ajax\" data-view=\"Timeline\" data-action=\"iteminfo\" ></div>";
|
||||
echo "</div>\n";
|
||||
|
||||
echo "<div class=\"span9\">\n";
|
||||
$this->contentHeading(getMLText("timeline"));
|
||||
$this->printTimeline($timelineurl, 550, ''/*date('Y-m-d', $from)*/, ''/*date('Y-m-d', $to+1)*/, $skip);
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
echo "<div class=\"span9\">\n";
|
||||
$this->contentHeading(getMLText("timeline"));
|
||||
$this->printTimelineHtml(550);
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user