【发布时间】:2015-03-10 12:22:58
【问题描述】:
"","style" => "height:450px;width:350px;margin-left:10px;background-color:white;"));?>
编辑属性
">
说明:">
部门 >英语系 >数学系 >菲律宾部 >科学部 >社会学系 >MAPEH部门 >电脑部 >家政部 >价值观部
生命年数:">
费用:">
军官:">
数量:">
"btn btn-默认"));?>
部门 >英语系 >数学系 >菲律宾部 >科学部 >社会学系 >MAPEH部门 >电脑部 >家政部 >价值观部
生命年数:">
费用:">
军官:">
数量:">
"btn btn-默认"));?>
public function edit_prop(){
$this->form_validation->set_rules('description','Description','required');
$this->form_validation->set_rules('quantity','Quantity','required');
$this->form_validation->set_rules('lifeyears','Life Years','required');
$this->form_validation->set_rules('cost','Cost','required');
$this->form_validation->set_rules('accountable_officer','Accountable Officer','required');
if($this->form_validation->run() == false){
if($this->properties->update_prop() == true){
$this->session->set_flashdata('updated', 'Updated Successfully!');
redirect('properties_controller/view_properties');
}
}
else{
$data = array(
'id' => $this->input->post('id'),
'description' => $this->input->post('description'),
'accountable' => $this->input->post('accountable'),
'lifeyears' => $this->input->post('lifeyears'),
'cost' => $this->input->post('cost'),
'accountable_officer' => $this->input->post('accountable_officer'),
'quantity' => $this->input->post('quantity')
);
$data['design'] = 'update_property';
$data['title'] = 'Properties Corner!';
$this->load->view('template_dashboard',$data);
}
【问题讨论】:
-
那么你的问题是什么?..
-
把你的代码也整理一下,你有什么问题?
标签: php codeigniter