<!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>
<title>vodcms.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->basedir;?>images/admin/public.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->basedir;?>images/admin/style.css" />
<link href="../../images/admin/public.css" rel="stylesheet" type="text/css" />
<link href="../../images/admin/style.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->basedir;?>js/jquery.js" language="javascript"></script>
<script language="javascript">
$(document).ready(function() {
	//setime(10);
}
)
function delfile(o, filename){
	var parent = o.parentNode;
	parent.innerHTML  = '<input name="picture" type="file" id="picture" /><input name="delfile" type="hidden" id="delfile" value="'+filename+'" />';
	
}
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr align="center" valign="top">
    <td width="*" align="center" valign="top">
	<!-- ######### begin ######### -->
      <div class="Block">
      <div class="BlockBar">修改软件信息</div>
	  <form action="<?php echo $this->installdir;?>soft/modify/" method="post" enctype="multipart/form-data" name="form1" id="form1">
      <table width="100%" border="0" cellpadding="1" cellspacing="1" class="tab">
	  <tr class="row">
	    <td width="12%" class="align-right">软件名称：</td>
	    <td width="88%"><input name="softname" type="text" id="softname"  value="<?php echo $this->modify['softname'];?>" /></td>
	  </tr>
	  <tr class="row">
	    <td class="align-right">软件图片：</td>
	    <td>				 <?php 
				if ($this->modify['picture']){?>
				<img src="<?php echo $this->basedir;?>
				<?php echo $this->modify['picture'];?>" width="60" />
				<input name="delete" type="button" value="更新图片" onclick="delfile(this, '<?php echo base64_encode(strrev($this->modify['picture']));?>')" /><?php }else{?>
				  <input name="picture" type="file" id="picture" /><?php }?></td>
	    </tr>
	  <tr class="row">
	    <td class="align-right">下载地址：</td>
	    <td><input name="filename" type="text" id="filename" size="50" value="<?php echo $this->modify['filename'];?>" /></td>
	    </tr>
	  <tr class="row">
	    <td class="align-right">&nbsp;</td>
	    <td>
	      <input type="submit" class="btn" value=" 修 改 " /> <input name="Submit" type="button" class="btn" value="返回上一页" onclick="history.back()"  />	    </td>
	    </tr><input name="id" type="hidden" value="<?php echo $this->modify['id'];?>" />
      </table></form>

	  </div>
    </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

