function html_displaymarc($ID) {
global $_TBWIDTH;
$sql = "select * from media where ID='$ID' ";
$result = tmq($sql);
$r = tmq_fetch_array($result);
$retstr="";
$retstr.="
";
$isshowleader=getval("_SETTING","display_LEADERatupac");
if ($isshowleader=="yes") {
$retstr.="
LEADER : $r[leader] |
";
}
$sql82="select * from bkedit order by ordr";
$result=tmq($sql82, $conn);
echo mysql_error();
while ($rowd=tmq_fetch_array($result)) {
$allR=explode("\n",$r[$rowd[fid]]);
foreach ($allR as $value) {
echo mysql_error();
$x = str_replace("$","$",$rowd[val]);
$str = $value;
if (trim(dspmarc($str))!="") {
$retstr.="
";
$tmprowdfid=$rowd[fid];
$tmprowdfid=str_replace("tag","",$tmprowdfid);
$tmprowdfid=str_replace("ulib","",$tmprowdfid);
$retstr.= $tmprowdfid;
$retstr.=" | ";
if ($rowd[ishasindi]=="YES") {
$retstr.="";
$retstr.= substr($str,0,1);
$retstr.=" |
";
$retstr.=substr($str,1,1);
$retstr.=" | ";
} else {
$retstr.="
- | ";
}
$retstr.=" ";
if ($rowd[ishasindi]=="YES") {
$retstr.= substr($str,2);
} else {
$retstr.= $str;
}
$retstr.=" |
";
}
} //loop for splited \n
}
$retstr.="
";
return $retstr;
}
?>