break;
 case "insert":
     $nickname = test_input($_GET["nickname"]);
     $userid = test_input($_GET["userid"]);
     $content = test_input($_GET["content"]);
     $hasimage = test_input($_GET["hasimage"]);
     $hasvideo = test_input($_GET["hasvideo"]);
     $helpid = test_input($_GET["helpid"]);
     $useraction = test_input($_GET["useraction"]);
     $location = test_input($_GET["location"]);
     $locationx = test_input($_GET["locationx"]);
     $locationy = test_input($_GET["locationy"]);
     $file = 'F:\\wampserver\\setup\\wamp\\www\\manager_helpcomment.txt';
     $cont = "helpid:" . $helpid . "userid:" . $userid . "nickname:" . $nickname . "content:" . $content . "hasimage:" . $hasimage . "hasvideo:" . $hasvideo . "useraction:" . $useraction . "location:" . $location . "locationx:" . $locationx . "locationy:" . $locationy . "\n";
     file_put_contents($file, $cont, FILE_APPEND);
     $comment->Insert_Comment($helpid, $userid, $nickname, $content, $hasimage, $hasvideo, $useraction, $location, $locationx, $locationy);
     break;
 case "update":
     $state = test_input($_GET["state"]);
     $comment->updatestate($helpcommentid, $state);
     break;
 case "all":
     $comment->Queryallhelpcomment();
     break;
 case "usfull":
     $helpcommentid = test_input($_GET["helpcommentid"]);
     $seekuserid = test_input($_GET["seekuserid"]);
     $helpuserid = test_input($_GET["helpuserid"]);
     $seeknickname = test_input($_GET["seeknickname"]);
     $helpnickname = test_input($_GET["helpnickname"]);
     $money = test_input($_GET["money"]);
            $eventid = test_input($_GET["eventid"]);
            // $eventid="2D9C9163EA8B2D830267";
            $page = test_input($_GET["page"]);
            $file = 'F:\\wampserver\\setup\\wamp\\www\\manager_eventcomment.txt';
            $content = "eventid:" . $eventid . "**page" . " {$page}";
            file_put_contents($file, $content, FILE_APPEND);
            $comment->querycommentByeventid($eventid, $page);
            break;
        case "insert":
            $eventid = test_input($_GET["eventid"]);
            $username = test_input($_GET["name"]);
            $userid = test_input($_GET["userid"]);
            $content = test_input($_GET["content"]);
            $contenttype = test_input($_GET["contenttype"]);
            $hasimage = test_input($_GET["hasimage"]);
            $hasvideo = test_input($_GET["hasvideo"]);
            $state = test_input($_GET["state"]);
            $comment->Insert_Comment($eventid, $userid, $username, $contenttype, $content, $hasimage, $hasvideo, $state);
            break;
        case "update":
            $eventcommentid = test_input($_GET["eventcommentid"]);
            $state = test_input($_GET["state"]);
            $comment->updatestate($eventcommentid, $state);
            break;
        case "all":
            $comment->Queryalleventcomment();
            break;
        default:
            echo "缺省待补";
    }
}