<!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>上传文件</title>
<link href="<?=BASEURL?>public/admin/css/main.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="<?=BASEURL?>public/share/Validator.js"></script>
</head>

<body>
<?php if($post){?>
<script language="javascript">
	parent.document.getElementById('<?=$inputid?>').value='<?=$imagepath?>';
	parent.offDialog();
</script>

<?php }else{?>
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="<?=BASEURI?>file_upload/normal" onSubmit="return Validator.Validate(this,1)">
 <table class="adminform">
<tr>
	<th>请选择上传的图片</th>
</tr>
<tr>
	<td><input type="hidden" name="inputid" value="<?=$inputid?>" />
  <input type="file" name="uploadfile" id="uploadfile" dataType='Require' msg="请选择上传文件" /></td>
</tr>
<tr>
	<th>缩略图控制</th>
</tr>
<tr>
	<td>
     缩略图
  <input name="is_thumb" type="checkbox" value="1" checked="checked"/>
  宽度<input type="text" name="width" value="<?=$channel->channel_thumbs_width?>" size="3"/>
  高度<input type="text" name="height" value="<?=$channel->channel_thumbs_height?>" size="3" />
    </td>
</tr>
<tr>
	<th>
     <input type="submit" name="button" id="button" value="上传" class="button" />
    <input type="hidden" name="channel_id" value="<?=$channel_id?>" />
    </th>
</tr>
</table>
</form>
<?php }?>

</body>
</html>
