<?php /* Smarty version 2.6.19, created on 2008-09-23 14:18:01
         compiled from feed/edit.phtml */ ?>
<!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=utf-8" />
	<title>OOPHP博客系统</title>
	<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/styles/layout.css" />
<script type="text/javascript" language="Javascript" src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/scripts/jquery.js"></script>
<script language="javascript" type="text/javascript">

function ChangeClass(id){
	var fid="#class"+id;
	var inner="#inner"+id;
	var pid=$(fid).val();
	if(pid!='noid'){
	$.post("<?php echo $this->_tpl_vars['baseUrl']; ?>
/admin/class/ajax/",{id:pid},
  	function(data){
  		//alert(data);
  		var  strArray=new   Array();   
		strArray=data.split("||||");
		$("#sunid").val(strArray[0]);
    	$(inner).empty();
		$(inner).html(strArray[1]); 
  	})
  }else{
  	$(inner).empty();
  }	
}
	</script>
	</head>

<body>
<div id="navbar">
    <p>你的位置: <a href="<?php echo $this->_tpl_vars['baseUrl']; ?>
/admin/index/" title="后台首页">后台首页</a> &gt; 编辑Feed网站列表</p>
</div>
<div class="table-div">
<?php unset($this->_sections['FeedList']);
$this->_sections['FeedList']['name'] = 'FeedList';
$this->_sections['FeedList']['loop'] = is_array($_loop=$this->_tpl_vars['Feedone']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['FeedList']['show'] = true;
$this->_sections['FeedList']['max'] = $this->_sections['FeedList']['loop'];
$this->_sections['FeedList']['step'] = 1;
$this->_sections['FeedList']['start'] = $this->_sections['FeedList']['step'] > 0 ? 0 : $this->_sections['FeedList']['loop']-1;
if ($this->_sections['FeedList']['show']) {
    $this->_sections['FeedList']['total'] = $this->_sections['FeedList']['loop'];
    if ($this->_sections['FeedList']['total'] == 0)
        $this->_sections['FeedList']['show'] = false;
} else
    $this->_sections['FeedList']['total'] = 0;
if ($this->_sections['FeedList']['show']):

            for ($this->_sections['FeedList']['index'] = $this->_sections['FeedList']['start'], $this->_sections['FeedList']['iteration'] = 1;
                 $this->_sections['FeedList']['iteration'] <= $this->_sections['FeedList']['total'];
                 $this->_sections['FeedList']['index'] += $this->_sections['FeedList']['step'], $this->_sections['FeedList']['iteration']++):
$this->_sections['FeedList']['rownum'] = $this->_sections['FeedList']['iteration'];
$this->_sections['FeedList']['index_prev'] = $this->_sections['FeedList']['index'] - $this->_sections['FeedList']['step'];
$this->_sections['FeedList']['index_next'] = $this->_sections['FeedList']['index'] + $this->_sections['FeedList']['step'];
$this->_sections['FeedList']['first']      = ($this->_sections['FeedList']['iteration'] == 1);
$this->_sections['FeedList']['last']       = ($this->_sections['FeedList']['iteration'] == $this->_sections['FeedList']['total']);
?>

    <form method="post"  id="uploadform" action="<?php echo $this->_tpl_vars['baseUrl']; ?>
/admin/feed/add/">
    <table>
	<thead>
	  <tr>
	    <th class="title" colspan="2">编辑Feed网站列表</th>
	  </tr>
	</thead>	
	<tbody>
	  <tr>
	    <th style="width:15%;">Feed网站标题</th>
		<td><input type="text" name="title" id="title"  value="<?php echo $this->_tpl_vars['Feedone'][$this->_sections['FeedList']['index']]['title']; ?>
"  size="80"/> <span class="error">*</span></td>
	  </tr>
	  <tr>
	    <th>Feed网站URl</th>
		<td><input type="text" name="url" id="url" value="<?php echo $this->_tpl_vars['Feedone'][$this->_sections['FeedList']['index']]['url']; ?>
" size="80"/> <span class="error">*</span></td>
	  </tr>
	 
	  <tr>
	    <th>Feed网站分类</th>
		<td><?php echo $this->_tpl_vars['fenleiString']; ?>
</td>
		<input name="sunid" id="sunid" value="<?php echo $this->_tpl_vars['sunid']; ?>
" type="hidden">
	  </tr>
	 
	   <tr>
	    <th>Feed网站内容描述</th>
		<td><?php echo $this->_tpl_vars['oFCKeditor']->create(); ?>
</td>
	  </tr>
	 
	   
		
	
	 
	
	  <input type="hidden" name="id" size="80" value="<?php echo $this->_tpl_vars['Feedone'][$this->_sections['FeedList']['index']]['id']; ?>
" />
	  <tr>
	    <th colspan="2"><input type="submit" value="编辑Feed网站列表" class="cmd" /></th>
	  </tr>
	  </tbody>
	</table>
    </form>

<?php endfor; endif; ?>

</div>
</body>
</html>