[phplib] Re: Templates & css style sheets From: Klaus Seidenfaden (ks <email protected>)
Date: 05/17/01

-----Oprindelig meddelelse-----
Fra: Thomas Schneider <tomacek <email protected>>

>if(document.all)
>{
> document.writeln('<link rel=stylesheet type="text/css"
>href="../admin_ie.css">');
>}else
> document.writeln('<link rel=stylesheet type="text/css"
>href="../admin.css">');

Why not let php detect IE? (check for "msie" in $HTTP_USER_AGENT)

><style type="text/css">
><!--
> all.layer{ font-family:Arial; font-size:9pt; color:#A0A0A0; }
>-->
></style>

If the template parser doesn't like '{' and '}', you could let it put them there itself:

  all.layer{LBrace} font-family:Arial; font-size:9pt; color:#A0A0A0; {RBrace}

and

  $tpl->set_var( array( "LBrace" => "{", "RBrace" => "}" ));

Or, (*looking again*...) HEY! What do you mean by "all.layer"? It looks like you are thinking javascript, but you are actually defining style for a hypothetical html tag: <all class="layer">. This, of course, makes no sense.

-- Klaus.

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>