<?php include_once tpl('header');?>
<card title="缩放图片 - 社区">
<p align="left">
<?php echo backLink();?>
<br/>
请选择手机屏幕尺寸
<br/>
<?php echo ilink('176x220:下载',url('system',array('s'=>'bbs','c'=>'attachment','a'=>'thumb','aid'=>$aid,'w'=>176,'h'=>220)));?>
<br/>
<?php echo ilink('128x160:下载',url('system',array('s'=>'bbs','c'=>'attachment','a'=>'thumb','aid'=>$aid,'w'=>128,'h'=>160)));?>
<br/>
<?php echo ilink('240x320:下载',url('system',array('s'=>'bbs','c'=>'attachment','a'=>'thumb','aid'=>$aid,'w'=>240,'h'=>320)));?>
<br/>
<?php echo ilink('128x128:下载',url('system',array('s'=>'bbs','c'=>'attachment','a'=>'thumb','aid'=>$aid,'w'=>128,'h'=>128)));?>
<br/>
<?php echo ilink('320x480:下载',url('system',array('s'=>'bbs','c'=>'attachment','a'=>'thumb','aid'=>$aid,'w'=>320,'h'=>480)));?>
<br/>
↓自定义尺寸下载↓
<br/>
宽:<input type="text" name="w" format="*N" size="4" value="240" emptyok="true" />
<br/>
高:<input type="text" name="h" format="*N" size="4" value="320" emptyok="true" />(可留空)
<br/>
是否裁剪:<select name="cut" value="0"><option value="0">否</option><option value="1">是</option></select>
<br/>
<anchor>确定下载<go href="<?php echo url('system',array('s'=>'bbs','c'=>'attachment','a'=>'thumb','aid'=>$aid));?>" method="get">
	<postfield name="s" value="bbs" />
	<postfield name="c" value="attachment" />
	<postfield name="a" value="thumb" />
	<postfield name="aid" value="<?php echo $aid;?>" />
	<postfield name="w" value="$(w)" />
	<postfield name="h" value="$(h)" />
	<postfield name="cut" value="$(cut)" />
	<postfield name="sid" value="<?php echo S::gp('sid','G');?>" />
</go></anchor>
<br/> 
宽或高最大值为(800)
<br/>
为了保持图片的完整默认将按照输入的高和宽按比例裁剪图片
<br/>
如果您需要精确的按长宽下载，将裁剪设置为否即可
<br/>
-----------------------
<br/>
返回<?php echo backLink('上级');?>/<?php echo ilink('帖子',url('system',array('s'=>'bbs','a'=>'thread','tid'=>$tid)));?>
<br/>
<br/>
<?php echo date('n/d H:i:s');?>
</p>
</card>
</wml>