<script>ec(2);</script>
if (isset($_GET['action']) && $_GET['action']=='update')
{
//update notice data
//上传文件
require_once("upload_class.php");
$f = new Upload( $savepath, $fileFormat, $maxsize, $overwrite);
if (!$f->run('img'))
{//下面的img是Form中上传文件的input的名字
echo $f->errmsg(); //这里只能传递最后一个出错的信息,详细的信息在$f->getInfo()中可以得到。
print_r($f->returnArray);
}
echo "
<script><br />
var ptext='';<br />
ptext="OK";<br />
//alert($('#img_view').html());<br />
parent.$('#img_view').html(ptext);<br />
</script>";
}
?>
发布文章--编辑页面
编辑文章内容 |
{{section name=article loop=$article}}
{{/section}}