<!--<?php
include_once PrintEot('left');print <<<EOT
-->
<div class="admin_info mb10">
	<h3 class="h1">插件安裝步驟</h3>
    <div class="legend"><ol><li>將插件文件上傳到 <span class="b">插件目錄(hack/)</span></li><li>在“<span class="b">未安裝插件</span>”列表中選擇安裝您需要的插件</li><li>插件安裝後請到“<a href="javascript:;" onclick="parent.PW.Dialog({id:'navside',url:'?adminjob=customnav',name:'導航設置'});"><span class="s4">全局 -> 導航設置</span></a>”設置導航顯示位置</li></ol></div>
</div>
<form action="$basename" method="post">
  <input type="hidden" name="action" value="edit">
  <h2 class="h1">已安裝插件</h2>
  <div class="admin_table mb10">
	<table cellpadding="0" cellspacing="0" width="100%">
        <tr class="tr2 vt td_bgB">
          <td>插件名稱</td>
          <td>插件目錄</td>
          <td>鏈接地址</td>
          <td>操作</td>
        </tr>
<!--
EOT;
foreach ($installdb['index'] as $key => $value) {
$value[2] = $value[2]==2 ? '直接顯示' :($value[2]==1 ? '下拉菜單顯示' : '不顯示');print <<<EOT
-->
        <tr class="tr1 vt">
          <td class="td2"><input class="input input_wa" name="hackname[$value[1]]" value="$value[0]"></td>
          <td class="td2">/hack/$value[1]</td>
          <td class="td2"><a href="hack.php?H_name={$value[1]}" target="_blank">hack.php?H_name={$value[1]}</a></td>
          <td class="td2"><a href="$admin_file?adminjob=hack&hackset=$value[1]" title="點擊管理此插件" class="mr20">[設置]</a><a href="$value[4]" onclick="return checkhackset()" title="卸載">[卸載]</a></td>
        </tr>
<!--
EOT;
}foreach ($installdb['noindex'] as $key => $value) {
$value[2] = $value[2]==2 ? '直接顯示' :($value[2]==1 ? '下拉菜單顯示' : '不顯示');print <<<EOT
-->
        <tr class="tr1 vt">
          <td class="td2"><input class="input input_wa" name="hackname[$value[1]]" value="$value[0]"></td>
          <td class="td2">/hack/$value[1]</td>
          <td class="td2"></td>
          <td class="td2"><a href="$admin_file?adminjob=hack&hackset=$value[1]" title="點擊管理此插件" class="mr20">[設置]</a><a href="$value[4]" onclick="return checkhackset()" title="卸載">[卸載]</a></td>
        </tr>
<!--
EOT;
}print <<<EOT
-->
      </table>
  </div>
  <div class="mb10 tac">
    <span class="btn"><span><button type="submit">提 交</button></span></span>
   </div>
</form>
<script type="text/javascript">
function checkhackset(){
	return confirm("卸載插件將同時刪除插件相關的數據，您確定要卸載此插件嗎?");
}
</script>
<h2 class="h1">未安裝插件</h2>
<div class="admin_table mb10">
	<table cellpadding="0" cellspacing="0" width="100%">
      <tr class="tr2 vt td_bgB">
        <td>插件名稱</td>
        <td>插件目錄</td>
        <td>操作</td>
      </tr>
<!--
EOT;
foreach ($uninstalldb as $value) {
$value[2] = $value[2]==2 ? '直接顯示' :($value[2]==1 ? '下拉菜單顯示' : '不顯示');print <<<EOT
-->
      <tr class="tr1 vt">
        <td class="td2">$value[0]</td>
        <td class="td2">/hack/$value[1]</td>
        <!--<td class="td2">$value[2]</td>-->
        <td class="td2"><a href="$value[3]">安裝</a></td>
      </tr>
<!--
EOT;
}print <<<EOT
-->
    </table>
</div>
<!--
EOT;
include_once PrintEot('adminbottom');
?>-->
