<h3><a href='<?=ppc.SCRIPT?>'>Top</a> >
<?=ppc.read_file("dat/sect_"+ppc.s)?></h3>
<?oTable3()?>
Topic</td><td>Author</td><td>Date</td><td>Answers</td>
</tr>
<?
// fetching sector "ppc.s":
// topic summary is "dat/top_$sector_num$_topics"
// topic name is "dat/top_$sector_num$_$topic_num$"
// topic author is "dat/top_$sector_num$_$topic_num$_auth"
// topic date is "dat/top_$sector_num$_$topic_num$_date"
int topics_num = ppc.int(ppc.read_file("dat/top_"+ppc.s+"_topics"));
int aax;
for(int i=0;i<topics_num;++i){
if( ppc.read_file("dat/top_"+ppc.s+"_"+ppc.string(i) )!="" ){
?><tr bgcolor='#aaaaff'><td>
<?if(isadmin){?><a class=clred href='<?=ppc.SCRIPT
?>?op=ft&sop=delete&s=<?=ppc.s?>&t=<?=i?>'>delete topic</a> ·<?}?>
<a href='<?=ppc.SCRIPT?>?op=ft&sop=show&s=<?=ppc.s?>&t=<?=i?>'>
<b><?=ppc.read_file("dat/top_"+ppc.s+"_"+ppc.string(i) )?></b></a>
</td><td>
<a href='<?=ppc.SCRIPT?>?op=ft&sop=show&s=<?=ppc.s?>&t=<?=i?>'>
<i><?=ppc.read_file("dat/top_"+ppc.s+"_"+ppc.string(i)+"_auth" )?></i></a>
</td><td>
<a href='<?=ppc.SCRIPT?>?op=ft&sop=show&s=<?=ppc.s?>&t=<?=i?>'>
<small><?=ppc.read_file("dat/top_"+ppc.s+"_"+ppc.string(i)+"_date" )?></small></a>
</td>
<td><?=ppc.int(ppc.read_file("dat/top_"+ppc.s+"_"+ppc.string(i)+"_anum" ))?></td>
</tr><?
}
}
?>
<tr><td> </td><td> </td><td> </td><td>
<?if(!topics_num){?>
No topics in this sector.<br>
<a href='<?=ppc.SCRIPT?>?op=ft&sop=new&s=<?=ppc.s?>'>
<b>publish first!</b></a>
<?}?>
<?cTable()?>
|