Ejemplo n.º 1
0
            $language[$row['English']] = $row['French'];
            EasyCsv::AddRow($cleaned, array($row['English'], $row['French']));
        }
    });
    file_put_contents(dirname(__DIR__) . DS . 'language.json', json_encode($language, JSON_PRETTY_PRINT));
    file_put_contents(dirname(__DIR__) . DS . 'localize.csv', EasyCsv::Write($cleaned));
} else {
    $language = get_object_vars(json_decode(file_get_contents(__DIR__ . DS . 'words.json')));
}
Behavior('ajax');
Localize(function () {
    Scaffold('button.create.scheduled');
}, $language);
IncludeJS(dirname(__DIR__) . DS . 'js' . DS . 'UIFormManager.js');
IncludeJS(dirname(__DIR__) . DS . 'js' . DS . 'UIUsersFormsList.js');
IncludeJS(dirname(__DIR__) . DS . 'js' . DS . 'Language.js');
$keys = array_keys($language);
usort($keys, function ($a, $b) {
    return strlen($b) - strlen($a);
});
IncludeJSBlock('

window.Language.Instance=new Language({' . "\n" . implode(",\n", array_map(function ($k) use($language) {
    return '  ' . json_encode($k) . ':' . json_encode($language[$k]);
}, $keys)) . "\n" . '});

');
Core::LibDir() . DS . 'easycsv' . DS . 'EasyCsv.php';
//print_r($language);
Localize(function () {
    Scaffold('scheduled.workspace');
Ejemplo n.º 2
0
<?php

IncludeCSS('http://code.jquery.com/qunit/qunit-1.19.0.css', array('isUrl' => true));
IncludeJS('http://code.jquery.com/qunit/qunit-1.19.0.js', array('isUrl' => true));
IncludeJS(dirname(__DIR__) . DS . 'js' . DS . 'formtest.js');
?>

<h3 style="margin-top: 100px;">Unit Test</h3>
<h4>This section is for developement purposes only - you can completely
	ignore it</h4>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
Ejemplo n.º 3
0
<?php

Behavior('ajax');
?>
<link rel="stylesheet"
	href="<?php 
echo UrlFrom(dirname(__DIR__) . DS . 'css' . DS . 'forms.css');
?>
"
	type="text/css"><?php 
$schedButton = Scaffold('cpanel.button', array('title' => 'Show All Participant Information Form Forms', 'className' => 'btn btn-primary big', 'icon' => Core::AssetsDir() . DS . 'Map Item Icons' . DS . 'sm_table.png?tint=rgb(255,255,255)'));
$authButton = Scaffold('cpanel.button', array('title' => 'Show All Participant Information Form Authors', 'className' => 'btn btn-danger big', 'icon' => Core::AssetsDir() . DS . 'Tile Icons' . DS . 'profile.png?tint=rgb(255,255,255)'));
$expButton = Scaffold('cpanel.button', array('title' => 'Manage Data', 'className' => 'btn btn-success big', 'icon' => Core::AssetsDir() . DS . 'Map Item Icons' . DS . 'sm_clipboard.png?tint=rgb(255,255,255)'));
IncludeJS(dirname(__DIR__) . DS . 'js' . DS . 'UIFormManager.js');
IncludeJS(dirname(__DIR__) . DS . 'js' . DS . 'UIUserList.js');
IncludeJS(dirname(__DIR__) . DS . 'js' . DS . 'UIUsersFormsList.js');
Scaffold('scheduled.workspace');
Scaffold('addendum.workspace');
Scaffold('quarterly.workspace');
Scaffold('user.workspace');
Scaffold('list.scheduled');
Scaffold('list.users');
Scaffold('list.utilities', $params);
$q = (int) ((date('n') - 1) / 3);
$quarters = array('1st', '2nd', '3rd', '4th');
$quarter = $quarters[$q];
IncludeJSBlock('

    window.addEvent("load",function(){

        var ajaxUrl=' . json_encode($params['url']) . ';