本文整理汇总了PHP中CForm::GetHiddenValue方法的典型用法代码示例。如果您正苦于以下问题:PHP CForm::GetHiddenValue方法的具体用法?PHP CForm::GetHiddenValue怎么用?PHP CForm::GetHiddenValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CForm
的用法示例。
在下文中一共展示了CForm::GetHiddenValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
}
$value = CForm::GetTextValue($arAnswer["ID"], $arAnswer, $arResult["arrVALUES"]);
$res .= CForm::GetTextField(
$arAnswer["ID"],
$value,
$arAnswer["FIELD_WIDTH"],
$arAnswer["FIELD_PARAM"]);
$arResult["QUESTIONS"][$FIELD_SID]["HTML_CODE"][] = $res;
break;
case "hidden":
$value = CForm::GetHiddenValue($arAnswer["ID"], $arAnswer, $arResult["arrVALUES"]);
$res .= CForm::GetHiddenField(
$arAnswer["ID"],
$value,
$arAnswer["FIELD_PARAM"]);
$arResult["QUESTIONS"][$FIELD_SID]["HTML_CODE"][] = $res;
break;
case "password":
if (strlen(trim($arAnswer["MESSAGE"]))>0)
{
$arResult["QUESTIONS"][$FIELD_SID]["HTML_CODE"][] = $arAnswer["MESSAGE"];
}
示例2: ShowInput
//.........这里部分代码省略.........
$res .= "<label>";
$res .= $input;
$res .= "<span class=\"" . $caption_css_class . "\"> " . $arAnswer["MESSAGE"] . "</span></label>";
}
break;
case "dropdown":
if ($show_dropdown != "Y") {
$value = CForm::GetDropDownValue($FIELD_SID, $this->arDropDown, $arrVALUES);
$res .= CForm::GetDropDownField($FIELD_SID, $this->arDropDown[$FIELD_SID], $value, $arAnswer["FIELD_PARAM"]);
$show_dropdown = "Y";
}
break;
case "multiselect":
if ($show_multiselect != "Y") {
$value = CForm::GetMultiSelectValue($FIELD_SID, $this->arMultiSelect, $arrVALUES);
$res .= CForm::GetMultiSelectField($FIELD_SID, $this->arMultiSelect[$FIELD_SID], $value, $arAnswer["FIELD_HEIGHT"], $arAnswer["FIELD_PARAM"]);
$show_multiselect = "Y";
}
break;
case "text":
if (strlen(trim($arAnswer["MESSAGE"])) > 0) {
$res .= "<span class=\"" . $caption_css_class . "\">" . $arAnswer["MESSAGE"] . "</span><br />";
}
$value = CForm::GetTextValue($arAnswer["ID"], $arAnswer, $arrVALUES);
$res .= CForm::GetTextField($arAnswer["ID"], $value, $arAnswer["FIELD_WIDTH"], $arAnswer["FIELD_PARAM"]);
break;
case "hidden":
/*
if (strlen(trim($arAnswer["MESSAGE"]))>0)
{
$res .= "<span class=\"".$caption_css_class."\">".$arAnswer["MESSAGE"]."</span><br />";
}
*/
$value = CForm::GetHiddenValue($arAnswer["ID"], $arAnswer, $arrVALUES);
$res .= CForm::GetHiddenField($arAnswer["ID"], $value, $arAnswer["FIELD_PARAM"]);
break;
case "password":
if (strlen(trim($arAnswer["MESSAGE"])) > 0) {
$res .= "<span class=\"" . $caption_css_class . "\">" . $arAnswer["MESSAGE"] . "</span><br />";
}
$value = CForm::GetPasswordValue($arAnswer["ID"], $arAnswer, $arrVALUES);
$res .= CForm::GetPasswordField($arAnswer["ID"], $value, $arAnswer["FIELD_WIDTH"], $arAnswer["FIELD_PARAM"]);
break;
case "email":
if (strlen(trim($arAnswer["MESSAGE"])) > 0) {
$res .= "<span class=\"" . $caption_css_class . "\">" . $arAnswer["MESSAGE"] . "</span><br />";
}
$value = CForm::GetEmailValue($arAnswer["ID"], $arAnswer, $arrVALUES);
$res .= CForm::GetEmailField($arAnswer["ID"], $value, $arAnswer["FIELD_WIDTH"], $arAnswer["FIELD_PARAM"]);
break;
case "url":
if (strlen(trim($arAnswer["MESSAGE"])) > 0) {
$res .= "<span class=\"" . $caption_css_class . "\">" . $arAnswer["MESSAGE"] . "</span><br />";
}
$value = CForm::GetUrlValue($arAnswer["ID"], $arAnswer, $arrVALUES);
$res .= CForm::GetUrlField($arAnswer["ID"], $value, $arAnswer["FIELD_WIDTH"], $arAnswer["FIELD_PARAM"]);
break;
case "textarea":
if (strlen(trim($arAnswer["MESSAGE"])) > 0) {
$res .= "<span class=\"" . $caption_css_class . "\">" . $arAnswer["MESSAGE"] . "</span><br />";
}
$value = CForm::GetTextAreaValue($arAnswer["ID"], $arAnswer, $arrVALUES);
$res .= CForm::GetTextAreaField($arAnswer["ID"], $arAnswer["FIELD_WIDTH"], $arAnswer["FIELD_HEIGHT"], $arAnswer["FIELD_PARAM"], $value);
break;
case "date":
if (strlen(trim($arAnswer["MESSAGE"])) > 0) {