本文整理匯總了PHP中Render::RadioBox方法的典型用法代碼示例。如果您正苦於以下問題:PHP Render::RadioBox方法的具體用法?PHP Render::RadioBox怎麽用?PHP Render::RadioBox使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Render
的用法示例。
在下文中一共展示了Render::RadioBox方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: render
function render($name, $data, $widget, $parameters, $value = "", $event = "")
{
$parameters = $parameters . " " . $this->pars[$name][0];
switch ($widget) {
case "select2":
case "Select2":
/*
$data is formatted like this
$data[0][value]
$data[0][text]
*/
$content = Render::Select($name, $data, $parameters, $value, $event);
break;
case "checkbox":
case "CheckBox":
case "checkBox":
$content = Render::CheckBoxList($name, $data, $value, $event);
break;
case "radiobox":
case "RadioBox":
case "radioBox":
$content = Render::RadioBox($name, $data, $value, $event);
break;
case "show_data":
case "showdata":
case "showData":
case "Showdata":
case "ShowData":
case "inspect":
case "Inspect":
$content = Render::ShowData($name, $data, $parameters, $value, $event);
break;
default:
$pars = TagAux::parsePars($parameters);
if (isset($pars['library'])) {
$library = $pars['library'];
require_once "include/tags/{$library}.inc.php";
} else {
$library = "TagLibrary";
}
if (isset($this->parameters[$widget][0])) {
echo $this->parameters[$widget][0];
}
eval("\$content = " . $library . "::" . $widget . "(\$name,\$data,TagAux::parsePars(\$parameters));");
break;
}
return $content;
}