Exemplo n.º 1
0
        }
        $table->addHeadRow($row);

        $orderBox = Html::startTag('div', array('id' => 'order'));
        $orderBox .= Html::startTag('p', array('id' => 'orderHeadline')) . 'Warenkorb' . Html::endTag('p');
        $orderBox .= Html::startTag('div', array('id' => 'orderNoContent'))
            . 'Es wurden noch keine Waren ausgewählt'
            . Html::endTag('div');
        $orderBox .= Html::startTag('div', array('id' => 'orderContent'));
        $form = new base_html_model_Form();
        $orderBox .= $form->start('ajax.php?controller=medexchange_ajax_save_medorder_Controller', 'post', array('class' => 'ajaxForm'));
        $orderBox .= $table->toString();
        $orderBox .= Html::startTag('div', array('id' => 'totalAmount'))
            . "Gesamt:\t" . Html::startTag('span') . Html::endTag('span') . " €"
            . Html::endTag('div') . "<br />";
        $formElement = new base_form_element_Submit(new Fieldinfo('MedOffer'));
        $formElement->setName('submit');
        $formElement->setValue('Absenden');
        $orderBox .= $formElement->display();
        $orderBox .= $form->end();
        $orderBox .= Html::endTag('div');
        $orderBox .= Html::endTag('div');
        $od->addContent(
            $orderBox);
    }
}

base_ui_Site::endMainContent($od);
base_ui_Site::displayBottom($od);

print $od->toString();
Exemplo n.º 2
0
    $rowUserId->addCell($valueCell);
    $table->addRow($rowUserId);

    $labelCell = new base_html_model_table_Cell();
    $labelCell->setContent('Passwort');
    $valueCell = new base_html_model_table_Cell();
    $inputPassword = base_form_element_Factory::createElement($obj->getFieldinfo('password'));
    $inputPassword->setName('password');
    $inputPassword->setDisplayMode(DisplayClass::EDIT);
    $valueCell->setContent($inputPassword->display());
    $rowPassword = new base_html_model_table_Row();
    $rowPassword->addCell($labelCell);
    $rowPassword->addCell($valueCell);
    $table->addRow($rowPassword);
    
    $od->addContent( $table->toString());


    $submit = new base_form_element_Submit(new Fieldinfo('BaseObject'));
    $submit->setName('submit');
    $submit->setValue('Einloggen');
    
    $od->addContent($submit->display());
    $od->addContent("</form>\n");
}

base_ui_Site::endMainContent($od);
base_ui_Site::displayBottom($od);

print $od->toString();