<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.  
require_once template('head');
if($readok=="" && $langnow==""){
   $style1="style='color:#FF0000' selected='selected'";
 }elseif($readok==0  && $langnow==""){
   $style2="style='color:#FF0000' selected='selected'";
 }elseif($readok==1){
   $style3="style='color:#FF0000' selected='selected'";
  }elseif($langnow=="cn"){
   $style4="style='color:#FF0000' selected='selected'";
 }
 elseif($langnow=="en"){
   $style5="style='color:#FF0000' selected='selected'";
 }
 elseif($langnow=="other"){
   $style6="style='color:#FF0000' selected='selected'";
 }
echo <<<EOT
-->
</head>
<body>
<!--
EOT;
if(!$customerid){
$title="<a href='index.php?anyid={$anyid}&lang={$lang}&class1={$class1}'>{$met_class[$class1][name]}</a>";
}else{
$title="{$lang_feedbackview}";
}
$class1=$class1?$class1:($id?$id:0);
$title=title($class1,$anyid,$lang)?title($class1,$anyid,$lang):$title;
require_once template('content/feedback/top');
echo <<<EOT
-->
<div class="v52fmbx_tbmax">
<div class="v52fmbx_tbbox">
<h3 class="v52fmbx_hr">
	<div class="formleft">
<!--
EOT;
if(!$customerid){
echo <<<EOT
-->	
			<form name="delform" method="Post" action="delete.php?anyid={$anyid}&lang=$lang&class1={$class1}&customerid={$customerid}" style="float:left; font-weight:normal; padding-left:10px;">
			    <select name="action" id="deltype">
					<option value="delall">{$lang_feedbackClass1}</option>
					<option value="delno" selected>{$lang_feedbackClass2}</option>
					<option value="delyse">{$lang_feedbackClass3}</option>
				</select>
				<input name="submit" type='submit' value='{$lang_setsafesq3text}' class="submitmi" onclick="return linkSmit('',1,safesq());" /> 
			</form>
<!--
EOT;
}
echo <<<EOT
-->	
	</div>
	<div class="formright">
			    {$lang_feedbackClass}
				<select name="new" id="new" onChange="changes($(this));">
					<option value="index.php?anyid={$anyid}&search=$search&useinfo=$useinfo&lang=$lang&class1=$class1&customerid={$customerid}" $style1>{$lang_feedbackClass1}</option>
					<option value="index.php?anyid={$anyid}&search=$search&readok=0&useinfo=$useinfo&lang=$lang&class1=$class1&customerid={$customerid}" $style2>{$lang_feedbackClass2}</option>
					<option value="index.php?anyid={$anyid}&search=$search&readok=1&useinfo=$useinfo&lang=$lang&class1=$class1&customerid={$customerid}" $style3>{$lang_feedbackClass3}</option>
				</select>
<!--
EOT;
if(!$customerid){
echo <<<EOT
-->	
				&nbsp;{$lang_feedbackClasp}
<select name="met_fd_class" onChange="changes($(this));">
<option value="index.php?anyid={$anyid}&lang=$lang&search=$search&readok=$readok&useinfo=$useinfo&class1=$class1&customerid={$customerid}&met_fd_classname=">{$lang_feedbackShowAll}</option>
<!--
EOT;
foreach ($selectlist as $key=>$val){
if($met_fd_classname==$val['info']){
echo <<<EOT
-->
<option value="index.php?anyid={$anyid}&lang=$lang&search=$search&readok=$readok&useinfo=$useinfo&class1=$class1&met_fd_classname=$val[info]&customerid={$customerid}" selected="selected">$val[info]</option>
<!--
EOT;
}else{
echo <<<EOT
-->
<option value="index.php?anyid={$anyid}&lang=$lang&search=$search&readok=$readok&useinfo=$useinfo&class1=$class1&met_fd_classname=$val[info]&customerid={$customerid}">$val[info]</option>
<!--
EOT;
}}
echo <<<EOT
-->
</select>
<!--
EOT;
}
echo <<<EOT
-->	
	</div>
	<div class="clear"></div>
