2019-07-17 20:08:50 +00:00
|
|
|
<script>
|
|
|
|
YAHOO.util.Event.onDOMReady(function () {
|
|
|
|
COMMID.loader.insert(
|
|
|
|
// "connection" is required by COMMID.general methods
|
|
|
|
["connection"],
|
|
|
|
null
|
|
|
|
);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="accountForm">
|
|
|
|
<div>
|
2019-07-17 20:16:19 +00:00
|
|
|
<h2><?php echo $this->translate('Account info') ?></h2>
|
|
|
|
<?php if ($this->targetUser->id == $this->user->id): ?>
|
|
|
|
<div class="linksTopRight">
|
2019-07-17 20:08:50 +00:00
|
|
|
<a href="javascript:void(0);" onclick="COMMID.general.editAccountInfo();">
|
2019-07-17 20:16:19 +00:00
|
|
|
<?php echo $this->translate('Edit') ?>
|
2019-07-17 20:08:50 +00:00
|
|
|
</a> |
|
|
|
|
<a href="javascript:void(0);" onclick="COMMID.general.changePassword()" >
|
2019-07-17 20:16:19 +00:00
|
|
|
<?php echo $this->translate('Change Password') ?>
|
2019-07-17 20:08:50 +00:00
|
|
|
</a>
|
2019-07-17 20:16:19 +00:00
|
|
|
<img id="loadingAccountInfo" src="<?php echo $this->base ?>/images/progress.gif" style="visibility:hidden" />
|
2019-07-17 20:08:50 +00:00
|
|
|
</div>
|
2019-07-17 20:16:19 +00:00
|
|
|
<?php endif ?>
|
2019-07-17 20:08:50 +00:00
|
|
|
</div>
|
|
|
|
<div id="accountInfo">
|
2019-07-17 20:16:19 +00:00
|
|
|
<?php if ($this->targetUser->id) {
|
2019-07-17 20:08:50 +00:00
|
|
|
echo $this->action('accountinfo', 'profilegeneral', 'users', array('userid' => $this->targetUser->id));
|
|
|
|
} else {
|
|
|
|
// user id == 0 means we're entering info for a new user
|
|
|
|
echo $this->action('editaccountinfo', 'profilegeneral', 'users', array('userid' => $this->targetUser->id));
|
|
|
|
} ?>
|
|
|
|
</div>
|
2019-07-17 20:16:19 +00:00
|
|
|
<?php if ($this->targetUser->id && $this->targetUser->id == $this->user->id): ?>
|
2019-07-17 20:08:50 +00:00
|
|
|
<div class="accountForm">
|
2019-07-17 20:16:19 +00:00
|
|
|
<div class="linksTopRight" >
|
2019-07-17 20:19:00 +00:00
|
|
|
<?php if ($this->user->role == Users_Model_User::ROLE_REGISTERED): ?>
|
|
|
|
<a href="<?php echo $this->base ?>/users/profilegeneral/confirmdelete">
|
|
|
|
<?php echo $this->translate('Delete Account') ?>
|
|
|
|
</a>
|
|
|
|
<?php endif ?>
|
2019-07-17 20:16:19 +00:00
|
|
|
<img id="loadingAccountInfoDummy" src="<?php echo $this->base ?>/images/progress.gif" style="visibility:hidden" /><!-- just for layout -->
|
2019-07-17 20:08:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-17 20:16:19 +00:00
|
|
|
<?php endif ?>
|
2019-07-17 20:08:50 +00:00
|
|
|
</div>
|