<!DOCTYPE html>
<html>
<head>
  <meta charset="<?php echo $cfg_soft_lang; ?>">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <title>网站类型管理</title>
  <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  <link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body>
  <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
    <form name="form1" action="friendlink_type.php" method="post">
      <input type="hidden" name="dopost" value="save">
      <tr>
        <td height="26" background="../static/web/img/tbg.gif" colspan="9" style="padding-left:10px">
          <a href="friendlink_main.php">友情链接管理</a>&nbsp;
          <a href="friendlink_add.php" class="btn btn-success btn-sm">增加链接</a>
          <a href="friendlink_type.php" class="btn btn-success btn-sm">网站类型管理</a>
          <a href='../apps/flink_add.php' target='_blank' class="btn btn-success btn-sm">外部申请表单</a></td>
      </tr>
      <tr bgcolor="#F8FCF1">
        <td width="4%" height="26" align="center">类型ID</td>
        <td width="60%" align="center">网站名称</td>
        <td width="36%" align="center">状态</td>
      </tr>
      <?php
	$dsql->SetQuery("Select * From #@__flinktype");
	$dsql->Execute();
	$k=0;
	while($row = $dsql->GetObject())
	{
      $k++;
	?>
      <input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id?>">
      <tr align="center">
        <td height="26"><?php echo $row->id; ?>
        </td>

        <td height="26"><input name="pname_<?php echo $k?>" value="<?php echo $row->typename?>" type="text" id="pname_<?php echo $k?>" class='pubinputs' style="width:90%"></td>
        <td>
          <label><input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1'
            class='np'>
          保留 </label></td>
      </tr>
      <?php
	}
	?>
      <input type="hidden" name="idend" value="<?php echo $k?>">
      <tr bgcolor="#F8FCF1">
        <td height="26" colspan="5" bgcolor="#f8f8f8">新增一个网站类型：</td>
      </tr>
      <tr height="26" align="center">
        <td colspan="2">
          <input name="pname_new" type="text" id="pname_new" class='pubinputs' style="width:90%"></td>

        <td align="center">
          <label><input name="check_new" type="checkbox" id="check_new" value="1" checked='1' class='np'>
          新增 </label></td>
      </tr>
      <tr>
        <td height="26" colspan="5" align="center" bgcolor="#f8f8f8">
          <input name="imageField" type="submit" class="np coolbg" value="确定"></td>
      </tr>
    </form>
  </table>
</body>
</html>