输入banner图图片脚本导航/分类

PHP获取数据库的数据赋给下拉框

<无详细内容>
  1. Action里的代码
  2. public function add(){
  3. $node=M('Menu');//实例化数据库
  4. $this->lists=$node->where(array('higher'=>0))->select();//根据条件筛选查出来的值给lists
  5. $this->display();
  6. }
  7. 模版业里代码
  8. //PS:手工打的代码,中间可能有错误