config)) $theBlock->config = new StdClass(); if (!isset($theBlock->config->target)) $theBlock->config->target = 'moodle'; if (!isset($theBlock->config->hidetitle)) $theBlock->config->hidetitle = 0; if (!isset($theBlock->config->showdata)) $theBlock->config->showdata = 1; if (!isset($theBlock->config->showgraph)) $theBlock->config->showgraph = 1; if (!isset($theBlock->config->shownumsums)) $theBlock->config->shownumsums = 1; if (!isset($theBlock->config->showquery)) $theBlock->config->showquery = 0; if (!isset($theBlock->config->showfilterqueries)) $theBlock->config->showfilterqueries = 0; if (!isset($theBlock->config->inblocklayout)) $theBlock->config->inblocklayout = ($COURSE->format == 'page') ? 1 : 0 ; ?>
:
:
config) && isset($theBlock->config->title)) { $theBlocktitle = $theBlock->config->title; } echo ''; $hidetitle = ''; if (isset($theBlock->config) && isset($theBlock->config->hidetitle)) { $hidetitle = ($theBlock->config->hidetitle) ? ' checked="checked" ' : '' ; } echo '
'.get_string('checktohide', 'block_dashboard'); ?>
: get_string('no'), '1' => get_string('yes')); echo html_writer::select($yesnoopts, 'inblocklayout', $theBlock->config->inblocklayout, '') ?>
config); ?>
: 'Moodle', 'extra' => 'Extra DB'); echo html_writer::select($targets, 'target', $theBlock->config->target); ?> : config->showdata) ? 'checked="checked"' : '' ?> /> config->showdata) ? 'checked="checked"' : '' ?> /> ' ?> config->showgraph) ? 'checked="checked"' : '' ?> /> config->showgraph) ? 'checked="checked"' : '' ?> /> ' ?> config->shownumsums) ? 'checked="checked"' : '' ?> /> config->shownumsums) ? 'checked="checked"' : '' ?> /> ' ?> config->showquery) ? 'checked="checked"' : '' ?> /> config->showquery) ? 'checked="checked"' : '' ?> /> ' ?> config->showfilterqueries) ? 'checked="checked"' : '' ?> /> config->showfilterqueries) ? 'checked="checked"' : '' ?> /> ' ?>
: help_icon('configquery', 'block_dashboard') ?> config) && isset($theBlock->config->query)) { $theBlocktitle = $theBlock->config->query; } echo ''; ?>
'; echo ''; echo ''; echo ''; echo ''; echo ''; } ?>
'; echo "config->$varkey."\" />"; echo ''; echo "config->$labelkey."\" />"; echo ''; $typeopts = array('choice' => get_string('choicevalue', 'block_dashboard'), 'text' => get_string('textvalue', 'block_dashboard'), 'select' => get_string('listvalue', 'block_dashboard'), 'range' => get_string('rangevalue', 'block_dashboard'), 'date' => get_string('datevalue', 'block_dashboard'), 'daterange' => get_string('daterangevalue', 'block_dashboard'), ); echo html_writer::select($typeopts, $typekey, @$theBlock->config->$typekey, ''); echo ''; echo "'; echo '
: help_icon('configoutputfields', 'block_dashboard') ?> config) && isset($theBlock->config->outputfields)) { $fields = $theBlock->config->outputfields; } echo ''; ?>
: help_icon('configformatting', 'block_dashboard') ?> config) && isset($theBlock->config->outputformats)) { $formats = htmlentities($theBlock->config->outputformats, ENT_QUOTES, 'UTF-8'); } echo ''; ?>
: help_icon('configpagesize', 'block_dashboard') ?> config) && isset($theBlock->config->pagesize)) { $pagesize = $theBlock->config->pagesize; } $bigresult = ''; if (isset($theBlock->config) && isset($theBlock->config->bigresult)) { $bigresult = 'checked="checked"'; } echo ' '.get_string('bigresult', 'block_dashboard').' '; echo $OUTPUT->help_icon('configbigresult', 'block_dashboard'); ?>
: help_icon('configcaching', 'block_dashboard') ?> config) && isset($theBlock->config->uselocalcaching)) { $uselocalcachingyeschecked = ($theBlock->config->uselocalcaching) ? ' checked=\"checked\" ' : '' ; $uselocalcachingnochecked = ($theBlock->config->uselocalcaching) ? ' checked=\"checked\" ' : '' ; } echo " ".get_string('no')." - ".get_string('yes'); ?>
: config) && isset($theBlock->config->cachingttl)) { $cachingttl = $theBlock->config->cachingttl; } echo ' '.get_string('minutes'); ?>
: config) && isset($theBlock->config->cleandisplay)) { if ($theBlock->config->cleandisplay){ $cleandisplayyes = 'checked="checked"'; $cleandisplayno = ''; } else { $cleandisplayyes = ''; $cleandisplayno = 'checked="checked"'; } } echo " ".get_string('yes'). " ".get_string('no'); ?>
: config) && isset($theBlock->config->sortable)) { if ($theBlock->config->sortable){ $sortableyes = 'checked="checked"'; $sortableno = ''; } else { $sortableyes = ''; $sortableno = 'checked="checked"'; } } echo " ".get_string('yes'). " ".get_string('no'); ?>
: help_icon('configsplitsumsonsort', 'block_dashboard') ?> config) && isset($theBlock->config->splitsumsonsort)) { $splitsumsonsort = $theBlock->config->splitsumsonsort; } echo ""; ?>
: config) && isset($theBlock->config->fieldlabels)) { $fieldlabels = $theBlock->config->fieldlabels; } echo ''; ?>
: help_icon('configfilters', 'block_dashboard') ?>
: help_icon('configfilterdefaults', 'block_dashboard') ?>
: help_icon('configfilteroptions', 'block_dashboard') ?>
config) && isset($theBlock->config->filters)) { $filters = $theBlock->config->filters; } echo ''; $filterdefaults = ''; if (isset($theBlock->config) && isset($theBlock->config->filterdefaults)) { $filterdefaults = $theBlock->config->filterdefaults; } echo '
'; $filteroptions = ''; if (isset($theBlock->config) && isset($theBlock->config->filteroptions)) { $filteroptions = $theBlock->config->filteroptions; } echo '
'; ?>
: config) && isset($theBlock->config->filterlabels)) { $filterlabels = $theBlock->config->filterlabels; } echo ''; ?>
: help_icon('configtabletype', 'block_dashboard') ?> config) && isset($theBlock->config->tabletype)) { $tabletype = $theBlock->config->tabletype; } $tabletypeopts['linear'] = get_string('linear', 'block_dashboard'); $tabletypeopts['tabular'] = get_string('tabular', 'block_dashboard'); $tabletypeopts['treeview'] = get_string('treeview', 'block_dashboard'); echo html_writer::select($tabletypeopts, 'tabletype', $tabletype, array(), array('onchange' => 'showmoreoptions(this)')); ?>
config->tabletype) && $theBlock->config->tabletype == 'tabular') ? 'visibility:visible;display:block' : 'visibility:hidden;display:none' ; ?>
: help_icon('configtabular', 'block_dashboard') ?>
: help_icon('configtabular', 'block_dashboard') ?>
: help_icon('configformatting', 'block_dashboard') ?>
: help_icon('configformatting', 'block_dashboard') ?>

