forked from science-ation/science-ation
fix committee viewer
make xhtml compliant
This commit is contained in:
parent
7368a22975
commit
6019a044c6
@ -23,8 +23,10 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("common.inc.php");
|
require("common.inc.php");
|
||||||
send_header("Committee");
|
send_header("Committee List");
|
||||||
|
|
||||||
|
echo "<table>";
|
||||||
|
$q=mysql_query("SELECT * FROM committees ORDER BY ord,name");
|
||||||
while($r=mysql_fetch_object($q))
|
while($r=mysql_fetch_object($q))
|
||||||
{
|
{
|
||||||
$q2=mysql_query("SELECT ".
|
$q2=mysql_query("SELECT ".
|
||||||
@ -46,7 +48,7 @@
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td colspan=3><h2>$r->name</h2>";
|
echo "<td colspan=\"3\"><h3>$r->name</h3>";
|
||||||
echo "</td></tr>\n";
|
echo "</td></tr>\n";
|
||||||
|
|
||||||
echo mysql_error();
|
echo mysql_error();
|
||||||
@ -61,7 +63,7 @@
|
|||||||
if($r2->emailprivate && $r2->displayemail=='Y')
|
if($r2->emailprivate && $r2->displayemail=='Y')
|
||||||
{
|
{
|
||||||
list($b,$a)=split("@",$r2->emailprivate);
|
list($b,$a)=split("@",$r2->emailprivate);
|
||||||
$output=str_replace("emailprivate","<script language=javascript>em('$b','$a')</script>",$output);
|
$output=str_replace("emailprivate","<script language=\"javascript\" type=\"text/javascript\">em('$b','$a')</script>",$output);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$output=str_replace("emailprivate","",$output);
|
$output=str_replace("emailprivate","",$output);
|
||||||
@ -69,7 +71,7 @@
|
|||||||
if($r2->email && $r2->displayemail=='Y')
|
if($r2->email && $r2->displayemail=='Y')
|
||||||
{
|
{
|
||||||
list($b,$a)=split("@",$r2->email);
|
list($b,$a)=split("@",$r2->email);
|
||||||
$output=str_replace("email","<script language=javascript>em('$b','$a')</script>",$output);
|
$output=str_replace("email","<script language=\"javascript\" type=\"text/javascript\">em('$b','$a')</script>",$output);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$output=str_replace("email","",$output);
|
$output=str_replace("email","",$output);
|
||||||
|
Loading…
Reference in New Issue
Block a user