예제 #1
0
         linkto($console->_j_web_set['main_path'] . "/member/detail");
     }
     break;
 case "join":
     if ($member->status()) {
         linkto($_SERVER['PHP_SELF'] . '?act=detail');
     }
     if ($_POST) {
         if ($_SESSION["__validate_code"] != md5($_POST["code"])) {
             alert($console->tags('VAILD_CODE_ERRO'), -1);
             exit;
         }
         if (!$_POST["account"]) {
             $_POST["account"] = $_POST["email"];
         }
         $backdata = $member->newjoin($_POST);
         if (is_array($backdata)) {
             alert($console->tags('CREATE_ACCOUNT_SURE'), $console->_j_web_set['main_path'] . "/member/detail");
             exit;
             //帳號申請成功
         } else {
             alert($backdata, "-1");
             exit;
         }
     }
     break;
 case "order":
     $data["mount"] = $mount = 10;
     $data["orderlist"] = $shopping_car->order_list(NULL, ($_GET["page"] * 1 - 1) * $mount, $mount);
     $cousql = $shopping_car->order_list();
     $data["page"] = page_show($cousql, $mount);