本文整理汇总了PHP中CVote::GetNextStartDate方法的典型用法代码示例。如果您正苦于以下问题:PHP CVote::GetNextStartDate方法的具体用法?PHP CVote::GetNextStartDate怎么用?PHP CVote::GetNextStartDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CVote
的用法示例。
在下文中一共展示了CVote::GetNextStartDate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: current
/********************************************************************
/ACTIONS
********************************************************************/
if ($ID > 0) {
$db_res = CVote::GetByID($ID);
if ($db_res && ($res = $db_res->Fetch())) {
$arVote = $res;
$arChannel = $arChannels[$arVote["CHANNEL_ID"]];
} else {
$ID = 0;
}
}
if ($ID <= 0) {
$arChannel = current($arChannels);
reset($arChannels);
$arVote = array("CHANNEL_ID" => isset($_REQUEST['CHANNEL_ID']) && intval($_REQUEST['CHANNEL_ID']) > 0 ? intval($_REQUEST['CHANNEL_ID']) : $arChannel["ID"], "C_SORT" => CVote::GetNextSort($arChannel["ID"]), "ACTIVE" => "Y", "DATE_START" => $arChannel["VOTE_SINGLE"] != "N" ? CVote::GetNextStartDate($arChannel["ID"]) : "", "UNIQUE_TYPE" => 12, "DELAY" => 10, "DELAY_TYPE" => "M", "DESCRIPTION_TYPE" => "html", "IMAGE_ID" => 0, "EVENT1" => "vote", "EVENT2" => strtolower($arChannel["SYMBOLIC_NAME"]), "TEMPLATE" => "default.php");
}
if ($bVarsFromForm) {
if (!empty($arVote["IMAGE_ID"])) {
unset($arFields["IMAGE_ID"]);
}
$arVote = $arFields;
}
foreach ($arVote as $key => $val) {
$arVote["~" . $key] = $val;
$arVote[$key] = htmlspecialcharsEx($val);
}
$sDocTitle = $ID > 0 ? str_replace("#ID#", $ID, GetMessage("VOTE_EDIT_RECORD")) : GetMessage("VOTE_NEW_RECORD");
if (isset($_REQUEST['docopy']) || isset($_REQUEST['COPYID'])) {
$sDocTitle = GetMessage("VOTE_NEW_RECORD");
}