$ghimat_kharid += $parvaz->mablagh_kharid; if ($aaaa) { var_dump($ticket); var_dump($shomare_last); } } $mysql->ex_sqlx("delete from `reserve_tmp` where `id` = " . $tmp_id[$index]); $tedad = $adl + $chd; $jam_ghimat1 += $zarib * $tedad * $parvaz->ghimat + $zarib * $inf * $parvaz->ghimat / 10; $index++; $p_i++; $customer->buyTicket($sanad_record_id, $jam_ghimat1); if ($parvaz->is_shenavar) { parvaz_det_class::sanad_shenavar_kharid($parvaz, $adl + $chd, $sanad_record_id, $user_id); } } } else { $ok = FALSE; $error = "etebar is less"; } $out = $ok ? "true|" . implode(',', $sanads) : "false|" . $error; } return $out; } function reserve_def() { return array(array('ws_user' => 'xsd:string', 'ws_pass' => 'xsd:string', 'tmp_id' => 'xsd:int', 'fnames' => 'xsd:string', 'lnames' => 'xsd:string', 'is_inf' => 'xsd:string', 'genders' => 'xsd:string', 'tell' => 'xsd:string'), array('return' => 'xsd:string'), 'test_wsdl', 'test_wsdl#reserve', 'rpc', 'encoded', 'book flight permanently ,please be aware , you should enter first names ,last names , and gender codes like this:' . "\n" . 'fnames = "ali,muhammad,zohre"; lnames = "hasani,abbasi,rezaei"; is_inf= "0,1,2"; genders = "1,1,0"; . . .'); } if ($aaaa) { var_dump(reserve('support', encrypt_class::encrypt('31048145'), '23,24', 'm1,m,a', 'm,e,m', '0,1,2', '1,0,1', '09155193104')); }
// Construct reservation parameters on click if (wire("input")->post->submit) { echo "submit"; $equipment = wire("input")->post->equipment; $owner = wire('sanitizer')->pageName(wire('user')->name); $color = "#AAAAAA"; $equipPages = wire("pages")->find("template=equipment"); foreach ($equipPages as $eq) { if ($equipment == $eq->title) { $color = $eq->color; break; } } $start = wire("input")->post->start; $end = wire("input")->post->end; reserve($equipment, $owner, $color, $start, $end); } ?> <h1 class="pageheader"><?php echo $page->title; ?> </h1> <?php echo $page->body; echo $message; echo '<p><br></p>'; ?>
<?php require_once 'config.php'; require_once './class/handle.php'; $server =& $_SERVER["REQUEST_URI"]; preg_match('/\\?\\s*r\\s*[=]\\s*([^&]+)/', $server, $matches); if (count($matches)) { $route = $matches[1]; } else { $route = 'reserve'; } // var_dump($route);exit; switch ($route) { case 'reserve': //默认显示预约页面 reserve(); break; case 'login': //登录页面 login(); break; case 'adminLogin': //处理登录页面 adminLogin(); break; case 'logout': //登出 adminLogout(); break; case 'usershow': //用户列表