<!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" />
<title></title>
<link href="css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="js/jquery.js"></script>
<script type="text/javascript" language="javascript">
<!--
$(function(){
$.each( $('.table_content'),
function(){
$(this).bind('mouseover',function(){$(this).css('background-color','#d9e8fd');});
$(this).bind('mouseout',function(){$(this).css('background-color','#e6f2fe');});
}
);
$('#IsLink').bind('click',function(){ckeck_type()});
$('#IsLink2').bind('click',function(){ckeck_type()});
get_category(<!--Kw[$PID]-->);
ckeck_type();
});
function get_category( id )
{
	$.get("get_category2.php","id="+id,function(data){$('#category').html(data)});
}

function simOptionClick4IE(){    
    var evt=window.event  ;    
    var selectObj=evt?evt.srcElement:null;    
    if (evt && selectObj &&  evt.offsetY && evt.button!=2    
        && (evt.offsetY > selectObj.offsetHeight || evt.offsetY<0 ) ) {    
            var oldIdx = selectObj.selectedIndex;    
   
            setTimeout(function(){    
                var option=selectObj.options[selectObj.selectedIndex];    
                get_category( selectObj.options.value );
            }, 60);    
    }    
}    

function ckeck_type()
{
	if($('#IsLink').attr('checked')==false)
	{
		$('#link_area').hide();
	}
	else
	{
		$('#link_area').show();
	}
}
-->
</script>
</head>

<body>
<table width="100%" border="0" cellspacing="0">
  <tr height="184">
    <td align="left" valign="top" class="table_bg">
      <div class="boxtitle"><!--Kw[$title]--></div>
	<form action="add_category.php?type=<!--Kw[$stype]-->&id=<!--Kw[$id]-->" method="post" name="form1" id="form1">
      <table width="60%" border="0">
        <tr class="table_content">
          <td>分类名称</td>
          <td><input name="Name" type="text" id="Name" value="<!--Kw[$Name]-->" size="40" /></td>
        </tr>
        <tr class="table_content">
          <td>所属上级分类</td>
          <td><span id="category"></span></td>
        </tr>
        <tr class="table_content">
          <td>关键字</td>
          <td><input name="Keywords" type="text" id="Keywords" value="<!--Kw[$Keywords]-->" size="40" /></td>
        </tr>
        <tr class="table_content">
          <td>描述</td>
          <td><textarea name="Describe" rows="5" id="Describe"><!--Kw[$Describe]--></textarea></td>
        </tr>
        <tr class="table_content">
          <td>类型</td>
          <td><input type="radio" name="IsLink" id="IsLink" value="1" <!--Kw[if $IsLink==1]-->checked="true"<!--Kw[/if]-->/>链接
      <input type="radio" name="IsLink" id="IsLink2" value="0" <!--Kw[if $IsLink==0]-->checked="true"<!--Kw[/if]-->/>分类</td>
        </tr>
        <tr class="table_content">
          <td>是否显示</td>
          <td><input type="radio" name="IsOpen" id="IsOpen" value="1" <!--Kw[if $IsOpen==1]-->checked="true"<!--Kw[/if]-->/>显示
      <input type="radio" name="IsOpen" id="IsOpen2" value="0" <!--Kw[if $IsOpen==0]-->checked="true"<!--Kw[/if]-->/>隐藏</td>
        </tr>
        <tr class="table_content">
          <td>加入酷站</td>
          <td><input type="radio" name="IsInKu" id="IsInKu" value="1" <!--Kw[if $IsInKu==1]-->checked="true"<!--Kw[/if]-->/>是
      <input type="radio" name="IsInKu" id="IsInKu2" value="0" <!--Kw[if $IsInKu==0]-->checked="true"<!--Kw[/if]-->/>否</td>
        </tr>
        <tr id="link_area" class="table_content">
          <td>链接</td>
          <td><input name="Link" type="text" id="Link" value="<!--Kw[$Link]-->" size="40" /></td>
        </tr>
        <tr class="table_content">
          <td>排序</td>
          <td><input name="Order" type="text" id="Order" value="<!--Kw[$Order]-->" size="6" maxlength="6" />
            &nbsp;&nbsp;&nbsp;（六位以下数字，小的排在前）</td>
        </tr>
        <tr class="table_content">
          <td>&nbsp;</td>
          <td><span class="button" onclick="document.getElementById('form1').submit()">提交</span></td>
        </tr>
    </table>
    </form>
    </td>
    </tr>
  </table>
</body>
</html>
