[interchange-cvs] interchange - heins modified 2 files

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Sun Aug 18 04:18:40 2002


User:      heins
Date:      2002-08-18 08:17:47 GMT
Modified:  dist/lib/UI/vars UI_STD_FOOTER UI_STD_HEAD
Log:
* More changes to the UI. Many minor formatting changes, remove some
  never-used files, etc.

* Relocate standard CSS to outboard file. Intent is to provide several
  base CSS files available through Mozilla's "Use Style" feature.

* Change URLs away from Red Hat and to ICDEVGROUP.

* More to come.

Revision  Changes    Path
2.7       +9 -9      interchange/dist/lib/UI/vars/UI_STD_FOOTER


rev 2.7, prev_rev 2.6
Index: UI_STD_FOOTER
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/cvs/interchange/dist/lib/UI/vars/UI_STD_FOOTER,v
retrieving revision 2.6
retrieving revision 2.7
diff -u -r2.6 -r2.7
--- UI_STD_FOOTER	16 Aug 2002 06:52:13 -0000	2.6
+++ UI_STD_FOOTER	18 Aug 2002 08:17:44 -0000	2.7
@@ -14,21 +14,21 @@
 	</tr>
 	<!-- start of bottom -->
 	<tr>
-		<td valign=3D"bottom">
-			<table width=3D"100%" border=3D"0" cellpadding=3D"0" cellspacing=3D"0">
+		<td valign=3Dbottom>
+			<table width=3D"100%" border=3D0 cellpadding=3D0 cellspacing=3D0>
 				<tr>
-					<td height=3D"1" class=3D"hrmedium"><img src=3D"bg.gif" height=3D"1">=
</td>
+					<td height=3D1 class=3Dhrmedium><img src=3D"bg.gif" height=3D1></td>
 				</tr>
 				<tr>
-					<td height=3D"24" class=3D"tabdark">
-						<table border=3D"0" cellspacing=3D"0" cellpadding=3D"0">
+					<td height=3D24 class=3Dtabdark>
+						<table border=3D0 cellspacing=3D0 cellpadding=3D0>
 							<tr>
-								<td width=3D"6"><img src=3D"bg.gif"></td>
+								<td width=3D6><img src=3D"bg.gif"></td>
 								<td><img src=3D"icfooter.gif"></td>
-								<td nowrap class=3D"footer">
+								<td nowrap class=3Dfooter>
 									[version] &copy; 2002-2003 Interchange Development Group&nbsp;&nb=
sp;&nbsp;
-									<font class=3D"footerb">[msg]Username[/msg]: </font>[data session=
 username]&nbsp;&nbsp;&nbsp;
-									<font class=3D"footerb">[msg]StoreID[/msg]: </font> <A HREF=3D"[s=
cratch ui_catalog_url]">[calc]$Config->{CatalogName}[/calc] </b></a>&nbsp;&=
nbsp;&nbsp;
+									<font class=3Dfooterb>[msg]Username[/msg]: </font>[data session u=
sername]&nbsp;&nbsp;&nbsp;
+									<font class=3Dfooterb>[msg]StoreID[/msg]: </font> <A HREF=3D"[scr=
atch ui_catalog_url]">[calc]$Config->{CatalogName}[/calc] </b></a>&nbsp;&nb=
sp;&nbsp;
 									  [tag time]%d %B %Y %H:%M:%S[/tag] &nbsp;([var MV_PAGE 1])
 								</td>
 							</tr>



2.27      +98 -279   interchange/dist/lib/UI/vars/UI_STD_HEAD


rev 2.27, prev_rev 2.26
Index: UI_STD_HEAD
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/cvs/interchange/dist/lib/UI/vars/UI_STD_HEAD,v
retrieving revision 2.26
retrieving revision 2.27
diff -u -r2.26 -r2.27
--- UI_STD_HEAD	17 Aug 2002 07:47:32 -0000	2.26
+++ UI_STD_HEAD	18 Aug 2002 08:17:44 -0000	2.27
@@ -101,297 +101,102 @@
 [tmp window_name][tag time]%m%d%H%M%S[/tag][/tmp]
 <script language=3D"JavaScript">
 <!--
