无详细内容 -- phpmyadmin sql dump-- version 3.2.0.1-- http://www.phpmyadmin.net---- 主机: localhost-- 生成日期: 2015 年 08 月 13 日 04:42-- 服务器版本: 5.5.8-- php 版本: 5.3.3set sql_mode=no_auto_value_on_zero;/*!40101 set @old_character
-- phpmyadmin sql dump-- version 3.2.0.1-- http://www.phpmyadmin.net---- 主机: localhost-- 生成日期: 2015 年 08 月 13 日 04:42-- 服务器版本: 5.5.8-- php 版本: 5.3.3set sql_mode=no_auto_value_on_zero;/*!40101 set @old_character_set_client=@@character_set_client */;/*!40101 set @old_character_set_results=@@character_set_results */;/*!40101 set @old_collation_connection=@@collation_connection */;/*!40101 set names utf8 */;---- 数据库: `position`---- ------------------------------------------------------------ 表的结构 `web_about`--create table if not exists `web_about` ( `id` mediumint(8) not null auto_increment, `title` varchar(60) not null, `content` text not null, `descs` varchar(200) not null default '', `pid` mediumint(8) not null default '0', `ord` mediumint(4) not null default '10', `is_lower` smallint(2) not null default '0', `is_delete` smallint(2) not null default '1', `seotitle` varchar(100) not null default '', `seokeyword` varchar(100) not null default '', `setdescription` varchar(100) not null default '', primary key (`id`)) engine=myisam default charset=utf8 auto_increment=12 ;---- 转存表中的数据 `web_about`--insert into `web_about` (`id`, `title`, `content`, `descs`, `pid`, `ord`, `is_lower`, `is_delete`, `seotitle`, `seokeyword`, `setdescription`) values(1, '关于我们', '', '', 0, 10, 1, 1, '', '', ''),(2, '公司简介', '', '', 1, 10, 0, 1, '', '', ''),(3, '企业文化', '', '', 1, 10, 0, 1, '', '', '');
row(web_about,id = $id,id,title,pid); $this->position[$row['title']] = $url.$row['id']; if($row['pid'] !=0){ $this->_position($row['pid'],$url); } $this->position['首页'] = '/'; return array_reverse($this->position); } function _position($id = 0,$url = ''){ $row = $this->row(web_about,id = $id,id,title,pid); $this->position[$row['title']] = $url.$row['id']; if($row['pid'] !=0){ $this->_position($row['pid'],$url); } }}function catpos($id,$url,$tag = ' > '){ $po = new positions(); $p =''; $res = $po->position($id,$url); foreach($res as $k=>$v){ if($k){ $p .=''.$k.''.$tag; } } $p = rtrim($p,$tag); return $p;}?>php 面包屑导航关于我们公司介绍企业文化