rbrindley: branch 2.0 r4940 - /branches/2.0/config/update_phonefirmware.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Jun 23 13:11:06 CDT 2009


Author: rbrindley
Date: Tue Jun 23 13:11:03 2009
New Revision: 4940

URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4940
Log:

- Added the following to the Phone Firmware page
	- <html>, <head>, <title>, and "Content-Type" <meta>
- moved js to the bottom


Modified:
    branches/2.0/config/update_phonefirmware.html

Modified: branches/2.0/config/update_phonefirmware.html
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/update_phonefirmware.html?view=diff&rev=4940&r1=4939&r2=4940
==============================================================================
--- branches/2.0/config/update_phonefirmware.html (original)
+++ branches/2.0/config/update_phonefirmware.html Tue Jun 23 13:11:03 2009
@@ -7,108 +7,113 @@
  * All Rights Reserved.
  *
 -->
-<script src="js/jquery.js"></script>
-<script src="js/astman.js"></script>
-<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
-<style type="text/css">
+<html>
+<head>
+	<title></title>
+	<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
 
-</style>
-<script>
+	<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
+	<style type="text/css"></style>
+</head>
+<body bgcolor="EFEFEF">
+	<div class="iframeTitleBar"> 
+		Update Polycom Firmware
+		<span style="cursor: pointer; cursor: hand;" onclick="window.location.reload();" >&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;</span>
+	</div>
 
-var localajaxinit = function(){
+	<table align=center width='95%'>
+		<tr>
+			<td colspan=2 align='center'>
+				<div class='lite_Heading'> Update Appliance Firmware </div>
+			</td>
+		</tr>
+		<tr>	<td colspan=2 align='center' height=20></td></tr>
+		<tr>
+			<td valign=top align=right>Firmware Archive Name :</td>
+			<td> <input id="fmarchivename" size=20 value="spip_ssip_3_1_1.tar.gz"></td>
+		</tr>
+		<tr>	<td colspan=2 align='center' height=20></td></tr>
+		<tr>
+			<td valign=top align=right>Bootrom Archive Name :</td>
+			<td> <input id="brarchivename" size=20 value="spip_ssip_BootROM_4_1_2.tar.gz"></td>
+		</tr>
+		<tr>	<td colspan=2 align='center' height=20></td></tr>
+		<tr>
+			<td colspan=2 align='center'>
+				<span class='guiButton' onclick='update_firmware()'> Download new Firmware </span>
+			</td>
+		</tr>
+		<tr>	<td colspan=2 align='center' height=20></td></tr>
+		<tr>	<td colspan=2 align='center' height=20>
+				Note: get the latest Archive names from <A target='_blank' href="http://downloads.digium.com/pub/polycom/firmware">here</A>
+			</td>
+		</tr>
+	</table>
 
-};
+	<script src="js/jquery.js"></script>
+	<script src="js/astman.js"></script>
+	<script>
 
