<!--
<?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;{$labelFaqManageBrownseFaq}</span></td>
            <td width="40%" align="right"><a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=faq&menu=faq_add&&menuid={$menuid}">{$labelFaqManageAddFaq}</a></td>
          </tr>
        </table>
        <form action="index.php?lang={$kuWebsiteEditVersionLanguage}&path=system&menu=faq_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">
<!--
EOT;
foreach($faqSecondNavList as $key=>$secondNav)
{
echo <<<EOT
-->
<a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=faq&menu=faq_action&menuid={$menuid}&secondnavid={$secondNav['id']}&searchtype=secondnav">{$secondNav['menutitle']}</a>&nbsp;&nbsp;&nbsp;&nbsp;            
<!--
EOT;
}
echo <<<EOT
-->
                </span>
              </td>
            </tr>
          </table>
        </form>
        <form name='myform' action="index.php?lang={$kuWebsiteEditVersionLanguage}&path=faq&menu=faq_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="40%" align="center">{$labelFaqManageTitle}</td>
              <td width="10%" align="center" >{$labelModelCommonBelongToSecondNavigation}</td>
              <td width="10%" align="center" >{$labelModelCommonBelongToThirdNavigation}</td>
              <td width="10%" align="center" >{$labelModelCommonManageState}</td>
              <td width="10%" align="center" >{$labelModelCommonManageUpdateTime}</td>
              <td width="10%"align="center" >{$labelModelCommonManageOperate}</td>
            </tr>
<!--
EOT;
foreach($faqList as $key=>$value)
{
$strSql = "select * from {$configTableHead}menu where id={$value['type2']}";
$rowType2 = $dbInstance->getOne($strSql);
$strSql = "select * from {$configTableHead}menu where id={$value['type3']}";
$rowType3 = $dbInstance->getOne($strSql);
echo <<<EOT
-->
            <tr>
              <td align="center"><input type="checkbox" name="id[]" value="{$value['id']}" /></td>
              <td align="center">{$value['id']}</td>
              <td align="center">{$value['faqtitle']}</td>
              <td align="center">{$rowType2['menutitle']}</td>
              <td align="center" >{$rowType3['menutitle']}</td>
              <td align="center" >             
EOT;
if(1 == $value['status']){echo "$labelModelCommonStateRelease";}
else{echo "$labelModelCommonStateDraft";}
echo <<<EOT
              </td>
              <td align="center" >{$value['updatetime']}</td>
              <td align="center" >
                <a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=faq&menu=faq_modify&menuid={$menuid}&id={$value['id']}">{$labelCommonEdit}</a>
                <a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=faq&menu=faq_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="8">
                <input name="selectAllCheckBox"  type="checkbox" onclick="checkCheckBoxAll(this.form)">
                {$labelFaqManageDeleteAllDesc} 
                <input name="submit" type='submit' value='{$labelModelCommonManageDeleteAll}' onclick="return confirm('{$promptConfirmDelete}')"> 
              </td>
            </tr>
            <tr>
              <td colspan="8" align="center">
EOT;
$test = new Pages($totalNumber, $page, $maxNum, $adminPagingActionsDisplayNumber, $adminPagingType, $adminPagingIsAlwaysShowFirstOrLast);
if('secondnav' == $searchtype && !empty($secondnavid))
{
  echo $test->disp('page', "index.php?lang={$kuWebsiteEditVersionLanguage}&path=faq&menu=faq_action&menuid={$menuid}&searchtype={$searchtype}&secondnavid={$secondnavid}"); 
}
else
{
  echo $test->disp('page', "index.php?lang={$kuWebsiteEditVersionLanguage}&path=faq&menu=faq_action&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;
?>
-->