Esempio n. 1
0
    if ($guest) {
        $condition .= " AND username=''";
    }
    if ($gid) {
        $condition .= " AND gid={$gid}";
    }
    if ($itemid) {
        $condition .= " AND itemid={$itemid}";
    }
    $timetype = strpos($dorder[$order], 'replytime') === false ? 'add' : '';
}
switch ($action) {
    case 'add':
        if ($submit) {
            get_group($post['gid']) or msg('指定商圈ID不存在');
            if ($do->pass($post)) {
                if ($FD) {
                    fields_check($post_fields);
                }
                if ($CP) {
                    property_check($post_ppt);
                }
                $do->add($post);
                if ($FD) {
                    fields_update($post_fields, $table, $do->itemid);
                }
                if ($CP) {
                    property_update($post_ppt, $moduleid, $post['catid'], $do->itemid);
                }
                if ($MOD['show_html'] && $post['status'] > 2) {
                    $do->tohtml($do->itemid);