: help_icon('configtablesplit', 'block_dashboard') ?>
: help_icon('configsums', 'block_dashboard') ?>
: help_icon('configsums', 'block_dashboard') ?>
config) && isset($theBlock->config->verticalkeys)) { $verticalkeys = $theBlock->config->verticalkeys; } echo ''; $horizkey = ''; if (isset($theBlock->config) && isset($theBlock->config->horizkey)) { $horizkey = $theBlock->config->horizkey; } echo '
'; $verticalformats = ''; if (isset($theBlock->config) && isset($theBlock->config->verticalformats)) { $verticalformats = htmlentities($theBlock->config->verticalformats, ENT_NOQUOTES, 'UTF-8'); } echo '
'; $horizformat = ''; if (isset($theBlock->config) && isset($theBlock->config->horizformat)) { $horizformat = htmlentities($theBlock->config->horizformat, ENT_NOQUOTES, 'UTF-8'); } echo '
'; $spliton = ''; if (isset($theBlock->config) && isset($theBlock->config->spliton)) { $spliton = $theBlock->config->spliton; } echo '

'; $horizsumsyeschecked = ''; $horizsumsnochecked = ' checked=\"checked\" '; if (isset($theBlock->config) && isset($theBlock->config->horizsums)) { $horizsumsyeschecked = ($theBlock->config->horizsums) ? ' checked=\"checked\" ' : '' ; $horizsumsnochecked = ($theBlock->config->horizsums) ? ' checked=\"checked\" ' : '' ; } echo '
'; echo " ".get_string('no')." - ".get_string('yes'); $vertsumsyeschecked = ''; $vertsumsnochecked = ' checked=\"checked\" '; if (isset($theBlock->config) && isset($theBlock->config->vertsums)) { $vertsumsyeschecked = ($theBlock->config->vertsums) ? ' checked=\"checked\" ' : '' ; $vertsumsnochecked = ($theBlock->config->vertsums) ? ' checked=\"checked\" ' : '' ; } echo '
'; echo " ".get_string('no')." - ".get_string('yes'); ?>
:
:
config) && isset($theBlock->config->verticallabels)) { $verticallabels = htmlentities($theBlock->config->verticallabels, ENT_NOQUOTES, 'UTF-8'); } echo ''; $horizlabel = ''; if (isset($theBlock->config) && isset($theBlock->config->horizlabel)) { $horizlabel = htmlentities($theBlock->config->horizlabel, ENT_NOQUOTES, 'UTF-8'); } echo '
'; ?>
config->tabletype) && $theBlock->config->tabletype == 'treeview') ? 'visibility:visible;display:block' : 'visibility:hidden;display:none' ; ?>
: help_icon('confighierarchic', 'block_dashboard') ?>
: help_icon('configtreeoutput', 'block_dashboard') ?>
: help_icon('configformatting', 'block_dashboard') ?>
config) && isset($theBlock->config->parentserie)) { $parentserie = $theBlock->config->parentserie; } echo ''; $treeoutput = ''; if (isset($theBlock->config) && isset($theBlock->config->treeoutput)) { $treeoutput = $theBlock->config->treeoutput; } echo '
'; $treeoutputformats = ''; if (isset($theBlock->config) && isset($theBlock->config->treeoutputformats)) { $treeoutputformats = $theBlock->config->treeoutputformats; } echo '
'; ?>
: help_icon('configxaxis', 'block_dashboard') ?> config) && isset($theBlock->config->xaxisfield)) { $xaxisfield = $theBlock->config->xaxisfield; } echo ''; ?> : config) && isset($theBlock->config->xaxislabel)) { $xaxislabel = $theBlock->config->xaxislabel; } echo ''; ?>
: help_icon('configyseries', 'block_dashboard') ?>
: help_icon('configformatting', 'block_dashboard') ?>
: help_icon('configexplicitscaling', 'block_dashboard') ?>
:
:
:
config) && isset($theBlock->config->yseries)) { $yseries = $theBlock->config->yseries; } echo ''; $yseriesformats = ''; if (isset($theBlock->config) && isset($theBlock->config->yseriesformats)) { $yseriesformats = htmlentities($theBlock->config->yseriesformats, ENT_NOQUOTES, 'UTF-8'); } echo '
'; $ymin = ''; if (isset($theBlock->config) && isset($theBlock->config->ymin)) { $ymin = $theBlock->config->ymin; } echo '
'; $ymax = ''; if (isset($theBlock->config) && isset($theBlock->config->ymax)) { $ymax = $theBlock->config->ymax; } echo '
'; $tickspacing = ''; if (isset($theBlock->config) && isset($theBlock->config->tickspacing)) { $tickspacing = $theBlock->config->tickspacing; } echo '
'; $yaxisscale = ''; if (isset($theBlock->config) && isset($theBlock->config->yaxisscale)) { $yaxisscale = $theBlock->config->yaxisscale; } $checked1 = ( $yaxisscale == 'linear' ) ? 'checked ="checked"' : '' ; $checked2 = ( $yaxisscale == 'log' ) ? 'checked ="checked"' : '' ; echo '
'.get_string('linear', 'block_dashboard').' - '; echo ' '.get_string('log', 'block_dashboard'); ?>
:


