Hi, Unfortunately I haven't a URL to show you. This is web app i'm developing is to use "in-house" only...
But I can gladly paste the code you asked for. :-) The VIEW code is as follows: <?php if (! isset($results)) { echo '<br><p class="warning_msg"> There are no hierarchies on this network! </p>'; } else { foreach($results as $result) { echo '<table><th>'.$result[0]['acronym'].'<br><i>('.$result[0] ['type'].')</i></th>'; echo '<tr><td> <table>'; foreach($result as $node) { foreach($node['kpi_names'] as $kpi_name) { echo '<th>'.$kpi_name.'</th>'; } echo '<tr>'; foreach($node['kpi_values'] as $kpi) { switch($kpi['level']) { case "critical": echo '<td class = "critical_td">'. $kpi['value'] . '</td>'; break; case "risky": echo '<td class = "risky_td">'. $kpi['value'] . '</td>'; break; case "normal": echo '<td class = "normal_td">'. $kpi['value'] . '</td>'; break; default: echo '<td class = "no_data_td">'. $kpi['value'] . '</td>'; } } echo '</tr>'; } echo ' </table> </td></tr> </table>'; } } ?> And the generated output is this: <p class="warning_msg"> <a name="top"> There no hierarchies on this network! </a> </p> Mind that this when only happens when you don't have results (ie you're on the first action of the if...) I have even tried to force the color as follows: echo '<br><font color="#ff0000"> There are no hierarchies on this network! </font>'; But without sucess... :-( Also two notes: i) I know the code might not be perfect...but I'm still developing the Business and Presentation Logic and things are changing on a daily basis...besides I believe in the motto: "Permature optimization is the root of all evil"... ;-) ii) As for the brackett style, I'm aware that many coders dislike this style, but I have a strong C/C++ background and couldn't get ridden of the vice... :-) Many thanks for your help!! Cheers, On Jan 26, 10:57 pm, "Lance Willett" <[EMAIL PROTECTED]> wrote: > On 1/26/07, mindcharger <[EMAIL PROTECTED]> wrote: > > > > > > > Hello, > > > I'm having a problem with the HTML "anchor" tag (<a>). > > > It seems that everytime I 'echo' something to the screen I get a > > "nasty" <a>...</a> tag pair enclosing whatever I'm doing. I'm using > > Cake's CSS with a thing or two added, and the problem is that the > > <a></a> pair shadows other style classes I use. > > > The clear out what I say, here's the code I have on the VIEW: > > > if (! isset($results)) > > { > > echo '<br><p class = "warning_msg"> There no hierarchies on > > this > > network! </p>'; > > } > > else > > ... > > > And this is the generated HTML: > > > <p class="warning_msg"> > > <a name="top"> There no hierarchies on this network! </a> > > </p> > > > This shouldn't be a big deal, but I'm actually displaying a "warning > > message" and I'd like it to be in red, but with this sumperimposing of > > <a> tag, all I get is "CAKE's green" which is not your typical > > "warning" color... > > > Can someone explain why this happen or if there's something I'm doing > > wrong? > > > Thanks in advance!Do you have a URL where we could look at the HTML output? > > I'm curious > to see it... > Also, what view file is that warning message in? Can you paste the > contents of the file here... > > -- > Lance Willett > simpledream web studiohttp://simpledream.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---