コード例 #1
0
    /**
     * Setting the toolbar
     */
    protected function addToolBar()
    {
        $title = '<div class="lead"><span class="icon-edit"></span>&nbsp&nbsp' . JText::_('COM_BOOKPRO_PASSENGER_MANAGER') . '</div>
				<div class="clearfix"></div>';
        $save = AHtml::addButton('JSAVE', 'save', 'btn btn-primary', 'agenttransportreport.apply', false);
        $saveAndClose = AHtml::addButton('COM_BOOKPRO_SAVE_AND_CLOSE', 'save', 'btn btn-primary', 'agenttransportreport.save', false);
        $cancel = AHtml::addButton('JCANCEL', 'cancel', 'btn btn-primary', 'agenttransportreport.cancel', false);
        echo '<div class="row-fluid clearfix">' . $title . $save . $saveAndClose . $cancel . '</div>';
    }
コード例 #2
0
    function getToolbar()
    {
        $title = '<div class="lead"><span class="icon-edit"></span>&nbsp&nbsp' . JText::_('COM_BOOKPRO_PASSENGER_MANAGER') . '</div>
				<div class="clearfix"></div>';
        $save = AHtml::addButton('JSAVE', 'save', 'btn btn-primary', 'agentpassenger.apply', false);
        $saveAndClose = AHtml::addButton('COM_BOOKPRO_SAVE_AND_CLOSE', 'save', 'btn btn-primary', 'agentpassenger.save', false);
        $cancel = AHtml::addButton('JCANCEL', 'cancel', 'btn btn-primary', 'agentpassenger.cancel', false);
        return $title . $save . $saveAndClose . $cancel;
    }
コード例 #3
0
 function getToolbar()
 {
     $edit = AHtml::addButton('JGLOBAL_EDIT', 'edit', 'btn', 'agentpassenger.edit', true);
     $delete = AHtml::addButton('JACTION_DELETE', 'delete', 'btn', 'agentpassengers.delete', true);
     return $edit . $delete;
 }