:
:
config) && isset($theBlock->config->serieslabels)) { $serieslabels = htmlentities($theBlock->config->serieslabels, ENT_NOQUOTES, 'UTF-8'); } echo ''; $yaxislabel = ''; if (isset($theBlock->config) && isset($theBlock->config->yaxislabel)) { $yaxislabel = $theBlock->config->yaxislabel; } echo '
'; $yaxistickangle = ''; if (isset($theBlock->config) && isset($theBlock->config->yaxistickangle)) { $yaxistickangle = $theBlock->config->yaxistickangle; } $checked1 = ( $yaxistickangle == '-45' ) ? 'checked ="checked"' : '' ; $checked2 = ( $yaxistickangle == '0' ) ? 'checked ="checked"' : '' ; $checked3 = ( $yaxistickangle == '45' ) ? 'checked ="checked"' : '' ; $checked4 = ( $yaxistickangle == '90' ) ? 'checked ="checked"' : '' ; echo '
-45 - '; echo ' 0 - '; echo ' 45 - '; echo ' 90 '; ?>
:
:
:
get_string('line', 'block_dashboard'), 'bar' => get_string('bar', 'block_dashboard'), 'pie' => get_string('pie', 'block_dashboard'), 'donut' => get_string('donut', 'block_dashboard'), 'timegraph' => get_string('timegraph', 'block_dashboard'), 'timeline' => get_string('timeline', 'block_dashboard'), 'googlemap' => get_string('googlemap', 'block_dashboard'), ); $graphtype = 0; if (isset($theBlock->config) && isset($theBlock->config->graphtype)) { $graphtype = $theBlock->config->graphtype; } echo html_writer::select($graphtypes, 'graphtype', $graphtype, array(), array('onchange' => 'showmoreoptions(this);')); $graphwidth = 450; if (isset($theBlock->config) && isset($theBlock->config->graphwidth)) { $graphwidth = $theBlock->config->graphwidth; } $graphheight = 250; if (isset($theBlock->config) && isset($theBlock->config->graphheight)) { $graphheight = $theBlock->config->graphheight; } ?>

