<!--
<?php
echo <<<EOT
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$kuWebsiteTitle}</title>
<link href="{$adminHttpCssPath}admin.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="javascript" src="{$adminHttpJsPath}common.js"></script>
</head>

<body>
  <table width="100%" border="0" background="#EEEEEE">
    <tr>
      <td colspan="3" height="10">&nbsp;</td>
    </tr>
    <tr>
      <td width="1%"></td>
      <td width="98%"> 
        <table width="100%" bgcolor="#F4FAFB" style="border:1px solid #99d3fb">
          <tr height="30" style="padding:3px 10px;">
            <td width="40%" align="left" height="40"><span style="font-size:16px; font-weight:bold">&nbsp;&nbsp;{$labelFeedbackManageBrownseFeedback}</span></td>
            <td width="40%" align="right">&nbsp;&nbsp;</td>
          </tr>
        </table>
        <form action="index.php?lang={$kuWebsiteEditVersionLanguage}&path=plus&menu=feedback_action&action=search" method="post">
          <table width="100%" bgcolor="#F4FAFB" style="border:1px solid #99d3fb">
            <tr height="30" style="padding:3px 10px;">
              <td width="100%" align="left" height="20">
                <span style="font-size:12px; font-weight:bold">
                  <a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=plus&menu=feedback_action&menuid={$menuid}&searchtype=all">{$labelFeedbackManageAllInfomation}</a>&nbsp;&nbsp;&nbsp;&nbsp;    
                  <a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=plus&menu=feedback_action&menuid={$menuid}&searchtype=0">{$labelFeedbackManageNotRevertInfomation}</a>&nbsp;&nbsp;&nbsp;&nbsp;  
                  <a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=plus&menu=feedback_action&menuid={$menuid}&searchtype=1">{$labelFeedbackManageRevertedInfomation}</a>&nbsp;&nbsp;&nbsp;&nbsp;    
                  <a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=plus&menu=feedback_action&menuid={$menuid}&searchtype=2">{$labelFeedbackManageReplyInfomation}</a>&nbsp;&nbsp;&nbsp;&nbsp;    
                </span>
              </td>
            </tr>
          </table>
        </form>
        <form name='myform' action="index.php?lang={$kuWebsiteEditVersionLanguage}&path=plus&menu=feedback_action&action=delete" method="post">
          <input type="text" name="menuid" value="{$menuid}" style="display:none" />
          <table width="100%" bgcolor="#F4FAFB" class="tableList" cellpadding="1" cellspacing="1">
            <tr >
              <td width="5%" align="center">{$labelModelCommonManageSelected}</td>
              <td width="5%" align="center">{$labelModelCommonManageID}</td>
              <td width="22%" align="center">{$labelFeedbackManageTitle}</td>
              <td width="25%" align="center">{$labelFeedbackManageObject}</td>
              <td width="8%" align="center">{$labelFeedbackManageName}</td>
              <td width="10%" align="center">{$labelFeedbackManageEmail}</td>
              <td width="5%" align="center">{$labelFeedbackManageRevertCheck}</td>
              <td width="10%" align="center">{$labelFeedbackManageFromIP}</td>
              <td width="10%"align="center">{$labelModelCommonManageOperate}</td>
            </tr>
<!--
EOT;
foreach($feedbackList as $key=>$value)
{
  $feedbackType = $arrAllModule[$value['feedbacktype']];
  $strSql = "select * from {$configTableHead}{$feedbackType} where id={$value['objectid']}";
  $row = $dbInstance->getOne($strSql);
?>
-->
            <tr>
              <td align="center"><input type="checkbox" name="id[]" value="<?php echo $value['id']; ?>" /></td>
              <td align="center"><?php echo $value['id']; ?></td>
              <td align="center"><?php echo removeXSS($value['feedbacktitle']); ?></td>
              <td align="center"><a href="<?php echo $kuHttpPathUrl.$feedbackType.'/'.$feedbackType.".php?lang=".$kuWebsiteEditVersionLanguage."&itemid=".$value['objectid']; ?>" target="_blank"><?php echo $row[$feedbackType.'title']; ?></a></td>
              <td align="center"><?php echo removeXSS($value['feedbackname']); ?></td>
              <td align="center" ><?php echo removeXSS($value['feedbackemail']); ?></td>
              <td align="center" >             
<?php
if(1 == $value['status']){echo '已阅读';}
else if(2 == $value['status']){echo '已回复';}
else{echo '未阅读';}
echo <<<EOT
              </td>
              <td align="center" >{$value['ipaddress']}</td>
              <td align="center" >
                <a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=plus&menu=feedback_view&id={$value['id']}">{$labelCommonDetail}</a>
                <a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=plus&menu=feedback_action&menuid={$menuid}&action=delete&id={$value['id']}" onclick="return confirm('{$promptConfirmDelete}')">{$labelCommonDelete}</a>
              </td> 
            </tr>
<!--
EOT;
}
echo <<<EOT
-->
            
            <tr> 
              <td height="20" align="left" colspan="11">
                <input name="selectAllCheckBox"  type="checkbox" onclick="checkCheckBoxAll(this.form)">
                {$labelFeedbackManageDeleteAllDesc} 
                <input name="submit" type='submit' value='{$labelModelCommonManageDeleteAll}' onclick="return confirm('{$promptConfirmDelete}')"> 
              </td>
            </tr>
            <tr>
              <td colspan="11" align="center">
EOT;
$test = new Pages($totalNumber, $page, $maxNum, $adminPagingActionsDisplayNumber, $adminPagingType, $adminPagingIsAlwaysShowFirstOrLast);
if('all' == $searchtype || empty($searchtype))
{
echo $test->disp('page', "index.php?lang={$kuWebsiteEditVersionLanguage}&path=plus&menu=feedback_action&menuid={$menuid}");
}
else if('notrevert' == $searchtype)
{
echo $test->disp('page', "index.php?lang={$kuWebsiteEditVersionLanguage}&path=plus&menu=feedback_action&searchtype={$searchtype}&menuid={$menuid}");
}
else if('reverted' == $searchtype)
{
echo $test->disp('page', "index.php?lang={$kuWebsiteEditVersionLanguage}&path=plus&menu=feedback_action&searchtype={$searchtype}&menuid={$menuid}");
}  
echo <<<EOT
              </td>
            </tr>
          </table>
        </form>
EOT;
include_once($adminTemplatePath.'/footer.html');
echo <<<EOT
  
  </td>
      <td width="1%"></td>
    </tr>
  <tr><td colspan="3" height="10">&nbsp;</td></tr>
  </table>
</body>
</html>

<!--
EOT;
?>
-->