1<?php
2/*
3 * e107 website system
4 *
5 * Copyright (C) 2008-2009 e107 Inc (e107.org)
6 * Released under the terms and conditions of the
7 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
8 *
9 *
10 *
11 * $Source: /cvs_backup/e107_0.8/e107_themes/templates/usersettings_template.php,v $
12 * $Revision$
13 * $Date$
14 * $Author$
15 */
16
17if (!defined('e107_INIT')) { exit; }
18if (!defined("USER_WIDTH"))
19{
20	$uw = (deftrue('BOOTSTRAP')) ? "" : "width:97%";
21	define("USER_WIDTH", $uw);
22}
23
24
25// global $usersettings_shortcodes, $pref;
26
27
28$sc_style['CUSTOMTITLE']['pre'] 		= "<tr>
29											<td style='width:40%' class='forumheader3'>".LAN_USER_04.":</td>
30											<td style='width:60%' class='forumheader2'>\n";
31$sc_style['CUSTOMTITLE']['post'] 		= "</td></tr>\n";
32
33$sc_style['PASSWORD1']['pre'] 			= "<tr>
34											<td style='width:40%' class='forumheader3'>".LAN_USET_24."</td>
35											<td style='width:60%' class='forumheader2'>\n";
36$sc_style['PASSWORD1']['post'] 			= "</td></tr>\n";
37
38
39$sc_style['PASSWORD2']['pre'] 			= "<tr>
40											<td style='width:40%' class='forumheader3'>".LAN_USET_25."</td>
41											<td style='width:60%' class='forumheader2'>\n";
42$sc_style['PASSWORD2']['post'] 			= "</td></tr>\n";
43
44
45$sc_style['PASSWORD_LEN']['pre'] 		= "<br /><span class='smalltext'>  (".LAN_USER_78." ";
46$sc_style['PASSWORD_LEN']['post'] 		= " ".LAN_USER_79.")</span>";
47
48$sc_style['USERCLASSES']['pre'] 		= "<tr>
49											<td style='width:40%;vertical-align:top' class='forumheader3'>".LAN_USER_76.":".req(e107::getPref('signup_option_class'))."
50											<br /><span class='smalltext'>".LAN_USER_73."</span>
51											</td>
52											<td style='width:60%' class='forumheader2'>";
53$sc_style['USERCLASSES']['post'] 		= "</td></tr>\n";
54
55$sc_style['AVATAR_UPLOAD']['pre'] 		= "<tr>
56											<td style='width:40%; vertical-align:top' class='forumheader3'>".LAN_USET_26."<br /></td>
57											<td style='width:60%' class='forumheader2'>\n";
58$sc_style['AVATAR_UPLOAD']['post'] 		= "</td></tr>\n";
59
60
61$sc_style['PHOTO_UPLOAD']['pre'] 		= "<tr>
62											<td style='width:40%; vertical-align:top' class='forumheader3'>".LAN_USER_06."</td>
63											<td style='width:60%' class='forumheader2'><span class='smalltext'>\n";
64$sc_style['PHOTO_UPLOAD']['post'] 		= "</span></td></tr>";
65
66
67$sc_style['USERNAME']['pre'] 			= "<tr>
68											<td style='width:40%' class='forumheader3'>".LAN_USER_01."</td>
69											<td style='width:60%' class='forumheader2'>\n";
70
71$sc_style['USERNAME']['post'] 			= "</td</tr>";
72
73
74$sc_style['LOGINNAME']['pre'] 			= "<tr>
75											<td style='width:40%' class='forumheader3'>".LAN_USER_81."</td>
76											<td style='width:60%' class='forumheader2'>\n";
77$sc_style['LOGINNAME']['post'] 			= "</td></tr>\n";
78
79
80$sc_style['SIGNATURE']['pre']			= "<tr><td style='width:40%;vertical-align:top' class='forumheader3'>".LAN_USER_71.req(e107::getPref('signup_option_signature'))."</td>
81											<td style='width:60%' class='forumheader2'>";
82
83//$sc_style['SIGNATURE']['pre']			= "<tr><td style='width:40%;vertical-align:top' class='forumheader3'></td>
84			//								<td style='width:60%' class='forumheader2'>";
85
86// $sc_style['SIGNATURE_HELP']['pre']		= "</td></tr>";											\
87$sc_style['SIGNATURE_HELP']['post']		= "</td></tr>";
88
89
90$USER_EXTENDED_CAT 						= "<tr><td colspan='2' class='forumheader'>{CATNAME}</td></tr>";
91$USEREXTENDED_FIELD 					= "<tr>
92											<td style='width:40%' class='forumheader3'>
93											{FIELDNAME}
94											</td>
95											<td style='width:60%' class='forumheader3'>
96											{FIELDVAL} {HIDEFIELD}
97											</td>
98											</tr>
99											";
100
101
102
103
104$REQUIRED_FIELD 						= "{FIELDNAME} <span class='required'><!-- emtpy --></span>";
105
106// After Saving has occurred.
107$USERSETTINGS_MESSAGE 					= "{MESSAGE}";
108$USERSETTINGS_MESSAGE_CAPTION 			= LAN_OK;
109$USERSETTINGS_EDIT_CAPTION 				= LAN_USET_39; 	// 'Update User Settings'
110
111
112
113
114$USERSETTINGS_EDIT = "
115<div style='text-align:center'>
116	<table style='".USER_WIDTH."' class='table fborder adminform'>
117    	<colgroup span='2'>
118    		<col class='col-label' />
119    		<col class='col-control' />
120    	</colgroup>
121	<tr>
122	<td colspan='2' class='forumheader'>".LAN_USET_31."</td>
123	</tr>
124	{USERNAME}
125	{LOGINNAME}
126
127	<tr>
128	<td style='width:40%' class='forumheader3'>".LAN_USER_60.req(!e107::getPref('disable_emailcheck'))."</td>
129	<td style='width:60%' class='forumheader2'>
130	{EMAIL}
131	</td>
132	</tr>
133
134	{REALNAME}
135
136	{CUSTOMTITLE}
137
138	{PASSWORD1}
139	{PASSWORD_LEN}
140	{PASSWORD2}
141
142
143	<tr>
144	<td style='width:40%' class='forumheader3'>".LAN_USER_83."</td>
145	<td style='width:60%' class='forumheader2'><span class='defaulttext'>
146	{HIDEEMAIL=radio}
147	</span>
148	</td>
149	</tr>
150
151	<tr>
152	<td style='width:40%; vertical-align:top' class='forumheader3'>".LAN_USER_07.req(e107::getPref('signup_option_image'))."</td>
153	<td style='width:60%' class='forumheader2'>
154	{AVATAR_REMOTE}
155	</td>
156	</tr>
157
158	{AVATAR_UPLOAD}
159	{PHOTO_UPLOAD}
160
161	{USERCLASSES}
162	{USEREXTENDED_ALL}
163
164
165	{SIGNATURE=cols=58&rows=4}
166	{SIGNATURE_HELP}
167	</tr>
168	</table>
169	<div>
170	{UPDATESETTINGSBUTTON}
171	{DELETEACCOUNTBUTTON}
172	</div>
173	</div>
174	";
175
176
177
178
179
180// e107 v2. bootstrap3 compatible template.
181
182$USERSETTINGS_WRAPPER['edit']['USERNAME'] =				"<div class='form-group'>
183															<label for='username' class='col-sm-3 control-label'>".LAN_USER_01."</label>
184														    <div class='col-sm-9'>{---}</div>
185														   </div>
186														";
187
188
189$USERSETTINGS_WRAPPER['edit']['LOGINNAME'] = 			"<div class='form-group'>
190															<label for='loginname' class='col-sm-3 control-label'>".LAN_USER_81."</label>
191														       	<div class='col-sm-9'>{---}</div>
192														   </div>
193														";
194
195$USERSETTINGS_WRAPPER['edit']['PASSWORD1'] = 			"<div class='form-group'>
196															<label for='password1' class='col-sm-3 control-label'>".LAN_USET_24."</label>
197														       	<div class='col-sm-9'>{---}</div>
198														   </div>
199														";
200$USERSETTINGS_WRAPPER['edit']['PASSWORD2'] =			"<div class='form-group'>
201															<label for='password2' class='col-sm-3 control-label'>".LAN_USET_25."</label>
202														       	<div class='col-sm-9'>{---}</div>
203														   </div>
204														";
205
206$USERSETTINGS_WRAPPER['edit']['REALNAME'] =			"<div class='form-group'>
207															<label for='realname' class='col-sm-3 control-label'>".LAN_USER_63.req(e107::getPref('signup_option_realname'))."</label>
208														       	<div class='col-sm-9'>{---}</div>
209														   </div>
210														";
211
212$USERSETTINGS_WRAPPER['edit']['CUSTOMTITLE'] =			"<div class='form-group'>
213															<label for='customtitle' class='col-sm-3 control-label'>".LAN_USER_04.':'.req(e107::getPref('signup_option_customtitle'))."</label>
214														       	<div class='col-sm-9'>{---}</div>
215														   </div>
216														";
217
218$USERSETTINGS_WRAPPER['edit']['USERCLASSES'] = 			"<div class='form-group'>
219															<label  class='col-sm-3 control-label'>".LAN_USER_76.":".req(e107::getPref('signup_option_class'))."</label>
220														       	<div class='col-sm-9'>{---}</div>
221														   </div>
222														";
223
224$USERSETTINGS_WRAPPER['edit']['AVATAR_UPLOAD'] = 		"<div class='form-group'>
225														<label for='avatar' class='col-sm-3 control-label'>".LAN_USET_26."</label>
226												       	<div class='col-sm-9'>{---}</div>
227													   	</div>
228														";
229$USERSETTINGS_WRAPPER['edit']['PHOTO_UPLOAD'] = 		"<div class='form-group'>
230														<label for='photo' class='col-sm-3 control-label'>".LAN_USER_06."</label>
231												       	<div class='col-sm-9'>{---}</div>
232													   	</div>
233														";
234
235
236
237$USERSETTINGS_WRAPPER['edit']['SIGNATURE']			= "<div class='form-group'>
238														<label for='signature' class='col-sm-3 control-label'>".LAN_USER_71.req(e107::getPref('signup_option_signature'))."</label>
239												       	<div class='col-sm-9'>{---}</div>
240													   	</div>
241													 ";
242
243	// $USERSETTINGS_WRAPPER['edit']['USEREXTENDED_ALL']	= "<div class='form-group'>{---}</div>";
244
245
246
247
248
249// Bootstrap 3 only.
250
251$USERSETTINGS_TEMPLATE = array();
252
253$USERSETTINGS_TEMPLATE['edit'] = "
254
255<div>
256
257	{USERNAME}
258
259	{LOGINNAME}
260
261
262	<div class='form-group'>
263	<label for='email' class='col-sm-3 control-label'>".LAN_USER_60.req(!e107::getPref('disable_emailcheck'))."</label>
264	<div class='col-sm-9'>
265		{EMAIL}
266	</div>
267	</div>
268
269	{REALNAME}
270
271	{CUSTOMTITLE}
272
273	{PASSWORD1}
274
275	{PASSWORD2}
276
277
278	<div class='form-group'>
279	<label for='hideemail' class='col-sm-3 control-label'>".LAN_USER_83."</label>
280	<div class='col-sm-9'>
281	{HIDEEMAIL=radio}
282	</div>
283	</div>
284
285	<div class='form-group'>
286	<label class='col-sm-3 control-label'>".LAN_USER_07.req(e107::getPref('signup_option_image'))."</label>
287	<div class='col-sm-9'>
288	{AVATAR_REMOTE}
289	</div>
290	</div>
291
292	{AVATAR_UPLOAD}
293	{PHOTO_UPLOAD}
294
295
296	{USERCLASSES}
297	{USEREXTENDED_ALL=tabs}
298
299	{SIGNATURE}
300	{SIGNATURE_HELP}
301
302	 <div class='form-group'>
303      <div class='col-sm-offset-3 col-sm-9'>
304		{UPDATESETTINGSBUTTON}
305		{DELETEACCOUNTBUTTON}
306	</div>
307	</div>
308
309</div>
310";
311
312$USERSETTINGS_TEMPLATE['extended-category'] = "<h3>{CATNAME}</h3>";
313$USERSETTINGS_TEMPLATE['extended-field'] = "<div class='form-group'>
314	<label class='col-sm-3 control-label'>{FIELDNAME} {REQUIRED}</label>
315	<div class='col-sm-9'>
316	{FIELDVAL} {HIDEFIELD}
317	</div>
318	</div>
319											";
320
321
322