<!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=gb2312" />
<title>修改网站- 会员中心 -<?php echo $cfg_webname; ?></title>
<link href="<?php echo $cfg_cmspath; ?>/statics/css/index.css" rel="stylesheet" type="text/css" />
<link href="templets/style/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" src="templets/js/inputAutoClear.js"></script>
<script type="text/javascript" src="templets/js/calendar/calendar.js"></script>
<script type="text/javascript" src="templets/js/checkSubmit.js"></script>
<script type="text/javascript" src="../sitedata/common.js"></script>
<script>
function changeAuthCode() {
	var num = 	new Date().getTime();
	var rand = Math.round(Math.random() * 10000);
	num = num + rand;
	$('#ver_code').css('visibility','visible');
	if ($("#vdimgck")[0]) {
		$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
	}
	return false;	
}
</script>
</head>
<body>
<?php
   alltemp("header_member.htm");
?>
<div id="content" class="w960 clearfix">
  <?php include(DEDEMEMBER."/templets/menu.php"); ?>
  <div class="setting_box fl">
    <div class="settings_title"><b>修改网站信息</b></div>
      <form name="addcontent" action="site_edit.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
      <input type="hidden" name="dopost" value="save" />
      <input type="hidden" name="aid" value="<?php echo $row['id']; ?>" />
      <input type="hidden" name="idhash" value="<?php echo md5($row['aid'].$cfg_cookie_encode); ?>" />
      <input type="hidden" name="sortrank" value="<?php echo $row['senddate']; ?>" />
      <input type="hidden" name="oldlitpic" value="<?php echo (isset($row['litpic']) ? $row['litpic'] : ''); ?>" />
        <div class="postForm">
          <p>
            <label>网站名称：</label>
            <input name="title" type="text" id="title" value="<?php echo $row['title']?>" maxlength="100" class="intxt"/>
          </p>
                  <p>
          <label>网站域名：</label>
          <input type='text' name='weburl' id='weburl' class='intxt' value='<?php echo $addRow['weburl']?>'/>
          <input type="button" class="btn" id="meta_btn" value="抓取Meta" onClick="getmeta()">
        </p>
          <p>
            <label>隶属栏目：</label>
		    <?php
    			$typeOptions = GetOptionList($row["typeid"],$row["channel"]);
    			echo "<select name='typeid' size='1'>\r\n";
    			echo $typeOptions;
    			echo "</select>";
		?>
(只允许并且必须选择白色背景的项目<span style="color:#F00">*</span>) 
          </p>
           <?php
              if($row['litpic']!=''){
           ?>
         <p>
            <label>缩略图：</label>
           <img name="nlitpic" src='<?php echo $row['litpic']; ?>'  />
           <br />
                <label>更新缩略图：</label> <input type="radio" name="isnewpic" class="np" value="0"<?php if($addRow["uppic"]==-1) echo " checked";?>>
              不需要
                      <input name="isnewpic" type="radio" class="np" value="1"<?php if($addRow["uppic"]!=-1) echo " checked";?>>
              需要
         </p>
         <?php }?>
                  <p>
          <label>关键词：</label>
          <input name="tags" type="text" id="tags" value="<?php echo $row['keywords']?>" class="intxt"/>
        </p>
        <p>
          <label>网站简介：</label>
          <textarea name="body" type="text" id="body" maxlength="200" class="intxt"/><?php echo $addRow['body']?></textarea>
        </p>
        <p>
          <label>BaiduRank：</label>
          <input type='text' name='brank' id='brank' class='intxt' value='<?php echo $addRow['brank']?>' /> <input type="button" class="btn" id="data_btn" value="获取数据" onClick="getdata()">
        </p>
        <p>
          <label>PageRank：</label>
          <input type='text' name='grank' id='grank'  class='intxt' value='<?php echo $addRow['grank']?>' />
        </p>
        <p>
          <label>SogouRank：</label>
          <input type='text' name='srank' id='srank' class='intxt' value='<?php echo $addRow['srank']?>' />
        </p>
        <p>
          <label>AlexaRank：</label>
          <input type='text' name='arank' id='arank' class='intxt' value='<?php echo $addRow['arank']?>' />
        </p>
        <p>
          <label>访客性别：</label>
          <input type="radio"  value="男性" class="np" name="fksex" <?php if($addRow["fksex"]=='男性') echo " checked";?>>
          男性
          <input type="radio" value="女性" class="np" name="fksex" <?php if($addRow["fksex"]=='女性') echo " checked";?>>
          女性
          <em>（主要访客性别）</em> </p>
        <p>
          <label>广告价格：</label>
          <select size="1" name="adprice">
          <?php
   if($addRow["adprice"]!="") echo "<option value=\"".$addRow["adprice"]."\">".$addRow["adprice"]."</option>\r\n";
                ?>
            <option >请选择价格区间...</option>
            <option value="1-100" class="option3">1-100</option>
            <option value="100-200" class="option3">100-200</option>
            <option value="200-300" class="option3">200-300</option>
            <option value="300-500" class="option3">300-500</option>
            <option value="500-800" class="option3">500-800</option>
            <option value="800-1000" class="option3">800-1000</option>
            <option value="1000以上" class="option3">1000以上</option>
          </select>
          <em>（/月）</em></p>
           <p> <label>验证码：</label>
            <input name="vdcode" type="text" id="vdcode"   maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />  
           <img id="vdimgck" src="../include/vdimgck.php" alt="看不清？点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" /><a href="javascript:void(0)" onclick="changeAuthCode();">点击更换</a>
         </p>
<p>          <button class="btn" style="margin-left:105px" type="submit">提交</button>
          <button class="btn" type="reset" onclick="location.reload();">重置</button>
        </p>
    </div>
      </form>
    <!--主操作区域 -->
  </div>
</div>
<?php
   alltemp("footer.htm");
?>
</body>
</html>
