<table class="adminlist" cellpadding="0" cellspacing="0">
	<thead>
    	<tr><th>#</th><th><input type="checkbox" name="toggle" id="toggle" value="all" /></th><th>网站名称</th><th>网站地址</th><th>联系人</th><th>操作</th></tr>
    </thead>
    <tbody>
    	<?php foreach($flinks as $flink){ if(@!$a){ $a=1;}?>
        <tr>
        	<td><?=$a++?></td>
        	<td><input type="checkbox" name="select_id[]" value="<?=$flink->id?>" id="cb<?=$a?>"></td>
        	<td><?=$flink->webname?></td>
        	<td><?=$flink->url?></td>
        	<td><?=$flink->contact?></td>
        	<td>
            	<a href="<?=BASEURI?>flink/delete/<?=$flink->id?>" onclick="if(!confirm('确认是否删除')){return false;}">删除</a>
            	<a href="<?=BASEURI?>flink/edit/<?=$flink->id?>">編辑</a>
            </td>
        </tr>
        <?php }?>
    </tbody>
    <tfoot>
    	<tr>
        	<td colspan="5">
        	<input type="button" class="button" value="删除" onclick="select_control('<?=BASEURI?>flink/delete','确认是否删除')"/>
            <input type="button" value="新建" class="button" accesskey="N" onclick="button_location('<?=BASEURI?>flink/add')" />
            </td>
        </tr>
        
    </tfoot>
</table>
<input type="hidden" name="fid" value="<?=@$flink->id?>">