📄 options.html.svn-base
字号:
<!-- * Asterisk-GUI - an Asterisk configuration interface * * Options to Change Password * * Copyright (C) 2006-2007, Digium, Inc. * * Mark Spencer <markster@digium.com> * Pari Nannapaneni <pari@digium.com> * * See http://www.asterisk.org for more information about * the Asterisk project. Please do not directly contact * any of the maintainers of this project for assistance; * the project provides a web site, mailing lists and IRC * channels for your use. * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. *--><script src="scripts/prototype.js"></script><script src="scripts/astman.js"></script><script src="scripts/tooltip.js"></script><link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" /><script>var current_username = parent.document.getElementById('login_name').value;function changepassword(){ var _newpass = _$('newpass'); if( _newpass.value!=_$('newpass_rep').value ){ gui_feedback( "Passwords do not match !", 'default' , 4000) ; _newpass.focus(); return true; } if( _newpass.value.length < 4 ){ gui_feedback( "Password should be at least 4 characters !", 'default' , 4000) ; _newpass.focus(); return true; } var acs = build_action('update', 0, current_username, "secret",_newpass.value,'') ; makerequest('u', 'manager.conf',acs, function(t){ if ( t.match("Success") ) { gui_feedback("Password Updated Successfully", "blue", 5000); alert("Password Updated Successfully!! \n\n You will now be redirected to the login page \n You must relogin using your new password") ; makerequest("","","action=logoff", function(t){parent.window.location.href = parent.window.location.href;} ); } } ); return;}function compare_passwords(){ if( _$('newpass').value.length < 4 ){ gui_feedback("Password should be at least 4 characters !", "#DA2804",2000); }else if ( _$('newpass').value==_$('newpass_rep').value){ gui_feedback("Passwords Match !", "green", 5000); }else{ gui_feedback( "Passwords do not match !", "#DA2804",2000); }}function localajaxinit(){ ASTGUI.events.add(document, 'mouseover', show_tooltip); showdiv_statusmessage(); setWindowTitle("Options"); if( window.location.href.match("forcepassword=yes") ){ var f = _$('userscontent').getElementsByClassName('tab'); for (var g=0 ; g < f.length ; g++){ f[g].style.display = 'none'; } } parent.loadscreen(this); _$('newpass').focus();}</script><body id="foo" onload="localajaxinit()" bgcolor="EFEFEF"><div class="mainscreenTitleBar"><span style="margin-left: 4px;font-weight:bold">Change Password</span></div><div class="mainscreenContentBox" id="userscontent"><BR><table class="mainscreenTable" align="center"> <tr valign="top" height="18"><td align="center"></td></tr> <tr> <td align="center" valign="top"> <div id="channellist" class="chanlist_small" style="width: 320px; height:110"> <table cellpadding=2 cellspacing=2 border=0> <tr> <td colspan=2 height=5></td></tr> <tr> <td class="field_text" tip="en,options,1">Enter New Password:</td> <td><input type="password" id="newpass" size=16 onkeyup="compare_passwords()" class="input9"></td></tr> <tr> <td class="field_text" tip="en,options,2">Retype New Password:</td> <td><input type="password" id="newpass_rep" size=16 onkeyup="compare_passwords()" class="input9"></td> </tr> <tr> <td colspan=2 align="center" height=20></td></tr> <tr> <td align=center colspan=2><input type="button" id="pwdbutton" value="Update" onclick="changepassword()" class="buttonbold"></td></tr> </table> </div> </td> </tr></table></div></body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -