-
Notifications
You must be signed in to change notification settings - Fork 988
/
globalSettings_view.php
executable file
·76 lines (66 loc) · 3.65 KB
/
globalSettings_view.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
App()->getClientScript()->registerPackage('jquery-selectboxes');
?>
<script type="text/javascript">
var msgCantRemoveDefaultLanguage = '<?php eT("You can't remove the default language.",'js'); ?>';
</script>
<div class="container-fluid welcome full-page-wrapper">
<div class="pagetitle h3"><?php eT("Global settings"); ?></div>
<ul class="nav nav-tabs" id="settingTabs">
<li role="presentation" class="active"><a role="tab" data-toggle="tab" href='#overview'><?php eT("Overview"); ?></a></li>
<li role="presentation" ><a role="tab" data-toggle="tab" href='#general'><?php eT("General"); ?></a></li>
<li role="presentation" ><a role="tab" data-toggle="tab" href='#email'><?php eT("Email settings"); ?></a></li>
<li role="presentation" ><a role="tab" data-toggle="tab" href='#bounce'><?php eT("Bounce settings"); ?></a></li>
<li role="presentation" ><a role="tab" data-toggle="tab" href='#security'><?php eT("Security"); ?></a></li>
<li role="presentation" ><a role="tab" data-toggle="tab" href='#presentation'><?php eT("Presentation"); ?></a></li>
<li role="presentation" ><a role="tab" data-toggle="tab" href='#language'><?php eT("Language"); ?></a></li>
<li role="presentation" ><a role="tab" data-toggle="tab" href='#interfaces'><?php eT("Interfaces"); ?></a></li>
</ul>
<?php echo CHtml::form(array("admin/globalsettings"), 'post', array('class'=>'form-horizontal','id'=>'frmglobalsettings','name'=>'frmglobalsettings'));?>
<div class="tab-content">
<div id="overview" class="tab-pane in active col-md-6 col-md-offset-1">
<?php $this->renderPartial("./global_settings/_overview", array(
'usercount'=>$usercount,
'surveycount'=>$surveycount,
'activesurveycount'=>$activesurveycount,
'deactivatedsurveys'=>$deactivatedsurveys,
'activetokens'=>$activetokens,
'deactivatedtokens'=>$deactivatedtokens)
); ?>
</div>
<div id="general" class="tab-pane col-md-10 col-md-offset-1">
<?php $this->renderPartial("./global_settings/_general", array(
'aListOfThemeObjects' => $aListOfThemeObjects,
'aEncodings' => $aEncodings,
'thischaracterset' => $thischaracterset,
'sideMenuBehaviour' => $sideMenuBehaviour)
); ?>
</div>
<div id="email" class="tab-pane col-md-6 col-md-offset-1">
<?php $this->renderPartial("./global_settings/_email"); ?>
</div>
<div id="bounce" class="tab-pane col-md-6 col-md-offset-1">
<?php $this->renderPartial("./global_settings/_bounce"); ?>
</div>
<div id="security" class="tab-pane col-md-6 col-md-offset-1">
<?php $this->renderPartial("./global_settings/_security"); ?>
</div>
<div id="presentation" class="tab-pane col-md-6 col-md-offset-1">
<?php $this->renderPartial("./global_settings/_presentation"); ?>
</div>
<div id="language" class="tab-pane col-md-6 col-md-offset-1">
<?php $this->renderPartial("./global_settings/_language", array(
'restrictToLanguages'=>$restrictToLanguages,
'allLanguages'=>$allLanguages,
'excludedLanguages'=>$excludedLanguages));
?>
</div>
<div id="interfaces" class="tab-pane col-md-6 col-md-offset-1">
<?php $this->renderPartial("./global_settings/_interfaces"); ?>
</div>
</div>
<input type='hidden' name='restrictToLanguages' id='restrictToLanguages' value='<?php implode(' ',$restrictToLanguages); ?>'/>
<input type='hidden' name='action' value='globalsettingssave'/>
<input type='submit' class="hidden"/>
</form>
</div>