Пример #1
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('article{online}')) {
    ?>
    <?php 
    echo form_error('article{online}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_checkbox_tag($article, 'getOnline', array('control_name' => 'article[online]'));
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>

<div class="form-row">
  <?php 
echo label_for('article[excerpt]', __($labels['article{excerpt}']), '');
?>
  <div class="content<?php 
if ($sf_request->hasError('article{excerpt}')) {
    ?>
 form-error<?php 
}
?>
Пример #2
0
echo object_input_tag($event, 'getImageUrl', array('class' => 'long'));
?>
    </div>
    <div class="clear_float"></div>

    <label class="label" for="status">Status</label>
    <div class="value">
      <?php 
echo object_select_tag($event, 'getStatusId', array('related_class' => 'Status', 'include_blank' => true));
?>
    </div>
    <div class="clear_float"></div>

    <label class="label" for="status">Category</label>
    <div class="value">
      <?php 
echo object_select_tag($event, 'getCategoryId', array('related_class' => 'Category', 'include_blank' => true));
?>
    </div>
    <div class="clear_float"></div>

    <label class="label" for="media_potential">Media potential</label>
    <div class="value">
      <?php 
echo object_checkbox_tag($event, 'getMediaPotential', array());
?>
    </div>
    <div class="clear_float"></div>

  </div>
Пример #3
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('rel_calendariovacunacion_alumno{comprobante}')) {
    ?>
    <?php 
    echo form_error('rel_calendariovacunacion_alumno{comprobante}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
echo object_checkbox_tag($rel_calendariovacunacion_alumno, 'getComprobante', array('control_name' => 'rel_calendariovacunacion_alumno[comprobante]'));
?>
    </div>
</div>

<div class="form-row">
  <?php 
echo label_for('rel_calendariovacunacion_alumno[fecha]', __('Fecha:'), '');
?>
  <div class="content<?php 
if ($sf_request->hasError('rel_calendariovacunacion_alumno{fecha}')) {
    ?>
 form-error<?php 
}
?>
">
Пример #4
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('tarea{avisar_email_fin}')) {
    ?>
    <?php 
    echo form_error('tarea{avisar_email_fin}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_checkbox_tag($tarea, 'getAvisarEmailFin', array('control_name' => 'tarea[avisar_email_fin]'));
echo $value ? $value : "&nbsp;";
?>
  </div>
</div>
</fieldset>

<?php 
include_partial('edit_actions', array('tarea' => $tarea));
?>

</form>

<?php 
if ($tarea->getIdTarea()) {
    ?>
Пример #5
0
$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);
    $t->fail();
} catch (sfViewException $e) {
    $t->pass();
}
try {
    $actual = objects_for_select(array($obj1, $obj2), 'getValue', 'getNonExistantMethod');
    $t->is($expected, $actual);
    $t->fail();
} catch (sfViewException $e) {
    $t->pass();
}
// object_input_hidden_tag()
$t->diag('object_input_hidden_tag()');
$obj1 = new TestObject();
$t->is(object_input_hidden_tag($obj1, 'getValue'), '<input type="hidden" name="value" id="value" value="value" />');
// object_input_tag()
$t->diag('object_input_tag()');
$obj1 = new TestObject();
$t->is(object_input_tag($obj1, 'getValue'), '<input type="text" name="value" id="value" value="value" />');
// object_checkbox_tag()
$t->diag('object_checkbox_tag()');
$obj1 = new TestObject();
$t->is(object_checkbox_tag($obj1, 'getBooleanFalse'), '<input type="checkbox" name="boolean_false" id="boolean_false" value="1" />');
$t->is(object_checkbox_tag($obj1, 'getBooleanTrue'), '<input type="checkbox" name="boolean_true" id="boolean_true" value="1" checked="checked" />');
Пример #6
0
		</td></tr>
		<tr><td >
			<label><?php 
echo __('Department');
?>
</label><br/>
			<?php 
echo object_select_tag($subject, 'getDepartmentId', array('related_class' => 'Department', 'include_blank' => true, 'peer_method' => 'doSelectOrdered'));
?>
			<?php 
echo form_error('department_id');
?>
		</td></tr>
		<tr><td >
			<label><?php 
echo __('Is comprehensive subject');
?>
</label><br/>
			<?php 
echo object_checkbox_tag($subject, 'getIsComprehensiveSubject', array());
?>
			<?php 
echo form_error('is_comprehensive_subject');
?>
		</td></tr>
	</tbody>
	</table>
</td></tr>
</table>
</form>
?>
  <div class="content<?php 
if ($sf_request->hasError('usuario{alerta_email}')) {
    ?>
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('usuario{alerta_email}')) {
    ?>
    <?php 
    echo form_error('usuario{alerta_email}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_checkbox_tag($usuario, 'getAlertaEmail', array('control_name' => 'usuario[alerta_email]'));
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>


</fieldset>
-->
<input type="hidden" id="usuario_id_idioma" name="usuario[id_idioma]" value="1">

Пример #8
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('ciclolectivo{actual}')) {
    ?>
    <?php 
    echo form_error('ciclolectivo{actual}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_checkbox_tag($ciclolectivo, 'getActual', array('control_name' => 'ciclolectivo[actual]'));
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>
<?php 
if ($sf_request->getParameter('action') == 'create' || $ciclolectivo->getId() == 0) {
    ?>
 <?php 
    if ($sf_user->getAttribute('fk_ciclolectivo_id') != 0) {
        ?>
    <div class="form-row">
        <?php 
        echo label_for('importarciclo', 'Importar divisiones', 'class="required" ');
        ?>
        <?php 
Пример #9
0
            			<td width="2%" style="text-align:center; vertical-align:middle;">:</td>
            			<td style="vertical-align:middle;">
					<?php 
echo object_input_tag($cir_regulation, 'getExtTime', array('size' => 7, 'disabled' => true)) . __('times');
?>
				</td>
			</tr>
			<tr>
				<td style="vertical-align:middle;"><label><?php 
echo __('Can Download');
?>
</label>
            			<td width="2%" style="text-align:center; vertical-align:middle;">:</td>
            			<td style="vertical-align:middle;">
					<?php 
echo object_checkbox_tag($cir_regulation, 'getCanDownload', array('disabled' => true));
?>
				</td>
			</tr>
			<tr>
        			<td style="vertical-align:middle;"><label><?php 
echo __('Library Location');
?>
</label>
            			<td width="2%" style="text-align:center; vertical-align:middle;">:</td>
            			<td style="vertical-align:middle;">
            				<?php 
echo object_select_tag($cir_regulation, 'getDepartmentId', array('related_class' => 'Department', 'include_blank' => false, 'peer_method' => 'doSelectFiltered'));
?>
					<?php 
echo form_error('department_id');
Пример #10
0
  <td><?php 
echo object_input_tag($user, 'getSecretquestion', array('size' => 80));
?>
</td>
</tr>
<tr>
  <th>Secretanswer:</th>
  <td><?php 
echo object_input_tag($user, 'getSecretanswer', array('size' => 80));
?>
</td>
</tr>
<tr>
  <th>Islocked:</th>
  <td><?php 
echo object_checkbox_tag($user, 'getIslocked', array());
?>
</td>
</tr>
</tbody>
</table>
<hr />
<?php 
echo submit_tag('save');
if ($user->getId()) {
    ?>
  &nbsp;<?php 
    echo link_to('delete', 'user/delete?id=' . $user->getId(), 'post=true&confirm=Are you sure?');
    ?>
  &nbsp;<?php 
    echo link_to('cancel', 'user/show?id=' . $user->getId());
Пример #11
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('responsable{autorizacion_retiro}')) {
    ?>
    <?php 
    echo form_error('responsable{autorizacion_retiro}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
echo object_checkbox_tag($responsable, 'getAutorizacionRetiro', array('control_name' => 'responsable[autorizacion_retiro]'));
?>
    </div>
</div>

    <?php 
echo object_input_hidden_tag($responsable, 'getFkCuentaId', array('control_name' => 'responsable[fk_cuenta_id]'));
?>

        </fieldset>


<?php 
echo include_partial('edit_actions', array('responsable' => $responsable));
?>
Пример #12
0
                                <div class="tips">Biarkan kosong apabila berlaku untuk semua</div>
                        </td>
                    </tr> 
                    
                        <tr>
                                    <td style="vertical-align:middle;"><label><?php 
echo __('Is Subsidy');
?>
</label>
                                    <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
                                    <td style="vertical-align:middle;">
                                            <?php 
echo object_checkbox_tag($employee_regulation, 'getIsSubsidy', array('onchange' => '
                                                                            if (this.checked == true) {
                                                                                    $("amount_subsidy").disabled = false;
                                                                            } else {
                                                                                    $("amount_subsidy").disabled = true;
                                                                            }
                                                            '));
?>
                                    </td>
                            </tr>
                    
                    <tr>
                        <td style="vertical-align:middle;"><label><?php 
echo __('Amount Subsidy');
?>
</label></td>
                        <td style="text-align:center; vertical-align:middle;">:</td>
                        <td style="vertical-align:middle;">
                                <?php 
Пример #13
0
  $t->fail();
}
catch (sfViewException $e)
{
  $t->pass();
}

// object_input_hidden_tag()
$t->diag('object_input_hidden_tag()');
$obj1 = new TestObject();

$t->is(object_input_hidden_tag($obj1, 'getValue'),
                   '<input type="hidden" name="value" id="value" value="value" />');

// object_input_tag()
$t->diag('object_input_tag()');
$obj1 = new TestObject();

$t->is(object_input_tag($obj1, 'getValue'),
                   '<input type="text" name="value" id="value" value="value" />');

// object_checkbox_tag()
$t->diag('object_checkbox_tag()');
$obj1 = new TestObject();

$t->is(object_checkbox_tag($obj1, 'getBooleanFalse'),
                   '<input type="checkbox" name="boolean_false" id="boolean_false" value="1" />');

$t->is(object_checkbox_tag($obj1, 'getBooleanTrue'),
                   '<input type="checkbox" name="boolean_true" id="boolean_true" value="1" checked="checked" />');
Пример #14
0
    ?>
</label>
    <?php 
    echo input_password_tag('password_bis', '', 'size=30');
    ?>
    <br class="clearleft" />

    <?php 
    if (!$subscriber->getIsModerator()) {
        ?>
      <label for="want_to_be_moderator"><?php 
        echo __('do you want to be a moderator?');
        ?>
</label>
      <?php 
        echo object_checkbox_tag($subscriber, 'getWantToBeModerator');
        ?>
      <br class="clearleft" />
    <?php 
    }
    ?>

    </fieldset>

    <div class="right">
      <?php 
    echo submit_tag(__('update it'));
    ?>
    </div>
  </form>
<?php 
Пример #15
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('usuario{activo}')) {
    ?>
    <?php 
    echo form_error('usuario{activo}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
echo object_checkbox_tag($usuario, 'getActivo', array('control_name' => 'usuario[activo]'));
?>
    </div>
</div>
<?php 
if ($sf_params->get('action') != "create") {
    ?>
<div class="form-row">
  <?php 
    echo label_for('usuario[fecha_creado]', __('Creado:'), 'class="required" ');
    ?>
  <div class="content<?php 
    if ($sf_request->hasError('usuario{fecha_creado}')) {
        ?>
 form-error<?php 
    }
Пример #16
0
 form-error<?php 
}
?>
">
              <?php 
if ($sf_request->hasError('alumno{certificado_medico}')) {
    ?>
                <?php 
    echo form_error('alumno{certificado_medico}', array('class' => 'form-error-msg'));
    ?>
              <?php 
}
?>

              <?php 
echo object_checkbox_tag($alumno, 'getCertificadoMedico', array('control_name' => 'alumno[certificado_medico]'));
?>
                </div>
            </div>
            <div class="form-row">
            <?php 
echo label_for('alumno[procedencia]', __('Procedencia'), '');
?>

            <?php 
echo object_input_tag($alumno, 'getProcedencia', array('size' => 50, 'control_name' => 'alumno[procedencia]'));
?>
            </div>
            
            <div class="form-row">
            <?php 
Пример #17
0
echo object_input_date_tag($public_information, 'getStart', array('rich' => true, 'withtime' => false, 'calendar_button_img' => '/images/calendar.gif'), date('Y/m/d h:i'));
?>
			<?php 
echo form_error('start');
?>
			</td>
        </tr>
        <tr>
           <td style="vertical-align:middle;"><label><?php 
echo __('Di Terbitkan');
?>
</label></td>
           <td width="3%" style="text-align:center; vertical-align:middle;">:</td>
		   <td style="vertical-align:middle;">
			<?php 
echo object_checkbox_tag($public_information, 'getPublished', array());
?>
			<?php 
echo form_error('published');
?>
		   </td>
        </tr>
		<tr>
           <td style="vertical-align:top;"><label><?php 
echo __('Detail');
?>
</label></td>
           <td width="3%" style="text-align:center; vertical-align:top;">:</td>
           <td style="vertical-align:top;">
            <?php 
echo object_textarea_tag($public_information, 'getDetail', array('size' => '50x3'));
Пример #18
0
?>
</label><br/>
				<?php 
echo object_checkbox_tag($member, 'getIsThesisAdvisor', array());
?>
				<?php 
echo form_error('is_thesis_advisor');
?>
			</td>
        	<td >
				<label><?php 
echo __('Is comprehensive reviewer');
?>
</label><br/>
				<?php 
echo object_checkbox_tag($member, 'getIsComprehensiveReviewer', array());
?>
				<?php 
echo form_error('is_comprehensive_reviewer');
?>
			</td>
        </tr>
		<tr>
        	<td colspan="2">
				<label><?php 
echo __('Password');
?>
</label><br/>
				<?php 
echo input_tag('password', '', array('size' => 40, 'maxlength' => 40, 'type' => 'password'));
?>
Пример #19
0
echo form_error('additional_guests');
?>
    <label class="label" for="additional_guests">Additional guests</label>
    <div class="value">
      <?php 
echo object_input_tag($etime, 'getAdditionalGuests');
?>
    </div>

    <div class="clear_float"></div>

    <label class="label" for="has_fee">Has fee</label>
    <div class="value">
      <?php 
echo object_checkbox_tag($etime, 'getHasFee', array());
?>
    </div>

    <div class="clear_float"></div>

    <label class="label" for="audio_visual_support">Required audio/visual support</label>
    <div class="value">
      <?php 
echo object_checkbox_tag($etime, 'getAudioVisualSupport', array());
?>
    </div>

    <div class="clear_float"></div>

  </div>
Пример #20
0
?>
                            <?php 
echo form_error('is_thesis_advisor');
?>
                    </td>
                </tr>
                            
                <tr>    
                    <td style="vertical-align:middle;"><label ><?php 
echo __('Pembina / Pendamping Ekskul');
?>
</label></td>
                    <td style="text-align:center; vertical-align:middle;">:</td>
                    <td style="vertical-align:middle;" colspan="4">
                            <?php 
echo object_checkbox_tag($employee, 'getIsComprehensiveReviewer', array());
?>
                            <?php 
echo form_error('is_comprehensive_reviewer');
?>
                    </td>
                </tr>
                
                <tr>
                    <td style="vertical-align:middle;"><label ><?php 
echo __('Username');
?>
</label></td>
                    <td style="text-align:center; vertical-align:middle;">:</td>
                    <td style="vertical-align:middle;">
                            <?php 
Пример #21
0
 form-error<?php 
}
?>
">
      <?php 
if ($sf_request->hasError('informe{listado}')) {
    ?>
        <?php 
    echo form_error('informe{listado}', array('class' => 'form-error-msg'));
    ?>
      <?php 
}
?>

      <?php 
$value = object_checkbox_tag($informe, 'getListado', array('control_name' => 'informe[listado]'));
echo $value ? $value : '&nbsp;';
?>
    </div>
  </div>

  <div class="form-row">
    <p>Variables personalizadas que ser&aacute;n reemplazadas en la plantilla del informe (separadas por punto y coma).</p>
      <?php 
echo label_for('informe[variables]', __($labels['informe{variables}']), 'class="required" ');
?>
    <div class="content<?php 
if ($sf_request->hasError('informe{variables}')) {
    ?>
 form-error<?php 
}
Пример #22
0
echo object_input_tag($item, 'getPadreAyuda', array('size' => 60, 'control_name' => 'item[ayuda]'));
?>
  <div class="sf_edit_help"><?php 
echo __('Puede mostrar un texto de ayuda como este para la comprensión del elemento');
?>
</div>
  </div>
</div>

<div class="form-row">
  <?php 
echo label_for('item[texto_auxiliar]', __($labels['item{texto_auxiliar}']) . ":", '');
?>
  <div class="content">
    <?php 
echo object_checkbox_tag($item, 'getTextoAuxiliar', array('control_name' => 'item[texto_auxiliar]'));
?>
  <div class="sf_edit_help"><?php 
echo __('Active la casilla si quiere que el usuario pueda introducir un texto descriptivo');
?>
</div>
  </div>
</div>

</fieldset>

<?php 
include_partial('edit_item_actions', array('item' => $item, 'tabla' => $tabla));
?>
</form>
Пример #23
0
</label></td>
           <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
		   <td style="vertical-align:middle;">
			<?php 
echo object_input_tag($grade_component, 'getName', array('size' => 40, 'maxlength' => 255));
?>
			<?php 
echo form_error('name');
?>
           </td>
        </tr>
        <tr>
           <td style="vertical-align:middle;"><label><?php 
echo __('Published');
?>
</label></td>
           <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
		   <td style="vertical-align:middle;">
			<?php 
echo object_checkbox_tag($grade_component, 'getPublished', array());
?>
			<?php 
echo form_error('published');
?>
           </td>
        </tr>
	</tbody>
	</table>
</td></tr>
</table>
</form>
Пример #24
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('formulario{especial}')) {
    ?>
    <?php 
    echo form_error('formulario{especial}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_checkbox_tag($formulario, 'getEspecial', array('control_name' => 'formulario[especial]'));
echo $value ? $value : '&nbsp;';
?>
  <div class="sf_edit_help"><?php 
echo __('Marque si es un cliente especial');
?>
</div>
  <?php 
$value = object_textarea_tag($formulario, 'getEspecialDescripcion', array('size' => '50x3', 'control_name' => 'formulario[especial_descripcion]'));
echo $value ? $value : '&nbsp;';
?>
  </div>
</div>

<div class="form-row">
  <?php 
Пример #25
0
echo object_input_tag($job, 'getMenuOrder', array('size' => 3, 'maxlength' => 3));
?>
			<?php 
echo form_error('menu_order');
?>
           </td>
        </tr>
        <tr>
           <td style="vertical-align:middle;"><label><?php 
echo __('Display menu');
?>
</label></td>
           <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
		   <td style="vertical-align:middle;">
			<?php 
echo object_checkbox_tag($job, 'getDisplayMenu', array('size' => NULL, 'maxlength' => NULL));
?>
			<?php 
echo form_error('display_menu');
?>
           </td>
        </tr>
        <tr>
           <td style="vertical-align:middle;"><label><?php 
echo __('Menu Kategori');
?>
</label></td>
           <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
		   <td style="vertical-align:middle;">
			<?php 
echo object_select_tag($job_information, 'getJobCategoryId', array('related_class' => 'JobCategory', 'include_blank' => true));
Пример #26
0
</div>
<?php 
}
?>


<?php 
if ($DefParametro->getCamposino() != "") {
    ?>
<div class="form-row">
	<?php 
    echo label_for('sino', __($DefParametro->getCamposino()));
    ?>
	<div class="row-data">
		<?php 
    echo object_checkbox_tag($parametro, 'getSino');
    ?>
  </div>
</div>
<?php 
}
if ($DefParametro->getCampoFecha() != "") {
    ?>
<div class="form-row">
	<?php 
    echo label_for('fecha', __($DefParametro->getCampoFecha()));
    ?>
	<div class="row-data">
		<?php 
    echo object_input_date_tag($parametro, 'getFecha', "rich=true calendar_button_img=calendar_button_img");
    ?>
Пример #27
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('guest{paid}')) {
    ?>
    <?php 
    echo form_error('guest{paid}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_checkbox_tag($guest, 'getPaid', array('control_name' => 'guest[paid]'));
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>

<div class="form-row">
  <?php 
echo label_for('guest[extra_info]', $labels['guest{extra_info}'], '');
?>
  <div class="content<?php 
if ($sf_request->hasError('guest{extra_info}')) {
    ?>
 form-error<?php 
}
?>