delet_estat_cr(3, $met_stat_cr3); } if ($met_stat_cr4) { delet_estat_cr(4, $met_stat_cr4); } if ($met_stat_cr5) { delet_estat_cr(5, $met_stat_cr5); } if ($met_stat_max < 0) { $met_stat_max = 10000; } require_once $depth . '../include/config.php'; metsave('../app/stat/set.php?lang=' . $lang . '&anyid=' . $anyid, '', $depth); } elseif ($action == 'empty') { delet_estat_cr(1, 1); delet_estat_cr(2, 1); delet_estat_cr(3, 1); delet_estat_cr(4, 1); delet_estat_cr(5, 1); metsave('../app/stat/set.php?lang=' . $lang . '&anyid=' . $anyid, '', $depth); } else { $stat[$met_stat] = 'checked'; $stat_clear[$met_stat_clear] = 'checked'; $stat_cr1[$met_stat_cr1] = 'selected'; $stat_cr2[$met_stat_cr2] = 'selected'; $stat_cr3[$met_stat_cr3] = 'selected'; $stat_cr4[$met_stat_cr4] = 'selected'; $stat_cr5[$met_stat_cr5] = 'selected'; include template('app/stat/set'); footer(); }
$query = "INSERT INTO {$met_visit_summary} SET\n\t\t\t\tpv = '0',\n\t\t\t\tip = '0',\n\t\t\t\talone = '0',\n\t\t\t\tparttime = '{$parttime}',\n\t\t\t\tstattime = '{$dtime}'"; $db->query($query); if ($met_stat_cr1) { delet_estat_cr(1, $met_stat_cr1); } if ($met_stat_cr2) { delet_estat_cr(2, $met_stat_cr2); } if ($met_stat_cr3) { delet_estat_cr(3, $met_stat_cr3); } if ($met_stat_cr4) { delet_estat_cr(4, $met_stat_cr4); } if ($met_stat_cr5) { delet_estat_cr(5, $met_stat_cr5); } } /*初始变量*/ $tmst = date("Y-m-d", $st); $tmet = date("Y-m-d", $et); $cs = isset($cs) ? $cs : 0; $dancs[$cs] = 'class="dday round"'; $weekarray = array("日", "一", "二", "三", "四", "五", "六"); $css_url = $depth . "../templates/" . $met_skin . "/css"; $img_url = $depth . "../templates/" . $met_skin . "/images"; // if ($action == 'all') { $query = "select * from {$met_visit_summary} WHERE stattime >='{$st}' and stattime <='{$et}' order by stattime desc"; $result = $db->query($query); while ($list = $db->fetch_array($result)) {