: config->showlegend) ? 'checked="checked"' : '' ?> /> config->showlegend) ? 'checked="checked"' : '' ?> /> ' ?>
config->graphtype) && $theBlock->config->graphtype == 'googlemap') ? 'visibility:visible;display:block' : 'visibility:hidden;display:none' ; ?>
: help_icon('configmaptype', 'block_dashboard') ?>
: help_icon('configzoom', 'block_dashboard') ?>


: help_icon('configgmdata', 'block_dashboard') ?>
get_string('maptyperoadmap', 'block_dashboard'), 'SATELLITE' => get_string('maptypesatellite', 'block_dashboard'), 'HYBRID' => get_string('maptypehybrid', 'block_dashboard'), 'TERRAIN' => get_string('maptypeterrain', 'block_dashboard'), ); $maptype = 'ROADMAP'; if (isset($theBlock->config) && isset($theBlock->config->maptype)) { $maptype = $theBlock->config->maptype; } echo html_writer::select($maptypeopts, 'maptype', $maptype); $zoom = '6'; if (isset($theBlock->config) && isset($theBlock->config->zoom)) { $zoom = $theBlock->config->zoom; } echo '
'; $datatitles = ''; if (isset($theBlock->config) && isset($theBlock->config->datatitles)) { $datatitles = $theBlock->config->datatitles; } $datalocations = ''; if (isset($theBlock->config) && isset($theBlock->config->datalocations)) { $datalocations = $theBlock->config->datalocations; } $datatypes = ''; if (isset($theBlock->config) && isset($theBlock->config->datatypes)) { $datatypes = $theBlock->config->datatypes; } echo '