-
 function open_help(url) {
-	if(url =3D=3D undefined)=20
-		url =3D '[area href=3D"[either][var UI_HELP_URL 2][or][var UI_BASE]/help=
[/either]" form=3D"topic=3D[scratch help_name]"]';
-	opts=3D"top=3D0,left=3D0,scrollbars,status=3Dno,menubar=3Dno,location=3Dy=
es,toolbar=3Dno,resizable=3Dyes,fullsize=3Dno,width=3D__UI_HELP_WIDTH__,hei=
ght=3D__UI_HELP_HEIGHT__";
-	window.open(url, 'Help', opts);
+ if(url =3D=3D undefined)=20
+  url =3D '[area href=3D"[either]@_UI_HELP_URL_@[or]@_UI_BASE_@/help[/eith=
er]" form=3D"topic=3D[scratch help_name]"]';
+ opts=3D"top=3D0,left=3D0,scrollbars,status=3Dno,menubar=3Dno,location=3Dy=
es,toolbar=3Dno,resizable=3Dyes,fullsize=3Dno,width=3D__UI_HELP_WIDTH__,hei=
ght=3D__UI_HELP_HEIGHT__";
+ window.open(url, 'Help', opts);
 }
-
 function checkAll(form,what,uncheck) {
-	var i, n, check;
-	n =3D form.elements[what].length;
-	if (!n) {
-		if (uncheck =3D=3D 1) {
-			form.elements[what].checked=3Dfalse;
-		} else {
-			form.elements[what].checked=3Dtrue;
-		}
-	} else {
-		if (what !=3D "deleteid" || sure()) {
-			var checkval;
-			if (uncheck =3D=3D 1) { checkval=3Dfalse; } else { checkval=3Dtrue; }
-			for (i=3D0; i < n; i++) {
-				check =3D form.elements[what][i];
-				check.checked =3D checkval;
-			}
-		}
-	}
+ var i, n, check;
+ n =3D form.elements[what].length;
+ if (!n) {
+  if (uncheck =3D=3D 1) {
+   form.elements[what].checked=3Dfalse;
+  } else {
+   form.elements[what].checked=3Dtrue;
+  }
+ } else {
+  if (what !=3D "deleteid" || sure()) {
+   var checkval;
+   if (uncheck =3D=3D 1) { checkval=3Dfalse; } else { checkval=3Dtrue; }
+   for (i=3D0; i < n; i++) {
+    check =3D form.elements[what][i];
+    check.checked =3D checkval;
+   }
+  }
+ }
 }
-
 function addItem(selector, receptor, joiner) {
-	if (joiner =3D=3D null) { joiner =3D " "; } else { joiner =3D "\n"; }
-	if (receptor.value !=3D '') receptor.value =3D receptor.value + joiner;
-	if (selector[selector.selectedIndex].value !=3D null) {
-		receptor.value =3D receptor.value + selector[selector.selectedIndex].val=
ue;
-	} else {
-		if (selector[selector.selectedIndex].text !=3D null) {
-			receptor.value =3D receptor.value + selector[selector.selectedIndex].te=
xt;
-		}
-	}
-	return true;
+ if (joiner =3D=3D null) { joiner =3D " "; } else { joiner =3D "\n"; }
+ if (receptor.value !=3D '') receptor.value =3D receptor.value + joiner;
+ if (selector[selector.selectedIndex].value !=3D null) {
+  receptor.value =3D receptor.value + selector[selector.selectedIndex].val=
ue;
+ } else {
+  if (selector[selector.selectedIndex].text !=3D null) {
+   receptor.value =3D receptor.value + selector[selector.selectedIndex].te=
xt;
+  }
+ }
+ return true;
 }
-
 //-->
 </SCRIPT>
