rbrindley: branch 2.0 r4887 - /branches/2.0/config/callingrules.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Jun 22 16:26:06 CDT 2009


Author: rbrindley
Date: Mon Jun 22 16:26:03 2009
New Revision: 4887

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

- Added the following to the calling rules page
	- HTML 4.01 DOCTYPE
	- <html>, <head>, <title>, and "Content-Type" <meta>
- moved js to the bottom
- tabbed all of <body>'s children


Modified:
    branches/2.0/config/callingrules.html

Modified: branches/2.0/config/callingrules.html
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/callingrules.html?view=diff&rev=4887&r1=4886&r2=4887
==============================================================================
--- branches/2.0/config/callingrules.html (original)
+++ branches/2.0/config/callingrules.html Mon Jun 22 16:26:03 2009
@@ -1,3 +1,4 @@
+<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <!--
  * Asterisk-GUI	- an Asterisk configuration interface
  *
@@ -18,138 +19,144 @@
  * at the top of the source tree.
  *
 -->
-<script src="js/jquery.js"></script>
-<script src="js/astman.js"></script>
-<script src="js/callingrules.js"></script>
-<script src="js/jquery.tooltip.js"></script>
-<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
-<style type="text/css">
-	#table_CRLS_list {
-		border: 1px solid #666666;
-		margin-top: 5px;
-		margin-bottom:10px;
-		width: 96%;
-		text-align: center;
-		padding : 1px;
-	}
-	#table_CRLS_list tr.frow { background: #6b79a5; color: #CED7EF; }
-	#table_CRLS_list tr.frow td{ font-weight:bold; }
-	#table_CRLS_list tr td{ padding : 3px; }
-	#table_CRLS_list tr.even { background: #DFDFDF; }
-	#table_CRLS_list tr.odd{ background: #FFFFFF; }
-	#table_CRLS_list tr.even:hover, #table_CRLS_list tr.odd:hover {
-		background: #a8b6e5;
-		cursor: default;
-	}
+<html>
+<head>
+	<title>Manage Calling Rules</title>
+	<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
+
+	<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
+	<style type="text/css">
+		#table_CRLS_list {
+			border: 1px solid #666666;
+			margin-top: 5px;
+			margin-bottom:10px;
+			width: 96%;
+			text-align: center;
+			padding : 1px;
+		}
+		#table_CRLS_list tr.frow { background: #6b79a5; color: #CED7EF; }
+		#table_CRLS_list tr.frow td{ font-weight:bold; }
+		#table_CRLS_list tr td{ padding : 3px; }
+		#table_CRLS_list tr.even { background: #DFDFDF; }
+		#table_CRLS_list tr.odd{ background: #FFFFFF; }
+		#table_CRLS_list tr.even:hover, #table_CRLS_list tr.odd:hover {
+			background: #a8b6e5;
+			cursor: default;
+		}
 
 
-</style>
- 
+	</style>
+</head>
 <body bgcolor="EFEFEF">
-<div class="iframeTitleBar">
-	Manage Calling Rules
-	<span style="cursor: pointer; cursor: hand;" onclick="window.location.reload();" >
-		&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;
-	</span>
-</div>
+	<div class="iframeTitleBar">
+		Manage Calling Rules
+		<span style="cursor: pointer; cursor: hand;" onclick="window.location.reload();" >
+			&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;
+		</span>
+	</div>
 
 
-<div class='top_buttons'>
-	<span id='new_cr_button' class='guiButtonNew'>New Calling Rule</span>
-	<span id='restore_default_clrs_button' class='guiButton'>Restore Default Calling Rules</span>
-	<!--<input type=button id='deleted_crs' class='regularButton' value='Delete'>-->
-	<span class='lite_Heading' style='margin-left:30px'>Outgoing Calling Rules</span>
-</div>
+	<div class='top_buttons'>
+		<span id='new_cr_button' class='guiButtonNew'>New Calling Rule</span>
+		<span id='restore_default_clrs_button' class='guiButton'>Restore Default Calling Rules</span>
+		<!--<input type=button id='deleted_crs' class='regularButton' value='Delete'>-->
+		<span class='lite_Heading' style='margin-left:30px'>Outgoing Calling Rules</span>
+	</div>
 
