47 lines
1.7 KiB
PHTML
47 lines
1.7 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle('上传计划');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|
$this->headLink()->appendStylesheet('/css/author.css');
|
|
$this->headScript()->appendFile('/static/js/uploadify/swfobject.js');
|
|
$this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js');
|
|
$this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css');
|
|
?>
|
|
<?php
|
|
if(!empty($this->error))
|
|
{
|
|
echo $this->error;
|
|
echo "<script>setTimeout('parent.$.fn.colorbox.close();',2000);</script>";
|
|
}else{?>
|
|
<?php if(!empty($this->message))
|
|
{
|
|
echo "<p>".$this->message."</p>";
|
|
}?>
|
|
<?php
|
|
if(!empty($this->att))
|
|
{
|
|
echo '<div id="datalist">
|
|
<ul>'.
|
|
'<li>'.$this->att['realname']."(". round(($this->att['filesize'])/1024,2) .'KB) 【<a href="/service/attach/id/'.$this->att['id'].'">下载</a>】</li>'
|
|
.'</ul></div>';
|
|
}
|
|
?>
|
|
<div id="wapper">
|
|
<form id="fileUpdate" action="/admin/heihe/project/ac/upload/pid/<?= $this->pid ?>" method="post" enctype="multipart/form-data">
|
|
<p>注:只能选择一个文件,如果重新上传,将自动替换之前上传的文件<br />
|
|
<input id="file_upload" name="Filedata" type="file" />
|
|
<input type="hidden" name="submit" value="1" />
|
|
<input type="submit" class="btn btn-small btn-green" value="上传" />
|
|
</p>
|
|
</form>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
|