<!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=Catalog" 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>
<form id="cform" method="post" action="index.php?m=mod_b2b&c=Catalog&a=Save">
<div id="content" class="cwarpper">
<div class="cbodyHead"></div>
<div class="cwarpper1">
<div class="ctitle">类目信息修改</div>
<table border="1" id="ctable1" class="ctable" bordercolor="#86B9D6">
  <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">
      <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="keyword" size="25" value="{$item['keyword']}"/></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="submit" value="修 改" class="button"/>
      <input type="button" value="取 消" onclick="disp('adddiv')" class="button"/>
    </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;
</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;
    }
  }
</script>
</body>
</html>