-<center>
-	<div style='text-align:center; 	background-color : #FFFFFF; width: 95%; padding: 5px; margin-left: 1px; margin-top:14px; margin-bottom:20px; border:1px solid #CDCDCD; color: #575757 ' class='lite'>
-	An outgoing calling rule pairs an extension pattern with a trunk used to dial the pattern. This allows different patterns to be dialed through different trunks (e.g. "local" 7-digit dials through an FXO but "long distance" 10-digit dials through a low-cost SIP trunk). You can optionally set a failover trunk to use when the primary trunk fails. Note that this panel manages only individual outgoing call rules. See the Dial Plans <hyperlink> section to associate multiple outgoing calling rules to be used for User outbound dialing.
-	</div>
-</center>
+	<center>
+		<div style='text-align:center; 	background-color : #FFFFFF; width: 95%; padding: 5px; margin-left: 1px; margin-top:14px; margin-bottom:20px; border:1px solid #CDCDCD; color: #575757 ' class='lite'>
+		An outgoing calling rule pairs an extension pattern with a trunk used to dial the pattern. This allows different patterns to be dialed through different trunks (e.g. "local" 7-digit dials through an FXO but "long distance" 10-digit dials through a low-cost SIP trunk). You can optionally set a failover trunk to use when the primary trunk fails. Note that this panel manages only individual outgoing call rules. See the Dial Plans <hyperlink> section to associate multiple outgoing calling rules to be used for User outbound dialing.
+		</div>
+	</center>
 
 
-<table id='table_CRLS_list' cellpadding=0 cellspacing=0 border=0 align=center></table>
+	<table id='table_CRLS_list' cellpadding=0 cellspacing=0 border=0 align=center></table>
 
