<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>
<script type="text/javascript">
<?php if($action=='public'){ ?>
    var editor;
    KindEditor.ready(function(K) {
        editor = K.create('#ic_content', {
            width : '588px',
            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'
            ]
        });
    });
<?php }  ?>
	$(function(){
		$(".editform").hover(
		function(){$(this).addClass('hoverbg')},
		function(){$(this).removeClass('hoverbg')}
		);
	});
</script>
<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">
		<div class="titlebox"><a name="warning"></a>任务操作</div>
		<form name="form_translate_opater" id="form_translate_opater" action="<?php echo site_url('translate/opater/'.$tid.'/'.$action) ?>" method="post">
		<?php switch($action){ 
		      case "check":?>
			  <div>翻译结果有效,请填写以下信息</div>
			  <div><label>翻译总字数:</label><input name="opater[tli_charcount]" type="text" class="input1"  value="<?php echo $translateinfo['tli_charcount']?>"/></div>
			  <div><label>是否通过审核:</label><input type="radio" checked="checked" name="opater[tli_status]" value="1"/>通过  <input type="radio" name="opater[tli_status]" value="0"/>不通过</div>
			  <div><label>任务要求:</label>
			   <textarea name="opater[tli_otherquest]" class="input1"><?php echo $translateinfo['tli_otherquest']?></textarea>
			  不通过的时候可以把原因写这里</div>
			  <div><label>管理备注:</label><input name="opater[tli_mono]" type="text" class="input1" value="<?php echo $translateinfo['tli_mono']?>"/>这个内容只人管理员见到</div>
		<?php 
		      break;
			  case "pay":?>
			  <div><label>已经付款总数:</label><input name="opater[tli_charge]" type="text" class="input1" />
			  *</div>
			  <div><label>已经付款币种:</label><input name="opater[tli_chargeunit]" type="text" class="input1"/>
			  *如 RMB</div>
			  <div>提交后任务将变成完成状态.</div>
			  
		      <?php
		      break;
		      case "public":?>
			  <div><label>信息应用地址:</label><input name="textfield" type="text" class="input1" /></div>
			  <div><label>管理备注:</label><input name="opater[tli_mono]" type="text" class="input1" value="<?php echo $translateinfo['tli_mono']?>"/></div>
			  <div class="clear"></div>
			  <div><label>信息内容：</label><textarea id="ic_content"> <?php echo $translateinfo['tli_info']?></textarea></div>
			  <div><label>发布到表：</label><input name="textfield" type="text" class="input1" /></div>
			  <div><label>字段信息：</label>
			      <div style=" float:left">
			      1<input name="textfield" type="text" class="input1" /><br/>
			      2<input name="textfield" type="text" class="input1" /><br/>
			      3<input name="textfield" type="text" class="input1" /><br/>
			      4<input name="textfield" type="text" class="input1" /><br/>
			      5<input name="textfield" type="text" class="input1" /></div>
			      </div>
			  <div class="clear"></div>
		<?php
		      break;
		      default:
			  exit(); }?>
		
		 <p>
		  <input type="hidden" name="action" value="<?php echo $action ?>" />
		  <input type="button" name="button" value="提交" onclick="submitForm('form_translate_opater');"/>
		  <input type="reset" name="Submit2" value="重置" />
		  <input type="button" name="Submit3" value="返回任务列表" onclick="document.location.href='<?php echo site_url('translate/') ?>'"/>
		 </p>
		</form>
		</div>
		</div>
	 <div class="clear"></div>
	</div>	
    <div class="clear"></div>
</div>