嗨我在html中有这个选择标签,我想把它放在php标签内我的问题是在视图中,select标签不会呈现这是我的代码如下。 这是我的控制器
function rotating_banners(){
$this->rapyd->load("datagrid");
// grid
$grid = new DataGrid("", "banner_rotating");
$grid->per_page = 50;
$grid->num_links = 2;
$grid->column_orderby( "Image"
,"<img src=\"uploads/banners/<#br_filename#>\" height=\"60\" alt=\"\" />"
,"bt_filename");
$grid->column("Active?", "br_active", "br_active");
$grid->column("Select", "<select name='banner'><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option></select>");
$save_link = anchor(
"banners/rotating_banner_crud/save/<#br_id#>",
"save",
"title='save'"
);
$edit_link = anchor(
"banners/rotating_banner_crud/modify/<#br_id#>"
,"edit"
,"title='Edit this banner'"
);
$delete_link = anchor(
"banners/rotating_banner_crud/delete/<#br_id#>"
,"delete"
,"title='Delete this banner'"
);
$grid->column("Actions", "$save_link - $edit_link - $delete_link", "width=\"150\"");
$grid->add("banners/rotating_banner_crud/create");
$grid->build();
$_arrPage_data = Array(
"cat_nav_list" => $this->Category_model->build_category_navigation("", true)
,"rapyd_head" => $this->rapyd->get_head()
,"output" => $grid->output
);
$this->load->view('admin/rotating_banners', $_arrPage_data);
}
$grid->column("Select", "<select name='banner'><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option></select>");
如何在php中添加select标签?即时通讯使用codeigniter
任何帮助都非常感谢TIA