-var update_firmware = function(){
-	parent.ASTGUI.dialog.waitWhile(' Downloading Firmware ... <BR> This process might take several minutes depending on your download speed.');
+	var localajaxinit = function(){
 
-	var checkAndUpdateOutPut = function(){
-		var tmp = ASTGUI.loadHTML(sessionData.directories.output_SysInfo);
-		//var tmp = ASTGUI.loadHTML('./sysinfo_output.html');
-		if( tmp.contains('**Completed**') ){
-			try{
-				var ta = 'Finished downloading firmware !' +
-					'\n Please reboot the appliance for the new firmware to be effective.' +
-					'\n Note: The reboot process might take 4 to 8 minutes. ';
-				alert(ta);
-				return;
-			}finally{
-				parent.ASTGUI.dialog.hide();
-				window.location.reload();
+	};
+
+	var update_firmware = function(){
+		parent.ASTGUI.dialog.waitWhile(' Downloading Firmware ... <BR> This process might take several minutes depending on your download speed.');
+
+		var checkAndUpdateOutPut = function(){
+			var tmp = ASTGUI.loadHTML(sessionData.directories.output_SysInfo);
+			//var tmp = ASTGUI.loadHTML('./sysinfo_output.html');
+			if( tmp.contains('**Completed**') ){
+				try{
+					var ta = 'Finished downloading firmware !' +
+						'\n Please reboot the appliance for the new firmware to be effective.' +
+						'\n Note: The reboot process might take 4 to 8 minutes. ';
+					alert(ta);
+					return;
+				}finally{
+					parent.ASTGUI.dialog.hide();
+					window.location.reload();
+				}
 			}
+
+			var tmp_files = tmp.split('\n');
+			var DOWNLOADFILES = [];
+			for( var i=0; i < tmp_files.length ; i++){
+
+				if( tmp_files[i].trim() == '' )
+					continue;
+
+				DOWNLOADFILES.push( tmp_files[i] );
+			}
+
+			var statusmsg = '';
+			if( DOWNLOADFILES.length == 1 ){
+				statusmsg = 'Downloading ' + DOWNLOADFILES[0] ;
+			}else{
+				var downloaded_Files = ASTGUI.cloneObject(DOWNLOADFILES);
+				downloaded_Files.pop();
+				statusmsg = 'Downloaded ' + downloaded_Files.join("<BR>Downloaded") + " <BR>Downloading " + DOWNLOADFILES[ DOWNLOADFILES.length -1 ] ;
+			}
+
+			parent.ASTGUI.dialog.waitWhile(statusmsg);
+		};
+		var cmd = 'update_phoneprov';
+
+		if( ASTGUI.getFieldValue('fmarchivename') ){
+			cmd = cmd + ' ' + ASTGUI.getFieldValue('fmarchivename');
 		}
 
-		var tmp_files = tmp.split('\n');
-		var DOWNLOADFILES = [];
-		for( var i=0; i < tmp_files.length ; i++){
-
-			if( tmp_files[i].trim() == '' )
-				continue;
-
-			DOWNLOADFILES.push( tmp_files[i] );
+		if( ASTGUI.getFieldValue('brarchivename') ){
+			cmd = cmd + ' ' + ASTGUI.getFieldValue('brarchivename');
 		}
 
-		var statusmsg = '';
-		if( DOWNLOADFILES.length == 1 ){
-			statusmsg = 'Downloading ' + DOWNLOADFILES[0] ;
-		}else{
-			var downloaded_Files = ASTGUI.cloneObject(DOWNLOADFILES);
-			downloaded_Files.pop();
-			statusmsg = 'Downloaded ' + downloaded_Files.join("<BR>Downloaded") + " <BR>Downloading " + DOWNLOADFILES[ DOWNLOADFILES.length -1 ] ;
-		}
+		parent.ASTGUI.systemCmd( cmd, function(){} );
+		setInterval( checkAndUpdateOutPut, 4000 );
 
-		parent.ASTGUI.dialog.waitWhile(statusmsg);
 	};
-	var cmd = 'update_phoneprov';
-
-	if( ASTGUI.getFieldValue('fmarchivename') ){
-		cmd = cmd + ' ' + ASTGUI.getFieldValue('fmarchivename');
-	}
-
-	if( ASTGUI.getFieldValue('brarchivename') ){
-		cmd = cmd + ' ' + ASTGUI.getFieldValue('brarchivename');
-	}
-
-	parent.ASTGUI.systemCmd( cmd, function(){} );
-	setInterval( checkAndUpdateOutPut, 4000 );
-
-};
 
 
-</script>
-<body bgcolor="EFEFEF">
-<div class="iframeTitleBar"> 
-	Update Polycom Firmware
-	<span style="cursor: pointer; cursor: hand;" onclick="window.location.reload();" >&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;</span>
-</div>
-
-<table align=center width='95%'>
-	<tr>
-		<td colspan=2 align='center'>
-			<div class='lite_Heading'> Update Appliance Firmware </div>
-		</td>
-	</tr>
-	<tr>	<td colspan=2 align='center' height=20></td></tr>
-	<tr>
-		<td valign=top align=right>Firmware Archive Name :</td>
-		<td> <input id="fmarchivename" size=20 value="spip_ssip_3_1_1.tar.gz"></td>
-	</tr>
-	<tr>	<td colspan=2 align='center' height=20></td></tr>
-	<tr>
-		<td valign=top align=right>Bootrom Archive Name :</td>
-		<td> <input id="brarchivename" size=20 value="spip_ssip_BootROM_4_1_2.tar.gz"></td>
-	</tr>
-	<tr>	<td colspan=2 align='center' height=20></td></tr>
-	<tr>
-		<td colspan=2 align='center'>
-			<span class='guiButton' onclick='update_firmware()'> Download new Firmware </span>
-		</td>
-	</tr>
-	<tr>	<td colspan=2 align='center' height=20></td></tr>
-	<tr>	<td colspan=2 align='center' height=20>
-			Note: get the latest Archive names from <A target='_blank' href="http://downloads.digium.com/pub/polycom/firmware">here</A>
-		</td>
-	</tr>
-</table>
-
+	</script>
 </body>
+</html>




More information about the asterisk-gui-commits mailing list