<!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> <a href="index.php?m=mod_b2b&c=Category" title="分类列表"><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=Category&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">
  <!-- if(1){-->
  <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">
    <span<!--if(!UB_B2B){--> style="display:none"<!--}-->><input type="checkbox" name="forb2b" value="1" class="checkbox"  {#ToggleCheck($item['forb2b'])}/>批发系统可见</span>
    <span<!--if(!UB_B2C){--> style="display:none"<!--}-->><input type="checkbox" name="forb2c" value="1" class="checkbox"  {#ToggleCheck($item['forb2c'])}/>零售系统可见</span>
    <span<!--if(!UB_YKT){--> style="display:none"<!--}-->><input type="checkbox" name="forykt" value="1" class="checkbox"  {#ToggleCheck($item['forykt'])}/>一卡通系统可见</span>
    </td>
  </tr>
  <tr <!--if(!UB_B2B){--> style="display:none"<!--}-->>
    <td class="tablelt">是否共享给自有商品</td>
    <td class="tablert">
    <input type="checkbox" name="shared" value="1" class="checkbox" {#ToggleCheck($item['shared'])}/>共享
    </td>
  </tr>
  <tr>
    <td class="tablelt">分类简介：</td>
    <td class="tablert">
    <input type="text" name="abst" size="25" value="{$item['abst']}"/> <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 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>
  <!--}else{-->
  <tr>
    <td class="tablelt">卡类名称</td>
    <td class="tablert">
      <input type="hidden" name="coupon" value="1"/>
      <input type="hidden" name="parentid" value="{$item['parentid']}"/>
      <input type="text" name="name" value="{$item['name']}" size="25"/>
    </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="fee" value="{$item['fee']}" size="25"/></td>
  </tr>
  <tr>
    <td class="tablelt">编码</td>
    <td class="tablert"><input type="text" name="code" value="{$item['code']}" size="25"/></td>
  </tr>
  <tr>
    <td class="tablelt">是否可用</td>
    <td class="tablert">
    <input type="checkbox" name="fork2k" value="1" class="checkbox"  {#ToggleCheck($item['fork2k'])}/>换卡站可见
    </td>
  </tr>
  <tr>
    <td class="tablelt">使用方式</td>
    <td class="tablert">
    <input type="radio" name="gateway" value="1" class="checkbox" onclick="setct(1)" <!--if($item['gateway']==1){-->checked<!--}-->/>网关
    <input type="radio" name="gateway" value="2" class="checkbox" onclick="setct(2)" <!--if($item['gateway']==2){-->checked<!--}-->/>手动
    <input type="radio" name="gateway" value="3" class="checkbox" onclick="setct(3)" <!--if($item['gateway']==3){-->checked<!--}-->/>自定义
    </td>
  </tr>
  <tr <!--if($item['gateway']!=3){-->style="display:none;"<!--}--> id="cttr">
    <td class="tablelt">充值账号</td>
    <td class="tablert"><input type="text" name="czaccount" value="{$item['czaccount']}" size="25"/>
      <strong onmouseover="showhide(this);" onmouseout="showhide(this);">[?]</strong><p>需要百信卡盟系统审核通过才可以，否则系统是不会自动把点数充入您预先设置的账号的，您可以在对应的面值处察看审核状态<br/> 兑换类列表 -> 面值管理 -> 点击编辑按钮</p>
    </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="pay_yd.gif" <!--if($item['pics']=='pay_yd.gif'){-->selected<!--}-->>神州行充值卡</option>
             <option value="pay_sd.gif" <!--if($item['pics']=='pay_sd.gif'){-->selected<!--}-->>盛大游戏卡</option>
             <option value="pay_5173.gif" <!--if($item['pics']=='pay_5173.gif'){-->selected<!--}-->>5173充值卡</option>
             <option value="pay_rx.gif" <!--if($item['pics']=='pay_rx.gif'){-->selected<!--}-->>热血传奇卡</option>
             <option value="pay_lt.gif" <!--if($item['pics']=='pay_lt.gif'){-->selected<!--}-->>联通充值卡</option>
             <option value="pay_sh.gif" <!--if($item['pics']=='pay_sh.gif'){-->selected<!--}-->>搜狐一卡通</option>
             <option value="pay_ms.gif" <!--if($item['pics']=='pay_ms.gif'){-->selected<!--}-->>魔兽世界卡</option>
             <option value="pay_qq.gif" <!--if($item['pics']=='pay_qq.gif'){-->selected<!--}-->>QQ币卡</option>
             <option value="pay_jw.gif" <!--if($item['pics']=='pay_jw.gif'){-->selected<!--}-->>骏网一卡通</option>
             <option value="pay_9y.gif" <!--if($item['pics']=='pay_9y.gif'){-->selected<!--}-->>久游一卡通</option>
             <option value="pay_wm.gif" <!--if($item['pics']=='pay_wm.gif'){-->selected<!--}-->>完美一卡通</option>
             <option value="pay_sx.gif" <!--if($item['pics']=='pay_sx.gif'){-->selected<!--}-->>声讯支付</option>
             <option value="pay_zt.gif" <!--if($item['pics']=='pay_zt.gif'){-->selected<!--}-->>征途游戏卡</option>
             <option value="pay_wy.gif" <!--if($item['pics']=='pay_wy.gif'){-->selected<!--}-->>网易一卡通</option>
             <option value="pay_mb.gif" <!--if($item['pics']=='pay_mb.gif'){-->selected<!--}-->>目标一卡通</option>
             <option value="pay_js.gif" <!--if($item['pics']=='pay_mb.gif'){-->selected<!--}-->>金山一卡通</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>
