コード例 #1
0
function peekTicket()
{
    if (!empty($_GET["partikkel"])) {
        checkTicket($_GET["partikkel"]);
        wp_redirect(esc_url(remove_query_arg('partikkel')));
        exit;
    }
}
コード例 #2
0
ファイル: line_cal.php プロジェクト: lz1988/stourwebcms
function GetTicketByTicketId($ticketid, $webid, $Y, $M, $D)
{
    global $dsql;
    $tidArr = explode(',', $ticketid);
    $str = '';
    foreach ($tidArr as $tid) {
        if (checkTicket($tid)) {
            $sql = "select * from #@__ticket where id='{$tid}' and webid='{$webid}'";
            $row = $dsql->GetOne($sql);
            $ismid = $row['ismiddle'] == '' || $row['ismiddle'] == '0' ? '否' : '是';
            $mid = $row['ismiddle'] == '' || $row['ismiddle'] == '0' ? '无' : $row['midcity'];
            $beizhu = empty($row['beizhu']) ? '无' : $row['beizhu'];
            if ($row['kind'] == 1) {
                $kind = '单程';
            }
            if ($row['kind'] == 1) {
                $kind = '联程';
            }
            if ($row['kind'] == 3) {
                $kind = '往返';
            }
            $str .= '<li><span>' . GetdayPrice($row['id'], 'ticket', $Y, $M, $D) . '</span>' . '<input name="ticketr" type="radio" id="radio" value="' . GetdayPriceNum($row['id'], 'ticket', $Y, $M, $D) . '" ' . ' onclick="changeTPrice(this,\'ticket\',' . $row['id'] . ')" />' . $row['company'] . ' <b>' . $kind . '</b></li>' . '<input type="hidden" id="beizhu' . $row['id'] . '" value="' . $row['beizhu'] . '" />';
        }
    }
    $str .= '<li><input name="ticketr" type="radio" id="radio" value="0" onclick="changeTPrice(this,\'ticket\')" />不选择 </li>';
    return $str;
}