-<div id="new_CRL_DIV" STYLE="width:650;display:none;" class='dialog'>
-	<TABLE width="100%" cellpadding=0 cellspacing=0>
-		<TR class="dialog_title_tr">
-			<TD class="dialog_title" onmousedown="ASTGUI.startDrag(event);"><span id='cr_dialog_title'></span></TD>
-			<TD class="dialog_title_X" onclick="ASTGUI.hideDrag(event);"> X </TD>
-		</TR>
-	</TABLE>
-	<TABLE	align=center cellpadding=2 cellspacing=2 border=0>
-		<TR>	<TD align="right">Calling Rule Name <img src="images/tooltip_info.gif" tip="en,callingrules,0" class='tooltipinfo'> :</TD>
-			<TD><input id="new_crl_name" size=20 field_name='Calling Rule Name' validation='alphanumericUnd' required='yes'></TD>
-		</TR>
-		<TR>	<TD align="right">Pattern <img src="images/tooltip_info.gif" tip="en,callingrules,1" class='tooltipinfo'> :</TD>
-			<TD><input id="new_crl_pattern" size=20 field_name='Pattern' validation='dialpattern' required='yes'></TD>
-		</TR>
-		<TR>	<TD colspan=2>
-				<fieldset>
-					<legend>&nbsp;<input type=checkbox id='toLocalDest' required="yes"> 
-						<label for='toLocalDest'>Send to Local Destination 
-							<img src="images/tooltip_info.gif" tip="en,callingrules,5" class='tooltipinfo'>
-						</label>
-					</legend>
-					<table width='580'>
-					<TR>	<TD align="right" width='40%' valign='top'>Destination :</TD>
-						<TD>
-							<select id='new_crl_localDest'></select>
-							<div id='new_crl_localDest_CUSTOM_container' style='margin-top:3px;display:none'>
-								<input id='new_crl_localDest_CUSTOM' size=30> <BR>
-								Ex: Macro(someMacro,${EXTEN:1})
-							</div>
-						</TD>
-					</TR>
-					</table>
-				</fieldset>
-			</TD>
-		</TR>
-		<TR class='STT_TR_OPTIONS'>	<TD colspan=2>
-				<fieldset>
-					<legend>&nbsp;Send this call through trunk: </legend>
-					<table width='580'>
-					<TR>	<TD align="right" width='40%'>Use Trunk <img src="images/tooltip_info.gif" tip="en,callingrules,6" class='tooltipinfo'> </TD>
-						<TD><select id='new_crl_trunk' required="yes"></select></TD>
-					</TR>
-					<TR>	<TD align=right>Strip <img src="images/tooltip_info.gif" tip="en,callingrules,2" class='tooltipinfo'> </TD>
-						<TD> <input id="new_crl_tr_stripx" size=1 validation='numeric'> digits from front </TD>
-					</TR>
-					<TR>	<TD align=right> and Prepend these digits 
-							<img src="images/tooltip_info.gif" tip="en,callingrules,3" class='tooltipinfo'> 
-						</TD>
-						<TD> <input id="new_crl_tr_prepend" size=3  validation='numeric_plus_w'> before dialing</TD>
-					</TR>
-					</table>
-				</fieldset>
-			</TD>
-		</TR>
-		<TR class='STT_TR_OPTIONS'>
-			<TD colspan=2>
-				<fieldset>
-					<legend>&nbsp;<input type=checkbox id='new_crl_foChkbx' > <label for='new_crl_foChkbx'>Use FailOver Trunk <img src="images/tooltip_info.gif" tip="en,callingrules,4" class='tooltipinfo'>  :</label> </legend>
-					<table width='580'>
-						<TR>	<TD align="right" width='40%'>fail over Trunk <img src="images/tooltip_info.gif" tip="en,callingrules,4" class='tooltipinfo'> </TD>
-							<TD><select id='new_crl_fotrunk'></select></TD>
+	<div id="new_CRL_DIV" STYLE="width:650;display:none;" class='dialog'>
+		<TABLE width="100%" cellpadding=0 cellspacing=0>
+			<TR class="dialog_title_tr">
+				<TD class="dialog_title" onmousedown="ASTGUI.startDrag(event);"><span id='cr_dialog_title'></span></TD>
+				<TD class="dialog_title_X" onclick="ASTGUI.hideDrag(event);"> X </TD>
+			</TR>
+		</TABLE>
+		<TABLE	align=center cellpadding=2 cellspacing=2 border=0>
+			<TR>	<TD align="right">Calling Rule Name <img src="images/tooltip_info.gif" tip="en,callingrules,0" class='tooltipinfo'> :</TD>
+				<TD><input id="new_crl_name" size=20 field_name='Calling Rule Name' validation='alphanumericUnd' required='yes'></TD>
+			</TR>
+			<TR>	<TD align="right">Pattern <img src="images/tooltip_info.gif" tip="en,callingrules,1" class='tooltipinfo'> :</TD>
+				<TD><input id="new_crl_pattern" size=20 field_name='Pattern' validation='dialpattern' required='yes'></TD>
+			</TR>
+			<TR>	<TD colspan=2>
+					<fieldset>
+						<legend>&nbsp;<input type=checkbox id='toLocalDest' required="yes"> 
+							<label for='toLocalDest'>Send to Local Destination 
+								<img src="images/tooltip_info.gif" tip="en,callingrules,5" class='tooltipinfo'>
+							</label>
+						</legend>
+						<table width='580'>
+						<TR>	<TD align="right" width='40%' valign='top'>Destination :</TD>
+							<TD>
+								<select id='new_crl_localDest'></select>
+								<div id='new_crl_localDest_CUSTOM_container' style='margin-top:3px;display:none'>
+									<input id='new_crl_localDest_CUSTOM' size=30> <BR>
+									Ex: Macro(someMacro,${EXTEN:1})
+								</div>
+							</TD>
+						</TR>
+						</table>
+					</fieldset>
+				</TD>
+			</TR>
+			<TR class='STT_TR_OPTIONS'>	<TD colspan=2>
+					<fieldset>
+						<legend>&nbsp;Send this call through trunk: </legend>
+						<table width='580'>
+						<TR>	<TD align="right" width='40%'>Use Trunk <img src="images/tooltip_info.gif" tip="en,callingrules,6" class='tooltipinfo'> </TD>
+							<TD><select id='new_crl_trunk' required="yes"></select></TD>
 						</TR>
 						<TR>	<TD align=right>Strip <img src="images/tooltip_info.gif" tip="en,callingrules,2" class='tooltipinfo'> </TD>
