當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CR3DCQuery::TimeForTGame方法代碼示例

本文整理匯總了PHP中CR3DCQuery::TimeForTGame方法的典型用法代碼示例。如果您正苦於以下問題:PHP CR3DCQuery::TimeForTGame方法的具體用法?PHP CR3DCQuery::TimeForTGame怎麽用?PHP CR3DCQuery::TimeForTGame使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CR3DCQuery的用法示例。


在下文中一共展示了CR3DCQuery::TimeForTGame方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: clearTimeout

		}
    }
    else {
        clearTimeout(timer)
		window.location.reload(true)
    } 
}
window.onload=starttime



<?php 
////////////
//Instantiate theCR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
if ($oR3DCQuery->IsPlayersTurn($config, $_SESSION['id'], $GID) && $oR3DCQuery->TimeForTGame($config, $GID)) {
    echo "parent.frames['chessboard'].location.reload();";
} elseif ($oR3DCQuery->IsPlayersTurn($config, $_SESSION['id'], $GID) == false && $oR3DCQuery->TimeForTGame($config, $GID) == false) {
    echo "parent.frames['chessboard'].location.reload();";
} elseif ($oR3DCQuery->TGameStatus($GID) == false) {
    echo "parent.frames['chessboard'].location.reload();";
}
$oR3DCQuery->Close();
unset($oR3DCQuery);
///////////
?>

</script>
<body>

<textarea cols='32' rows='24' class='post'>
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:t_chat.php

示例2: GetStringFromStringTable

        if ($oR3DCQuery->TGameStatus($GID)) {
            $oR3DCQuery->GetTGameBoard($config, $GID, $_SESSION['sid'], $_SESSION['id'], $clrl, $clrd);
            if ($oR3DCQuery->IsPlayersTurn($config, $_SESSION['id'], $GID)) {
                //echo "Its, ".$_SESSION['user']." turn to play.";
                echo str_replace("['user']", $_SESSION['user'], GetStringFromStringTable("IDS_TGAME_TXT_3", $config));
            }
        } else {
            echo "<br>" . GetStringFromStringTable("IDS_TGAME_TXT_3", $config) . "";
        }
    }
    $oR3DCQuery->Close();
    unset($oR3DCQuery);
} else {
    //Instantiate theCR3DCQuery Class
    $oR3DCQuery = new CR3DCQuery($config);
    if ($oR3DCQuery->TimeForTGame($config, $GID) == false) {
        echo "<br>" . GetStringFromStringTable("IDS_TGAME_TXT_1", $config) . "";
    } else {
        if ($oR3DCQuery->TGameStatus($GID)) {
            $oR3DCQuery->GetTGameBoard($config, $GID, "", 0, $clrl, $clrd);
        } else {
            echo "<br>" . GetStringFromStringTable("IDS_TGAME_TXT_2", $config) . "";
        }
    }
    $oR3DCQuery->Close();
    unset($oR3DCQuery);
}
?>

</body>
</html>
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:t_game.php


注:本文中的CR3DCQuery::TimeForTGame方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。