首页| 论坛| 消息
主题:li
回帖:$id = intval($_REQUEST['id']);
$model = ta_post::model()->findByPk($id);
$model->deleteByPk($id);
ta_post_flow::model()->deleteAll("post_id={$id}");
ta_post_resume::model()->deleteAll("post_id={$id}");
ta_post_tender::model()->deleteAll("post_id={$id}");
5163 25688
$id = intval($_REQUEST['id']);
$model = ta_post::model()->findByPk($id);
if ($model->is_fake == 1)
$is_fake = 0;
elseif ($model->is_fake == 0)
$is_fake = 1;
$res = ta_post::model()->UpdateByPk(intval($_REQUEST['id']), array('is_fake' => $is_fake));

foreach ($ids as $id) {
$model = ta_post::model()->find("post_id={$id}");
$model->istop = $isTop;
$model->update();
}

foreach ($ids as $id) {
$model = ta_post::model()->find("post_id={$id}");
$model->bid_end_time = $model->bid_end_time + 14 * 86400;
$model->update();
$order = new OrderComponent($model->post_id);
if ($model->check_status == 1 && $model->post_status otype == 1) {
$order->pub(1);
} elseif ($model->otype == 2) {
$order->pub_entrust(1);
}
}
}
下一楼›:http://www.51znt.comwww.51znt.com/manage/trade/post/tdel
‹上一楼:#SELECT post_id,title FROM `ta_post` where check_status=0;
SELECT post_id,title FROM ` ..

查看全部回帖(7)
«返回主帖