本文整理汇总了PHP中CBXFeatures::GetFeaturesList方法的典型用法代码示例。如果您正苦于以下问题:PHP CBXFeatures::GetFeaturesList方法的具体用法?PHP CBXFeatures::GetFeaturesList怎么用?PHP CBXFeatures::GetFeaturesList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CBXFeatures
的用法示例。
在下文中一共展示了CBXFeatures::GetFeaturesList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ShowStep
function ShowStep()
{
$wizard =& $this->GetWizard();
$arFeaturesSys = CBXFeatures::GetFeaturesList();
$arFeatureSys = $arFeaturesSys["Holding"];
$isEnabled = $this->TestEnabledFeatures($this->arBXFeaturesPrintable["Holding"]);
$this->content .= '<table width="100%" cellspacing="2" cellpadding="0">';
if ($arFeatureSys["TYPE"] != "F") {
$this->content .= '<tr><td>';
if ($arFeatureSys["TYPE"] != "D") {
$this->content .= '<input type="button" name="test_feature" id="id_test_feature" value="' . GetMessage("IFS_BUTTON_TEST") . '" onclick="EditionChange()">';
} else {
$this->content .= '<input type="button" name="test_feature" value="' . ($arFeatureSys["EXPIRED"] ? GetMessage("IFS_DEMO_MESSAGE1") : str_replace("#TIME#", $arFeatureSys["TRY_DAYS_COUNT"], GetMessage("IFS_DEMO_MESSAGE2"))) . '" disabled>';
}
$this->content .= '<input type="hidden" name="test_feature_on" id="id_test_feature_on" value="N">';
$this->content .= ' <input type="button" name="buy_feature" value="' . GetMessage("IFS_BUTTON_BUY") . '" onclick="window.open(\'' . GetMessage("IFS_BUTTON_BUY_URL") . '\', \'BUYINFO\')">';
$this->content .= '</td></tr>';
$this->content .= '<tr><td><br></td></tr>';
}
$this->content .= '<tr>';
$this->content .= '<td>';
$this->content .= '<input type="checkbox" name="turn_holding_on" id="id_turn_holding_on" value="Y"';
if ($isEnabled) {
$this->content .= ' checked';
}
$this->content .= ' onclick="TurnOnChange(this.checked)">';
$this->content .= '<label for="id_turn_holding_on"><b>' . GetMessage('IFS_E_Holding') . '</b></label></td>';
$this->content .= '</tr>';
$this->content .= $this->PrintFeatures($this->arBXFeaturesPrintable["Holding"]);
$this->content .= '</table>';
$this->content .= '
<script type="text/javascript">';
$arAllFeatures = $this->ExtractFeatures($this->arBXFeaturesPrintable["Holding"]);
if ($arFeatureSys["TYPE"] != "D" && $arFeatureSys["TYPE"] != "F" || $arFeatureSys["TYPE"] == "D" && $arFeatureSys["EXPIRED"] || !$isEnabled) {
foreach ($arAllFeatures as $f) {
$this->content .= 'document.getElementById("id_f_' . $f . '").disabled = true;';
}
}
if ($arFeatureSys["TYPE"] != "D" && $arFeatureSys["TYPE"] != "F" || $arFeatureSys["TYPE"] == "D" && $arFeatureSys["EXPIRED"]) {
$this->content .= 'document.getElementById("id_turn_holding_on").disabled = true;';
}
$this->content .= '
function TurnOnChange(val)
{';
foreach ($arAllFeatures as $f) {
$this->content .= 'document.getElementById("id_f_' . $f . '").disabled = !val;';
if (!in_array($f, array("Analytics", "Controller"))) {
$this->content .= 'document.getElementById("id_f_' . $f . '").checked = val;';
}
}
$this->content .= '
}';
$this->content .= '
function EditionChange()
{';
foreach ($arAllFeatures as $f) {
$this->content .= 'document.getElementById("id_f_' . $f . '").disabled = false;';
}
$this->content .= 'document.getElementById("id_test_feature").disabled = true;
document.getElementById("id_test_feature_on").value = "Y";
document.getElementById("id_turn_holding_on").disabled = false;
document.getElementById("id_turn_holding_on").value = "Y";
}
</script>';
}