Initial commit: Kimai TMS
Kimai time management system (PHP 5.6 / MySQL) with custom extensions: - Budget tracking (ki_budget) - Change request form (ki_changerequest) - Invoice generation (ki_invoice) - Expense tracking (ki_expenses) - Flexi time (ki_flexitime) - Export, admin panel, timesheets, tasks, summary Database: ~900K time entries, 2,000+ users, 439 projects. Config: includes/autoconf.php — localhost/kimai/kimai
This commit is contained in:
53
extensions/ki_budget/js/bgt_func.js
Normal file
53
extensions/ki_budget/js/bgt_func.js
Normal file
@@ -0,0 +1,53 @@
|
||||
/**
|
||||
* This file is part of
|
||||
* Kimai - Open Source Time Tracking // http://www.kimai.org
|
||||
* (c) 2006-2009 Kimai-Development-Team
|
||||
*
|
||||
* Kimai is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; Version 3, 29 June 2007
|
||||
*
|
||||
* Kimai is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Kimai; If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// =============
|
||||
// BGT EXT funcs
|
||||
// =============
|
||||
|
||||
function bgt_ext_onload() {
|
||||
bgt_ext_resize();
|
||||
$("#loader").hide();
|
||||
lists_visible(false);
|
||||
}
|
||||
|
||||
function bgt_ext_get_dimensions() {
|
||||
bgt_h = pageHeight()-224;//-headerHeight()-28;
|
||||
}
|
||||
|
||||
function bgt_ext_resize() {
|
||||
bgt_ext_get_dimensions();
|
||||
$("#bgt").css("height",bgt_h);
|
||||
}
|
||||
|
||||
function bgt_ext_plot(plotdata) {
|
||||
for (var i in plotdata) {
|
||||
if ($('#bgt_chartdiv_'+i).length == 0) continue;
|
||||
try {
|
||||
$.jqplot('bgt_chartdiv_'+i, [plotdata[i]], {
|
||||
seriesDefaults:{renderer:$.jqplot.PieRenderer,
|
||||
rendererOptions: {padding:10}
|
||||
},
|
||||
seriesColors:chartColors,
|
||||
grid:{background:$('#bgt_chartdiv_'+i).css("background-color"), borderWidth:0, shadow:false}
|
||||
});
|
||||
}
|
||||
catch (err) {
|
||||
}
|
||||
}
|
||||
}
|
||||
42
extensions/ki_budget/js/bgt_init.js
Normal file
42
extensions/ki_budget/js/bgt_init.js
Normal file
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* This file is part of
|
||||
* Kimai - Open Source Time Tracking // http://www.kimai.org
|
||||
* (c) 2006-2009 Kimai-Development-Team
|
||||
*
|
||||
* Kimai is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; Version 3, 29 June 2007
|
||||
*
|
||||
* Kimai is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Kimai; If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// ============
|
||||
// BGT EXT init
|
||||
// ============
|
||||
|
||||
// set path of extension
|
||||
var bgt_ext_path = "../extensions/ki_budget/";
|
||||
|
||||
var bgt_w;
|
||||
var bgt_h;
|
||||
|
||||
var chartColors;
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
var bgt_resizeTimer = null;
|
||||
$(window).bind('resize', function() {
|
||||
if (bgt_resizeTimer) clearTimeout(bgt_resizeTimer);
|
||||
bgt_resizeTimer = setTimeout(bgt_ext_resize, 500);
|
||||
});
|
||||
|
||||
$.jqplot.config.enablePlugins = true;
|
||||
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user