</h3>
<table cellpadding="2" cellspacing="1" class="table">
		  <tr>
			<td width="30" class="list">{$lang_selected}</td>
			<td width="30" class="list">ID</td>
			<td class="list list_left">{$lang_title}</td>
			<td width="30" class="list">{$lang_read}</td>
			<td width="100" class="list" >{$lang_feedbackID}</td>
			<td class="list" width="60" >{$lang_feedbackTime}</td>
			<td class="list list_left" >{$lang_operate}</td>
		  </tr>
<form name="del" method="Post" action="delete.php?anyid={$anyid}&lang=$lang&class1=$class1&customerid={$customerid}">
<!--
EOT;
foreach ($feedback_list as $key=>$val){
echo <<<EOT
-->          
              <tr class="mouse click">
              <td class="list-text"><input name='id' type='checkbox' id="id" value='$val[id]' /></td>
                <td class="list-text color999">$val[id]</td>
			    <td class="list-text list_left"><a href="editor.php?anyid={$anyid}&id=$val[id]&lang=$lang&class1=$class1&customerid={$customerid}" title="{$lang_detail}">$val[fdtitle]</a></td>
                <td class="list-text color999">$val[readok]</td>
				<td class="list-text color999">$val[customerid]</td>
                <td class="list-text color999">$val[addtime]</td>
				<td class="list-text list_left"><a href="editor.php?anyid={$anyid}&id=$val[id]&lang=$lang&class1=$class1&customerid={$customerid}" >{$lang_View}</a>&nbsp;&nbsp;<a href="delete.php?anyid={$anyid}&id=$val[id]&lang=$lang&class1=$class1&customerid={$customerid}" onClick="return linkSmit($(this),1);" >{$lang_delete}</a></td>
              </tr>
<!--
EOT;
}
echo <<<EOT
-->
              <input name="action" type="hidden" id="action" value="del" />
			  <input name="allid" type="hidden" id="allid" value="" />
			  <input name="class1" type="hidden" id="class1" value="$class1" />
</form>	
   	   <tr> 
            <td class="list" width="40"><input name="chkAll" type="checkbox" id="chkAll" onclick="CheckAllx($(this),'del')" value="checkbox" /></td>
			<td class="all-submit" colspan="6" style="padding:5px 10px;">
			<input name="submit" type='submit' value='{$lang_deleteselected}' class="submit li-submit" onclick="return met_modify($(this),'del','del');" />
<!--
EOT;
if(!$customerid){
echo <<<EOT
-->			
			<div class="page_list">
			<form method="POST" name="exportform" action="export.php?anyid={$anyid}&lang={$lang}&class1={$class1}&customerid={$customerid}" target="_self">
			       &nbsp;&nbsp;{$lang_feedbackTip2}
				   <select name="met_fd_export">
				   <option value="-1">{$lang_feedbackTip4}</option>
<!--
EOT;
foreach ($selectlist as $key=>$val){
echo <<<EOT
-->
				   
					<option value="$val[info]">$val[info]</option>
<!--
EOT;
}
echo <<<EOT
-->
					</select>
                    <input type="hidden" name="check_id">				   
					<input name="submit" type='submit' value='{$lang_feedbackExport}' class="submitmi" onclick='fun()'/>
			</form>
			</div>
<!--
EOT;
}
echo <<<EOT
-->
			</td>
          </tr>
		<tr>
		  <td class="page_list" colspan="7">{$page_list}</td>
	    </tr>
</table>
</div>
</div>
<div class="footer">$foot</div>
<script type="text/javascript">
function safesq(){
	var vl = $("#deltype").val();
	var vp = $("option[value='"+vl+"']").text();
		vp = '{$lang_js63}'+vp+'？';
	return vp;
}
function fun(){
    obj = document.getElementsByName("id");
    check_id = [];
    for(k in obj){
        if(obj[k].checked)
            check_id.push(obj[k].value);
    }
   $("input[name=check_id]").val(check_id)
}
</script>
</body>
</html>
<!--
EOT;
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
?>-->