本文整理汇总了PHP中Button::getOnClickButton方法的典型用法代码示例。如果您正苦于以下问题:PHP Button::getOnClickButton方法的具体用法?PHP Button::getOnClickButton怎么用?PHP Button::getOnClickButton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Button
的用法示例。
在下文中一共展示了Button::getOnClickButton方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
if ($edition) {
$request->displayReqListInfos(true, array('id' => $id, 'gid' => $id, 'target' => $target, 'target_edit' => 'computersgroupsubedit', 'target_del' => 'computersgroupsubdel', 'request' => $request->toS()));
} else {
$request->displayReqListInfos(true, array('id' => $id, 'gid' => $id, 'target' => $target, 'target_edit' => 'computersgroupcreatesubedit', 'target_del' => 'computersgroupcreatesubdel', 'request' => $request->toS(), 'tab' => 'tabdyn'));
}
}
// display action buttons in the bottom
//TODO put in class
if (!$request->isEmpty()) {
# TODO check ACLs....
print "<hr/>";
print "<table>";
print "<tr><td>";
$b = new Button('base', 'computers', 'creator_step2');
$url = urlStr("base/computers/creator_step2", array('id' => $id, 'request' => $request->toS(), 'imaging_server' => $imaging_server, 'is_group' => $groupedit ? '1' : 0));
print $b->getOnClickButton(_T("Go to save step", "dyngroup"), $url);
print "</td><td>";
print "</td></tr>";
print "</table>";
}
?>
<style>
li.delete a {
padding: 3px 0px 5px 20px;
margin: 0 0px 0 0px;
background-image: url("modules/msc/graph/images/actions/delete.png");
background-repeat: no-repeat;
background-position: left top;
line-height: 18px;
text-decoration: none;
color: #FFF;
示例2: addOnClickButton
function addOnClickButton($text, $url)
{
$b = new Button();
$this->buttons[] = $b->getOnClickButton($text, $url);
}