[interchange-cvs] interchange - heins modified 2 files

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Sun Jul 28 11:15:00 2002


User:      heins
Date:      2002-07-28 15:13:52 GMT
Modified:  code/UserTag button.tag
Modified:  dist/lib/UI/pages/admin order.html
Log:
* Add link-text-too=3D1 option to [button] which will cause the text to
  be part of the link. (It was annoying to me to have to move to the
  image.)

* Add "Check all" and "Uncheck all" to order page.

Revision  Changes    Path
1.2       +8 -1      interchange/code/UserTag/button.tag


rev 1.2, prev_rev 1.1
Index: button.tag
=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: /anon_cvs/repository/interchange/code/UserTag/button.tag,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- button.tag	29 Jan 2002 05:52:42 -0000	1.1
+++ button.tag	28 Jul 2002 15:13:51 -0000	1.2
@@ -185,10 +185,17 @@
 		$anchor =3D "<b>$anchor</b>";
 	}
=20
+	my $a_before =3D '</a>';
+	my $a_after  =3D '';
+	if($opt->{link_text_too}) {
+		$a_before =3D '';
+		$a_after =3D '</a>';
+	}
+
 	$out .=3D <<EOF;
 <A HREF=3D"javascript:void 0"$opt->{extra} onMouseOver=3D"window.status=3D=
'$wstatus'"
 	onClick=3D"$confirm ($opt->{form}.$clickname.value=3D'$text') && $opt->{f=
orm}.submit(); return(false);"
-	ALT=3D"$wstatus"><IMG ALT=3D"$wstatus" SRC=3D"$src" border=3D$opt->{borde=
r}$position></A>$anchor
+	ALT=3D"$wstatus"><IMG ALT=3D"$wstatus" SRC=3D"$src" border=3D$opt->{borde=
r}$position>$a_before$anchor$a_after
 EOF
=20
 	# Must escape backslashes and single quotes for JavaScript write function.



2.7       +8 -1      interchange/dist/lib/UI/pages/admin/order.html


rev 2.7, prev_rev 2.6
Index: order.html
=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: /anon_cvs/repository/interchange/dist/lib/UI/pages/admin/order.ht=
ml,v
retrieving revision 2.6
retrieving revision 2.7
diff -u -r2.6 -r2.7
--- order.html	16 Jan 2002 05:09:31 -0000	2.6
+++ order.html	28 Jul 2002 15:13:52 -0000	2.7
@@ -1,4 +1,3 @@
-
 [calc]
 	if ( $CGI->{showarchive} ) {
 		delete $Values->{showpending};
@@ -273,17 +272,25 @@
 </tr>
 [/more-list]
 </table>
+
 [if scratch can_delete]
 [button form=3Dbatch text=3D"[L]Delete checked orders[/L]"
+ src=3D"__UI_IMG__delete.gif"
+ link-text-too=3D1
  confirm=3D'[L]Are you sure you want to delete the checked orders?[/L]']de=
leteorder=3D1
 [/button]
 [/if]
 &nbsp;&nbsp;&nbsp;[button form=3Dbatch src=3D"[scratch archive_img]"
+			 link-text-too=3D1
 			text=3D`
 			my $tmp =3D "$Scratch->{archive_nm} checked orders";
 			return errmsg("\u$tmp");
 			`]
 [scratch archive_nm]order=3D1[/button]
+
+<p>
+<A HREF=3D"javascript:checkAll(document.batch, 'order', 0)"><img src=3D"__=
UI_IMG__box_checked.gif" border=3D0>Check all</A>&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;
+<A HREF=3D"javascript:checkAll(document.batch, 'order', 1)"><img src=3D"__=
UI_IMG__box_empty.gif" border=3D0>Uncheck all</A>
 </FORM>
 [/search-region]
 <!-- ----- END REAL STUFF ----- -->