pari: trunk r943 - in /trunk/config: cfgbasic.html emailsettings.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue May 15 20:58:56 MST 2007


Author: pari
Date: Tue May 15 22:58:56 2007
New Revision: 943

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=943
Log:
options for managing 'Voicemail Emails template'

Added:
    trunk/config/emailsettings.html
Modified:
    trunk/config/cfgbasic.html

Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?view=diff&rev=943&r1=942&r2=943
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Tue May 15 22:58:56 2007
@@ -356,6 +356,7 @@
 				<option value="cli.html">Asterisk CLI</option>
 				<option value="moh.html">Music on Hold</option>
 				<option value="timerules.html">Time Based Rules</option>
+				<option value="emailsettings.html">VM Email settings</option>
 				<option value="sip.html">Global SIP Settings</option>
 				<option value="iax.html">Global IAX Settings</option>
 			<!--	<option value="jabber.html">Jabber</option>

Added: trunk/config/emailsettings.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/emailsettings.html?view=auto&rev=943
==============================================================================
--- trunk/config/emailsettings.html (added)
+++ trunk/config/emailsettings.html Tue May 15 22:58:56 2007
@@ -1,0 +1,104 @@
+<!--
+ * Asterisk-GUI	-	an Asterisk configuration interface
+ *
+ * VoiceMail->Email Template Settings
+ *
+ * Copyright (C) 2006-2007, Digium, Inc.
+ *
+ * Pari Nannapaneni <pari at 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/rico.css" media="all" rel="Stylesheet" type="text/css" />
+<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
+<script>
+var vmfields = ['serveremail','emailsubject','emailbody','save','cancel'];
+var vmwidgets = {};
+var voicemailcallbacks = {};
+
+voicemailcallbacks.format = function(t) {
+	if (t.name != 'general')
+		return null;
+	return "General";
+}
+
+voicemailcallbacks.loaded = function() {
+	_$('hiddenvoicemail').selectitem(0) ;
+	parent.loadscreen(this);
+}
+
+function localajaxinit(){
+
+
+	for (var x =0; x< vmfields.length; x++) {
+		vmwidgets[vmfields[x]] = _$(vmfields[x]);
+		vmwidgets[vmfields[x]].disabled = true;
+	}
+
+	parent.astmanEngine.config2list("voicemail.conf", _$('hiddenvoicemail'), vmwidgets, voicemailcallbacks);
+
+}
+
+</script>
+<body id="foo" onload="localajaxinit()"  bgcolor="EFEFEF">
+<div class="mainscreenTitleBar">
+	<span style="margin-left: 4px;font-weight:bold;">Settings for Voicemail notification Emails </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>
+<select id="hiddenvoicemail" style="display:none"></select>
+
+<table align="center" cellpadding=2 cellspacing=1 border=0>
+<TR>	<TD colspan=2 align=center height=33 valign=middle><B>Template for Voicemail Emails </B></TD></TR>
+
+<TR>	<TD align=right>From</TD>
+	<TD><input type="text" id="serveremail" size=54></TD>
+</TR>
+<TR>	<TD align=right>Subject</TD>
+	<TD><input type="text" id="emailsubject" size=54></TD>
+</TR>
+<TR>	<TD valign=top>Message</TD>
+	<TD><textarea id="emailbody" rows=10 cols=55></textarea></TD>
+</TR>
+<TR>	<TD colspan=2 align=center>
+		<input type="button" id="save" value="Save">&nbsp;
+		<input type="button" id="cancel" value="Cancel">&nbsp;
+	</TD>
+</TR>
+</table>
+<BR>
+<table align="center" cellpadding=2 cellspacing=1 border=0>
+<TR>	<TD valign=top align=center style="font-size:10px;"><B>Template Variables:</B></TD>
+	<TD style="font-size : 11px;">{VM_NAME} : Recipient's firstname and lastname</TD>
+</TR>
+<TR>	<TD></TD>
+	<TD style="font-size : 11px;">{VM_DUR} : The duration of the voicemail message</TD>
+</TR>
+<TR>	<TD></TD>
+	<TD style="font-size : 11px;">{VM_MAILBOX} : The recipient's extension</TD>
+</TR>
+<TR>	<TD></TD>
+	<TD style="font-size : 11px;">{VM_CALLERID} : The caller id of the person who left the message</TD>
+</TR>
+<TR>	<TD></TD>
+	<TD style="font-size : 11px;">{VM_MSGNUM} : The message number in your mailbox</TD>
+</TR>
+<TR>	<TD></TD>
+	<TD style="font-size : 11px;">{VM_DATE} : The date and time the message was left</TD>
+</TR>
+</table>
+
+</div>
+</body>



More information about the asterisk-gui-commits mailing list