2018-01-28 16:40:49 +00:00
|
|
|
|
function getalign(al)
|
|
|
|
|
{
|
|
|
|
|
al+="";
|
|
|
|
|
if (al.substring(0,1)=="3") return("Темное братство");
|
|
|
|
|
if (al.substring(0,1)=="2") return("Хаос");
|
|
|
|
|
if (al.substring(0,1)=="1") return("Белое братство");
|
|
|
|
|
if (al=="0.5" || al.substring(0,1)=="7") return("Нейтрал");
|
|
|
|
|
return("");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function drwfl(name, id, level, align, klan)
|
|
|
|
|
{
|
|
|
|
|
var s="";
|
|
|
|
|
|
2018-02-16 14:13:14 +00:00
|
|
|
|
if (align!="0") s+="<IMG SRC='i/align_"+align+".gif' WIDTH=12 HEIGHT=15 ALT=\""+getalign(align)+"\">";
|
|
|
|
|
if (klan) s+="<IMG SRC='i/klan/"+klan+".gif' WIDTH=24 HEIGHT=15 ALT=''>";
|
2018-01-28 16:40:49 +00:00
|
|
|
|
s+="<B>"+name+"</B> ";
|
|
|
|
|
if (level!=-1) s+="["+level+"]";
|
|
|
|
|
if (id!=-1) s+="<A HREF="+id+"'../inf.php?' target='_blank'><IMG SRC=i/inf.gif WIDTH=12 HEIGHT=11 ALT='Инф. о "+name+"'></A>";
|
|
|
|
|
|
|
|
|
|
document.write(s);
|
|
|
|
|
}
|