<!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"/>
<link rel="stylesheet" type="text/css" href="{$vd['sc']}css/main.css"/>
</head>
<body>
<!--$item = $vd['item'];-->
<div id="titleDiv">
<div style="float:left"><a href="index.php?a=Home"><img src="{$vd['sc']}images/home.png" style="vertical-align:middle" border="0"/></a></div><div style="float:left;padding-top:8px;padding-left:3px;"><a href="index.php?a=Home" title="回到后台首页"><font color="#000">桌面</font></a> <span style="font-size:7px;">>></span> <!--if($vd['parent']['name'] != '支付类'){--><a href="index.php?m=mod_b2b&c=CatWap" title="简类列表"><font color="#000">简类列表</font></a> <!--}else{--><a href="index.php?m=mod_b2b&c=CatWap&a=coupon" title="兑换类" onclick="loadDisp(1)"><font color="#000">兑换类列表</font></a><!--}--> <span style="font-size:7px;">>></span> <span style="font-size:12px;">{$item['name']}</span></div>
<div style="float:right;"><a href="index.php?m=mod_home&a=Help&t=admin_b2b_poll_index" onFocus="this.blur()" title="查看简类相关帮助"><img src="{$vd['sc']}images/help.gif" style="vertical-align:middle" border="0"/></a></div>
</div>
<div id="contentTip" style="display:none;"></div>
<form id="cform" method="post" action="index.php?m=mod_b2b&c=CatWap&a=Save">
<div id="content" class="cwarpper">
<div class="cbodyHead"></div>
<div class="cwarpper1">
<div class="ctitle">简类信息修改</div>
<table border="0" id="ctable1" class="ctable">
  <tr>
    <td class="tablelt">简类名称</td>
    <td class="tablert"><input type="text" name="name" size="25" value="{$item['name']}"/></td>
  </tr>
  <tr>
    <td class="tablelt">上级简类编号</td>
    <td class="tablert">
      <input type="text" name="parentid" size="25" value="{$item['parentid']}"/>
      <span class="spantip">0表示没有上级</span>
    </td>
  </tr>
  <tr>
    <td class="tablelt">简类颜色</td>
    <td class="tablert">
      <div style="float:left"><input type="text" name="color" id="textcolor0" size="25" value="{$item['color']}"/></div>
      <div onclick="pickcolor(0)" id="colorexample0" style="float:left;cursor:pointer;height:22px;margin-left:5px;margin-top:1px;width:16px;border:0px #fff solid;background:<!--echo $item['color']==''?'#000000':$item['color'];-->"/></div>
    </td>
  </tr>
  <tr>
    <td class="tablelt">排列序号</td>
    <td class="tablert">
      <input type="text" name="ordering" size="25" value="{$item['ordering']}"/>
    </td>
  </tr>
  <tr>
    <td class="tablelt">首字母</td>
    <td class="tablert"><input type="text" name="pinyin" size="25" value="{$item['pinyin']}"/></td>
  </tr>
  <tr>
    <td class="tablelt">是否热门</td>
    <td class="tablert"><input type="checkbox" name="hot" size="25" value="1" class="checkbox" {#ToggleCheck($item['hot'])}/></td>
  </tr>
  <tr>
    <td class="tablelt">关联商品：</td>
    <td class="tablert">
    <input type="text" name="pids" size="25" value="{$item['pids']}"/> <span class="spantip">您要关联的商品</span></td>
  </tr>
  <tr>
    <td class="tablelt">对应图标</td>
    <td class="tablert">
       <img src="{$vd['root']}content/mod_shared/skins/upload/{$item['pics']}" id="picsimg" border="0"/>
       <br/><input type="text" id="pics" name="pics" value="{$item['pics']}" size="25"/> 
    </td>
  </tr>
  <tr> 
    <td class="tablelt">选择图标</td>
    <td class="tablert">
       <div class="search_s">
         <span class="search_s1">
           <select class="search_select" onchange="setbankicon(this)">
             <option value="qqhy.gif" <!--if($item['pics']=='qqhy.gif'){-->selected<!--}-->>QQ会员</option>
             <option value="qqdnf.gif" <!--if($item['pics']=='qqdnf.gif'){-->selected<!--}-->>DNF</option>
             <option value="qqfenz.gif" <!--if($item['pics']=='qqfenz.gif'){-->selected<!--}-->>QQ粉钻</option>
             <option value="qqhuanz.gif" <!--if($item['pics']=='qqhuanz.gif'){-->selected<!--}-->>QQ黄钻</option>
             <option value="qqziz.gif" <!--if($item['pics']=='qqziz.gif'){-->selected<!--}-->>QQ紫钻</option>
             <option value="qqhz.gif" <!--if($item['pics']=='qqhz.gif'){-->selected<!--}-->>QQ红钻</option>
             <option value="qqlanz.gif" <!--if($item['pics']=='qqlanz.gif'){-->selected<!--}-->>QQ蓝钻</option>
             <option value="qqlv.gif" <!--if($item['pics']=='qqlv.gif'){-->selected<!--}-->>QQ绿钻</option>
             <option value="qqcf.gif" <!--if($item['pics']=='qqcf.gif'){-->selected<!--}-->>CF会员</option>
             <option value="qqdushu.gif" <!--if($item['pics']=='qqdushu.gif'){-->selected<!--}-->>QQ读书</option>
             <option value="qqxunx.gif" <!--if($item['pics']=='qqxunx.gif'){-->selected<!--}-->>寻仙</option>
             <option value="qqyinxingz.gif" <!--if($item['pics']=='qqyinxingz.gif'){-->selected<!--}-->>QQ音信贵族</option>
             <option value="qqjiaoy.gif" <!--if($item['pics']=='qqjiaoy.gif'){-->selected<!--}-->>QQ交友</option>
             <option value="bank_no.gif" <!--if($item['pics']=='bank_no.gif'){-->selected<!--}-->>自定义..</option>
           </select>
         </span>
       </div>
    </td>
  </tr>
  <tr> 
    <td width="10%" align="right" height="46">上传图标：</td>
    <td width="90%" height="47">
    <iframe name="uploader" src="index.php?m=com_fs&c=Fs&imgid=imgid&fun=imginfo&inputid=pics&d=2" frameBorder="0" marginHeight="1" marginWidth="1" scrolling="no" style="height:30px;width:100%; background-color:#EEF7FD"></iframe>
    <div id="imgid"></div><div id="imgsize"></div>
    </td>
  </tr>
  <tr>
    <td class="tablelt" style="height:80px"></td>
    <td class="tablert">
      <input type="submit" value="修 改 &gt;&gt" class="btn"/>
      <input type="reset" value="重 置" class="btn"/>
    </td>
  </tr>
</table>
<input type="hidden" value="{$item['id']}" name="id" id="id"/>
</div>
<div class="cbodyFoot"></div>
</div>
<div id="opcontent" style="display:none">
  <div class="optxt">
    
  </div>
</div>
</form>
<script type="text/javascript">
  sc = "{$vd['sc']}";
  var ctablenum = 2;
  function imginfo(imgsrc)
  {
  document.getElementById("imgsize").innerHTML = "高 x 宽：" + imgsrc.height + " x " + imgsrc.width + "<br/>图片大小：" + imgsrc.fileSize + " 字节"; 
  }
</script>
<script src="{$vd['sc']}js/content.js" type="text/javascript"></script>
<script type="text/javascript">
  function pickcolor(id) 
  {
    var color = showModalDialog("{$vd['sc']}tools/colorselect.htm", "", "font-family:Verdana; font-size:12; status:no; dialogWidth:21em; dialogHeight:21em");
    if (color != null) 
    {
      $("colorexample"+id).style.backgroundColor = color;
      $("textcolor"+id).value = color;
    }
  }
  function setbankicon(obj)
  {
    val = obj.value;
    $("picsimg").src = "{$vd['root']}content/mod_shared/skins/upload/" + val;
    $("pics").value = val;
  }
  
  function setct(val)
  {
    $("cttr").style.display = val == 3 ? "" : "none";
  }
</script>
</body>
</html>