'; echo ''; echo ''; echo '
'.get_string('datatitles', 'block_dashboard').''.get_string('datalocations', 'block_dashboard').''.get_string('datatypes', 'block_dashboard').'
'; ?>
:
config) && isset($theBlock->config->lat)) { $lat = $theBlock->config->lat; } if (isset($theBlock->config) && isset($theBlock->config->lng)) { $lng = $theBlock->config->lng; } echo '(lat : , long : )'; ?>
config->graphtype) && $theBlock->config->graphtype == 'timeline') ? 'visibility:visible;display:block' : 'visibility:hidden;display:none' ; ?>
: help_icon('configbands', 'block_dashboard') ?>
config) && isset($theBlock->config->showlowerband)) { $showlowerbandyes = ($theBlock->config->showlowerband) ? ' checked="checked" ' : '' ; $showlowerbandno = (!$theBlock->config->showlowerband) ? ' checked="checked" ' : '' ; } ?> > - > : help_icon('configtimeunits', 'block_dashboard') ?>
: help_icon('configtimeunits', 'block_dashboard') ?>
config) && isset($theBlock->config->upperbandunit)) { $upperbandunit = $theBlock->config->upperbandunit; } $upperunits = array('MONTH' => get_string('month', 'block_dashboard'), 'WEEK' => get_string('week', 'block_dashboard'), 'DAY' => get_string('day', 'block_dashboard'), 'HOUR' => get_string('hour', 'block_dashboard')); echo html_writer::select($upperunits, 'upperbandunit', $upperbandunit); $lowerbandunit = 'YEAR'; if (isset($theBlock->config) && isset($theBlock->config->lowerbandunit)) { $lowerbandunit = $theBlock->config->lowerbandunit; } $lowerunits = array('YEAR' => get_string('year', 'block_dashboard'), 'MONTH' => get_string('month', 'block_dashboard'), 'WEEK' => get_string('week', 'block_dashboard'), 'DAY' => get_string('day', 'block_dashboard')); echo '
'; echo html_writer::select($lowerunits, 'lowerbandunit', $lowerbandunit); ?>
: help_icon('configeventmapping', 'block_dashboard') ?>
config) && isset($theBlock->config->timelineeventtitle)) { $eventtitle = $theBlock->config->timelineeventtitle; } $eventstart = ''; if (isset($theBlock->config) && isset($theBlock->config->timelineeventstart)) { $eventstart = $theBlock->config->timelineeventstart; } $eventend = ''; if (isset($theBlock->config) && isset($theBlock->config->timelineeventend)) { $eventend = $theBlock->config->timelineeventend; } $eventlink = ''; if (isset($theBlock->config) && isset($theBlock->config->timelineeventlink)) { $eventlink = $theBlock->config->timelineeventlink; } $eventdesc = ''; if (isset($theBlock->config) && isset($theBlock->config->timelineeventdesc)) { $eventdesc = $theBlock->config->timelineeventdesc; } echo '

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'.get_string('eventtitles', 'block_dashboard').''.get_string('eventstart', 'block_dashboard').''.get_string('eventend', 'block_dashboard').''.get_string('eventlink', 'block_dashboard').''.get_string('eventdesc', 'block_dashboard').'
'; ?>

:

: help_icon('configsummators', 'block_dashboard') ?> config) && isset($theBlock->config->numsums)) { $numsums = $theBlock->config->numsums; } echo ''; $numsumformats = ''; if (isset($theBlock->config) && isset($theBlock->config->numsumformats)) { $numsumformats = htmlentities($theBlock->config->numsumformats, ENT_NOQUOTES, 'UTF-8'); } ?>
: help_icon('configformatting', 'block_dashboard') ?> '; ?>
: config) && isset($theBlock->config->numsumlabels)) { $numsumlabels = $theBlock->config->numsumlabels; } echo ''; ?>

:

