예제 #1
0
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
require_once dirname(__FILE__) . '/../../bootstrap/unit.php';
require_once $_test_dir . '/unit/sfContextMock.class.php';
require_once dirname(__FILE__) . '/TestObject.php';
require_once dirname(__FILE__) . '/../../../lib/helper/HelperHelper.php';
require_once dirname(__FILE__) . '/../../../lib/helper/TagHelper.php';
require_once dirname(__FILE__) . '/../../../lib/helper/FormHelper.php';
require_once dirname(__FILE__) . '/../../../lib/helper/ObjectHelper.php';
$t = new lime_test(10);
// object_textarea_tag()
$t->diag('object_textarea_tag()');
$obj1 = new TestObject();
$t->is(object_textarea_tag($obj1, 'getValue'), '<textarea name="value" id="value">value</textarea>');
$t->is(object_textarea_tag($obj1, 'getValue', 'size=60x10'), '<textarea name="value" id="value" rows="10" cols="60">value</textarea>');
// objects_for_select()
$t->diag('objects_for_select()');
$obj1 = new TestObject();
$obj2 = new TestObject();
$obj2->setText('text2');
$obj2->setValue('value2');
$actual = objects_for_select(array($obj1, $obj2), 'getValue', 'getText', 'value');
$expected = "<option value=\"value\" selected=\"selected\">text</option>\n<option value=\"value2\">text2</option>\n";
$t->is($expected, $actual);
$actual = objects_for_select(array($obj1, $obj2), 'getValue');
$expected = "<option value=\"value\">value</option>\n<option value=\"value2\">value2</option>\n";
$t->is($expected, $actual);
try {
    $actual = objects_for_select(array($obj1, $obj2), 'getNonExistantMethod');
    $t->is($expected, $actual);
예제 #2
0
?>
:<br />      
            <?php 
echo ucwords(__('subject'));
?>
:
          </li>
          <li>
            <?php 
if ($message->getRecipientId()) {
    echo '<em>(' . $message->getSfGuardUserRelatedByRecipientId()->getProfile()->getFullName() . ')</em><br />' . input_hidden_tag('user_recipient', $message->getSfGuardUserRelatedByRecipientId()->getProfile()->getFullName());
} else {
    echo input_auto_complete_tag('user_recipient', '', 'user/autoMessageComplete?field=recipient', 'autocomplete=false', 'use_style=true') . '<br />';
}
?>
            <?php 
echo object_input_tag($message, 'getSubject', array('style' => 'width:100%;'));
?>
          </li>
        </ul>
        <hr class="clear" />
        <?php 
echo object_textarea_tag($message, 'getBody', array('style' => 'width:100%;', 'rows' => '10'));
?>
        <?php 
echo submit_tag(ucwords(__('send')), array('class' => 'pswipebutton'));
?>
      </div>
    </form>
  </div>
</div>
예제 #3
0
        <td style="text-align:center; vertical-align:middle;">:</td>
        <td style="vertical-align:middle;">
            <?php 
echo object_input_tag($catalog, 'getPublishedYear', array('size' => 4, 'maxlength' => 4));
?>
        </td>
    </tr>
    <tr>
        <td style="vertical-align:middle;"><label><?php 
echo __('Synopsis');
?>
</label></td>
        <td style="text-align:center; vertical-align:middle;">:</td>
        <td style="vertical-align:middle;">
            <?php 
echo object_textarea_tag($catalog, 'getSynopsis', array('size' => '80x4'));
?>
<br>
            <!--img src="http://lekar.muhajirien.org/muslim/video/chatt_ym.jpg" border="0"-->
        </td>
    </tr>
    <tr>
        <td style="vertical-align: top;"><label><?php 
echo 'Upload Video';
?>
</label></td>
        <td style="text-align:center; vertical-align: top;">:</td>
        <td style="vertical-align: top;">
                <?php 
if (isset($catalog) && $catalog->getId()) {
    ?>
예제 #4
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('tarea{descripcion}')) {
    ?>
    <?php 
    echo form_error('tarea{descripcion}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_textarea_tag($tarea, 'getDescripcion', array('size' => '50x3', 'control_name' => 'tarea[descripcion]'));
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>

<div id="capa_evento" style="display:none;">

<div class="form-row">
  <?php 
echo label_for('tarea[id_estado_evento]', __($labels['tarea{id_estado_evento}']) . ":", '');
?>
  <div class="content<?php 
if ($sf_request->hasError('tarea{id_estado_evento}')) {
    ?>
 form-error<?php 
예제 #5
0
    ?>
 form-error<?php 
}
?>
">
      <?php 
if ($sf_request->hasError('sf_asset{description}')) {
    ?>
        <?php 
    echo form_error('sf_asset{description}', array('class' => 'form-error-msg'));
    ?>
      <?php 
}
?>
      <?php 
echo object_textarea_tag($sf_asset, 'getDescription', array('size' => '30x3', 'control_name' => 'sf_asset[description]'));
?>
    </div>
  </div>
  
  <div class="form-row">
    <?php 
echo label_for('sf_asset[author]', __('Author:', null, 'sfAsset'), '');
?>
    <div class="content<?php 
if ($sf_request->hasError('sf_asset{author}')) {
    ?>
 form-error<?php 
}
?>
">
예제 #6
0
                        <td width="2%" style="text-align:center; vertical-align:top;">:</td>
                        <td style="vertical-align:top;">
                            <?php 
echo object_textarea_tag($grade_conversion, 'getDescription', array('rows' => 4, 'cols' => 30));
?>
                            <?php 
echo form_error('description');
?>
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align:top;"><label><?php 
echo __('Description');
?>
</label></td>
                        <td width="2%" style="text-align:center; vertical-align:top;">:</td>
                        <td style="vertical-align:top;">
                            <?php 
echo object_textarea_tag($grade_conversion, 'getDetail', array('rows' => 4, 'cols' => 30));
?>
                            <?php 
echo form_error('detail');
?>
                            <div class="tips">Khusus isian deskripsi dalam bahasa inggris</div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </td></tr>
</table>
</form>
예제 #7
0
    echo select_tag('term', options_for_select(array('1' => '1', '2' => '2', '3' => '3', '4' => '4'), '', array('include_blank' => true)));
    ?>
                                </td>
                        </tr>
                <?php 
} else {
    ?>
                        <tr>
                                <td style="vertical-align:top;"><label><?php 
    echo __('Catatan / Komentar Walas');
    ?>
</label></td>
                                <td width="2%" style="text-align:center; vertical-align:top;">:</td>
                                <td style="vertical-align:top;">
                                        <?php 
    echo object_textarea_tag($student_note, 'getNote', array('size' => '50x3'));
    ?>
                                        <?php 
    echo form_error('note');
    ?>
<br>
                                        <div class="tips">(*Untuk Raport Semester jangan lupa mengisi Catatan / Komentar Walas Untuk Anak)</div>
                                </td>
                        </tr>
                <?php 
}
?>

                </tbody>
                </table>
                <div class="tips">**) Pilih Anak yang akan dicetak</div>
예제 #8
0
?>
            <?php 
if ($sf_request->hasError('community_benefits')) {
    echo '<span class="form-error">' . $sf_request->getError('community_benefits') . '</span>';
}
?>
            <?php 
echo label_for('community_benefits', 'Describe how your project will benefit the community.'), object_textarea_tag($project, 'getCommunityBenefits', array('size' => '20x3'));
?>
            <?php 
if ($sf_request->hasError('student_reasons')) {
    echo '<span class="form-error">' . $sf_request->getError('student_reasons') . '</span>';
}
?>
            <?php 
echo label_for('student_reasons', 'Tell us why this is a good project for students.'), object_textarea_tag($project, 'getStudentReasons', array('size' => '20x3'));
?>
          </fieldset>
          <hr class="clear" />
        </div>
      </div>
    </div>
    <div style="width:25%;float:right;">
      <div style="background-color:#87B94D;color:white;padding:4px;">
        <p style="background-color:#E8B069;">
          Have questions, or unsure about how to describe your project to catch attention?<br />
          <?php 
echo link_to('Cothink can help!', '#');
?>
        </p>
        <br />
예제 #9
0
echo label_for('title', __('Image Title'));
?>
:</th>
  <td><?php 
echo object_input_tag($photo, 'getTitle', array('size' => 30));
?>
</td>
</tr>

<tr>
  <th><?php 
echo label_for('description', __('Image Description'));
?>
:</th>
  <td><?php 
echo object_textarea_tag($photo, 'getDescription', array('size' => '30x4'));
?>
</td>
</tr>

</tbody>
</table>
<?php 
echo $sf_user->getAttribute('referer');
?>
<hr />
<?php 
echo submit_tag(__('Upload Image'));
?>
</form>
예제 #10
0
  <td><?php 
echo object_input_tag($researcher, 'getEmail', array('size' => 80));
?>
</td>
</tr>
<tr>
  <th>Picture link:</th>
  <td><?php 
echo object_input_tag($researcher, 'getPictureLink', array('size' => 80));
?>
</td>
</tr>
<tr>
  <th>Bio statement:</th>
  <td><?php 
echo object_textarea_tag($researcher, 'getBioStatement', array('size' => '30x3'));
?>
</td>
</tr>
</tbody>
</table>
<hr />
<?php 
echo submit_tag('save');
if ($researcher->getId()) {
    ?>
  &nbsp;<?php 
    echo link_to('delete', 'researcher/delete?id=' . $researcher->getId(), 'post=true&confirm=Are you sure?');
    ?>
  &nbsp;<?php 
    echo link_to('cancel', 'researcher/show?id=' . $researcher->getId());
예제 #11
0
                                        <td style="vertical-align:middle;"><label class="applicant"><?php 
    echo __('Alamat Rumah');
    ?>
</label></td>
                                        <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
                                        <td style="vertical-align:middle;">
                                             <?php 
    echo object_textarea_tag($father, 'getAddress', array('rows' => 2, 'cols' => 60, 'name' => 'father_address', 'id' => 'father_address'));
    ?>
                                             <?php 
    echo form_error('father_address');
    ?>
                                        </td>
                                        <td style="vertical-align:middle;">
                                             <?php 
    echo object_textarea_tag($mother, 'getAddress', array('rows' => 2, 'cols' => 60, 'name' => 'mother_address', 'id' => 'mother_address'));
    ?>
                                             <?php 
    echo form_error('mother_address');
    ?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="vertical-align:middle;"><label class="applicant"><?php 
    echo __('Handphone');
    ?>
</label></td>
                                        <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
                                        <td style="vertical-align:middle;">
                                              <?php 
    echo object_input_tag($father, 'getCellphone', array('size' => 24, 'name' => 'father_cellphone', 'id' => 'father_cellphone'));
예제 #12
0
                </tr>
                
                <tr><td colspan="6"><div class="subtitle"><?php 
echo __('Employee Address');
?>
</div></td></tr>
                
                <tr>    
                    <td style="vertical-align:top;"><label><?php 
echo __('Address');
?>
</label></td>
                    <td style="text-align:center; vertical-align:top;">:</td>
                    <td style="vertical-align:middle;" colspan="4">
                        <?php 
echo object_textarea_tag($employee_detail, 'getAddress', array('rows' => 2, 'cols' => 60));
?>
                        <?php 
echo form_error('address');
?>
                    </td>
                </tr>
                
                <tr>    
                    <td style="vertical-align:middle;"><label  ><?php 
echo __('Phone');
?>
</label></td>
                    <td style="text-align:center; vertical-align:middle;">:</td>
                    <td style="vertical-align:middle;">
                         <?php 
예제 #13
0
                        <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
                        <td style="vertical-align:middle;">
                            <?php 
echo object_select_tag($subject_descript, 'getSubjectCurrId', array('related_class' => 'SubjectCurr', 'include_blank' => true, 'text_method' => '__toName'));
?>
                            <?php 
echo form_error('subject_curr_id');
?>
                        </td>
                    </tr>   
                    <tr>
                        <td style="vertical-align:top;"><label><?php 
echo __('Description');
?>
</label></td>
                        <td width="2%" style="text-align:center; vertical-align:top;">:</td>
                        <td style="vertical-align:middle;">
                            <?php 
echo object_textarea_tag($subject_descript, 'getDescriptionInd', array('size' => '50x3'));
?>
                            <?php 
echo form_error('description_ind');
?>
                        </td>
                    </tr>   
                </tbody>
            </table>
        </td></tr>
</table>
</form>
예제 #14
0
  <td><?php 
echo object_textarea_tag($suggested_feature, 'getTitle', array('size' => '30x3'));
?>
</td>
</tr>
<tr>
  <th>Slug*:</th>
  <td><?php 
echo object_input_tag($suggested_feature, 'getSlug', array('size' => 80));
?>
</td>
</tr>
<tr>
  <th>Description:</th>
  <td><?php 
echo object_textarea_tag($suggested_feature, 'getDescription', array('size' => '30x3'));
?>
</td>
</tr>
<tr>
  <th>Status:</th>
  <td><?php 
echo object_input_tag($suggested_feature, 'getStatus', array('size' => 7));
?>
</td>
</tr>
<tr>
  <th>Type:</th>
  <td><?php 
echo object_input_tag($suggested_feature, 'getType', array('size' => 7));
?>
예제 #15
0
?>
                                            <div class="tip"><?php 
echo __('Nama Salah Satu Orang Tua / Wali');
?>
</div>
                                        </td>
                                    </tr>
                                  <tr>
                                      <td style="vertical-align:top;"><label class="applicant"><?php 
echo __('Alamat');
?>
</label></td>
                                      <td style="text-align:center; vertical-align:top;">:</td>
                                      <td style="vertical-align:top;">
                                          <?php 
echo object_textarea_tag($ng_test_applicant, 'getAddress', array('rows' => 4, 'cols' => 60));
?>
                                          <?php 
echo form_error('address');
?>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td style="vertical-align:middle;"><label class="applicant"><?php 
echo __('Email');
?>
</label></td>
                                      <td style="text-align:center; vertical-align:middle;">:</td>
                                      <td style="vertical-align:middle;">
                                           <?php 
echo object_input_tag($ng_test_applicant, 'getEmail', array('size' => 30, 'maxlength' => 255));
예제 #16
0
echo object_select_tag($location, 'getLocationConditionId', array('related_class' => 'LocationCondition', 'include_blank' => true));
?>
			<?php 
echo form_error('location_condition_id');
?>
           </td>
        </tr>
        <tr>
           <td style="vertical-align:top;"><label><?php 
echo __('Detail Kondisi');
?>
</label></td>
           <td width="2%" style="text-align:center; vertical-align:top;">:</td>
           <td colspan="4" style="vertical-align:top;">
           <?php 
echo object_textarea_tag($location, 'getDetailCondition', array('size' => '50x3'));
?>
			<?php 
echo form_error('detail_condition');
?>
           </td>
        </tr>
	</tbody>
	</table>
</td></tr>
</table>
</form>

<table class="form">
<tr><td class="form">
	<table class="form_content" width="100%">
예제 #17
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('cliente{domicilio}')) {
    ?>
    <?php 
    echo form_error('cliente{domicilio}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_textarea_tag($cliente, 'getDomicilio', array('size' => '60x3', 'control_name' => 'cliente[domicilio]'));
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>

<div class="form-row">
  <?php 
echo label_for('cliente[poblacion]', __($labels['cliente{poblacion}']), '');
?>
  <div class="content<?php 
if ($sf_request->hasError('cliente{poblacion}')) {
    ?>
 form-error<?php 
}
?>
예제 #18
0
    echo form_tag('features/saveNew');
    ?>
      
      <?php 
    echo label_for('type', __('What do you want us to know about?'), array('style' => 'display:block;')), select_tag('type', options_for_select(array(sfConfig::get('app_feature_type_bug') => __('A Bug Report'), sfConfig::get('app_feature_type_feature') => __('A Feature Request'))));
    ?>

  <?php 
    echo label_for('type', __('What category is this in?'), array('style' => 'display:block;')), select_tag('category', options_for_select(array(sfConfig::get('app_feature_category_other') => __('Other'), sfConfig::get('app_feature_category_design') => __('Design'), sfConfig::get('app_feature_category_projects') => __('Projects'), sfConfig::get('app_feature_category_inbox') => __('Inbox'))));
    ?>
     
      <?php 
    echo label_for('title', __('What do you call your feature?'), array('style' => 'display:block;')), object_input_tag($new_feature, 'getTitle', array('size' => '30x3', 'style' => 'border:1px solid black;'));
    ?>
        <?php 
    echo label_for('description', __('Describe your feature in depth'), array('style' => 'display:block;')), object_textarea_tag($new_feature, 'getDescription', array('size' => '30x3'));
    ?>
      <?php 
    echo submit_tag('save', array('class' => 'btn'));
    ?>
      </form>
    </div>
  </div>
</div>
<?php 
}
foreach ($features as $feature) {
    ?>
<div class="suggested-feature" id="feature_<?php 
    echo $feature->getUuid();
    ?>
예제 #19
0
</label></td>
           <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
		   <td style="vertical-align:middle;">
			<?php 
echo object_input_tag($outbox_emp, 'getSubject', array('size' => 40, 'maxlength' => 255));
?>
			<?php 
#echo form_error('subject')
?>
</td>
        </tr>
        <tr>
           <td style="vertical-align:top;"><label><?php 
echo __('Detail');
?>
</label></td>
           <td style="text-align:center; vertical-align:top;">:</td>
           <td style="vertical-align:top;">
           <?php 
echo object_textarea_tag($outbox_emp, 'getDetail', array('size' => '50x3'));
?>
		   <?php 
#echo form_error('detail')
?>
           </td>
        </tr>
	</tbody>
	</table>
</td></tr>
</table>
예제 #20
0
echo form_error('end_date');
?>
												<div class="tips"><?php 
echo __('Tanggal Pindah / Lulus');
?>
</div>
											</td>
										</tr>
										<tr>
											<td><label class="applicant"><?php 
echo __('Alasan');
?>
</label></td><td>:</td>
											<td>
												<?php 
echo object_textarea_tag($student_leave, 'getDetail', array('rows' => 4, 'cols' => 30));
?>
<br>
												<?php 
echo form_error('detail');
?>
											</td>
										</tr>
										<tr>
											<td><label class="applicant"><?php 
echo __('Lanjut ke Sekolah');
?>
</label></td><td>:</td>
											<td>
												<?php 
echo object_input_tag($student_leave, 'getNextSchool', array('size' => 40, 'maxlength' => 255));
예제 #21
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('formulario{comentario}')) {
    ?>
    <?php 
    echo form_error('formulario{comentario}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_textarea_tag($formulario, 'getComentario', array('size' => '50x3', 'control_name' => 'formulario[comentario]'));
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>

<div class="form-row">
  <?php 
echo label_for('formulario[estado_interes]', __($labels['formulario{estado_interes}']), '');
?>
  <div class="content<?php 
if ($sf_request->hasError('formulario{estado_interes}')) {
    ?>
 form-error<?php 
}
?>
예제 #22
0
echo form_remote_tag(array('url' => 'subject_grading/saveCompetency?subject_grading_id=' . $subject_grading->getId(), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()", 'name' => 'edit_form'));
echo include_partial('global/title', array('actions' => $actions, 'subtitle' => $subtitle . ($sf_request->hasErrors() ? '<div class=form_error>* ' . __('_FORM_HAS_ERROR_') . '</div>' : ''), 'type' => $type, 'title' => __('Standar Kompetensi')));
echo object_input_hidden_tag($subject_competency, 'getId');
echo input_hidden_tag('action_type', '');
echo input_hidden_tag('subject_grading_id', $subject_grading->getId());
?>

<table class="form">
<tr><td class="form">
	<table class="form_content" width="100%">
	<tbody>
        <tr>
           <td class="first" style="vertical-align:top;"><label><?php 
echo __('Kompetensi Dasar');
?>
</label></td>
           <td class="first" style="text-align:center; vertical-align:top;">:</td>
           <td class="first" style="vertical-align:top;">
           <?php 
echo object_textarea_tag($subject_competency, 'getDetail', array('size' => '30x3'));
?>
		   <?php 
echo form_error('detail');
?>
           </td>
        </tr>
	</tbody>
	</table>
</td></tr>
</table>
</form>
예제 #23
0
        
                       
                                    <table class="form">
                                    <tr><td class="form">

                                            <table class="form_content" width="100%">
                                            <tbody>	
                                                    <tr>
                                                            <td width="15%" class="first" style="vertical-align: top;"><label><?php 
echo __('Penilaian');
?>
</label></td>
                                                            <td class="first" width="1%" style="text-align: center; vertical-align: top;">:</td>
                                                            <td class="first" style="vertical-align: top;">
                                                                        <?php 
echo object_textarea_tag($student_desc, 'getDesc', array('size' => '100x3'));
?>
                                                                        <?php 
echo form_error('desc');
?>
<br>
                                                            </td>
                                                    </tr>
                                            </tbody>
                                            </table>

                                    </td></tr>
                                    </table>
                                    
                                    </form>
                                    
예제 #24
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('mensaje{cuerpo}')) {
    ?>
    <?php 
    echo form_error('mensaje{cuerpo}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_textarea_tag($mensaje, 'getCuerpo', array('rich' => true, 'size' => '60x5', 'control_name' => 'mensaje[cuerpo]'));
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>

<div class="form-row">
  <?php 
echo label_for('mensaje[es_programado]', __($labels['mensaje{es_programado}']) . ":", '');
?>
  <div class="content<?php 
if ($sf_request->hasError('mensaje{es_programado}')) {
    ?>
 form-error<?php 
}
?>
예제 #25
0
?>
<br />
                            <?php 
echo form_error('name');
?>
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align:top;"><label><?php 
echo __('Detail *');
?>
</label></td>
                        <td style="text-align:center; vertical-align:top;">:</td>
                        <td style="vertical-align:top;">
                            <?php 
echo object_textarea_tag($cur13_term, 'getDescription', array('size' => '50x3'));
?>
                            <?php 
echo form_error('description');
?>
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align:top;"><label><?php 
echo __('Jenis Penilaian *');
?>
</label></td>
                        <td style="text-align:center; vertical-align:top;">:</td>
                        <td style="vertical-align:top;">
                            <?php 
#echo object_select_tag($cur13_term, 'getCur13KiId', array('related_class' => 'Cur13Ki',  'include_blank' => true,  'peer_method' => 'doSelectFiltered'));
예제 #26
0
</label></td>
                                                <td style="text-align:center; vertical-align:top;">:</td>
                                                <td style="vertical-align:top;">
                                                        <?php 
echo double_list($course_schedule, 'getCourseScheduleTutors', 'peer_method=doSelectFiltered through_class=CourseScheduleTutor associated_label= unassociated_label=');
?>
                                                </td>
                                        </tr>
                                        
                                        <tr>
                                                <td style="vertical-align:top;"><label><?php 
echo __('Detail Kegiatan');
?>
</label></td>
                                                <td style="text-align:center; vertical-align:top;">:</td>
                                                <td style="vertical-align:top;">
                                                        <?php 
echo object_textarea_tag($course_schedule, 'getName', array('rows' => 2, 'cols' => 60));
?>
                                                        <?php 
echo form_error('name');
?>
                                                </td>
                                        </tr>
                                        
                        </tbody>        
                    </table>
            </td></tr>
    </table>
    </form>
예제 #27
0
echo form_error('company');
?>
                <p style="font-size: 10px; margin-top: -7px; margin-left: 150px;"></p>
                <label style="width: 150px;">Negara</label>
                <?php 
echo object_select_tag($applicant_detail, 'getNationality', array('related_class' => 'Country', 'peer_metod' => 'doSelectOrdered', 'include_blank' => false), 100);
?>
                <p style="font-size: 10px; margin-top: -7px; margin-left: 150px;"></p>
                <label style="width: 150px;">Wilayah</label>
                <?php 
echo object_select_tag($applicant_detail, 'getRegionId', array('related_class' => 'Region', 'include_blank' => true));
?>
                <p style="font-size: 10px; margin-top: -7px; margin-left: 150px;"></p>
                <label style="width: 150px;">Alamat</label>
                <?php 
echo object_textarea_tag($applicant_detail, 'getAddress', array('rows' => 2, 'cols' => 32));
?>
				<p style="font-size: 10px; margin-top: -7px; margin-left: 150px;"></p>
                <label style="width: 150px;">No. Telp *</label>
                <?php 
echo object_input_tag($applicant_detail, 'getPhone', array('size' => 24));
?>
				<?php 
echo form_error('phone');
?>
                <p style="font-size: 10px; margin-top: -7px; margin-left: 150px;">
                	Nomor telepon yang dapat dihubungi. Pisahkan dengan , (koma) jika ada beberapa nomor.</p>
                <label style="width: 150px;">No. Handphone *</label>
                <?php 
echo object_input_tag($applicant_detail, 'getCellphone', array('size' => 24));
?>
예제 #28
0
</label>
				<br/>
				<?php 
echo object_select_tag($col_item, 'getColSourceId', array('related_class' => 'ColSource', 'control_name' => 'col_item[COL_SOURCE_ID]', 'include_blank' => true));
?>
			</td>
		</tr>
		<tr>
			<td >
				<label  ><?php 
echo __('Col source desc');
?>
</label>
				<br/>
				<?php 
echo object_textarea_tag($col_item, 'getColSourceDesc', array('size' => '30x3', 'control_name' => 'col_item[COL_SOURCE_DESC]'));
?>
			</td>
		</tr>
		<tr>
			<td >
				<label  ><?php 
echo __('Year added');
?>
</label>
				<br/>
				<?php 
echo object_input_tag($col_item, 'getYearAdded', array('size' => 7, 'control_name' => 'col_item[YEAR_ADDED]'));
?>
			</td>
		</tr>
예제 #29
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('legajopedagogico{texto}')) {
    ?>
    <?php 
    echo form_error('legajopedagogico{texto}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

<?php 
echo object_textarea_tag($legajopedagogico, 'getTexto', array('rows' => '10', 'cols' => '80', 'control_name' => 'legajopedagogico[texto]'));
?>
   </div>
</div>


<div class="form-row">
        <?php 
echo label_for('categoria', __('Categoria:'), 'class="required" ');
?>
        
     <div class="content<?php 
if ($sf_request->hasError('legajopedagogico{fk_legajocategoria_id}')) {
    ?>
 form-error<?php 
}
예제 #30
0
echo object_input_tag($student_parents, 'getMonthlyRevenue', array('size' => 7));
?>
						<?php 
echo form_error('monthly_revenue');
?>
					</td>
				</tr>                
				<tr>
                			<td width="20%" style="vertical-align:middle;"><label ><?php 
echo __('Address');
?>
</label></td>
                			<td width="2%" style="text-align:center; vertical-align:middle;">:</td>
					<td style="vertical-align:middle;">
                    				<?php 
echo object_textarea_tag($student_parents, 'getAddress', array('size' => '30x3'));
?>
						<?php 
echo form_error('address');
?>
					</td>
				</tr>                
				<tr>
                			<td width="20%" style="vertical-align:middle;"><label ><?php 
echo __('Region');
?>
</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, 'getRegionId', array('related_class' => 'Region', 'peer_method' => 'doSelectOrdered', 'include_blank' => true));