/
survey.php
55 lines (51 loc) · 2.61 KB
/
survey.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="shortcut icon" href="<?php echo App()->theme->baseUrl; ?>images/favicon.ico" type="image/x-icon" />
<link rel="icon" href="<?php echo App()->theme->baseUrl; ?>images/favicon.ico" type="image/x-icon" />
<?php
$this->widget('ext.LimeScript.LimeScript');
$this->widget('ext.LimeDebug.LimeDebug');
App()->bootstrap->register();
$cs = App()->clientScript;
$cs->registerCssFile(App()->theme->baseUrl . '/css/style.css');
$cs->registerCssFile(App()->params['bower-asset'] . '/select2-bootstrap-css/select2-bootstrap.min.css');
$cs->registerScriptFile(App()->getBaseUrl().'/scripts/ajax.js');
$cs->registerScriptFile(App()->getBaseUrl().'/scripts/unobtrusive.js');
$cs->registerScriptFile(App()->params['bower-asset'] . '/remarkable-bootstrap-notify/bootstrap-notify.min.js');
$cs->registerScriptFile(App()->params['bower-asset'] . '/jquery-ui/jquery-ui.min.js');
App()->getComponent('yiiwheels')->registerAssetJs('bootstrap-bootbox.min.js');
$cs->registerScriptFile(App()->params['bower-asset'] . '/tinymce/tinymce.min.js');
$cs->registerScriptFile(App()->getBaseUrl().'/scripts/htmleditor.js');
$cs->registerScript('links', "$('body').on('click', '.disabled a', function (e) { e.preventDefault(); });");
?>
<title>Limesurvey Administration</title>
</head>
<body class="layout-main">
<?php
/** @var \ls\controllers\Controller $this */
if (!App()->user->isGuest) {
$this->renderPartial('/global/menus');
}
?>
<div class="container-fluid">
<div class="row">
<?php $this->widget(TbAlert::class); ?>
<div id="survey-navigator" class="col-lg-2 col-md-3 col-sm-12">
<?php
$this->renderPartial('/global/surveyNavigator', ['survey' => $this->menus['survey']]);
?>
</div>
<div id="content" class="col-lg-10 col-md-9 col-sm-12">
<?php echo $content; ?>
</div>
</div>
<div id="ajaxprogress" title="Ajax request in progress" style="text-align: center;">
<img src="<?php echo Yii::app()->getConfig('adminstyleurl');?>/images/ajax-loader.gif"/>
</div>
<?php $this->renderPartial('/global/footer'); ?>
</div>
</body>
</html>