<!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=Mini&a=Home" title="Mini直销首页"><font color="#000">Mini直销首页</font></a> <span style="font-size:7px;">>></span> <a href="index.php?m=mod_b2b&c=Mini" title="Mini平台左栏列表"><font color="#000">Mini平台左栏列表</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="查看Mini平台左栏相关帮助"><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=Mini&a=Save">
<div id="content" class="cwarpper">
<div class="cbodyHead"></div>
<div class="cwarpper1">
<div class="ctitle">Mini平台左栏信息修改</div>
<table border="1" id="ctable1" class="ctable" bordercolor="#86B9D6">
  <tr>
    <td width="30%">显示文本</td>
    <td width="70%"><input type="text" name="name" size="25" value="{$item['name']}"/></td>
  </tr>
  <tr>
    <td width="30%">样式类型</td>
    <td width="70%">
      <select name="clstype">
        <option value="0"<!--if($item['clstype']==0){--> selected<!--}-->>已有类背景图</option>
        <option value="1"<!--if($item['clstype']==1){--> selected<!--}-->>自定义背景图</option>
      </select>
    </td>
  </tr>
  <tr> 
    <td width="30%">上传图标：</td>
    <td width="70%" height="47">
    <iframe name="uploader" src="index.php?m=com_fs&c=Fs&imgid=imgid&fun=imginfo&inputid=cls&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 width="30%">样式</td>
    <td width="70%"><input type="text" name="cls" id="cls" size="25" value="{$item['cls']}"/></td>
  </tr>
  <tr>
    <td width="30%">链接类型</td>
    <td width="70%">
      <select name="urltype">
        <option value="0"<!--if($item['urltype']==0){--> selected<!--}-->>商品</option>
        <option value="1"<!--if($item['urltype']==1){--> selected<!--}-->>商品关键词</option>
        <option value="2"<!--if($item['urltype']==2){--> selected<!--}-->>自定义链接</option>
      </select>
    </td>
  </tr>
  <tr>
    <td width="30%">链接</td>
    <td width="70%"><input type="text" name="urltxt" size="25" value="{$item['url']}"/></td>
  </tr>
  <tr>
    <td width="30%">排序</td>
    <td width="70%"><input type="text" name="ordering" size="25" value="{$item['ordering']}"/></td>
  </tr>
  <tr>
    <td width="30%">是否默认</td>
    <td width="70%"><input type="checkbox" name="isdefault" class="checkbox" value="1" <!--if($item['isdefault']==1){-->checked<!--}-->/></td>
  </tr>
  <tr>
    <td width="30%"></td>
    <td width="70%">
      <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;
  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">
</script>
</body>
</html>
