import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -1,59 +1,29 @@
|
||||
<script>
|
||||
YAHOO.util.Event.onDOMReady(function () {
|
||||
COMMID.loader.insert(
|
||||
["connection"],
|
||||
null
|
||||
);
|
||||
});
|
||||
|
||||
COMMID.editPersonalInfo = function() {
|
||||
|
||||
return {
|
||||
save: function() {
|
||||
YAHOO.util.Connect.setForm("personalInfoForm");
|
||||
YAHOO.util.Connect.asyncRequest(
|
||||
'POST',
|
||||
'personalinfo/save',
|
||||
{
|
||||
success: function (responseObj) {COMMID.utils.replaceContent(responseObj, "personalInfo")},
|
||||
failure: COMMID.utils.asyncFailed
|
||||
},
|
||||
<form name="personalInfoForm" class="formGrid" >
|
||||
<?php foreach ($this->fields as $field): ?>
|
||||
<?php echo $field ?>
|
||||
<?php endforeach ?><br />
|
||||
<input type="button" id="save" value="<?php echo $this->translate('Save') ?>" onclick="COMMID.editPersonalInfo.save()" />
|
||||
<input type="button" id="cancel" value="<?php echo $this->translate('Cancel') ?>" onclick="COMMID.editPersonalInfo.cancel()" />
|
||||
<script type="text/javascript">
|
||||
YAHOO.util.Event.onDOMReady(function () {
|
||||
COMMID.loader.insert(
|
||||
["connection"],
|
||||
null
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
cancel: function() {
|
||||
var transaction = YAHOO.util.Connect.asyncRequest(
|
||||
'GET',
|
||||
'personalinfo/show',
|
||||
{
|
||||
success: function (responseObj) {COMMID.utils.replaceContent(responseObj, "personalInfo")},
|
||||
failure: COMMID.utils.asyncFailed
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
||||
}();
|
||||
</script>
|
||||
<form name="personalInfoForm" class="formGrid" >
|
||||
<? foreach ($this->fields as $field): ?>
|
||||
<?= $field ?>
|
||||
<? endforeach ?><br />
|
||||
<input type="button" id="save" value="<?= $this->translate('Save') ?>" onclick="COMMID.editPersonalInfo.save()" />
|
||||
<input type="button" id="cancel" value="<?= $this->translate('Cancel') ?>" onclick="COMMID.editPersonalInfo.cancel()" />
|
||||
<script type="text/javascript">
|
||||
var oButton = new YAHOO.widget.Button(
|
||||
"save",
|
||||
{
|
||||
type : "push",
|
||||
onclick : {fn: COMMID.editPersonalInfo.save}
|
||||
onclick : {fn: COMMID.personalInfo.save}
|
||||
}
|
||||
);
|
||||
var oButton = new YAHOO.widget.Button(
|
||||
"cancel",
|
||||
{
|
||||
type : "push",
|
||||
onclick : {fn: COMMID.editPersonalInfo.cancel}
|
||||
onclick : {fn: COMMID.personalInfo.cancel}
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
@ -10,19 +10,19 @@ YAHOO.util.Event.onDOMReady(function () {
|
||||
<div id="article">
|
||||
<div id="generalTab" class="dataSection">
|
||||
<div class="formHeader">
|
||||
<h2><?= $this->translate('Personal Info') ?></h2>
|
||||
<h2><?php echo $this->translate('Personal Info') ?></h2>
|
||||
<div>
|
||||
<a href="javascript:void(0);" onclick="COMMID.personalInfo.edit();">
|
||||
<?= $this->translate('Edit') ?>
|
||||
<?php echo $this->translate('Edit') ?>
|
||||
</a>
|
||||
<img id="loadingEditPersonalInfo" src="<?= $this->base ?>/images/progress.gif" style="visibility:hidden" />
|
||||
<img id="loadingEditPersonalInfo" src="<?php echo $this->base ?>/images/progress.gif" style="visibility:hidden" />
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin:10px 0">
|
||||
<em><?= $this->translate('This information will be used to automatically populate registration fields to any OpenID transaction that requires so') ?></em>
|
||||
<em><?php echo $this->translate('This information will be used to automatically populate registration fields to any OpenID transaction that requires so') ?></em>
|
||||
</div>
|
||||
<div id="personalInfo">
|
||||
<?= $this->action('show', 'personalinfo', 'users', array('userid' => $this->targetUser->id)) ?>
|
||||
<?php echo $this->action('show', 'personalinfo', 'users', array('userid' => $this->targetUser->id)) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,12 +1,12 @@
|
||||
<div class="formGrid">
|
||||
<? foreach ($this->fields as $field): ?>
|
||||
<?php foreach ($this->fields as $field): ?>
|
||||
<div class="yui-gf">
|
||||
<div class="yui-u first">
|
||||
<?= $this->translate($field->name) ?>:
|
||||
<?php echo $this->translate($field->name) ?>:
|
||||
</div>
|
||||
<div class="yui-u">
|
||||
<?= is_null($field->value)? $this->translate('Not Entered') : $field->value ?>
|
||||
<?php echo is_null($field->value)? $this->translate('Not Entered') : $field->value ?>
|
||||
</div>
|
||||
</div>
|
||||
<? endforeach ?>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user