public function __construct() { parent::__construct('personorg'); $this->setAttribute('method', 'post'); $this->add(new Element\Hidden('id_person')); $this->add(new Element\Hidden('id_organization')); $this->add(new Element\Hidden('bool_primary')); $this->add(new Element\Hidden('nid_lov_personorgtype')); $this->add(new Element\Hidden('dt_begin')); $name_title = new Element\Text('name_title'); $name_title->setLabel('Title')->setAttributes(array('class' => 'largewhite')); $this->add($name_title); $pnum_primary_order = new Element\Select('num_primary_order'); $pnum_primary_order->setLabel('Primary Order')->setAttributes(array('class' => 'tinywhite')); $this->add($pnum_primary_order); $dt_end = new Element\Date('dt_end'); $dt_end->setLabel('End Date')->setAttributes(array('class' => 'smallwhite', 'type' => 'date', 'id' => 'dt_end'))->setOptions(array('datepickerOptions' => array('changeYear: true', 'changeMonth: true', 'yearRange: "c-100:c+100"'))); $this->add($dt_end); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'smallwhite')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn-success', 'style' => 'margin-right:70px;', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Login')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn-success', 'style' => 'margin: 10px 0 10px 140px')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('orgtype'); $this->setAttribute('method', 'post'); $type_organization = new Element\Text('type_organization'); $type_organization->setLabel('Organization Type')->setAttributes(array('class' => 'form-control input-sm')); $this->add($type_organization); $genre = new Element\Text('genre'); $genre->setLabel('Genre')->setAttributes(array('class' => 'form-control input-sm')); $this->add($genre); $bool_unioned = new Element\Radio('bool_unioned'); $bool_unioned->setLabel('Unioned ?')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No')); $this->add($bool_unioned); $registered_location = new Element\Text('registered_location'); $registered_location->setLabel('Registered Location')->setAttributes(array('class' => 'form-control input-sm')); $this->add($registered_location); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('Attachment'); $this->add(new Element\Hidden('target_type_object')); $this->add(new Element\Hidden('target_id_row')); $this->setAttribute('method', 'post'); $nid_lov_attachmenttype = new Element\Select('nid_lov_attachmenttype'); $nid_lov_attachmenttype->setLabel('Attachment Type')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'Select a attachment type')); $this->add($nid_lov_attachmenttype); $url_or_filepath = new Element\Text('url_or_filepath'); $url_or_filepath->setLabel('Url or file path')->setAttributes(array('class' => 'form-control input-sm')); $this->add($url_or_filepath); $filename = new Element\Text('filename'); $filename->setLabel('File Name')->setAttributes(array('class' => 'form-control input-sm')); $this->add($filename); $filesize = new Element\Text('filesize'); $filesize->setLabel('File Size')->setAttributes(array('class' => 'form-control input-sm')); $this->add($filesize); $mimetype = new Element\Text('mimetype'); $mimetype->setLabel('Mime Type')->setAttributes(array('class' => 'form-control input-sm')); $this->add($mimetype); $bool_active = new Element\Radio('bool_active'); $bool_active->setLabel('Is Active?')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No'))->setAttributes(array('class' => 'medwhite')); $this->add($bool_active); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('tenant'); $this->setAttribute('method', 'post'); $name_tenant = new Element\Text('name_tenant'); $name_tenant->setLabel('Tenant')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_tenant); $tenant_email = new Element\Text('tenant_email'); $tenant_email->setLabel('Email')->setAttributes(array('class' => 'form-control input-sm')); $this->add($tenant_email); $nid_timezone = new Element\Select('nid_timezone'); $nid_timezone->setLabel('Time Zone')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a timezone')); $this->add($nid_timezone); $id_locale = new Element\Select('nid_locale'); $id_locale->setLabel('Locale')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a locale')); $this->add($id_locale); $nid_language = new Element\Select('nid_language'); $nid_language->setLabel('Language')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a language')); $this->add($nid_language); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('communication'); $this->add(new Element\Hidden('id_party')); $this->add(new Element\Hidden('nid_commtype')); $this->add(new Element\Hidden('access_detail')); $this->add(new Element\Hidden('access_form')); $this->setAttribute('method', 'post'); $this->get('access_detail')->setLabel('Account / Number'); $num_primary_order = new Element\Text('num_primary_order'); $num_primary_order->setLabel('Number Primary Order')->setAttributes(array('class' => 'form-control input-sm')); $this->add($num_primary_order); $id_address = new Element\Select('id_address'); $id_address->setLabel('Address')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'No Address Binded')); $this->add($id_address); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('timezone'); $this->setAttribute('method', 'post'); $name_timezone = new Element\Text('name_timezone'); $name_timezone->setLabel('Timezone')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_timezone); $num_timezone = new Element\Text('num_timezone'); $num_timezone->setLabel('Timezone Number')->setAttributes(array('class' => 'form-control input-sm')); $this->add($num_timezone); $bool_daylight_saving = new Element\Radio('bool_daylight_saving'); $bool_daylight_saving->setLabel('Daylight Saving')->setLabelAttributes(array('class' => 'checkbox-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No')); $this->add($bool_daylight_saving); $dt_summer_time_begin = new Element\Text('dt_summer_time_begin'); $dt_summer_time_begin->setLabel('Summer Time Begin')->setAttributes(array('type' => 'datetime', 'id' => 'dt_summer_time_begin', 'class' => 'form-control input-sm'))->setOptions(array('datepickerOptions' => array('autoSize: true'))); $this->add($dt_summer_time_begin); $dt_winter_time_begin = new Element\Text('dt_winter_time_begin'); $dt_winter_time_begin->setLabel('Winter Time Begin')->setAttributes(array('type' => 'datetime', 'id' => 'dt_winter_time_begin', 'class' => 'form-control input-sm'))->setOptions(array('datepickerOptions' => array('autoSize: true'))); $this->add($dt_winter_time_begin); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('document'); $this->add(new Element\Hidden('id_party')); $this->setAttribute('method', 'post'); $nid_lov_doctype = new Element\Select('nid_lov_doctype'); $nid_lov_doctype->setLabel('Document Type')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a document type')); $this->add($nid_lov_doctype); $nid_language = new Element\Select('nid_language'); $nid_language->setLabel('Language')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a language')); $this->add($nid_language); $num_sequence = new Element\Text('num_sequence'); $num_sequence->setLabel('Sequence')->setAttributes(array('class' => 'form-control input-sm')); $this->add($num_sequence); $name_document = new Element\Text('name_document'); $name_document->setLabel('Name of document')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_document); $bool_enterprise = new Element\Radio('bool_enterprise'); $bool_enterprise->setLabel('Is Enterprise?')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No'))->setAttributes(array('class' => 'medwhite')); $this->add($bool_enterprise); $bool_attachment = new Element\Radio('bool_attachment'); $bool_attachment->setLabel('Has attachment?')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No'))->setAttributes(array('class' => 'medwhite')); $this->add($bool_attachment); $bool_readonly = new Element\Radio('bool_readonly'); $bool_readonly->setLabel('Is ready only?')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No'))->setAttributes(array('class' => 'medwhite')); $this->add($bool_readonly); $header = new Element\Textarea('header'); $header->setLabel('Header')->setAttributes(array('class' => 'form-control input-sm')); $this->add($header); $body = new Element\Textarea('body'); $body->setLabel('Body')->setAttributes(array('class' => 'form-control input-sm')); $this->add($body); $footer = new Element\Textarea('footer'); $footer->setLabel('Footer')->setAttributes(array('class' => 'form-control input-sm')); $this->add($footer); $dt_begin = new Element\Text('dt_begin'); $dt_begin->setLabel('Validate Date Begin')->setAttributes(array('type' => 'datetime', 'id' => 'dt_begin', 'class' => 'form-control input-sm'))->setOptions(array('datepickerOptions' => array('autoSize: true'))); $this->add($dt_begin); $dt_end = new Element\Text('dt_end'); $dt_end->setLabel('Validate Date Ends')->setAttributes(array('type' => 'datetime', 'id' => 'dt_end', 'class' => 'form-control input-sm'))->setOptions(array('datepickerOptions' => array('autoSize: true'))); $this->add($dt_end); $num_view = new Element\Text('num_view'); $num_view->setLabel('Number of times being viewed')->setAttributes(array('class' => 'form-control input-sm')); $this->add($num_view); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('user'); $this->add(new Element\Hidden('id_party')); $this->setAttribute('method', 'post'); $name_login = new Element\Text('name_login'); $name_login->setLabel('Login Name')->setAttributes(array('class' => 'largewhite')); $this->add($name_login); $password = new Element\Text('password'); $password->setLabel('Password <br/>(Leave blank if do not change the password)')->setAttributes(array('class' => 'largewhite')); $this->add($password); $password_hint = new Element\Text('password_hint'); $password_hint->setLabel('Password Hint 1')->setAttributes(array('class' => 'largewhite')); $this->add($password_hint); $password_hint_answer = new Element\Text('password_hint_answer'); $password_hint_answer->setLabel('Password Hint 1 Answer')->setAttributes(array('class' => 'largewhite')); $this->add($password_hint_answer); $password_hint2 = new Element\Text('password_hint2'); $password_hint2->setLabel('Password Hint 2')->setAttributes(array('class' => 'largewhite')); $this->add($password_hint2); $password_hint2_answer = new Element\Text('password_hint2_answer'); $password_hint2_answer->setLabel('Password Hint 2 Answer')->setAttributes(array('class' => 'largewhite')); $this->add($password_hint2_answer); $nid_lov_login_state = new Element\Select('nid_lov_login_state'); $nid_lov_login_state->setLabel('Login State')->setAttributes(array('class' => 'white'))->setValueOptions(array('0' => 'Select a login state')); $this->add($nid_lov_login_state); $nid_lov_login_delivery_type = new Element\Select('nid_lov_login_delivery_type'); $nid_lov_login_delivery_type->setLabel('Delivery Type')->setAttributes(array('class' => 'white'))->setValueOptions(array('0' => 'Select a delivery type')); $this->add($nid_lov_login_delivery_type); $bool_active = new Element\Radio('bool_active'); $bool_active->setLabel('Is Active?')->setLabelAttributes(array('style' => 'float:left;width:50px;margin-right:10px'))->setValueOptions(array('1' => 'Yes', '0' => 'No'))->setAttributes(array('class' => 'medwhite')); $this->add($bool_active); $phase2_auth = new Element\Text('phase2_auth'); $phase2_auth->setLabel('Phase 2 auth code')->setAttributes(array('class' => 'largewhite')); $this->add($phase2_auth); $dt_phase2_auth_timeout = new Element\Text('dt_phase2_auth_timeout'); $dt_phase2_auth_timeout->setLabel('Phase 2 auth code expired time')->setAttributes(array('type' => 'datetime', 'id' => 'dt_begin', 'class' => 'medwhite'))->setOptions(array('datepickerOptions' => array('autoSize: true'))); $this->add($dt_phase2_auth_timeout); $num_retries = new Element\Text('num_retries'); $num_retries->setLabel('Number of retries')->setAttributes(array('class' => 'smallwhite')); $this->add($num_retries); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'smallwhite')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn-success', 'style' => 'margin-right:100px;', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn-success')); $this->add($submit); }
public function __construct() { parent::__construct('Keyword'); $this->add(new Element\Hidden('nid')); $this->add(new Element\Hidden('id_row')); $this->add(new Element\Hidden('target_type_object')); $this->add(new Element\Hidden('target_id_row')); $this->setAttribute('method', 'post'); $keyword = new Element\Textarea('keyword'); $keyword->setLabel('Keyword')->setAttributes(array('class' => 'smallwhite')); $this->add($keyword); $description = new Element\Textarea('description'); $description->setLabel('Description')->setAttributes(array('class' => 'smallwhite')); $this->add($description); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn-success', 'style' => 'margin-right:100px;', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn-success')); $this->add($submit); }
public function __construct() { parent::__construct('resp-resource'); $this->setAttribute('method', 'post'); $this->add(new Element\Hidden('id_resp')); $id_resource = new Element\Select('id_resource'); $id_resource->setLabel('Resource')->setAttributes(array('class' => 'medwhite')); $this->add($id_resource); $nid_lov_controltype = new Element\Collection('nid_lov_controltype'); $nid_lov_controltype->setLabel('Control Type')->setAttributes(array('class' => 'medwhite')); $this->add($nid_lov_controltype); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'smallwhite')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn-success', 'style' => 'margin-right:100px;', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn-success')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('commtype'); $this->setAttribute('method', 'post'); $name_commtype = new Element\Text('name_commtype'); $name_commtype->setLabel('Communication Type')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_commtype); $access_form = new Element\Text('access_form'); $access_form->setLabel('Access Form')->setAttributes(array('class' => 'form-control input-sm')); $this->add($access_form); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { parent::__construct('Rating'); $this->add(new Element\Hidden('nid')); $this->add(new Element\Hidden('id_row')); $this->add(new Element\Hidden('target_type_object')); $this->add(new Element\Hidden('target_id_row')); $this->setAttribute('method', 'post'); $rating = new Element\Text('Rating'); $rating->setLabel('Rate')->setAttributes(array('class' => 'tinywhite')); $this->add($rating); $bool_status = new Element\Radio('bool_status'); $bool_status->setLabel('Status')->setLabelAttributes(array('style' => 'float:left;width:50px;margin-right:10px'))->setValueOptions(array('1' => 'Yes', '0' => 'No')); $this->add($bool_status); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn-success', 'style' => 'margin-right:100px;', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn-success')); $this->add($submit); }
public function __construct() { parent::__construct('Comment'); $this->add(new Element\Hidden('nid')); $this->add(new Element\Hidden('id_row')); $this->add(new Element\Hidden('target_type_object')); $this->add(new Element\Hidden('target_id_row')); $this->setAttribute('method', 'post'); $comment = new Element\Textarea('Comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $bool_status = new Element\Radio('bool_status'); $bool_status->setLabel('Status')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No')); $this->add($bool_status); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('country'); $this->setAttribute('method', 'post'); $name_country = new Element\Text('name_country'); $name_country->setLabel('Country')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_country); $brief_country = new Element\Text('brief_country'); $brief_country->setLabel('Brief Alias')->setAttributes(array('class' => 'form-control input-sm')); $this->add($brief_country); $region = new Element\Text('region'); $region->setLabel('Region')->setAttributes(array('class' => 'form-control input-sm')); $this->add($region); $alpha1 = new Element\Text('alpha1'); $alpha1->setLabel('Alpha 1')->setAttributes(array('class' => 'form-control input-sm')); $this->add($alpha1); $alpha2 = new Element\Text('alpha2'); $alpha2->setLabel('Alpha 2')->setAttributes(array('class' => 'form-control input-sm')); $this->add($alpha2); $paypal_code = new Element\Text('paypal_code'); $paypal_code->setLabel('Language')->setAttributes(array('class' => 'form-control input-sm')); $this->add($paypal_code); $iso = new Element\Text('iso'); $iso->setLabel('ISO')->setAttributes(array('class' => 'form-control input-sm')); $this->add($iso); $display_level = new Element\Text('display_level'); $display_level->setLabel('Display Level')->setAttributes(array('class' => 'form-control input-sm')); $this->add($display_level); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('partyaddress'); $this->add(new Element\Hidden('id_party')); $this->add(new Element\Hidden('id_address')); $this->add(new Element\Hidden('num_primary_order')); $this->setAttribute('method', 'post'); $address = new AddressFieldset('address'); $address->getOptions(array('use_as_base_fieldset' => true)); $this->add($address); $nid_lov_addresstype = new Element\Select('nid_lov_addresstype'); $nid_lov_addresstype->setLabel('Address Type')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'Select an address type')); $this->add($nid_lov_addresstype); $bool_billing_address = new Element\Radio('bool_billing_address'); $bool_billing_address->setLabel('Is billing address?')->setLabelAttributes(array('class' => 'radio-line'))->setValueOptions(array('1' => 'Yes', '0' => 'No')); $this->add($bool_billing_address); $bool_shipping_address = new Element\Radio('bool_shipping_address'); $bool_shipping_address->setLabel('Is shipping address?')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No')); $this->add($bool_shipping_address); $flag_status = new Element\Radio('flag_status'); $flag_status->setLabel('Flag')->setLabelAttributes(array('class' => 'radio-inilne'))->setValueOptions(array('1' => 'Active', '0' => 'Not Active')); $this->add($flag_status); $dt_begin = new Element\Date('dt_begin'); $dt_begin->setLabel('Begin Date')->setAttributes(array('class' => 'form-control input-sm', 'type' => 'date', 'id' => 'dt_begin'))->setOptions(array('datepickerOptions' => array('changeYear: true', 'changeMonth: true', 'yearRange: "c-150:c+150"'))); $this->add($dt_begin); $dt_end = new Element\Date('dt_end'); $dt_end->setLabel('End Date')->setAttributes(array('class' => 'form-control input-sm', 'type' => 'date', 'id' => 'dt_end'))->setOptions(array('datepickerOptions' => array('changeYear: true', 'changeMonth: true', 'yearRange: "c-150:c+150"'))); $this->add($dt_end); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('locale'); $this->setAttribute('method', 'post'); $name_locale = new Element\Text('name_locale'); $name_locale->setLabel('Locale')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_locale); $locale_alias = new Element\Text('locale_alias'); $locale_alias->setLabel('Alias')->setAttributes(array('class' => 'form-control input-sm')); $this->add($locale_alias); $name_territory = new Element\Text('name_territory'); $name_territory->setLabel('Territory')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_territory); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('lov'); $this->setAttribute('method', 'post'); $this->add(new Element\Hidden('nid_parent_lov')); $this->add(new Element\Hidden('num_level')); $this->add(new Element\Hidden('type_lov')); $name_lov = new Element\Text('name_lov'); $name_lov->setLabel('List Of Value')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_lov); $name_alias = new Element\Text('name_alias'); $name_alias->setLabel('Alias')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_alias); $num_display_order = new Element\Text('num_display_order'); $num_display_order->setLabel('Display Order')->setAttributes(array('class' => 'form-control input-sm')); $this->add($num_display_order); $nid_language = new Element\Select('nid_language'); $nid_language->setLabel('Language')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a language')); $this->add($nid_language); $bool_translateable = new Element\Radio('bool_translateable'); $bool_translateable->setLabel('Translateable')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No')); $this->add($bool_translateable); $bool_controlbypoxn = new Element\Radio('bool_controlbypoxn'); $bool_controlbypoxn->setLabel('Control by Poxn')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No')); $this->add($bool_controlbypoxn); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { // we want to ignore the name passed parent::__construct('state'); $this->setAttribute('method', 'post'); $id_country = new Element\Select('id_country'); $id_country->setLabel('Country')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a country')); $this->add($id_country); $name_state = new Element\Text('name_state'); $name_state->setLabel('State')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_state); $brief_state = new Element\Text('brief_state'); $brief_state->setLabel('Brief Alias')->setAttributes(array('class' => 'form-control input-sm')); $this->add($brief_state); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Go')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct($name = null) { parent::__construct($name); $this->add(new Element\Hidden('id_parent')); }
public function __construct() { parent::__construct('person'); $this->setAttribute('method', 'post'); $nid_timezone = new Element\Select('nid_timezone'); $nid_timezone->setLabel('Time Zone')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a timezone')); $this->add($nid_timezone); $nid_locale = new Element\Select('nid_locale'); $nid_locale->setLabel('Locale')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a locale')); $this->add($nid_locale); $nid_language = new Element\Select('nid_language'); $nid_language->setLabel('Language')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a language')); $this->add($nid_language); $nid_lov_currency = new Element\Select('nid_lov_currency'); $nid_lov_currency->setLabel('Currency')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a Currency')); $this->add($nid_lov_currency); $name_party = new Element\Text('name_party'); $name_party->setLabel('Party Name')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_party); $bool_active = new Element\Radio('bool_active'); $bool_active->setLabel('Active')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No')); $this->add($bool_active); $party_alias = new Element\Text('party_alias'); $party_alias->setLabel('Party Alias')->setAttributes(array('class' => 'form-control input-sm')); $this->add($party_alias); $id_pr_address = new Element\Radio('id_pr_address'); $id_pr_address->setLabel('Primary Address')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('' => 'No Primary Address')); $this->add($id_pr_address); $id_pr_comm_phone = new Element\Select('id_pr_comm_phone'); $id_pr_comm_phone->setLabel('Phone')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'Select a phone')); $this->add($id_pr_comm_phone); $id_pr_comm_email = new Element\Select('id_pr_comm_email'); $id_pr_comm_email->setLabel('Email')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'Select an email')); $this->add($id_pr_comm_email); $id_pr_comm_fax = new Element\Select('id_pr_comm_fax'); $id_pr_comm_fax->setLabel('Fax')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'Select a fax')); $this->add($id_pr_comm_fax); $id_pr_comm_sm = new Element\Select('id_pr_comm_sm'); $id_pr_comm_sm->setLabel('SM')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'Select a SM')); $this->add($id_pr_comm_sm); $access_form = new Element\Text('access_form'); $access_form->setLabel('Access Form')->setAttributes(array('class' => 'form-control input-sm')); $this->add($access_form); $name_first = new Element\Text('name_first'); $name_first->setLabel('First Name')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_first); $name_last = new Element\Text('name_last'); $name_last->setLabel('Last Name')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_last); $name_middle = new Element\Text('name_middle'); $name_middle->setLabel('Middle Name')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_middle); $name_alias = new Element\Text('name_alias'); $name_alias->setLabel('Nick Name')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_alias); $name_maiden = new Element\Text('name_maiden'); $name_maiden->setLabel('Maiden Name')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_maiden); $name_mother_maiden = new Element\Text('name_mother_maiden'); $name_mother_maiden->setLabel('Mother Maiden Name')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_mother_maiden); $dt_birth = new Element\Date('dt_birth'); $dt_birth->setLabel('Date of Birth')->setAttributes(array('class' => 'form-control input-sm', 'type' => 'date', 'id' => 'dt_birth'))->setOptions(array('datepickerOptions' => array('changeYear: true', 'changeMonth: true', 'yearRange: "c-100:c"'))); $this->add($dt_birth); $num_age_when_registered = new Element\Text('num_age_when_registered'); $num_age_when_registered->setLabel('Age When Registered')->setAttributes(array('class' => 'form-control input-sm')); $this->add($num_age_when_registered); $nid_lov_gender = new Element\Radio('nid_lov_gender'); $nid_lov_gender->setLabel('Gender')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('0' => 'male')); $this->add($nid_lov_gender); $id_emergcon = new Element\Select('id_emergcon'); $id_emergcon->setLabel('Emergency Contact')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a Contact')); $this->add($id_emergcon); $nid_lov_emergcon = new Element\Radio('nid_lov_emergcon'); $nid_lov_emergcon->setLabel('Emergency Contact Type')->setLabelAttributes(array('class' => 'radio-inline')); $this->add($nid_lov_emergcon); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $bool_active = new Element\Radio('bool_active'); $bool_active->setLabel('Active')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No')); $this->add($bool_active); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Login')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }
public function __construct() { parent::__construct('organization'); $this->setAttribute('method', 'post'); $nid_timezone = new Element\Select('nid_timezone'); $nid_timezone->setLabel('Time Zone')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a timezone')); $this->add($nid_timezone); $nid_locale = new Element\Select('nid_locale'); $nid_locale->setLabel('Locale')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a locale')); $this->add($nid_locale); $nid_language = new Element\Select('nid_language'); $nid_language->setLabel('Language')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a language')); $this->add($nid_language); $nid_lov_currency = new Element\Select('nid_lov_currency'); $nid_lov_currency->setLabel('Currency')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('0' => 'Select a Currency')); $this->add($nid_lov_currency); $name_party = new Element\Text('name_party'); $name_party->setLabel('Party Name')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_party); $bool_active = new Element\Radio('bool_active'); $bool_active->setLabel('Active')->setValueOptions(array('1' => 'Yes', '0' => 'No'))->setLabelAttributes(array('class' => 'radio-inline')); $this->add($bool_active); $party_alias = new Element\Text('party_alias'); $party_alias->setLabel('Party Alias')->setAttributes(array('class' => 'form-control input-sm')); $this->add($party_alias); $id_pr_address = new Element\Radio('id_pr_address'); $id_pr_address->setLabel('Primary Address')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('' => 'No Primary Address')); $this->add($id_pr_address); $id_pr_comm_phone = new Element\Select('id_pr_comm_phone'); $id_pr_comm_phone->setLabel('Phone')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'Select a phone')); $this->add($id_pr_comm_phone); $id_pr_comm_email = new Element\Select('id_pr_comm_email'); $id_pr_comm_email->setLabel('Email')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'Select an email')); $this->add($id_pr_comm_email); $id_pr_comm_fax = new Element\Select('id_pr_comm_fax'); $id_pr_comm_fax->setLabel('Fax')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'Select a fax')); $this->add($id_pr_comm_fax); $id_pr_comm_sm = new Element\Select('id_pr_comm_sm'); $id_pr_comm_sm->setLabel('SM')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'Select a SM')); $this->add($id_pr_comm_sm); $access_form = new Element\Text('access_form'); $access_form->setLabel('Access Form')->setAttributes(array('class' => 'form-control input-sm')); $this->add($access_form); $id_pr_parent = new TreeRadio('id_pr_parent'); $id_pr_parent->setLabel('Parent Organization'); $this->add($id_pr_parent); $name_organization = new Element\Text('name_organization'); $name_organization->setLabel('Organization Name')->setAttributes(array('class' => 'form-control input-sm')); $this->add($name_organization); $bool_external = new Element\Radio('bool_external'); $bool_external->setLabel('External')->setValueOptions(array('1' => 'Yes', '0' => 'No'))->setLabelAttributes(array('class' => 'radio-inline')); $this->add($bool_external); $website = new Element\Text('website'); $website->setLabel('Website')->setAttributes(array('class' => 'form-control input-sm')); $this->add($website); $bool_suborg = new Element\Radio('bool_suborg'); $bool_suborg->setLabel('Has Sub Organization')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'Yes', '0' => 'No')); $this->add($bool_suborg); $nid_orgtype = new Element\Radio('nid_orgtype'); $nid_orgtype->setLabel('Organization Type')->setLabelAttributes(array('class' => 'radio-inline')); $this->add($nid_orgtype); $num_employee = new Element\Text('num_employee'); $num_employee->setLabel('Number Of Employees')->setAttributes(array('class' => 'form-control input-sm')); $this->add($num_employee); $comment = new Element\Textarea('comment'); $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm')); $this->add($comment); $back = new Element\Button('back'); $back->setLabel('Back')->setAttributes(array('id' => 'backbutton', 'class' => 'btn btn-primary btn-sm', 'onclick' => '')); $this->add($back); $submit = new Element\Submit('submit'); $submit->setValue('Login')->setAttributes(array('id' => 'submitbutton', 'class' => 'btn btn-primary btn-sm')); $this->add($submit); }