<div class="login-page page"> <div class="wrapper"> <h2><?php echo \GO::t('login', 'defaultsite'); ?> </h2> <?php $form = new \GO\Site\Widget\Form(); ?> <?php echo $form->beginForm(); ?> <?php if (\Site::notifier()->hasMessage('error')) { ?> <div class="notification error"><?php echo \Site::notifier()->getMessage('error'); ?> </div> <?php } ?> <table class="table-login"> <tr> <td><?php echo $form->label($model, 'username'); ?> </td> <td><?php
<div class="register-page page"> <div class="wrapper"> <h2><?php echo \GO::t('contactformTitle', 'defaultsite'); ?> </h2> <?php $form = new \GO\Site\Widget\Form(); ?> <?php echo $form->beginForm(false, false, array('id' => 'contact')); ?> <?php echo \GO::t('contactformText', 'defaultsite'); ?> <?php // Find the first addressbook that's available: $addressbook = \GO\Addressbook\Model\Addressbook::model()->findSingle(); // Find addressbook by id: // $addressbook = \GO\Addressbook\Model\Addressbook::model()->findByPk(11); // Find addressbook by the name attribute: // $addressbook = \GO\Addressbook\Model\Addressbook::model()->findSingleByAttribute('name','Example'); // Use the addressbook model to populate the hidden field: echo $form->hiddenField($addressbook, 'id', array('value' => $addressbook->id)); // Just set the correct addressbook id in the hidden field manually: // echo $form->hiddenField($addressbook,'id',array('value'=>11)); //$addressbook = \GO\Addressbook\Model\Addressbook::model()->findSingleByAttribute('name','Example'); echo $form->hiddenField($addressbook, 'id', array('value' => $addressbook->id));
</tr> <?php } ?> </table> <?php if (!$ticket->isClosed()) { ?> <?php $form = new \GO\Site\Widget\Form(); ?> <?php echo $form->beginForm(false, false, array('enctype' => 'multipart/form-data')); ?> <?php $uploader = new \GO\Site\Widget\Plupload\Widget(); ?> <h3><?php echo \GO::t('ticketYourMessage', 'defaultsite'); ?> </h3> <?php echo $form->textArea($new_message, 'content', array('required' => true)); ?> <?php
<div class="register-page page"> <div class="wrapper"> <h2><?php echo \GO::t('register', 'defaultsite'); ?> </h2> <?php $form = new \GO\Site\Widget\Form(); ?> <?php echo $form->beginForm(false, false, array('id' => 'register')); ?> <?php echo \GO::t('registerformText', 'defaultsite'); ?> <h3><?php echo \GO::t('contactDetails', 'defaultsite'); ?> </h3> <table class="table-registration-contact"> <tr> <td><?php echo $form->label($user, 'first_name'); ?> </td> <td><?php echo $form->textField($user, 'first_name'); echo $form->error($user, 'first_name');