<!--右侧内容开始-->
<div class="right_content">
<script type="text/javascript" src="
<?=base_url
();?>assets/js/My-jQuery.js"></script>
<script>
$(document).ready(function(){
$("#additem").click(function () { //“添加”按钮单击事件
$.addform('
<?=base_url
();?>manager/item/additem','
<?=base_url
();?>manager/item/additemform','#itemadd','
<?=base_url
();?>manager/item');
});
$("#myreturn").click(function(){
$.retbtn('管理栏目','
<?=base_url
();?>manager/item');
});
});
</script>
<h2>
<?=$h2?></h2>
<div class="form">
<form class="niceform" id="itemadd">
<fieldset>
<dl>
<dt><label for="Item">所属栏目:</label></dt>
<dd>
<select size="1" name="ItemID" id="ItemList">
<?php if(empty($cate)){
echo '<option value="0" selected="selected">没有栏目,请先添加根栏目……</option>';
}else{
foreach($cate as $data):
$str='';
for($i=1;$i<$data->ItemLayer;$i++){
$str=$str.' ';
}
$str=$str.$i.'-级栏目:';
echo '<option value="'.$data->ItemID.'">'.$str.$data->ItemName.'</option>\n';
endforeach;
}?>
</select>
</dd>
</dl>
<dl>
<dt><label for="Name">栏目名称:</label></dt>
<dd><input type="text" name="ItemName" id="category" size="54" /></dd>
</dl>
<dl>
<dt><label for="Home">首页显示:</label></dt>
<dd>
<input type="radio" name="ShowAtHome" id="" value="1" checked="checked" /><label class="check_label">是</label>
<input type="radio" name="ShowAtHome" id="" value="0" /><label class="check_label">否</label>
</dd>
</dl>
<dl>
<dt><label for="EName">英文缩写:</label></dt>
<dd><input type="text" name="ItemEName" id="ecategory" size="54" /></dd>
</dl>
<dl>
<dt><label for="Remark">栏目简介:</label></dt>
<dd><textarea name="ItemRemark" id="remark" rows="5" cols="36"></textarea></dd>
</dl>
<dl>
<dt><label for="pic">栏目图片:</label></dt>
<dd><input type="file" name="ItemPic" id="picupload" /></dd>
</dl>
<dl class="submit">
<input type="button" name="submit" id="additem" value="添加" />
<input type="button" name="myreturn" id="myreturn" value="返回" />
</dl>
</fieldset>
</form>
</div>
</div>
<!--右侧内容结束-->