<!-- #include file="../../themes/default/~css.php" -->
<form action="<?=url(RPGM.'edittopic/'.MID.'/'.$arg_0.'/?iframe')?>" method="post" enctype="multipart/form-data" id="form" target="ajax" onsubmit="ShowLoading()">

<h3 class="title"><?=htmlmlang('编辑文章')?></h3>
<div class="in">
<?php $i=0; foreach($conf['sys_elangs'] as $k=>$v){?>
<div class="fieldwrapper">
	<label for="" class="styled"><?=$i<1?htmlmlang('标题'):''?><img src="<?=THEMEPATH?>img/flags/<?=$k?>.png" /></label>
	<div class="thefield">
    <input name="title[<?=$k?>]" type="text" style="width:400px" value="<?=$arg_1['title'][$k]?>" />
    </div>
</div>
<?php $i++; }?>
<?php $i=0;foreach($conf['sys_elangs'] as $k=>$v){?>
<div class="fieldwrapper">
  <label for="label" class="styled"><?=$i<1?htmlmlang('概述'):''?><img src="<?=THEMEPATH?>img/flags/<?=$k?>.png" /></label>
  <div class="thefield">
    <textarea style="width: 400px;height:70px" name="doc[<?=$k?>]"><?=$arg_1['doc'][$k]?>
</textarea>
  </div>
</div>
<?php $i++; }?>

<div class="fieldwrapper">
	<label for="" class="styled"><?=htmlmlang('关键字')?></label>
	<div class="thefield">
    <input name="keyword" type="text" style="width:400px" value="<?=$arg_1['keyword']?>" />
    </div>
</div>

<div class="fieldwrapper">
	<label for="" class="styled"><?=htmlmlang('缩略图')?></label>
	<div class="thefield">
    <input name="thumb" type="text" style="width:400px" value="<?=$arg_1['thumb']?>" />
    </div>
</div>
<?php do_apply('topicitem_html',NULL,MOD,$arg_1); ?>
<?php $i=0; foreach($conf['sys_elangs'] as $k=>$v){?>
<div class="fieldwrapper">
	<label for="" class="styled"><?=$i<1?htmlmlang('内容'):''?><img src="<?=THEMEPATH?>img/flags/<?=$k?>.png" /></label>
	<div class="thefield">
     <textarea name="content[<?=$k?>]" id="editor_<?=$k?>" style="width:90%;height:300px;"><?=$arg_1['content'][$k]?></textarea>
    <?=set_editor('editor_'.$k)?>
    </div>
</div>
 <?php $i++; }?> 
 
<div class="buttonsdiv">
	<input value="<?=htmlmlang('提交')?>" type="submit" class="button"> 
    <input value="<?=htmlmlang('重置')?>" type="reset" class="button">
</div>
</div>
</form>

<form id="form2">
<h3 class="title"><?=htmlmlang('您存储的附件')?></h3>
<div class="in">
<div class="fieldwrapper">
	<label for="" class="styled"><?=htmlmlang('附件列表')?></label>
	<div class="thefield" id="yun_annex">
    <ul>
    <?php foreach($arg_2 as $v){?>
<li><input readonly="readonly" style="width: 400px;" value="<?=$v['filename']?>" name=""/><?=$v['time']?></li>
 <?php }?>
    </ul>
    </div>
</div> 
</div>                     
</form>

<form id="form3" action="<?=url(RPG.'system/upload/?iframe')?>" method="post" enctype="multipart/form-data" onsubmit="return yun_submit(this.id)">
<h3 class="title"><?=htmlmlang('上传文件')?></h3>
<div class="in">
<div class="fieldwrapper">
	<label for="" class="styled"><?=htmlmlang('本地文件')?></label>
	<div class="thefield">
    <input type="file" size="20" name="upfile" /> <input type="checkbox" value="1" name="isthumb"/>
     <?=htmlmlang('生成缩略图')?>
    </div>
</div>
<div class="buttonsdiv">
	<input value="<?=htmlmlang('提交')?>" type="submit" class="button"> 
    <input value="<?=htmlmlang('重置')?>" type="reset" class="button">
</div> 
</div>
</form>
                    
<script type="text/javascript">
</script>

