<!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=<?php echo $cfg_soft_lang; ?>" />
<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/main.js"></script>
<script type="text/javascript" src="templets/js/leftmenu.js"></script>
<script type="text/javascript" src="templets/js/load.js"></script>
<script type="text/javascript" src="templets/js/checkSubmit.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="shangjia_edit.php?aid=<?php echo $aid;?>" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
    <input type="hidden" name="dopost" value="save" />
    <input type="hidden" name="idhash" value="<?php echo md5($aid.$cfg_cookie_encode); ?>" />
    <div class="postForm">
      <p>
        <label>信息标题：</label>
        <input name="title" type="text" id="title" value="<?php echo $row['title']?>" maxlength="100" class="intxt" style="width:400px;"/>
      </p>
      <?php
              if($cInfos['dfcid']>0) {
              	echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />";
              }else{
            ?>
      <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
           		 }
            ?>
      <p>
        <label>网站类型：</label>
        <input type="radio" value="淘宝店" class="np" name="sjtype" <?php if($addRow["sjtype"]=='淘宝店') echo " checked";?>>
        淘宝店
        <input type="radio" value="拍拍店" class="np" name="sjtype"  <?php if($addRow["sjtype"]=='拍拍店') echo " checked";?>>
        拍拍店
        <input type="radio" value="独立网站" class="np" name="sjtype" <?php if($addRow["sjtype"]=='独立网站') echo " checked";?>>
        独立网站 </p>
      <p>
        <label>网站地址：</label>
        <input type="text" value="<?php echo $addRow['shopurl']?>" class="intxt" style="width:250px" id="shopurl" name="shopurl">
      </p>
      <p>
        <label>主营项目：</label>
        <select style="width:150px" name="xiangmu">
          <?php
    $xmname = $addRow['xiangmu'];
                if(!empty($xmname)) echo "<option value='$xmname' selected>$xmname</option>\r\n";
                ?>
          <option value="男女服装">男女服装</option>
          <option value="鞋包">鞋包</option>
          <option value="配饰">配饰</option>
          <option value="母婴用品">母婴用品</option>
          <option value="美容美体">美容美体</option>
          <option value="数码家电">数码家电</option>
          <option value="家居建材">家居建材</option>
          <option value="美食特产">美食特产</option>
          <option value="个性创意">个性创意</option>
          <option value="书籍文化">书籍文化</option>
          <option value="汽车用品">汽车用品</option>
          <option value="其它">其它</option>
        </select>
      </p>
      <p>
        <label>佣金形式：</label>
        <input type="radio" value="按成交付费" class="np" name="paytype" <?php if($addRow["paytype"]=='按成交付费') echo " checked";?>>
        按成交付费
        <input type="radio" value="按点击付费" class="np" name="paytype" <?php if($addRow["paytype"]=='按点击付费') echo " checked";?>>
        按点击付费
        <input type="radio" value="包月广告" class="np" name="paytype" <?php if($addRow["paytype"]=='包月广告') echo " checked";?>>
        包月广告 </p>
      <p>
        <label>网站介绍：</label>
        <textarea  class="intxt" name="body"><?php echo $addRow['body']?></textarea>
      </p>
      <?php
      		//游客强制加验证码，会员则判断后台开关
      		if(preg_match("/3/",$safe_gdopen)){
      	   ?>
      <p>
        <label>验证码：</label>
        <input class="intxt" name="vdcode" type="text" id="vdcode" size="10" 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>
      <?php }?>
      <p>
        <button type="submit" style="margin-left:105px;" class="btn">提交</button>
        <button onclick="location.reload();" type="reset" style="margin-left:5px;" class="btn">重置</button>
      </p>
    </div>
  </form>
  <!--主操作区域 -->
</div>
</div>
<?php
   alltemp("footer.htm");
?>
</body>
</html>