-<STYLE TYPE=3D"text/css">
-<!--
-/* background colour styles */
-.interfacemain {
-	background-color: #D4D0C8;
-}
-.tabdark {
-	background-color: #B4B0AA;
-}
-.hrdark {
-	background-color: #404040;
-}
-.hrmedium {
-	background-color: #E4E4E4;
-}
-.hrlight {
-	background-color: #FFFFFF;
-}
-.headerrow {
-	background-color: #CCCCCC;
-}
-.tabborder {
-	background-color: #404040;
-}
-.tablightborder {
-	background-color: #FFFFFF;
-}
-.vr {
-	background-color: #999999;
-}
-/* font styles */
-.heading {
-	font-family: Verdana, Arial, Helvetica, sans-serif;
-	font-size: 10px;
-	font-weight: normal;
-	color: #000000;
-}
-.maincontent {
-	font-family: Verdana, Arial, Helvetica, sans-serif;
-	font-size: 10px;
-	font-weight: normal;
-	color: #333333;
-	background: #ffffff;
-}
-.footerb {
-	font-family: Arial, Helvetica, sans-serif;
-	font-size: 10px;
-	font-weight: bold;
-	color: #333333;
-}
-.footer {
-
-	font-family: Arial, Helvetica, sans-serif;
-	font-size: 10px;
-	font-weight: normal;
-	color: #333333;
-}
-.shrink {
-	font-size: 2px;
-}
-/* link styles */
-A.btnfont:link, A.btnfont:visited, A.btnfont:active {
-	font-family: Arial, Helvetica, sans-serif;
-	font-size: 10px;
-	font-weight: normal;
-	color: #333333;
-    text-decoration:none;
-}
-A.btnfont:hover {
-    color: #000000;
-	font-size: 10px;
-    text-decoration:underline;
-}
-
-A.menufont:link, A.menufont:visited, A.menufont:active {
-	font-family: Arial, Helvetica, sans-serif;
-	font-size: 11px;
-	font-weight: normal;
-	color: #333333;
-    text-decoration:none;
-}
-A.menufont:hover {
-    color: #000000;
-	font-size: 11px;
-    text-decoration:underline;
-}
-
-
-BODY {=20
-  font-family: Verdana, Arial, Helvetica, sans-serif;
-  font-size: 11px;
-}
-
-TD {=20
-  font-family: Verdana, Arial, Helvetica, sans-serif;
-  font-size: 10px;
-}
-
-.margin {=20
-  margin-top: 0px;=20
-  margin-left: 0px;
-}
-
-A:link {=20
-  text-decoration: none;=20
-  font-weight: normal;=20
-  color: __UI_C_LINK__;
-  font-size: 10px;
-}
-
-A:hover {=20
-  text-decoration: underline;=20
-  font-weight: normal;=20
-  color: __UI_C_LINK__;
-  font-size: 11px;
-}
-
-A:active {=20
-  text-decoration: none;=20
-  font-weight: normal;=20
-  color: __UI_C_ALINK__;
-  font-size: 11px;
-}
-
-A:visited {
-  text-decoration: none;=20
-  font-weight: normal;=20
-  color: __UI_C_VLINK__;
-  font-size: 11px;
-}
-
-.ctitle  {=20
-  font-weight: bold;=20
-  color: white;
-  font-size: 11px;
-}
-
-.cheader  {=20
-  font-weight: bold;=20
-  color: __UI_C_HEADERTXT__;
-  font-size: 11px;
-}
-
-A:link.ctitle  {=20
-  text-decoration: none;
-  font-weight: bold;=20
-  color: white;
-  font-size: 11px;
-}
-
-A:hover.ctitle {=20
-  text-decoration: underline;=20
-  font-weight: bold;=20
-  color: yellow;=20
-  font-size: 11px;
-}
-
-A:active.ctitle {=20
-  text-decoration: underline;=20
-  font-weight: bold;=20
-  color: yellow;=20
-  font-size: 11px;
-}
-
-A:visited.ctitle {=20=20
-  text-decoration: none;
-  font-weight: bold;=20
-  color: white;
-  font-size: 11px;
-}
-
-.cbreak {=20
-  font-weight: bold;=20
-  font-size: 11px;
-}
-
-.cdata {=20
-  vertical-align: center;
-  font-size: 11px;
-}
-
-.cerror {=20
-  color: red;=20
-  font-size: 11px;
-}
-
-.cmessage {=20
-  color: green;=20
-  font-size: 11px;
-}
-
-.chelp {=20
-  vertical-align: center;=20
-  font-size: 11px;=20
-}
-
-.clabel {=20
-  text-align: left;=20
-  font-weight: bold;=20
-  font-size: 11px;
-}
-
-.cwidget {=20
-  vertical-align: center;=20
-  font-size: 11px;=20
-}
-
-.ralt {=20
-  background-color: __UI_T_ROW_ODD__;=20
-}=20
-
-.rbreak {=20
-  background-color: __UI_T_ROW_ODD__;=20
-}
-
-.rmarq {=20
-  background-color: __UI_C_TITLEBARBG__;=20
-}
-
-.rnorm {=20
-  background-color: __UI_T_ROW_EVEN__;=20
-}
+<link href=3D"@_UI_IMAGE_DIR_@ic.css" rel=3D"stylesheet" type=3D"text/css"=
 title=3D"Main IC stylesheet">
