-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit.php
More file actions
82 lines (74 loc) · 3.13 KB
/
Copy pathedit.php
File metadata and controls
82 lines (74 loc) · 3.13 KB
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
<?php defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php'); ?>
<div id="content">
<div id="colOne">
<?php $this->inc('elements/sidebar.php'); ?>
</div>
<div id="colTwo">
<div id="profile-edit">
<div id="ccm-profile-wrapper">
<div id="ccm-profile-body">
<?php if (isset($error) && $error->has()) {
$error->output();
} else if (isset($message)) { ?>
<div class="message"><?php echo $message?></div>
<script type="text/javascript">
$(function() {
$("div.message").show('highlight', {}, 500);
});
</script>
<?php } ?>
<h1 class="profilin"><?php echo t('Edit Profile')?></h1>
<div class="ccm-form">
<form method="post" action="<?php echo $this->action('save')?>" id="profile-edit-form" enctype="multipart/form-data">
<?php $attribs = UserAttributeKey::getEditableInProfileList();
if(is_array($attribs) && count($attribs)) {
?>
<fieldset>
<div class="ccm-profile-attribute">
<?php echo $form->label('uEmail', t('Email'))?> <span class="ccm-required">*</span><br/>
<?php echo $form->text('uEmail',$ui->getUserEmail())?>
</div>
<?php if(ENABLE_USER_TIMEZONES) { ?>
<div class="ccm-profile-attribute">
<?php echo $form->label('uTimezone', t('Time Zone'))?> <span class="ccm-required">*</span><br/>
<?php echo $form->select('uTimezone',
$date->getTimezones(),
($ui->getUserTimezone()?$ui->getUserTimezone():date_default_timezone_get())
); ?>
</div>
<?php } ?>
<?php
$af = Loader::helper('form/attribute');
$af->setAttributeObject($ui);
foreach($attribs as $ak) {
print '<div class="ccm-profile-attribute">';
print $af->display($ak, $ak->isAttributeKeyRequiredOnProfile());
print '</div>';
} ?>
</fieldset>
<?php } ?>
<h3><?php echo t('Change Password')?></h3>
<p><?php echo t("Leave this blank to keep your current password.")?></p>
<fieldset>
<div>
<?php echo $form->label('uPasswordNew', t('New Password'))?>
<?php echo $form->password('uPasswordNew')?>
</div>
<div>
<?php echo $form->label('uPasswordNewConfirm', t('Confirm New Password'))?>
<?php echo $form->password('uPasswordNewConfirm')?>
</div>
</fieldset>
<div class="spacer" style="margin-top:20px"> </div>
<?php echo $form->submit('save', t('Save'))?>
</form>
<div class="spacer"> </div>
</div>
</div>
<div class="ccm-spacer"></div>
</div>
</div>
</div>
</div>
<?php $this->inc('elements/footer.php'); ?>