</head> <body <?php if ($news->forbbide_copy == 1) { ?> oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="return false" oncopy="return false" onbeforecopy="return false" onmouseup="return false" <?php } ?> > <div id=ibody> <?php include_top(); ?> <div id=bread> <?php if ($cid || $cid === 0) { $parent_ids = $category->tree_map($cid); $len = count($parent_ids); $itemp = 0; for ($i = $len - 1; $i > 0; $i--) { $itemp++; $item = $category->find($parent_ids[$i]); ?> <a href="<?php echo get_newslist_url($parent_ids[$i]); ?> "><?php echo $item->name; ?> </a> <?php }
<meta http-equiv=Content-Language content=zh-CN> <title>迅傲信息</title> <?php include "../../frame.php"; ?> </head> <body> <?php $cate = new table_class($tb_category); if ($_REQUEST['id']) { $cate->find($_REQUEST['id']); } $cate->update_attributes($_POST['post'], false); if ($_REQUEST['post']['parent_id'] != '0') { $category = new category_class('news'); $parent_ids = $category->tree_map($_REQUEST['post']['parent_id']); if (count($parent_ids) > 1) { $cate->sort_id = $parent_ids[count($parent_ids) - 1]; } else { $cate->sort_id = $_REQUEST['post']['parent_id']; } } else { $cate->sort_id = 0; } //$cate->echo_sql = true; if ($cate->save()) { redirect('category_list.php?type=' . $_POST['post']['category_type'] . ''); } else { display_error('修改类别失败'); echo '<a href="category_list.php">返回</a>'; }
<meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> <?php include_once '../frame.php'; $db = get_db(); $id = intval(trim($_REQUEST['category_id'])); if (empty($id)) { die('invliad params!'); } $title_id = $db->query("select name from eb_category where id={$id}"); css_include_tag('news_list'); //获得顶级category id; $category = new category_class("news"); $item = $category->find($id); if ($item->level >= 2) { $item_ids = $category->tree_map($id); $category_id = end($item_ids); } else { $category_id = $id; } if (!$category_id) { die('invalid param'); } $sub_category_items = $category->find_sub_category($category_id); $all_category_ids = $category->children_map($category_id); $exists_news_ids = array(); ?> <title>网趣宝贝-育儿资讯-<?php echo $title_id[0]->name; ?> </title>
</head> <body <?php if ($news->forbbide_copy == 1) { ?> oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="return false" oncopy="return false" onbeforecopy="return false" onmouseup="return false" <?php } ?> > <div id=ibody> <?php include_top(); ?> <div id=bread> <?php $category = new category_class('news'); $parent_ids = $category->tree_map($news->category_id); ?> <?php $len = count($parent_ids); for ($i = $len - 1; $i >= 0; $i--) { $item = $category->find($parent_ids[$i]); $curl = $page_type == 'static' ? "/review/list/{$parent_ids[$i]}/cid" : "news_list.php?cid={$parent_ids[$i]}"; ?> <a href="<?php echo get_newslist_url($parent_ids[$i]); ?> "><?php echo $item->name; ?> </a> > <?php