-							<TD> <input id="new_crl_fotr_stripx" size=1 validation='numeric'> digits from front </TD>
+							<TD> <input id="new_crl_tr_stripx" size=1 validation='numeric'> digits from front </TD>
 						</TR>
-					<TR>	<TD align=right> and Prepend these digits 
-							<img src="images/tooltip_info.gif" tip="en,callingrules,3" class='tooltipinfo'> 
-						</TD>
-							<TD> <input id="new_crl_fotr_prepend" size=3 validation='numeric_plus_w'> before dialing</TD>
+						<TR>	<TD align=right> and Prepend these digits 
+								<img src="images/tooltip_info.gif" tip="en,callingrules,3" class='tooltipinfo'> 
+							</TD>
+							<TD> <input id="new_crl_tr_prepend" size=3  validation='numeric_plus_w'> before dialing</TD>
 						</TR>
-					</table>
-				</fieldset>
-			</TD>
-		</TR>
-		<TR>	<TD colspan=2 align=center height=50 valign=middle>
-				<span class='guiButtonCancel' onclick='ASTGUI.hideDrag(event);'>Cancel</span>
-				<span class='guiButtonEdit' onclick='new_crl_save_go();'>Save</span>
-			</TD>
-		</TR>
-	</TABLE>
-</div>
+						</table>
+					</fieldset>
+				</TD>
+			</TR>
+			<TR class='STT_TR_OPTIONS'>
+				<TD colspan=2>
+					<fieldset>
+						<legend>&nbsp;<input type=checkbox id='new_crl_foChkbx' > <label for='new_crl_foChkbx'>Use FailOver Trunk <img src="images/tooltip_info.gif" tip="en,callingrules,4" class='tooltipinfo'>  :</label> </legend>
+						<table width='580'>
+							<TR>	<TD align="right" width='40%'>fail over Trunk <img src="images/tooltip_info.gif" tip="en,callingrules,4" class='tooltipinfo'> </TD>
+								<TD><select id='new_crl_fotrunk'></select></TD>
+							</TR>
+							<TR>	<TD align=right>Strip <img src="images/tooltip_info.gif" tip="en,callingrules,2" class='tooltipinfo'> </TD>
+								<TD> <input id="new_crl_fotr_stripx" size=1 validation='numeric'> digits from front </TD>
+							</TR>
+						<TR>	<TD align=right> and Prepend these digits 
+								<img src="images/tooltip_info.gif" tip="en,callingrules,3" class='tooltipinfo'> 
+							</TD>
+								<TD> <input id="new_crl_fotr_prepend" size=3 validation='numeric_plus_w'> before dialing</TD>
+							</TR>
+						</table>
+					</fieldset>
+				</TD>
+			</TR>
+			<TR>	<TD colspan=2 align=center height=50 valign=middle>
+					<span class='guiButtonCancel' onclick='ASTGUI.hideDrag(event);'>Cancel</span>
+					<span class='guiButtonEdit' onclick='new_crl_save_go();'>Save</span>
+				</TD>
+			</TR>
+		</TABLE>
+	</div>
 
+	<script src="js/jquery.js"></script>
+	<script src="js/astman.js"></script>
+	<script src="js/callingrules.js"></script>
+	<script src="js/jquery.tooltip.js"></script>
 </body>
+</html>




More information about the asterisk-gui-commits mailing list