+<link href=3D"@_UI_IMAGE_DIR_@ic1.css" rel=3D"alternate stylesheet" type=
=3D"text/css" title=3D"Working IC stylesheet">
+</STYLE>[calc]
+		%cstyles =3D (
+						interfacemain	=3D> '#D4D0C8',
+						tabdark			=3D> '#B4B0AA',
+						hrdark			=3D> '#404040',
+						hrmedium		=3D> '#E4E4E4',
+						hrlight			=3D> '#FFFFFF',
+						headerrow		=3D> '#CCCCCC',
+						tabborder		=3D> '#404040',
+						tablightborder	=3D> '#FFFFFF',
+						vr				=3D> '#999999',
+					);
+
+		my @styles =3D keys %cstyles;
+		if($CGI->{set_styles}) {
+			for(@styles) {
+				$CGI->{$_} =3D~ s/[^#\w]+//g;
+				if($CGI->{$_}) {
+					$Scratch->{$_} =3D $CGI->{$_};
+				}
+			}
+		}
+		if($CGI->{reset_styles}) {
+			for(@styles) {
+				delete $Scratch->{$_};
+			}
+		}
=20
-.rborder {=20
-  background-color: __UI_C_TOPBLOCKBAR__;=20
-}
+		$Scratch->{interesting} ||=3D 'interfacemain tabdark';
+		if($CGI->{interesting}) {
+			my @ary =3D  grep /^\w+$/, split /[\s,\0]+/, $CGI->{interesting};
+			$Scratch->{interesting} =3D join " ", @ary;
+		}
=20
-.rspacer {=20
-  background-color: __UI_C_TITLEBARBG__;=20
-}
+		my @interested =3D  grep /^\w+$/, split /[\s,\0]+/, $Scratch->{interesti=
ng};
+		@interesting{@interested} =3D @interested;
=20
-.rtitle {=20
-  background-color: __UI_C_TITLEBARBG__;=20
-}
+		for(@styles) {
+			next unless $Scratch->{$_};
=20
-.rheader {=20
-  background-color: __UI_C_TITLEBARBG__;=20
-  color: __UI_C_HEADERTXT__;=20
+			push @out, qq(.$_ {
+	background-color: $Scratch->{$_};
 }
-
-
--->
-</STYLE>
+);
+		}
+		if(@out) {
+			return join "\n", '<STYLE>', @out, '</STYLE>';
+		}
+		return;
+[/calc]
+[if value personal_css]<style>[value personal_css]</style>[/if]
 [scratchd meta_header]
 </head>
-
-<body [scratch ui_body_extra] bgcolor=3D"__UI_C_BG__" leftmargin=3D"0" top=
margin=3D"0" marginwidth=3D"0" marginheight=3D"0">
+<body [scratch ui_body_extra] leftmargin=3D"0" topmargin=3D"0" marginwidth=
=3D"0" marginheight=3D"0">
 <!-- outer wrapper table to enable the interface to scale to full browser =
height -->
 <table width=3D"100%" height=3D"100%" border=3D0 cellpadding=3D0 cellspaci=
ng=3D0>
 	<tr>
@@ -465,18 +270,25 @@
=20
 [menu
 	  name=3DTop
+	  menu-type=3Dflyout
+	  anchor_down=3D1
 	  inactive=3Dinactive
 	  localize=3Dname
 	  indicator=3Dindicator
 	  ui_security=3Ddepends_on
+	  flyout_class=3Dtabdark
+	  link_class=3Dmenufont
 	  entities=3Ddescription
 	  lr=3D1]
+{MV_LEVEL:}
 {INDICATED:}
 	<!-- class=3D{NAME} down -->
 											<td valign=3Dbottom>
 												<table width=3D"100%" border=3D0 cellspacing=3D0 cellpadding=
=3D0>
 													<tr>
-														<td width=3D14 rowspan=3D3 class=3Dshrink><a href=3D"{HREF}"=
 title=3D"{DESCRIPTION}"><img border=3D0 src=3D"tab_dark_left.gif"></A></td>
+														<td width=3D14 rowspan=3D3 class=3Dshrink><a
+			href=3D"{PAGE}"
+			title=3D"{DESCRIPTION}"><img border=3D0 src=3D"tab_dark_left.gif"></A><=
/td>
 														<td height=3D1 width=3D69 class=3Dtabborder><img src=3D"bg.g=
if" height=3D1></td>
 														<td width=3D2 rowspan=3D3><img src=3D"tab_dark_right.gif"></=
td>
 													</tr>
@@ -484,7 +296,13 @@
 														<td height=3D2><img src=3D"bg.gif" height=3D1></td>
 													</tr>
 													<tr>
-														<td height=3D13 align=3Dleft valign=3Dtop><a href=3D"{HREF}"=
 title=3D"{DESCRIPTION}" class=3Dbtnfont style=3D"font-size: larger">{NAME}=
</a>&nbsp;&nbsp;</td>
+														<td height=3D13 align=3Dleft valign=3Dtop><a
+		id=3D"{CODE}"
+		href=3D"{PAGE}"
+		onMouseOver=3D"mousein(this)"
+		onMouseOut=3D"mouseout(this)"
+		title=3D"{DESCRIPTION}"
+		class=3Dmenufont>{NAME}</a>&nbsp;&nbsp;</td>
 													</tr>
 													<tr>
 														<td height=3D1 colspan=3D3 class=3Dhrdark><img src=3D"bg.gif=
" height=3D1></td>
@@ -511,7 +329,7 @@
 		<td height=3D1><img src=3D"bg.gif" height=3D1></td>
 	</tr>
 	<tr>
-		<td height=3D13 align=3Dleft valign=3Dtop><a href=3D"{HREF}" title=3D"{D=
ESCRIPTION}" class=3Dbtnfont style=3D"font-size: larger">{NAME}</a>&nbsp;&n=
bsp;&nbsp;</td>
+		<td height=3D13 align=3Dleft valign=3Dtop><a href=3D"{HREF}" title=3D"{D=
ESCRIPTION}" class=3Dmenufont>{NAME}</a>&nbsp;&nbsp;&nbsp;</td>
 	</tr>
 	<tr>
 		<td height=3D1 colspan=3D3><img src=3D"bg.gif" height=3D1></td>
@@ -522,6 +340,7 @@
 </table>
 </td>
 {/INDICATED?}
+{/MV_LEVEL:}
 [/menu]
 										</tr>
 									</table>