⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jabber.html

📁 asterisk 的图形管理界面
💻 HTML
字号:
<!--
 * Asterisk-GUI	-	an Asterisk configuration interface
 *
 * Configure accounts in jabber.conf 
 *
 * 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/rico.js"></script>
<script src="scripts/astman.js"></script>
<link href="stylesheets/rico.css" media="all" rel="Stylesheet" type="text/css" />
<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />

<script>
var phonecallbacks = new Object;
var widgets = {};
var fieldnames = ['buddy', 'cancel', 'delete', 'name', 'new', 'port', 'save', 'secret', 'serverhost', 'statusmessage', 'timeout', 'type', 'username', 'usesasl', 'usetls'];

phonecallbacks.format = function(t) {
	tmp = t.name.split('general');
	if(tmp.length>1)
		return false;
	else
		return t.name;
}


phonecallbacks.postselect = function(box, val) {

}



phonecallbacks.loaded = function() {
		//$('hiddenfield').selectitem(0);

}


function localajaxinit() {
		setWindowTitle("Jabber");
		// Load the jabber.conf->users into the Users, associate the field to other fields
		parent.loadscreen(this);
		for (var x =0; x < fieldnames.length; x++) {
			widgets[fieldnames[x]] = $(fieldnames[x]);
			widgets[fieldnames[x]].disabled = true;
		}
		parent.astmanEngine.config2list("jabber.conf", $('JabberUsers'), widgets, phonecallbacks);
		return;
	}
</script>
<body id="foo" onload="localajaxinit()"  bgcolor="EFEFEF">
<div class="mainscreenTitleBar">
	<span style="margin-left: 4px;font-weight:bold;">Jabber&trade; Users Configuration</span>
	<span style="cursor: pointer; cursor: hand;" onclick="window.location.href=window.location.href;" >&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;</span>
</div>
<div class="mainscreenContentBox" id="userscontent">
	<table class="mainscreenTable" align="center">
	<tr valign="top">
		<td colspan='2'>Users:</td>
	</tr>
	<tr valign="top">
		<td>	<select size="28" id="JabberUsers" style="width:220px; height: 415px"><option>Loading...</option></select></td>
		<td colspan='3'  style='width:311px; height: 415px'>
			<div id='adjustments'>
			<table cellspacing='0' cellpadding='0'>
			<tr valign="top">
				<td>	<table cellpadding=1 cellspacing=0>
					<tr>	<td class="field_text">Extension:</td>
						<td>&nbsp;<input size='24' id='name'  class="input8"></td>
					</tr>
					<tr>	<td class="field_text">Username:</td>
						<td>&nbsp;<input size='24' id='username' class="input8"></td>
					</tr>
					<tr>	<td class="field_text">Password:</td>
						<td>&nbsp;<input size='24' id='secret' class="input8"></td>
					</tr>
					<tr>	<td class="field_text">Server Host:</td>
						<td>&nbsp;<input size='24' id='serverhost' class="input8"></td>
					</tr>
					<tr>	<td class="field_text">Buddy:</td>
						<td>&nbsp;<input size='24' id='buddy' class="input8"></td>
					</tr>
					<tr>	<td class="field_text">Status Message:</td>
						<td>&nbsp;<input size='24' id='statusmessage' class="input8"></td>
					</tr>
					<tr>	<td class="field_text">Type:</td>
						<td>&nbsp;<select id='type' class="input8">
							<option value="client">client</option>
							<option value="component">component</option></select>
						</td>
					</tr>
					<tr>	<td class="field_text">Port:</td>
						<td>&nbsp;<input size='4' id='port' pattern='^\d*$' class="input8"></td>
					</tr>
					<tr>	<td class="field_text">TimeOut:</td>
						<td>&nbsp;<input size='4' id='timeout' pattern='^\d*$' class="input8"></td>
					</tr>
					<tr>	<td class="field_text">Use TLS:</td>
						<td><input type="checkbox" id='usetls'></td>
					</tr>
					<tr>	<td class="field_text">Use SASL:</td>
						<td><input type="checkbox" id='usesasl'></td>
					</tr>
					</table>
				</td>
			</tr>
			<tr>	<td align="center" class="field_text">
				<!-- <img src="./images/jabber.gif" border=0> --><BR><BR>
				<font size=-2>
				Jabber&trade; is a collection of open, XML-based protocols for instant messaging and presence information.
				</font><BR><font size=-2>Jabber&reg; is a registered trademark of Jabber, Inc.</font>
				</td>
			</tr>
			</table>
			</div>
		</td>
	</tr>				
	<tr>	<td align='center'>
			<input type='button' id='new' value='New' class="buttonbold">&nbsp;&nbsp;
			<input type='button' id='delete' value='Delete' class="buttonbold">
		</td>
		<td colspan='1' align='center'>
			<input type='button' id='save' value='Save' class="buttonbold">&nbsp;&nbsp;
			<input type='button' id='cancel' value='Cancel' class="buttonbold">
		</td>
	</tr>
	<tr>	</tr>
	</table>
</div>
</body>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -