function radiobuttons_history_tag($row_nb, $version) { switch ($row_nb) { case 1: $old_checked = false; $new_checked = true; break; case 2: $old_checked = true; $new_checked = false; break; default: $old_checked = $new_checked = false; } echo radiobutton_tag('old', $version, $old_checked) . ' ' . radiobutton_tag('new', $version, $new_checked); }
?> </label><br/> <?php echo radiobutton_tag('status', StudentLeave::STATUS_PROPOSED, $student_leave->getStatus() == StudentLeave::STATUS_PROPOSED); ?> Diajukan <?php echo radiobutton_tag('status', StudentLeave::STATUS_APPROVED, $student_leave->getStatus() == StudentLeave::STATUS_APPROVED); ?> Disetujui <?php echo radiobutton_tag('status', StudentLeave::STATUS_ACTIVE, $student_leave->getStatus() == StudentLeave::STATUS_ACTIVE); ?> Aktif <?php echo radiobutton_tag('status', StudentLeave::STATUS_DONE, $student_leave->getStatus() == StudentLeave::STATUS_DONE); ?> Selesai <?php echo radiobutton_tag('status', StudentLeave::STATUS_CANCELED, $student_leave->getStatus() == StudentLeave::STATUS_CANCELED); ?> Batal <?php echo form_error('status'); ?> </td></tr> </tbody> </table> </td></tr> </table> </form>
if ($OC->isPle()) { $style = " background-color: #FFC4C4; "; } elseif ($OC->getIsRestringit() && !CursosPeer::getRestrictedNotes($IDU, $OC->getIdCursos())) { $style = " background-color: #FFC670; "; } else { $style = ""; } ?> <div style="margin-top:3px; clear: both; <?php echo $style; ?> " class="linia_curs"> <div style="float: left;"> <?php echo radiobutton_tag('matricules[idC]', $OC->getIdcursos(), false, array('class' => 'matricula')); ?> </div> <div style="padding-left:5px; float: left; width:100px;"> <b><?php echo $OC->getCodi(); ?> </b><br /> <div style="font-size:8px; color:gray;"><?php echo $OC->getDatainici('d/m/Y'); ?> </div> </div> <div style="padding-left:5px; float: left; width:400px;"> <?php echo $OC->getTitolcurs() . '<span style="color:gray; font-size:8px;"> | ' . $OC->getHoraris() . ' </span> ';
$field = 'genders' . $row . '[]'; ?> <?php echo radiobutton_tag($field, $entity['id'] . ':' . '1', false); ?> F <br /> <?php echo radiobutton_tag($field, $entity['id'] . ':' . '2', false); ?> M <br /> <?php echo radiobutton_tag($field, $entity['id'] . ':' . '0', false); ?> X <br /> <?php echo radiobutton_tag($field, $entity['id'] . ':' . '?', false); ?> ? <br /> <?php echo link_to('search', 'http://google.com/images?q=' . urlencode($entity['name']), 'target=_blank'); ?> </td> <td> <?php echo entity_link($entity); ?> </td> <td> <?php
// checkbox_tag() $t->diag('checkbox_tag()'); $t->is(checkbox_tag('name'), '<input type="checkbox" name="name" id="name" value="1" />', 'checkbox_tag() takes a name as its first argument'); $t->is(checkbox_tag('name', 'foo'), '<input type="checkbox" name="name" id="name" value="foo" />', 'checkbox_tag() takes a value as its second argument'); $t->is(checkbox_tag('name', null, true), '<input type="checkbox" name="name" id="name" value="" checked="checked" />', 'checkbox_tag() takes a boolean as its third argument'); // options $t->is(checkbox_tag('name', null, false, array('class' => 'foo')), '<input type="checkbox" name="name" id="name" value="" class="foo" />', 'checkbox_tag() takes an array of attribute options as its fourth argument'); $t->is(checkbox_tag('name', null, false, array('id' => 'foo')), '<input type="checkbox" name="name" id="foo" value="" />', 'checkbox_tag() can override the "id" attribute'); // radiobutton_tag() $t->diag('radiobutton_tag()'); $t->is(radiobutton_tag('name', 1), '<input type="radio" name="name" id="name_1" value="1" />', 'radiobutton_tag() takes a name as its first argument'); $t->is(radiobutton_tag('name', 2), '<input type="radio" name="name" id="name_2" value="2" />', 'radiobutton_tag() takes a value as its second argument'); $t->is(radiobutton_tag('name', null, true), '<input type="radio" name="name" id="name" value="" checked="checked" />', 'radiobutton_tag() takes a boolean as its third argument'); // options $t->is(radiobutton_tag('name', null, false, array('class' => 'foo')), '<input type="radio" name="name" id="name" value="" class="foo" />', 'radiobutton_tag() takes an array of attribute options as its fourth argument'); $t->is(radiobutton_tag('name', null, false, array('id' => 'foo')), '<input type="radio" name="name" id="foo" value="" />', 'radiobutton_tag() can override the "id" attribute'); // input_date_range_tag() $t->diag('input_date_range_tag()'); $t->unlike(input_date_range_tag('date', array('from' => time(), 'to' => time()), array('after' => 'foo')), '/after/', 'input_date_range_tag() output date fields for a date range'); // input_date_tag() $t->diag('input_date_tag()'); $t->todo('input_date_tag()'); // submit_tag() $t->diag('submit_tag()'); $t->is(submit_tag(), '<input type="submit" name="commit" value="Save changes" />', 'submit_tag() default value is "Save changes"'); $t->is(submit_tag("save"), '<input type="submit" name="commit" value="save" />', 'submit_tag() takes a value as its first argument'); // options $t->is(submit_tag('save', array('class' => 'foo')), '<input type="submit" name="commit" value="save" class="foo" />', 'submit_tag() takes an array of attribute options as its second argument'); $t->is(submit_tag('save', array('name' => 'foo')), '<input type="submit" name="foo" value="save" />', 'submit_tag() can override the "name" attribute'); // reset_tag() $t->diag('reset_tag()');
?> <br/> <div> <label for="mood"><?php echo __('Настроение'); ?> :</label> <div class='mood'> <?php echo radiobutton_tag('mood', 'good', false, array('class' => 'styled_good')); ?> <?php echo radiobutton_tag('mood', 'normal', true, array('class' => 'styled_normal')); ?> <?php echo radiobutton_tag('mood', 'bad', false, array('class' => 'styled_bad')); ?> </div> <?php echo __('Картинка'); ?> : <?php echo input_file_tag('picture', array("style" => 'display:none')); ?> <?php echo link_to_function(__('из файла'), 'showPictureUpload()', array('id' => 'more_file')); ?> <?php echo input_tag('picture_url', null, array("style" => 'display:none'));
<div> <?php echo radiobutton_tag('return_type', CriteriaBuilder::RETURN_ARRAY, true); ?> Propel object array <fieldset> <legend><?php echo radiobutton_tag('return_type', CriteriaBuilder::RETURN_RESULTSET); ?> Propel ResultSet</legend> <div><?php echo radiobutton_tag('resultset_type', CriteriaBuilder::RESULTSET_NUM, true); ?> Numerically indexed array (slightly faster) <?php echo radiobutton_tag('resultset_type', CriteriaBuilder::RESULTSET_ASSOC); ?> Associative array (more maintainable)</div> </fieldset> </div> <div> Criterion variable prefix: <?php echo input_tag('crit_prefix', 'crit'); ?> </div> <?php echo submit_tag('Generate'); ?> </div> </form> </fieldset>
<?php $type = $agent->getType() ? $agent->getType() : 'Individual'; echo radiobutton_tag("agent[type]", "Individual", $type == 'Individual'); ?> Individual <?php echo radiobutton_tag("agent[type]", "Organization", $type == 'Organization'); ?> Organization
<fieldset id="search-autocompleter-fbox"> <?php if (isset($limit)) { ?> <input id="limit" name="limit" value="<?php echo $limit; ?> " type="hidden"/> <?php } ?> <input id="tag_search" name="tag_search" class="ac_input blur" value="<?php echo $tags; ?> "/> <label for="ramo_C">Camera</label> <?php echo radiobutton_tag('ramo', 'C', $ramo == 'C'); ?> <label for="ramo_S">Senato</label> <?php echo radiobutton_tag('ramo', 'S', $ramo == 'S'); ?> <?php echo submit_image_tag('btn-cerca-small.png', array('alt' => 'cerca', 'id' => 'aggiungi', 'name' => 'aggiungi')); ?> </fieldset> </form>
<?php $check_value = $finance->getDebit(); $check_value ? $check_value = $check_value : ($check_value = '1'); echo radiobutton_tag('debit', '1', $check_value == '1' ? true : false); echo __("ÊÕ"); echo radiobutton_tag('debit', '2', $check_value == '2' ? true : false); echo __("Ö§");
echo __('Relation'); ?> </label></td> <td style="text-align:center; vertical-align:middle;">:</td> <td style="vertical-align:middle;"> <?php echo radiobutton_tag('relation', EmployeeChilds::RELATION_SON1, $employee_childs->getRelation() == EmployeeChilds::RELATION_SON1) . ' ' . __('RELATION_SON1'); ?> <?php echo radiobutton_tag('relation', EmployeeChilds::RELATION_SON2, $employee_childs->getRelation() == EmployeeChilds::RELATION_SON2) . ' ' . __('RELATION_SON2'); ?> <?php echo radiobutton_tag('relation', EmployeeChilds::RELATION_SON3, $employee_childs->getRelation() == EmployeeChilds::RELATION_SON3) . ' ' . __('RELATION_SON3'); ?> <?php echo radiobutton_tag('relation', EmployeeChilds::RELATION_SON4, $employee_childs->getRelation() == EmployeeChilds::RELATION_SON4) . ' ' . __('RELATION_SON4'); ?> <?php echo radiobutton_tag('relation', EmployeeChilds::RELATION_SON5, $employee_childs->getRelation() == EmployeeChilds::RELATION_SON5) . ' ' . __('RELATION_SON5'); ?> <?php echo form_error('relation'); ?> </td> </tr> </tbody> </table> </td></tr> </table> </form>
<?php if ($sf_request->hasError('campo{tipo_items}')) { ?> <?php echo form_error('campo{tipo_items}', array('class' => 'form-error-msg')); ?> <?php } ?> <?php $lista_tipos = CampoPeer::getTiposItems(); $value = "<ul class=\"sf_admin_checklist\">\n"; $tipo_items_campo = $campo->getTipoItems() ? $campo->getTipoItems() : CampoPeer::getDefaultIdTipoItems(); foreach ($lista_tipos as $id => $nombre_tipo) { $value .= "<li>"; $value .= radiobutton_tag('campo[tipo_items]', $id, $tipo_items_campo == $id, array('id' => 'campo_tipo_items_' . $id)); $value .= label_for('campo_tipo_items_' . $id, __($nombre_tipo), ''); $value .= "</li>\n"; } $value .= "</ul>\n"; echo $value ? $value : '-'; ?> <div class="sf_edit_help"><?php echo __('Indique el tipo de los elementos de la lista'); ?> </div> </div> </div> <div class="form-row" > <?php
function frontend_radio($name, $input = null, $value, $options = array(), $methode = null) { $context = sfContext::getInstance(); $request = $context->getRequest(); $errors = $request->getErrors(); if (array_key_exists("err" . $name, $errors)) { $options["class"] .= " error"; } $code = getDivLabel($options, $name); $code .= radiobutton_tag($name, $value, $value == getVal($input, $methode, $name), clearOptions($options)); return $code; }
?> </div> </div> <div class="form-row"> <label for="position"><?php echo __('Position'); ?> </label> <div class="content"> <?php echo radiobutton_tag('position_type', 'after'); ?> After <?php echo radiobutton_tag('position_type', 'under', 'selected=selected'); ?> Under </div> <div class="content"> <?php echo select_tag('position', options_for_select($sf_request->getAttribute('page_names'))); ?> </div> </div> </fieldset> <ul class="sf_admin_actions"> <li><?php echo submit_tag(__('create'), array('name' => 'create', 'class' => 'sf_admin_action_save')); ?>
?> "> <td><?php echo $pilot_aircraft->getNNumber(); ?> </td> <td><?php echo $pilot_aircraft->getAircraft()->getMake(); ?> </td> <td><?php echo $pilot_aircraft->getAircraft()->getModel(); ?> </td> <td><?php echo radiobutton_tag('primary_aircraft', 1); ?> </td> <td><?php echo $pilot_aircraft->getOwn() ? 'Yes' : 'No'; ?> </td> <td> <?php if ($sf_user->hasCredential(array('Administrator'), false)) { ?> <?php echo link_to('edit', 'account/editAircraft?id=' . $pilot_aircraft->getId()); ?> <?php echo jq_link_to_remote('remove', array('url' => 'account/ajaxDeleteAircraft?id=' . $pilot_aircraft->getId(), 'success' => "\$('#pilot_aircraft_{$pilot_aircraft->getId()}').remove();"), array('confirm' => 'Are you sure?'));
<div id="privacy-settings"> <?php echo label_for('privacy', __('privacy level')); ?> <br /> <?php echo radiobutton_tag('privacy[]', '1', $profile->checkPrivacyLevel(1)); ?> - High (Only projects or people you've joined/corresponded with)<br /> <?php echo radiobutton_tag('privacy[]', '2', $profile->checkPrivacyLevel(2)); ?> - Medium (Anyone from your campus can contact you, see your picture)<br /> <?php echo radiobutton_tag('privacy[]', '3', $profile->checkPrivacyLevel(3)); ?> - Low (Anyone on Cothink can see you)<br /> </div> <?php echo submit_tag('update profile', array()); ?> </form> <?php /* <label for="campus">campus: <?php echo select_tag('campus', objects_for_select($campuses, 'getId', 'getName', $profile->getCampusId(), array()), array('class'=>'xxx')) ?><?php if ($sf_request->hasError('campus')) { echo $sf_request->getError('campus'); } ?></label><br /> <label for="first_name">First Name: <?php echo object_input_tag($profile, 'getFirstName') ?><?php if ($sf_request->hasError('first_name')) { echo $sf_request->getError('first_name'); } ?><br /></label> <label for="last_name">Last Name: <?php echo object_input_tag($profile, 'getLastName') ?><?php if ($sf_request->hasError('last_name')) { echo $sf_request->getError('last_name'); } ?><br /></label> <label for="title">Title: <?php echo select_tag('title', options_for_select(array(
function gestiona_cursos($CURSOS, $MATRICULES, $MISSATGES, $LCURSOS) { ?> <form method="post" action="<?php echo url_for('web/gestio?accio=im'); ?> " id="FORM_CURSOS"> <FIELDSET class="REQUADRE"><LEGEND class="LLEGENDA">Cursos disponibles actualment </LEGEND> <?php $LCURSOS = $LCURSOS->getResults(); ?> <?php if (empty($LCURSOS)) { echo "Actualment no es pot matricular a cap curs. "; ?> <?php } else { ?> <TABLE class="DADES"> <tr> <td class="TITOL" colspan="2">CODI</td> <td class="TITOL">NOM</td> <td class="TITOL">PREU</td> <td class="TITOL" width="70px">INICI</td> <td class="TITOL">PLACES</td> </tr> <?php $CAT_ANT = ""; ?> <?php foreach ($LCURSOS as $C) { ?> <?php if ($C->getVisibleweb() == 1) { ?> <?php if ($CAT_ANT != $C->getCategoria()) { ?> <TR><TD colspan="6" class="TITOL_CATEGORIA"><?php echo $C->getCategoriaText(); ?> </TD></TR> <?php } ?> <?php $PLACES = $C->getPlacesArray(); $ple = $PLACES['OCUPADES'] == $PLACES['TOTAL'] ? "style=\"background-color:#FFCCCC;\"" : ""; $jple = $PLACES['OCUPADES'] == $PLACES['TOTAL']; ?> <TR> <TD <?php echo $ple; ?> ><?php echo radiobutton_tag('D[CURS]', $C->getIdcursos(), false, array('onClick' => 'ActivaBoto(' . $jple . ');', 'class' => 'class_cursos ')); ?> </TD> <TD <?php echo $ple; ?> > <a href="#TB_inline?height=480&width=640&inlineId=hidden<?php echo $C->getIdcursos(); ?> &modal=false" class="thickbox"> <?php echo $C->getCodi(); ?> </a> <div style="display: none;" id="hidden<?php echo $C->getIdcursos(); ?> "> <div id="TEXT_WEB"> <?php echo $C->getDescripcio(); ?> </div> </div> </TD> <TD <?php echo $ple; ?> ><?php echo $C->getTitolcurs(); ?> ( <?php echo $C->getHoraris(); ?> ) </TD> <TD <?php echo $ple; ?> ><?php echo $C->getPreu(); ?> €</TD> <TD <?php echo $ple; ?> ><?php echo $C->getDatainici('d-m-Y'); ?> </TD> <TD <?php echo $ple; ?> ><?php echo $PLACES['OCUPADES'] . '/' . $PLACES['TOTAL']; ?> </TD> </TR> <?php $CAT_ANT = $C->getCategoria(); ?> <?php } ?> <?php } ?> </TABLE> <br /><br /> <?php //Mirem que l'usuari es pugui matricular segons les dates de matrícules list($DIA_Y, $DIA_M, $DIA_D) = explode("-", TipusPeer::getDataIniciMatriculaAnticsAlumnes()->getTipusdesc()); list($DIT_Y, $DIT_M, $DIT_D) = explode("-", TipusPeer::getDataIniciMatriculaTothom()->getTipusdesc()); $DIA_T = mktime(0, 0, 0, $DIA_M, $DIA_D, $DIA_Y); $DIT_T = mktime(0, 0, 0, $DIT_M, $DIT_D, $DIT_Y); ?> <TABLE class="FORMULARI" width="100%"> <TR><TD width="100px;" style="font-size:10px;"><b>DESCOMPTE</b></TD><td><?php echo select_tag('D[DESCOMPTE]', options_for_select(MatriculesPeer::selectDescomptesWeb(), MatriculesPeer::REDUCCIO_CAP)); ?> </TD></TR> <TR><TD width="100px"></TD> <TD> <?php $avui = time(); if (sizeof($MATRICULES) == 0) { if ($avui < $DIT_T) { echo "<div class=\"text\" style=\"font-weight:bold; \">El període de matrícules per a nous alumnes comença el dia " . date('d/m/Y', $DIT_T) . '</div>'; } else { echo "<div>" . submit_tag('Matriculeu-me', array('name' => 'BMATRICULA', 'class' => 'BOTO_ACTIVITAT', 'style' => 'width:100px')) . '</div>'; } } else { if ($avui < $DIA_T) { echo "<div style=\"font-size:11px; font-weight:bold; \">El període de matrícules per a antics alumnes comença el dia " . date('d/m/Y', $DIA_T) . '</div>'; } else { echo '<div>' . submit_tag('Matriculeu-me', array('name' => 'BMATRICULA', 'class' => 'BOTO_ACTIVITAT', 'style' => 'width:100px')) . '</div>'; } } ?> <br /> <div class="text">Si necessita més informació sobre el nou sistema de matrícules, si us plau, cliqui <a href="<?php echo url_for('web/index?accio=mc&node=35'); ?> ">aquí</a>.</div> </TD> </TR> </TABLE> <?php } ?> </FIELDSET> <FIELDSET class="REQUADRE"><LEGEND class="LLEGENDA">Cursos matriculats amb anterioritat</LEGEND> <TABLE class="DADES"> <?php if (sizeof($MATRICULES) == 0) { ?> <TR><TD>No tenim constància informàtica que hagueu realitzat un curs a la Casa de Cultura. <br />Si no és així, si us plau notifiqueu-nos-ho. </TD></TR> <?php } else { ?> <TR><TD class="titol">CODI</TD> <TD class="titol">NOM</TD> <TD class="titol">ESTAT</TD> <TD class="titol">DATA MATRÍCULA</TD> <TD class="titol">DESCOMPTE</TD></TR> <?php } ?> <?php foreach ($MATRICULES as $M) { ?> <?php $CURSOS = $M->getCursos(); ?> <TR> <TD> <a href="#TB_inline?height=480&width=640&inlineId=hidden<?php echo $CURSOS->getIdcursos(); ?> &modal=false" class="thickbox"> <?php echo $CURSOS->getCodi(); ?> </a> <div style="display:none" id="hidden<?php echo $CURSOS->getIdcursos(); ?> "> <?php echo $CURSOS->getDescripcio(); ?> </div> </TD> <TD><?php echo $CURSOS->getTitolCurs(); ?> </TD> <TD><?php echo MatriculesPeer::getEstatText($M->getEstat()); ?> </TD> <TD><?php echo $M->getDataInscripcio('d/m/Y H:i'); ?> </TD> <TD><?php echo MatriculesPeer::textDescomptes($M->getTReduccio()); ?> </TD> </TR> <?php } ?> </TABLE> </FIELDSET> </form> <?php }
<div class="bulk_subheader"><?php echo isset($confirm_names) ? "4." : "3."; ?> Choose relationship defaults (required)</div> <table> <tr> <td class="bulk_form_label"> Default Entity Type* </td> <td>Person <?php echo radiobutton_tag('default_type', 'Person', '', 'onclick="setCategories(this.value,\'all\');"'); ?> Org <?php echo radiobutton_tag('default_type', 'Org', '', 'onclick="setCategories(this.value,\'all\');"'); ?> <nobr><span class="form_help">(default type of entity you are adding)</span></nobr> </td> </tr> <tr> <td class="bulk_form_label"> Relationship Order* </td> <td> <input type="hidden" name="order" id="order" value="<?php echo $entity->primary_ext == "Person" ? "1" : "2"; ?> ">
?> </div> <div id="customize"> <fieldset class="separator"> <legend><?php echo __('options'); ?> </legend> <p> <?php echo content_tag('label', checkbox_tag('customlegend', 'customlegend', false, array('id' => 'inserted_image_customlegend', 'onclick' => 'C2C.doUpdateImageLegend();')) . ' ' . __('Custom legend')) . ' ' . input_tag('legend', $associated_images[0]['name'], array('id' => 'inserted_image_legend', 'class' => 'medium_input', 'disabled' => 'disabled')); ?> </p> <p> <?php echo __('Alignment') . ' ' . content_tag('label', radiobutton_tag('inserted_image_alignment', 'right', 1, array('id' => 'alignment1')) . ' ' . __('right')) . ' ' . content_tag('label', radiobutton_tag('inserted_image_alignment', 'left', 0, array('id' => 'alignment2')) . ' ' . __('left')) . ' ' . content_tag('label', radiobutton_tag('inserted_image_alignment', 'center', 0, array('id' => 'alignment3')) . ' ' . __('center')) . ' ' . content_tag('label', radiobutton_tag('inserted_image_alignment', 'inline', 0, array('id' => 'alignment4')) . ' ' . __('inline')); echo '</p><p>'; echo content_tag('label', __('hideborderlegend') . ' ' . checkbox_tag('hideborderlegend', 'hideborderlegend', false, array('id' => 'inserted_image_hideborderlegend'))); ?> </p> </fieldset> </div> <?php echo input_hidden_tag('inserted_image_id', $associated_images[0]['id']) . input_hidden_tag('inserted_image_div', $div); ?> </form> <ul class="action_buttons"> <li><?php echo button_tag(__('Insert'), array('onclick' => 'C2C.doInsertImgTag()', 'picto' => 'action_create')); ?> </li>
echo form_error('religion_id'); ?> </td> </tr> <tr> <td style="vertical-align:middle;"><label ><?php echo __('Nationality'); ?> </label></td> <td width="2%" style="text-align:center; vertical-align:middle;">:</td> <td style="vertical-align:middle;"> <?php echo radiobutton_tag('nationality', StudentParents::NATIONALITY_INDONESIA, $student_parents->getNationality() == StudentParents::NATIONALITY_INDONESIA) . ' ' . __('NATIONALITY_INDONESIA'); ?> <?php echo radiobutton_tag('nationality', StudentParents::NATIONALITY_FOREIGN, $student_parents->getNationality() == StudentParents::NATIONALITY_FOREIGN) . ' ' . __('NATIONALITY_FOREIGN'); ?> <?php echo form_error('nationality'); ?> </td> </tr> <tr> <td style="vertical-align:middle;"><label ><?php echo __('Education degree'); ?> </label></td> <td width="2%" style="text-align:center; vertical-align:middle;">:</td> <td style="vertical-align:middle;"> <?php echo object_select_tag($student_parents, 'getDegreeId', array('related_class' => 'Degree', 'peer_method' => 'doSelectOrdered', 'include_blank' => true));
<div class="form-row"> <label for="title">Route:</label> <?php echo select_tag('user_ride_id', objects_for_select(UserRidesPeer::getUserRidesWithAll(), 'getUserRideId', 'getDescription', $route), array('style' => 'width:150px')); ?> </div> </td> <td> <div class="form-row"> <label for="units">Chart Type:</label> <?php echo radiobutton_tag('chart[]', 'Bar', false); ?> <label for="units">Bar</label> <?php echo radiobutton_tag('chart[]', 'Line', true); ?> <label for="units">Line</label> <?php echo checkbox_tag('threeD') . "3D Chart"; ?> </div> </td> </tr> </table> <div class="submit-row"> <?php echo submit_tag('Generate Report'); ?> </div> </div>
<td style="text-align:center; vertical-align:top;">:</td> <td style="vertical-align:middle;"> <?php echo radiobutton_tag('blood_type', 0, $employee_detail->getBloodType() == 0); ?> A <?php echo radiobutton_tag('blood_type', 1, $employee_detail->getBloodType() == 1); ?> B <?php echo radiobutton_tag('blood_type', 2, $employee_detail->getBloodType() == 2); ?> AB <?php echo radiobutton_tag('blood_type', 3, $employee_detail->getBloodType() == 3); ?> O <?php echo form_error('blood_type'); ?> </td> <td style="vertical-align:middle;"><label ><?php echo __('Spouse pob'); ?> </label></td> <td style="text-align:center; vertical-align:middle;">:</td> <td style="vertical-align:middle;"> <?php echo object_input_tag($employee_detail, 'getSpousePob', array('size' => 40, 'maxlength' => 255)); ?>
<td width="155" align="left" height="30" style="padding-left:10px; padding-top:10px" valign="top">Date of Birth:</td> <td width="445" align="left" height="30" style="padding-left:10px; padding-top:10px"><?php echo input_date_tag('dob', '', array('style' => 'width:100px', 'year_start' => '1910', 'year_end' => '2020', 'use_short_month' => 'true')); ?> </td> </tr> <tr> <td width="155" align="left" height="30" style="padding-left:10px; padding-top:10px" valign="top">Gender:</td> <td width="445" align="left" height="30" style="padding-left:10px; padding-top:10px"> <?php echo radiobutton_tag('gender[]', 'Male', true, array('class' => 'checkbox')); ?> Male <?php echo radiobutton_tag('gender[]', 'Female', false, array('class' => 'checkbox')); ?> Female </td> </tr> <tr> <td width="155" align="left" height="30" style="padding-left:10px; padding-top:10px" valign="top">Mobile Number:</td> <td width="445" align="left" height="30" style="padding-left:10px; padding-top:10px"><?php echo input_tag('contact_cell', '', '60'); ?> <script type="text/javascript"> var contact_cell = new LiveValidation('contact_cell', { validMessage: "<?php echo Constant::VALIDATION_SUCCESS; ?> "});
?> <?php $ciclo = $ciclo + 1; ?> <tr class="<?php echo fmod($ciclo, 2) == 0 ? 'even' : 'odd'; ?> "> <?php if (@$compare) { ?> <td><?php echo radiobutton_tag('oldRevision', $revision->getRevision(), $rev1 == $revision->getRevision(), array("class" => "revision")); ?> <?php echo radiobutton_tag('revision', $revision->getRevision(), $rev2 == $revision->getRevision(), array("class" => "revision")); ?> </td> <?php } ?> <td><?php echo link_to_wiki(null, $page->getName(), array('revision' => $revision->getRevision())); ?> </td> <td><?php echo format_datetime($revision->getCreatedAt('U')); ?> </td> <td><?php echo $revision->getUserName();
?> <?php echo form_error('formulario{vendido}', array('class' => 'form-error-msg')); ?> <?php } ?> <?php $opciones = array('1' => __('poco interesado'), '2' => __('muy interesado'), '3' => __('reservado'), '4' => __('vendido')); $valorSeleccionado = $formulario->getEstadoInteres() ? $formulario->getEstadoInteres() : '0'; $html = ""; $html .= "<ul class=\"sf_admin_checklist\">\n"; for ($i = 1; $i <= count($opciones); $i++) { $html .= "<li>"; $html .= radiobutton_tag('formulario[estado_interes]', $i, $valorSeleccionado == $i, 'id=formulario_estado_interes_' . $i); $html .= "<label for=formulario_estado_interes_" . $i . ">"; $html .= $opciones[$i]; $html .= "</label>"; $html .= "</li>\n"; } $html .= "</ul>\n"; echo $html; ?> </div> </div> </fieldset> <?php include_partial('edit_actions', array('formulario' => $formulario));
?> </td> </tr> <tr> <td style="vertical-align:middle;"><label class="applicant"><?php echo __('Jenis Kelamin'); ?> </label></td> <td style="text-align:center; vertical-align:middle;">:</td> <td style="vertical-align:middle;"> <?php echo radiobutton_tag('sex', 'L', $student_detail->getSex() == 'L'); ?> Laki-laki <?php echo radiobutton_tag('sex', 'P', $student_detail->getSex() == 'P'); ?> Perempuan <?php echo form_error('sex'); ?> </td> </tr> <tr> <td style="vertical-align:middle;"><label class="applicant"><?php echo __('Tempat, Tgl Lahir'); ?> </label></td> <td style="text-align:center; vertical-align:middle;">:</td> <td style="vertical-align:middle;"> <?php
$type = $cs_setting->getType(); $name = isset($name) ? $name : 'cs_setting[' . $cs_setting['id'] . ']'; switch ($type) { case 'checkbox': echo input_hidden_tag($name, 0); echo checkbox_tag($name, 1, $cs_setting->getValue()); break; case 'input': echo input_tag($name, $cs_setting->getValue(), 'size=55'); break; case 'textarea': echo textarea_tag($name, $cs_setting->getValue()); break; case 'yesno': echo 'Yes: ' . radiobutton_tag($name, 1, $cs_setting->getValue()); echo 'No: ' . radiobutton_tag($name, 0, $cs_setting->getValue() ? false : true); break; case 'select': $options = _parse_attributes($cs_setting->getOptions()); echo select_tag($name, options_for_select($options, $cs_setting->getValue(), 'include_blank=true')); break; case 'model': $config = _parse_attributes($cs_setting->getOptions()); $method = $cs_setting->getOption('table_method'); $method = $method ? $method : 'findAll'; $options = Doctrine::getTable($cs_setting->getOption('model', true))->{$method}(); echo select_tag($name, objects_for_select($options, 'getId', '__toString', $cs_setting->getValue()), 'include_blank=true'); break; case 'wysiwyg': echo textarea_tag($name, $cs_setting->getvalue(), 'rich=true ' . $cs_setting->getOptions()); break;
<?php $check_value = $question->getActive(); $check_value ? $check_value = $check_value : ($check_value = '1'); echo radiobutton_tag('active', '1', $check_value == '1' ? true : false); echo __("ÊÇ"); echo radiobutton_tag('active', '2', $check_value == '2' ? true : false); echo __("·ñ");
<?php echo object_input_date_tag($applicant_detail, 'getDob', array('rich' => true, 'calendar_button_img' => '/images/calendar.gif')); ?> <br /> <?php echo form_error('pob'); echo form_error('dob'); ?> <p style="font-size: 10px; margin-top: -7px; margin-left: 150px;">Tempat dan tanggal lahir sesuai dengan Akta Kelahiran</p> <label style="width: 150px;">Jenis Kelamin *</label> <?php echo radiobutton_tag('sex', 'L', $applicant_detail->getSex() == 'L'); ?> <span style=" color: #000000; font-size: 10px;">Laki-laki</span> <?php echo radiobutton_tag('sex', 'P', $applicant_detail->getSex() == 'P'); ?> <span style=" color: #000000; font-size: 10px;">Perempuan</span> <?php echo form_error('sex'); ?> <p style="font-size: 10px; margin-top: -7px; margin-left: 150px;"></p> <label style="width: 150px;">Asal Sekolah *</label> <?php echo object_input_tag($applicant_detail, 'getJobTitle', array('size' => 20, 'maxlength' => 50)); ?> <?php echo form_error('job_title'); ?> <p style="font-size: 10px; margin-top: -7px; margin-left: 150px;"></p> <label style="width: 150px;">Agama *</label>
} else { ?> <td style="text-align: center;"><?php echo radiobutton_tag('status[' . $student->getId() . ']', 1, 1); ?> </td> <td style="text-align: center;"><?php echo radiobutton_tag('status[' . $student->getId() . ']', 5, ''); ?> </td> <td style="text-align: center;"><?php echo radiobutton_tag('status[' . $student->getId() . ']', 6, ''); ?> </td> <td style="text-align: center;"><?php echo radiobutton_tag('status[' . $student->getId() . ']', 4, ''); ?> </td> <?php } ?> </tr> <?php } ?> <?php } ?> </tbody> </table>