in reply to Re: Re: HTML and CGI coding
in thread HTML and CGI coding
Now, I believe I've incorporated lots of the suggestions but my row with headings have the blue background but it still doesn't want to take the new font color, size, or face. At least I'm not getting any error messages. Any other thoughts are greatly appreciated.push (@row, Tr ({"-align" => "CENTER", "-valign" => "TOP", "-BGCOLOR" => "blue", "-font-color" => "yellow", "-FONT-FAMILY" => "verdana, +arial,helvetica", "-FONT-SIZE" => "12"}, + th ("I +tem"), th ("Quantity"), th ("Description"), th ("Unit Price"), th ("Price") )); foreach my $item_id (sort (keys (%{$cart_ref}))) { my $item_ref = $cart_ref->{$item_id}; my $total_item_price = $item_ref->{qty} * $item_ref->{price}; $total_price += $total_item_price; # generate a link allowing the item to be deleted from the car +t my $url = sprintf ("%s?choice=delete;item_id=%s", url (), escape ($item_id)); push (@row, Tr ( td (escapeHTML ($item_id)), td (escapeHTML ($item_ref->{qty})), td (escapeHTML ($item_ref->{description})), td ({-align => "right"}, escapeHTML (sprintf ("%.2f", $item_ref->{price +}))), td ({-align => "right"}, escapeHTML (sprintf ("%.2f", $total_item_price +))), + ($show_links ? td (a ({-href => $url}, img ({-src => "../im +ages/delete.jpg", -border => "0"}))) + : td (" ")) )); } push (@row, Tr ( td ({-colspan => "2"}, ""), td ({-colspan => "2"}, "Total"), td ({-align => "right"}, escapeHTML (sprintf ("%.2f", $total_price))) )); return (table ({-border => 0}, @row)); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: HTML and CGI coding
by pfaut (Priest) on Dec 09, 2002 at 16:15 UTC | |
by hbradshaw (Novice) on Dec 09, 2002 at 16:19 UTC | |
by jeffa (Bishop) on Dec 09, 2002 at 17:10 UTC | |
|
Re: Re: Re: Re: HTML and CGI coding
by thinker (Parson) on Dec 09, 2002 at 15:24 UTC | |
|
Re: Re: Re: Re: HTML and CGI coding
by demerphq (Chancellor) on Dec 09, 2002 at 15:46 UTC |