if ($all) { dheader('?moduleid=3&file=form&action=html&all=1&one=' . $one); } dmsg('更新成功', "?moduleid={$moduleid}&file={$file}"); } msg('ID从' . $fid . '至' . ($itemid - 1) . '[票选]更新成功' . progress($sid, $fid, $tid), "?moduleid={$moduleid}&file={$file}&action={$action}&sid={$sid}&fid={$itemid}&tid={$tid}&num={$num}&all={$all}&one={$one}"); break; case 'delete': $itemid or msg('请选择票选'); $do->delete($itemid); dmsg('删除成功', $forward); break; case 'level': $itemid or msg('请选择票选'); $level = intval($level); $do->level($itemid, $level); dmsg('级别设置成功', $forward); break; case 'record': $pollid = isset($pollid) ? intval($pollid) : 0; $pollid or msg(); $menus = array(array('选项管理', '?moduleid=' . $moduleid . '&file=' . $file . '&pollid=' . $pollid . '&action=item'), array('投票记录', '?moduleid=' . $moduleid . '&file=' . $file . '&pollid=' . $pollid . '&action=record'), array('统计报表', '?moduleid=' . $moduleid . '&file=' . $file . '&pollid=' . $pollid . '&action=stats')); $do->itemid = $pollid; $P = $do->get_one(); $P or msg('票选不存在'); $I = $do->item_all("pollid={$pollid}"); $sfields = array('按条件', '会员', 'IP'); $dfields = array('username', 'username', 'ip'); isset($fields) && isset($dfields[$fields]) or $fields = 0; $fields_select = dselect($sfields, 'fields', '', $fields); $condition = "pollid={$pollid}";