pari: branch 1.4 r1307 - /branches/1.4/config/language.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Aug 7 14:37:53 CDT 2007


Author: pari
Date: Tue Aug  7 14:37:53 2007
New Revision: 1307

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1307
Log:
Part 2: ground work for multi-language support

Added:
    branches/1.4/config/language.html

Added: branches/1.4/config/language.html
URL: http://svn.digium.com/view/asterisk-gui/branches/1.4/config/language.html?view=auto&rev=1307
==============================================================================
--- branches/1.4/config/language.html (added)
+++ branches/1.4/config/language.html Tue Aug  7 14:37:53 2007
@@ -1,0 +1,131 @@
+<!--
+ * Asterisk-GUI	-	an Asterisk configuration interface
+ *
+ * GUI Language Preference
+ *
+ * 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/schwing.css" media="all" rel="Stylesheet" type="text/css" />
+<style type="text/css">
+
+	.navcontainer{
+		margin: 5px 10px 5px 10px;
+	}
+
+	.navlist
+	{
+	margin: 0;
+	padding: 0 0 20px 10px;
+	border-bottom: 1px solid #000;
+	}
+	
+	.navlist ul, .navlist li
+	{
+	margin: 0;
+	padding: 0;
+	display: inline;
+	list-style-type: none;
+	}
+	
+	.navlist a:link, .navlist a:visited
+	{
+	float: left;
+	line-height: 14px;
+	font-weight: bold;
+	margin: 0 10px 4px 10px;
+	text-decoration: none;
+	color: #999;
+	font-size: 120%;
+	font-family : Verdana, Arial, Helvetica, sans-serif;
+	}
+	
+	.navlist a.current:link , .navlist a.current:visited , .navlist a.current:hover
+	{
+	border-bottom: 4px solid #000;
+	padding-bottom: 2px;
+	background: transparent;
+	color: #000;
+	}
+	
+	.navlist a:hover { 
+		color: #CC0000; 
+		cursor: pointer;
+	}
+</style>
+<script>
+var lang_Conf_callbacks = new Object;
+var widgets = {};
+var fieldnames = ['save' , 'cancel' , 'gui_lang'];
+
+lang_Conf_callbacks.format = function(t) {
+	if(t.name.match('general'))
+		return t.name;
+	else
+		return false;
+}
+
+lang_Conf_callbacks.loaded = function() {
+	parent.loadscreen(this);
+	$('hiddenfield').selectitem(0);
+}
+
+function localajaxinit(){
+	ASTGUI.events.add(document, 'mouseover', show_tooltip);
+
+	setWindowTitle("GUI Access Settings : Language");
+	for (var x =0; x< fieldnames.length; x++ ) {
+		widgets[fieldnames[x]] = $(fieldnames[x]);
+		widgets[fieldnames[x]].disabled = true;
+	}
+
+	parent.astmanEngine.config2list("users.conf", $('hiddenfield'), widgets, lang_Conf_callbacks);
+	return;
+}
+
+</script>
+<body id="foo" onload="localajaxinit()"  bgcolor="EFEFEF">
+<div class="mainscreenTitleBar">
+	<span style="margin-left: 4px;font-weight:bold;">GUI Access Settings : Language</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="navcontainer">
+<ul class="navlist">
+	<li><a href="http_options.html">IP & Port Settings</a></li>
+	<li><a href="#"  class="current">Language</a></li>
+</ul>
+</div>
+<div class="mainscreenContentBox" id="userscontent">
+	<select  id="hiddenfield" style="display:none"></select>
+	<BR>
+	<table align="center" cellpadding=0 cellspacing=3 border=0>
+		<tr>
+			<td align=right height=30>Language :</td>
+			<td>&nbsp;
+				<select id='gui_lang' class="input9">
+					<option value="en">English</option>
+				</select>
+		</tr>
+		<tr><td colspan=2 align=center valign=bottom height=40>
+			<input type='button' id='save' value='Save' class="buttonbold">&nbsp;
+			<input type='button' id='cancel' value='Cancel' class="buttonbold">
+			</td>
+		</tr>
+	</table>
+</div>
+</body>




More information about the asterisk-gui-commits mailing list