: help_icon('configdelayedrefresh', 'block_dashboard') ?> config) && isset($theBlock->config->cronmode)) { $cronmode = $theBlock->config->cronmode; } else { $cronmode = 'norefresh'; } $modes['norefresh'] = get_string('norefresh', 'block_dashboard'); $modes['global'] = get_string('globalcron', 'block_dashboard'); $modes['instance'] = get_string('instancecron', 'block_dashboard'); echo html_writer::select($modes, 'cronmode', $cronmode); ?> :
:
config) && isset($theBlock->config->cronhour)) { $cronhour = $theBlock->config->cronhour; } $cronmin = ''; if (isset($theBlock->config) && isset($theBlock->config->cronmin)) { $cronmin = $theBlock->config->cronmin; } for($i = 0; $i < 24; $i++){ $hours["$i"] = sprintf('%02d', $i); } $mins['00'] = '00'; $mins['15'] = '15'; $mins['30'] = '30'; $mins['45'] = '45'; echo html_writer::select($hours, 'cronhour', $cronhour); print_string('hours', 'block_dashboard'); echo ' '; echo html_writer::select($mins, 'cronmin', $cronmin); print_string('mins', 'block_dashboard'); $cronfrequency = ''; if (isset($theBlock->config) && isset($theBlock->config->cronfrequency)) { $cronfrequency = $theBlock->config->cronfrequency; } else { $cronfrequency = 'daily'; } $freq['daily'] = get_string('daily', 'block_dashboard'); $freq['0'] = get_string('sunday', 'block_dashboard'); $freq['1'] = get_string('monday', 'block_dashboard'); $freq['2'] = get_string('tuesday', 'block_dashboard'); $freq['3'] = get_string('wednesday', 'block_dashboard'); $freq['4'] = get_string('thursday', 'block_dashboard'); $freq['5'] = get_string('friday', 'block_dashboard'); $freq['6'] = get_string('saturday', 'block_dashboard'); echo '
'; echo html_writer::select($freq, 'cronfrequency', $cronfrequency, ''); ?>
: help_icon('configmakefile', 'block_dashboard') ?> config) && isset($theBlock->config->makefile)) { $makefile = $theBlock->config->makefile; } else { $theBlock->config->makefile = 0; } $checked1 = ( $makefile == 0 ) ? 'checked ="checked"' : '' ; $checked2 = ( $makefile == 1 ) ? 'checked ="checked"' : '' ; echo ' '.get_string('no'); echo ' - '.get_string('yes'); ?>
: help_icon('configfileoutput', 'block_dashboard') ?> config) && isset($theBlock->config->fileoutput)) { $fileoutput = $theBlock->config->fileoutput; } echo ''; ?>
: help_icon('configformatting', 'block_dashboard') ?> config) && isset($theBlock->config->fileoutputformats)) { $fileoutputformats = $theBlock->config->fileoutputformats; } echo ''; ?>
: config) && isset($theBlock->config->fileformat)) { $fileformat = $theBlock->config->fileformat; } $fileformats = array( 'CSV' => get_string('csv', 'block_dashboard'), 'CSVWH' => get_string('csvwithoutheader', 'block_dashboard'), 'SQL' => get_string('sqlinserts', 'block_dashboard')); ?>
: help_icon('configfilesqlouttable', 'block_dashboard') ?> config) && isset($theBlock->config->filesqlouttable)) { $filesqlouttable = $theBlock->config->filesqlouttable; } echo ''; ?>
config) && isset($theBlock->config->filepathadminoverride)) { $filepathadminoverride = $theBlock->config->filepathadminoverride; } echo ''; echo ''; echo ''; echo ''; } ?>
: help_icon('configfilelocation', 'block_dashboard') ?> config) && isset($theBlock->config->filelocation)) { $filelocation = $theBlock->config->filelocation; } echo ''; $checked = (@$theBlock->config->horodatefiles) ? 'checked="checked"' : '' ; ?>
: help_icon('confighorodatefiles', 'block_dashboard') ?> '; ?>
'; echo ''; print_string('configfilepathadminoverride', 'block_dashboard'); echo ' : '; echo $OUTPUT->help_icon('configfilepathadminoverride', 'block_dashboard'); echo ''; echo ''; echo ''; echo '
id}&instance={$theBlock->instance->id}" ?>&what=upload"> - id}&instance={$theBlock->instance->id}" ?>&what=get" target="_blank"> - " />