step1.htm revision 99690585c1f4c3ffb83c50bcb5cc0725cadff899
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<script type="text/javascript">
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes function adminPasswordResponse(response) {
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes if (response.responseText == "true") {
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $('adminPasswordStatus').innerHTML = okString;
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $('nextTabButton').disabled = false;
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes } else {
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $('adminPasswordStatus').innerHTML = errorImage +
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes '<small>' + response.responseText + '</small>';
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $('nextTabButton').disabled = true;
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes function validateAdminPasswords() {
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes var link = "?actionLink=checkPasswords";
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes var cValue = "confirm=" + encodeURIComponent($('adminConfirm').value);
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes var aValue = "&password=" + encodeURIComponent($('adminPassword').value);
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes var oValue = "&otherPassword=x";
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes var type = "&type=admin";
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes ie7fix++;
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes var iefix = "&ie7fix=" + ie7fix;
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes field = "adminPassword";
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes AjaxUtils.doPost(null, "$context$path" + link + iefix,
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes cValue + aValue + oValue + type, adminPasswordResponse, null, null);
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes function initStep1() {
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $('nextTabButton').disabled = true;
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes YAHOO.util.Event.onDOMReady(initStep1);
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes</script>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<div style="margin-left:10px;">
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <h1>$page.getLocalizedString("step1.title")<img class="pointer" src="$context/assets/images/message.gif"/></h1>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <p>$page.getLocalizedString("step1.description")</p>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <div class="summaryPanel" style="width:610px">
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <p id="allfields"><em>*</em>&nbsp;$page.getLocalizedString("required.field.label")</p>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <b class="xtop"><b class="xt1"></b><b class="xt2"></b><b class="xt3"></b><b class="xt4"></b></b>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <div class="headerBox">$page.getLocalizedString("step1.subtitle")</div>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <div class="bodyBox" style="height:180px">
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <span>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <table class="temp">
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <tr>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <td colspan="2"><b>$page.getLocalizedString("step1.admin.user.name")</b></td></tr>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <tr>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <td><em>&nbsp;*&nbsp;</em>$page.getLocalizedString("password.label")</td>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <td>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <input id="adminPassword" name="adminPassword"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes type="password" value=""
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes width="40" class="text"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes onkeyup="APP.callDelayed(this,validateAdminPasswords)"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes onchange="APP.callDelayed(this,validateAdminPasswords)" >
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <span id="adminPasswordStatus"></span>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </td>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </tr>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <tr>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <td><em>&nbsp;*&nbsp;</em>$page.getLocalizedString("confirm.label")</td>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <td>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <input id="adminConfirm" name="adminConfirm"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes type="password" value=""
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes width="40" class="text"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes onkeyup="APP.callDelayed(this,validateAdminPasswords)"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes onchange="APP.callDelayed(this,validateAdminPasswords)">
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </td>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </tr>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </table>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </span>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </div>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <b class="xbottom"><b class="xbGray1"></b><b class="xbGray2"></b><b class="xbGray3"></b><b class="xbGray4"></b></b>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </div>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes</div>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes