木下 敏夫
kino****@tktoo*****
2008年 7月 11日 (金) 11:26:21 JST
木下です。
kunitsujiさんのも取り入れると
function edit($cu_id = '')
{
$edit = (int) $this->input->post('edit');
if ($edit == 1)
{
$data = array(
'cu_name' => $this->input->post('cu_name'),
'cu_kana' => $this->input->post('cu_kana'),
'cu_tel' => $this->input->post('cu_tel'),
'cu_fax' => $this->input->post('cu_fax'),
'cu_mail' => $this->input->post('cu_mail'),
'biko' => $this->input->post('biko'),
'datetime'=> date('Y-m-d H:i:s', time()),
);
$cu_id = (int) $cu_id;
$this->db->where('cu_id', $cu_id);
$this->db->update('customer', $data, $cu_id);
$this->load->view('customer_edit_finished');
}
else
{
$this->load->view('customer_edit_confirm', $data);
}
}
--
木下敏夫
mailto:kino****@tktoo*****
http://www.tktools.jp/
http://okusama-shop.com/
http://www.oidc.jp/bmb/index.php?topic=-m-D14
-------------------------------------------------------------------------
ビジネスマッチングブログ・キックオフセミナーにパネリストとして参加します。
http://www.oidc.jp/bmb/article.php/20080207143305526
-------------------------------------------------------------------------