10, ":visited"=>9, ":hover"=>8, ":active"=>7); // -1 = $a<$b => -1 $a comes first // +1 = $a>$b => +1 $b comes first if ($a==$b) return 0; $roota = @eregi('body|html',$a); $rootb = @eregi('body|html',$b); if ($roota && !$rootb) return -1; if (!$roota && $rootb) return +1; $psa = @eregi(':',$a); $psb = @eregi(':',$b); if ($psa && !$psb) return +1; elseif (!$psa && $psb) return -1; elseif ($psa && $psb) { $psa = @eregi('.*(:[^ ]*).*',$a,$ra); $psb = @eregi('.*(:[^ ]*).*',$b,$rb); $psa = $pseudoVal[$ra[1]]; $psb = $pseudoVal[$rb[1]]; if ($psa>$psb) return -1; elseif ($psa<$psb) return +1; else return ($a>$b) ? +1:-1; } elseif (@eregi($a,$b)) return -1; elseif (@eregi($b,$a)) return +1; else return ($a>$b) ? +1:-1; } ?> CSS Editor of <? echo htmlspecialchars($sel) ?>
 >> 
 
\n"; echo "

$TLT

Back >>
"; echo "
\n"; include('csssyntax.inc'); $pn = 0; while ( list($grp,$propgrp) = each($PropGroups) ) { if(($from == 'fonts.php' && ($grp=='Font properties' || $grp=='Color properties')) || ($from == 'colors.php' && $grp=='Box properties' && ($color=='border'))|| ($from == 'homepage.php' && $grp=='Box properties' && ($image=='background'))|| ($from == 'colors.php' && $grp=='Color properties' && ($color=='tittable' || $color=='hg' || $color=='a:link' || $color=='a:visited' || $color=='body' || $color=='container'))){ echo "

$grp:

\n"; echo "

"; while ( list(,$prop) = each($propgrp) ) { if(($color == 'border' && $grp=='Box properties' && $prop->name=='border-color')|| ($color == 'tittable' && $grp=='Color properties' && $prop->name=='background-color')|| ($color == 'hg' && $grp=='Color properties' && $prop->name=='background-color')|| ($color == 'a:link' && $grp=='Color properties' && $prop->name=='color')|| ($color == 'a:visited' && $grp=='Color properties' && $prop->name=='color') || ($color == 'body' && $grp=='Color properties' && $prop->name=='background-color') || ($color == 'container' && $grp=='Color properties' && $prop->name=='background-color') || ($font == 'standard' && ($grp=='Color properties' || $grp=='Font properties')) || ($font == 'error' && ($grp=='Color properties' || $grp=='Font properties')) || ($font == 'title' && ($grp=='Color properties' || $grp=='Font properties')) || ($font == 'navigation' && ($grp=='Color properties' || $grp=='Font properties')) || ($font == 'footer' && ($grp=='Color properties' || $grp=='Font properties')) || ($image == 'background' && $grp=='Box properties' && ($prop->name=='background-image' || $prop->name=='background-repeat'))){ echo "$prop->name: "; $pn++; $found = false; $isDefined = ($css[$sel][$prop->name]!=''); $hideInput = true; echo " \n"; echo "
\n"; } } echo "


\n"; } } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "

\n"; echo "

\n"; echo "
"; echo "CSS file: $thestyle"; ?>