<!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="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
    <tr>
      <td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="friendlink_main.php">友情链接管理</a> &gt; 链接修改</td>
    </tr>
    <tr>
      <td>
        <form action="friendlink_edit.php" method="post" enctype="multipart/form-data" name="form1">
          <input type="hidden" name="id" value="<?php echo $myLink['id']?>">
          <input type="hidden" name="dopost" value="saveedit">
          <table width="80%" cellspacing="1" cellpadding="3" class="table table-borderless">
            <tr>
              <td width="260" height="26">网址：</td>
              <td height="26"><input name="url" type="text" id="url" value="<?php echo $myLink['url']?>" class='pubinputs' style="width:260px"></td>
            </tr>
            <tr>
              <td width="260" height="26">排列位置：</td>
              <td height="26"><input name="sortrank" type="text" id="sortrank" value="<?php echo $myLink['sortrank']?>" class='pubinputs' style="width:60px">（由小到大排列）</td>
            </tr>
            <tr>
              <td height="26">网站名称：</td>
              <td><input name="webname" type="text" id="webname" size="30" value="<?php echo $myLink['webname']?>" class='pubinputs' style="width:260px"></td>
            </tr>
            <tr>
              <td height="26">网站Logo：</td>
              <td><input name="logo" type="text" id="logo" size="40" value="<?php echo $myLink['logo']?>" style="width:260px">（88*31 gif或jpg）</td>
            </tr>
            <tr>
              <td height="26">上传Logo：</td>
              <td><input name="logoimg" type="file" id="logoimg" style="width:260px"></td>
            </tr>
            <tr>
              <td height="26">网站简况：</td>
              <td><textarea name="msg" id="msg" style="width:360px;height:50px"><?php echo dede_htmlspecialchars($myLink['msg'])?></textarea></td>
            </tr>
            <tr>
              <td height="26">站长Email：</td>
              <td><input name="email" type="text" id="email" value="<?php echo $myLink['email']?>" class='pubinputs' style="width:260px"></td>
            </tr>
            <tr>
              <td height="26">链接位置：</td>
              <td>
                <label><input type='radio' name='ischeck' value="0" <?php if($myLink['ischeck']==0) echo " checked='1' "?> />
                未审核</label>
                <label><input type='radio' name='ischeck' value="1" <?php if($myLink['ischeck']==1) echo " checked='1' "?> />
                内页</label>
                <label><input type='radio' name='ischeck' value="2" <?php if($myLink['ischeck']==2) echo " checked='1' "?> />
                首页</label>
              </td>
            </tr>
            <tr>
              <td height="26">网站类型：</td>
              <td>
                <select name="typeid" id="typeid" style="width:160px">
                  <?php
        echo " <option value='".$myLink['typeid']."'>".$myLink['typename']."</option>";
        $dsql->SetQuery("select * from #@__flinktype where id<>'".$myLink['typeid']."'");
        $dsql->Execute();
        while($row=$dsql->GetObject()){
        	echo " <option value='".$row->id."'>".$row->typename."</option>";
        }
        ?>
                </select>
              </td>
            </tr>
            <tr>
              <td colspan="2" align="center" class="py-3">
                <button type="submit" name="Submit" class="btn btn-success btn-sm">提交</button>
                <button type="reset" name="Submit" onClick="location.href='<?php echo $ENV_GOBACK_URL?>';" class="btn btn-success btn-sm">返回</button>
              </td>
            </tr>
          </table>
        </form>
      </td>
    </tr>
  </table>
</body>
</html>