<!--
<?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;{$labelMessageManageBrownseMessage}</span></td>
            <td width="40%" align="right">&nbsp;&nbsp;</td>
          </tr>
        </table>
        <form action="index.php?lang={$kuWebsiteEditVersionLanguage}&path=system&menu=message_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=message&menu=message_action&menuid={$menuid}&searchtype=all">{$labelMessageManageAllInfomation}</a>&nbsp;&nbsp;&nbsp;&nbsp;    
                  <a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=message&menu=message_action&menuid={$menuid}&searchtype=notrevert">{$labelMessageManageNotRevertInfomation}</a>&nbsp;&nbsp;&nbsp;&nbsp;  
                  <a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=message&menu=message_action&menuid={$menuid}&searchtype=reverted">{$labelMessageManageRevertedInfomation}</a>&nbsp;&nbsp;&nbsp;&nbsp;    
                </span>
              </td>
            </tr>
          </table>
        </form>
        <form name='myform' action="index.php?lang={$kuWebsiteEditVersionLanguage}&path=message&menu=message_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="20%" align="center">{$labelMessageManageTitle}</td>
              <td width="10%" align="center" >{$labelModelCommonBelongToSecondNavigation}</td>
              <td width="10%" align="center" >{$labelModelCommonBelongToThirdNavigation}</td>
              <td width="10%" align="center">{$labelMessageManageName}</td>
              <td width="10%" align="center">{$labelMessageManageEmail}</td>
              <td width="5%" align="center">{$labelMessageManageRevertCheck}</td>
              <td width="10%" align="center">{$labelMessageManageFromIP}</td>
              <td width="10%"align="center">{$labelModelCommonManageOperate}</td>
            </tr>
<!--
EOT;
foreach($messageList as $key=>$value)
{
?>
-->
            <tr>
              <td align="center"><input type="checkbox" name="id[]" value="<?php echo $value['id']; ?>" /></td>
              <td align="center"><?php echo removeXSS($value['id']); ?></td>
              <td align="center"><?php echo removeXSS($value['messagetitle']); ?></td>
              <td align="center"><?php echo $menuList[$value['type2']]; ?></td>
              <td align="center"><?php echo $menuList[$value['type3']]; ?></td>
              <td align="center"><?php echo removeXSS($value['username']); ?></td>
              <td align="center" ><?php echo removeXSS($value['email']); ?></td>
              <td align="center" >             
<?php
if(1 == $value['status']){echo '{$labelCommonYes}';}
else{echo '{$labelCommonNo}';}
echo <<<EOT
              </td>
              <td align="center" >{$value['ipaddress']}</td>
              <td align="center" >
                <a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=message&menu=message_modify&menuid={$menuid}&id={$value['id']}">{$labelCommonEdit}</a>
                <a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=message&menu=message_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)">
                {$labelMessageManageDeleteAllDesc} 
                <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=message&menu=message_action&menuid={$menuid}");
}
else if('notrevert' == $searchtype)
{
echo $test->disp('page', "index.php?lang={$kuWebsiteEditVersionLanguage}&path=message&menu=message_action&searchtype={$searchtype}&menuid={$menuid}");
}
else if('reverted' == $searchtype)
{
echo $test->disp('page', "index.php?lang={$kuWebsiteEditVersionLanguage}&path=message&menu=message_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;
?>
-->