예제 #1
0
파일: creator.php 프로젝트: neoclust/mmc
    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
0
 function addOnClickButton($text, $url)
 {
     $b = new Button();
     $this->buttons[] = $b->getOnClickButton($text, $url);
 }