<?php if (empty($num)):?>
<?php include_once tpl('header');?>
<card title="上传文件 - 社区">
<p align="left">
请输入你要上传的文件个数，一次最多5个:
<br/>
<input type="text" name="num" value="3" size="4" /><a href="<?php echo url('system',array('s'=>'bbs','a'=>'upload','tid'=>$tid));?>&amp;num=$(num)">确定</a>
<br/>
提示:如果你手机网速过慢，请每次上传个少点，发表帖子后再进行文件续帖即可
<br/>
-----------------------
<br/>
<br/>
<?php echo backLink();?>
<br/>
Time:<?php echo date('n/d H:i:s');?>
</p>
</card>
</wml>
<?php else:?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>附件贴 - <?php echo setting('webname');?></title>
</head>
<body>
<form action="<?php echo url('system',array('s'=>'bbs','a'=>'upload','tid'=>$tid));?>" method="post" enctype='multipart/form-data'>
<?php for ($i = 1; $i <= $num; $i++):?>
附件<?php echo $i;?>:<input name="attachment_<?php echo $i;?>" type="file" size="6" />
<br/>
名称:<input type="text" name="name_<?php echo $i;?>" maxlength="30" size="10" />
<br/>
售价:<input type="text" name="price_<?php echo $i;?>" maxlength="30" size="10" value="0" />
<br/>
↓说明↓
<br/>
<textarea name="remark_<?php echo $i;?>" cols="60" rows="4"></textarea><br/>
<?php endfor;?>
<input type="hidden" name="isupload" value="1" />
<input type="submit" value="确定发表" />
</form>
</body>
</html>
<?php endif;?>