-
Notifications
You must be signed in to change notification settings - Fork 28
/
email.php
executable file
·241 lines (206 loc) · 9.81 KB
/
email.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<?php if ( ! defined('BASE_PATH') ) exit('No direct script access allowed');
/**
* Email Settings View
*
* This view is used to render the email settings screen.
*
* @license GPLv3
*
* @since 3.0.0
* @package eduTrac SIS
* @author Joshua Parker <joshmac3@icloud.com>
*/
$app = \Liten\Liten::getInstance();
$app->view->extend('_layouts/dashboard');
$app->view->block('dashboard');
$screen = 'setting';
?>
<ul class="breadcrumb">
<li><?=_t( 'You are here' );?></li>
<li><a href="<?=get_base_url();?>dashboard/" class="glyphicons dashboard"><i></i> <?=_t( 'Dashboard' );?></a></li>
<li class="divider"></li>
<li><?=_t( 'Email Settings' );?></li>
</ul>
<h3><?=_t( 'Email Settings' );?></h3>
<div class="innerLR">
<?=_etsis_flash()->showMessage();?>
<?php jstree_sidebar_menu($screen); ?>
<!-- Form -->
<form class="form-horizontal margin-none" action="<?=get_base_url();?>email/" id="validateSubmitForm" method="post" autocomplete="off">
<!-- Widget -->
<div class="widget widget-heading-simple widget-body-gray <?=($app->hook->has_filter('sidebar_menu')) ? 'col-md-12' : 'col-md-10';?>">
<!-- Widget heading -->
<div class="widget-head">
<h4 class="heading"><font color="red">*</font> <?=_t( 'Indicates field is required' );?></h4>
</div>
<!-- // Widget heading END -->
<!-- Tabs Heading -->
<div class="tabsbar">
<ul>
<li<?= hl('general_settings'); ?> class="glyphicons user chevron-left"><a href="<?=get_base_url();?>setting/"><i></i> <?=_t( 'General' );?></a></li>
<li<?= hl('registration_settings'); ?> class="glyphicons lock"><a href="<?=get_base_url();?>registration/"><i></i> <?=_t( 'Web Reg' );?></a></li>
<li<?= hl('email_settings'); ?> class="glyphicons inbox tab-stacked active"><a href="<?=get_base_url();?>email/" data-toggle="tab"><i></i> <?=_t( 'Email' );?></a></li>
<li<?= hl('email_settings'); ?> class="glyphicons show_lines"><a href="<?=get_base_url();?>templates/"><i></i> <span><?=_t( 'Email Templates' );?></span></a></li>
<li<?= hl('general_settings'); ?> class="glyphicons iphone"><a href="<?=get_base_url();?>sms/"><i></i> <span><?=_t( 'SMS' );?></span></a></li>
</ul>
</div>
<!-- // Tabs Heading END -->
<div class="widget-body">
<!-- Row -->
<div class="row">
<!-- Column -->
<div class="col-md-6">
<!-- Group -->
<div class="form-group">
<label class="col-md-3 control-label"><font color="red">*</font> <?=_t( 'System Email' );?> <a href="#system" data-toggle="modal"><img src="<?=get_base_url();?>static/common/theme/images/help.png" /></a></label>
<div class="col-md-8">
<input type="text" name="system_email" value="<?=_h(get_option('system_email'));?>" class="form-control" required/>
</div>
</div>
<!-- // Group END -->
<!-- Group -->
<div class="form-group">
<label class="col-md-3 control-label"><font color="red">*</font> <?=_t( "Registrar's Email" );?> <a href="#registrar" data-toggle="modal"><img src="<?=get_base_url();?>static/common/theme/images/help.png" /></a></label>
<div class="col-md-8">
<input type="text" name="registrar_email_address" value="<?=_h(get_option('registrar_email_address'));?>" class="form-control" required/>
</div>
</div>
<!-- // Group END -->
<!-- Group -->
<div class="form-group">
<label class="col-md-3 control-label"><font color="red">*</font> <?=_t( "Room Request Email" );?> <a href="#request" data-toggle="modal"><img src="<?=get_base_url();?>static/common/theme/images/help.png" /></a></label>
<div class="col-md-8">
<input type="text" name="room_request_email" value="<?=_h(get_option('room_request_email'));?>" class="form-control" required/>
</div>
</div>
<!-- // Group END -->
</div>
<!-- // Column END -->
<!-- Column -->
<div class="col-md-6">
<!-- Group -->
<div class="form-group">
<label class="col-md-3 control-label"><font color="red">*</font> <?=_t( "Contact Email" );?> <a href="#contact" data-toggle="modal"><img src="<?=get_base_url();?>static/common/theme/images/help.png" /></a></label>
<div class="col-md-8">
<input type="text" name="contact_email" value="<?=_h(get_option('contact_email'));?>" class="form-control" required/>
</div>
</div>
<!-- // Group END -->
<!-- Group -->
<div class="form-group">
<label class="col-md-3 control-label"><font color="red">*</font> <?=_t( "Admissions Email" );?> <a href="#admissions" data-toggle="modal"><img src="<?=get_base_url();?>static/common/theme/images/help.png" /></a></label>
<div class="col-md-8">
<input type="text" name="admissions_email" value="<?=_h(get_option('admissions_email'));?>" class="form-control" required/>
</div>
</div>
<!-- // Group END -->
</div>
<!-- // Column END -->
</div>
<!-- // Row END -->
<hr class="separator" />
<div class="separator line bottom"></div>
<!-- Form actions -->
<div class="form-actions">
<button type="submit" class="btn btn-icon btn-primary glyphicons circle_ok"><i></i><?=_t( 'Save' );?></button>
</div>
<!-- // Form actions END -->
</div>
</div>
<!-- // Widget END -->
</form>
<!-- // Form END -->
<div class="modal fade" id="system">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal heading -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title"><?=_t( 'System Email' );?></h3>
</div>
<!-- // Modal heading END -->
<div class="modal-body">
<p><?=_t( 'All system and error related emails will be sent to this email address.' );?></p>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn btn-primary"><?=_t( 'Cancel' );?></a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="registrar">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal heading -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title"><?=_t( 'Registrar\'s Email' );?></h3>
</div>
<!-- // Modal heading END -->
<div class="modal-body">
<p><?=_t( "All course and course registration emails will be sent to this address." );?></p>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn btn-primary"><?=_t( 'Cancel' );?></a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="request">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal heading -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title"><?=_t( 'Room Request Email' );?></h3>
</div>
<!-- // Modal heading END -->
<div class="modal-body">
<p><?=_t("This is the email where all room requests are sent.");?></p>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn btn-primary"><?=_t( 'Cancel' );?></a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="contact">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal heading -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title"><?=_t( 'Contact Email' );?></h3>
</div>
<!-- // Modal heading END -->
<div class="modal-body">
<p><?=_t("Emails via the myetSIS portal (i.e. address changes) will be sent to this email address. This email address will show up in the contact details in the portal's footer as well.");?></p>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn btn-primary"><?=_t( 'Cancel' );?></a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="admissions">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal heading -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title"><?=_t( 'Admissions Email' );?></h3>
</div>
<!-- // Modal heading END -->
<div class="modal-body">
<p><?=_t("New applications submitted via the myetSIS portal will be sent to this email adddress.");?></p>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn btn-primary"><?=_t( 'Cancel' );?></a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- // Content END -->
<?php $app->view->stop(); ?>