You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
4.0 KiB
PHTML
110 lines
4.0 KiB
PHTML
8 years ago
|
<style type="text/css">
|
||
|
.edita{ margin: 1px 5px;}
|
||
|
.searchBox{border:#99CC33 solid 1px;}
|
||
|
.hoverbg{ background-color:#ffffff}
|
||
|
.croseline{ border-left: solid #FF0000 1px; line-height:2px; margin: 0px 5px;}
|
||
|
.page{ display:block}
|
||
|
#rightcon{ height:auto}
|
||
|
.BasicInfo .input1{ width:340px; margin:2px;}
|
||
|
.BasicInfo label{ width:90px; float: left;}
|
||
|
/*.BasicInfo form div{ padding:3px;}*/
|
||
|
</style>
|
||
|
<?php if($action =="add" || $action =="edit"){?>
|
||
|
<script type="text/javascript">
|
||
|
var editor;
|
||
|
KindEditor.ready(function(K) {
|
||
|
editor = K.create('#ic_content', {
|
||
|
width : '686px',
|
||
|
height:'380px',
|
||
|
//fileManagerJson:'/js/kcfinder/browse.php',
|
||
|
//allowFileManager:true,
|
||
|
allowImageUpload:false,
|
||
|
items : [
|
||
|
'source', '|', 'undo', 'redo', '|', 'preview', 'cut', 'copy', 'paste', 'plainpaste', 'wordpaste', '|',
|
||
|
'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', '|',
|
||
|
'clearhtml', 'quickformat','removeformat', 'selectall', '/','fullscreen', '|',
|
||
|
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
|
||
|
'italic', 'underline', 'strikethrough', 'lineheight', '|', 'table', 'hr', 'emoticons','image', 'map', 'pagebreak',
|
||
|
'link', 'unlink', '|', 'about'
|
||
|
]
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
<?php }
|
||
|
|
||
|
if(isset($announc)){
|
||
|
$title = $announc->tlm_title;
|
||
|
$id = $announc->tlm_id;
|
||
|
$content = $announc->tlm_content;
|
||
|
} else {
|
||
|
$title = "";
|
||
|
$id = "";
|
||
|
$content = "";
|
||
|
}
|
||
|
|
||
|
|
||
|
?>
|
||
|
<div id="maincon" style="white-space:nowrap;">
|
||
|
<div id="leftmenu">
|
||
|
<div class="title"><h1>翻译平台管理中心</h1></div>
|
||
|
<div class="clear"></div>
|
||
|
<a href="<?php echo site_url('translate/listall') ?>"><div class="MenuItem">所有任务</div></a>
|
||
|
<!--<a href="<?php echo site_url('translate/publication') ?>"><div class="MenuItem">发布任务</div></a>-->
|
||
|
<a href="<?php echo site_url('translate/listuser') ?>"><div class="MenuItem">信息人员管理</div></a>
|
||
|
<a href="<?php echo site_url('translate/announc') ?>"><div class="MenuItem">公告管理</div></a>
|
||
|
</div>
|
||
|
<div id="rightcon">
|
||
|
<div class="title">
|
||
|
<h2>公告管理</h2>
|
||
|
</div>
|
||
|
<div class="editform">
|
||
|
<div class="BasicInfo">
|
||
|
<?php if($action =="add" || $action =="edit"){?>
|
||
|
<form action="<?php echo site_url('translate/editannounc/'.$id) ?>" method="post" id="form_announc_add" >
|
||
|
<div class="titlebox"><a name="warning"></a>公告标题</div>
|
||
|
<div><input type="text" name="tlm_title" class="L560" style=" margin:3px;" value="<?php echo $title ?>"/></div>
|
||
|
<div class="titlebox"><a name="warning"></a>公告内容</div>
|
||
|
<div><textarea name="tlm_content" id="ic_content" ><?php echo $content ?></textarea></div>
|
||
|
<div class="others">
|
||
|
<div class="L680 textalignR">
|
||
|
<a class="save" onclick="editor.sync();submitForm('form_announc_add');" href="javascript:void(0);"></a>
|
||
|
<input type="hidden" name="submit" value="true" />
|
||
|
<input type="hidden" name="tlm_id" value="<?php echo $id ?>" />
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
<?php }else { ?>
|
||
|
<div class="titlebox"><a name="warning"></a>所有公告 <a href="<?php echo site_url('translate/announcadd') ?>">新增公告</a></div>
|
||
|
<table width="100%" border="1">
|
||
|
<tr>
|
||
|
<td width="763">标题</td>
|
||
|
<td width="169">发布日期</td>
|
||
|
<td width="357">操作</td>
|
||
|
</tr>
|
||
|
|
||
|
<?php if(!$announcList){?>
|
||
|
<tr>
|
||
|
<td colspan="3">没有记录</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<?php }
|
||
|
foreach ($announcList as $item)
|
||
|
{ ?>
|
||
|
<tr>
|
||
|
<td><?php echo $item->tlm_title ?></td>
|
||
|
<td><?php echo date('Y-m-d',strtotime($item->tlm_dateline)) ?></td>
|
||
|
<td>
|
||
|
<a href="<?php echo site_url('translate/editannounc/'.$item->tlm_id) ?>">修改</a>
|
||
|
<a href="<?php echo site_url('translate/deletennounc/'.$item->tlm_id) ?>" onclick="return confirm('确认删除此公告吗?');">删除</a></td>
|
||
|
</tr>
|
||
|
<?php } ?>
|
||
|
</table>
|
||
|
<?php } ?>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="clear"></div>
|
||
|
</div>
|
||
|
<div class="clear"></div>
|
||
|
</div>
|