"; $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; } ?>function ugreybox_go(wh){ tmp=wh.attributes.rel.value; //alert("go to" +tmp); var thediv=getobj('ugreyboxtopdiv'); thediv.style.display = "block"; var thediv=getobj('ugreyboxpagebg'); thediv.style.display = "table-cell"; var thediv=getobj('ugreyboxpageIF'); thediv.src= tmp; var thediv=getobj('ugreyboxpageHeadertext'); thediv.innerHTML= wh.innerText ; return false; } function initalizeugreybox(){ //alert(initalizeugreybox); var closeasreload="no"; var ugbas = document.getElementsByTagName("a"); for (i = 0; i < ugbas.length; i++) { if (ugbas[i].attributes.rel) { if(ugbas[i].attributes.rel.value=="gb_page_fs[]"){ var rel = ugbas[i].attributes.rel.value; var href = ugbas[i].attributes.href.value; //ugbas[i].style.color="#ff0000"; ugbas[i].attributes.href.value="javascript:void(null);"; ugbas[i].attributes.rel.value=href; ///////////////////////////////// addEvent(ugbas[i], 'click', function(){ ugreybox_go(this); return false; }); //////////////////////////////// //relcloseasreload if (ugbas[i].attributes.relcloseasreload) { closeasreload="yes"; //alert(1); } } } } //prepare frame var ugbtag=document.createElement('div'); ugbtag.setAttribute("id", "ugreyboxtopdiv"); document.getElementsByTagName('body')[0].appendChild(ugbtag); ugbobj=getobj("ugreyboxtopdiv"); ugbobj.style.height="100%"; ugbobj.style.width="100%"; ugbobj.style.position="fixed"; ugbobj.style.top="0px"; ugbobj.style.left="0px"; ///ugbobj.style.overflow="hidden"; ugbobj.style.zIndex="10000"; ugbobj.style.verticalAlign="middle"; if (closeasreload=="no") { ugbobj.innerHTML='


 
'; } else { ugbobj.innerHTML='


 
'; } ugreybox_hide(); } function ugreybox_hide(){ var thediv=getobj('ugreyboxtopdiv'); thediv.style.display = "none"; var thediv=getobj('ugreyboxpagebg'); thediv.style.display = "none"; return false; } addEvent(window, 'load', function(){ initalizeugreybox() });