public
function
edit_config_paiqi(){
$id
= trim(
$_REQUEST
['id']);
$paiqi_db
= pc_base::load_model('paiqi_config_model');
if
(
$_REQUEST
['dosubmit']){
$insertinfo
=
array
();
$insertinfo
['catid'] = trim(
$_POST
['catid']);
$insertinfo
['meitiid'] = trim(
$_POST
['meitiid']);
$insertinfo
['title'] = trim(
$_POST
['title']);
$insertinfo
['meitizhuname'] = trim(
$_POST
['meitizhuname']);
$insertinfo
['meitizhuid'] = trim(
$_POST
['meitizhuid']);
$insertinfo
['createtime'] = SYS_TIME;
$insertinfo
['saturation'] = trim(
$_POST
['saturation']);
$datas
=
$paiqi_db
->update(
$insertinfo
,
array
(
"id"
=>
$id
));
if
(
$datas
){
<span style=
"color:#ff0000;"
>showmessage(L('operation_success'),'?m=content&c=meiti&a=closewindow');
}
}
else
{
$datas
=
$paiqi_db
->select(
array
(
"id"
=>
$id
));
$template
=
"edit_config_paiqi"
;
include
$this
->admin_tpl(
$template
);
}
}