<div class="app_top"><h4>编辑组件</h4>
<div>编辑组件</div></div>
<!-- 标题 -->
<div class="tabs">
<li class="out"><a href="#">编辑</a></li>
<li class="link"><a href="#" onclick="javascript:window.history.go(-1)">返回组件</a></li>
</div>
<div class="bline"><br/>
<form action="/plugs/update/" method="post">
<INPUT TYPE="hidden" NAME="pid" value="<?=$plugs['id']?>">
<div class="titles_style">组件名称: <br><input type="text" name="name" value="<?=$plugs['name'];?>" class="text"></div>
<div class="titles_style">作者名称: <br><input type="text" name="developer" value="<?=$plugs['developer'];?>" class="text"></div>
<div class="titles_style">作者主页: <br><input type="text" name="link" <?php if( $plugs['link'] == '' ){ echo "value=http://"; }else{ echo "value=".$plugs['link']; }?>  class="text" style="width:200px"></div>
<div class="titles_style">价格: <br><input type="text" name="money" class="text" value="<?=$plugs['money']?>"></div>

<div class="app_item_div">截图<br/>
<img border="0" id="plugs_pic" src="<?=( isset( $plugs['pic'] ) && $plugs['pic'] )?$plugs['pic']:'/static/images/plugs/default.png';?>" width="110px" class="icon" > <br/>
<span id="plugs_txt" onclick="window.open('/upload/pic/plugs/plugs','_blank','scrollbars=no,width=475,height=150,left=75,top=80,status=no,resizable=yes')" class="upload_file_style">点击这里上传图片，也可以直接在下边填写URL</span><br/>
<input name="plugs_file" id="plugs" onchange="plugs_pic.src=this.value" value="<?=$plugs['pic'];?>"
 class="text item_size_small">
</div>

<div class="app_item_div">效果图<br/>
<img border="0" id="plugsbig_pic" src="<?=( isset( $plugs['big_pic'] ) && $plugs['big_pic'] )?$plugs['big_pic']:'/static/images/plugs/default.png';?>" class="icon"> <br/>
<span id="plugsbig_txt" onclick="window.open('/upload/pic/plugs/plugsbig','_blank','scrollbars=no,width=475,height=150,left=75,top=80,status=no,resizable=yes')" class="upload_file_style">点击这里上传图片，也可以直接在下边填写URL</span><br/>
<input name="plugsbig_file" id="plugsbig" onchange="plugsbig_pic.src=this.value" value="<?=$plugs['big_pic'];?>"
 class="text item_size_small"  >
</div>

<div class="titles_style">组件目录: <br><input type="text" name="aid" value="<?=$plugs['aid']?>" class="text" style="width:300px"></div>
<div class="titles_style">组件位置: <br><input type="text" name="download" value="<?=$plugs['download']?>" class="text" style="width:300px"></div>
<div class="titles_style">简介: <br><textarea name="desp" style="width:475px;height:85px" ><?=$plugs['desp'];?></textarea></div>
<div class="titles_style"><input type="submit" value="提交" class="button">&nbsp;&nbsp;<input type="reset" value="重写" class="button"></div>
</form>
</div>