<!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');});
}
);
get_category(<!--Kw[$Category]-->);
$('#submit').bind('click',function(){
	var name = document.getElementById('eifr').contentWindow.document.getElementById('name').innerHTML;
	document.getElementById('EntryImg').value=name;
	document.getElementById('form1').submit();
	});
});

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);    
    }    
}
-->
</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 onsubmit="" action="<!--Kw[$action]-->.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="35" /></td>
        </tr>
        <tr class="table_content">
          <td>所属分类</td>
          <td><span id="category"></span></td>
        </tr>
        <tr class="table_content">
          <td>排序</td>
          <td><input name="Order" type="text" id="Order" value="<!--Kw[$Order]-->" size="6" maxlength="6" />（六位以下数字，小的排在前）</td>
        </tr>
        <tr class="table_content">
          <td>链接</td>
          <td><input name="Link" type="text" id="Link" value="<!--Kw[$Link]-->" size="35" /></td>
        </tr>
        <tr class="table_content">
          <td>盒子颜色</td>
          <td><input name="BoxColor" type="text" id="BoxColor" value="<!--Kw[$BoxColor]-->" size="11" readonly="readonly" />
          <a href="#" onclick="document.getElementById('BoxColor').value='dark_blue';">深蓝</a> 
          <a href="#" onclick="document.getElementById('BoxColor').value='light_blue';">浅蓝</a> 
          <a href="#" onclick="document.getElementById('BoxColor').value='yellow';">黄</a>
          <a href="#" onclick="document.getElementById('BoxColor').value='white';">白</a></td>
        </tr>
        <tr class="table_content">
          <td>在首页？</td>
          <td>在<input type="radio" name="IsInIndex" id="IsInIndex" value="1" <!--Kw[if $IsInIndex==1]--> checked="checked"<!--Kw[/if]-->/>
        不在<input type="radio" name="IsInIndex" id="IsInIndex2" value="0" <!--Kw[if $IsInIndex==0]--> checked="checked"<!--Kw[/if]-->/></td>
        </tr>
        <tr class="table_content">
          <td>LOGO</td>
          <td><iframe name="eifr" allowtransparency="true" frameborder="0" height="30" width="100%" id="eifr" marginheight="0" marginwidth="0" scrolling="no" src="upload.php?name=<!--Kw[$EntryImg]-->"></iframe></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><input name="EntryImg" id="EntryImg" type="hidden" value="<!--Kw[$EntryImg]-->"/></td>
          <td><span class="button" id="submit">提交</span></td>
        </tr>
    </table>
    </form>
    </td>
    </tr>
  </table>
</body>
</html>
