示例#1
0
function select_tag_campuses($name = 'campus', $selected = 2, $options = array())
{
    $c = new Criteria();
    $c->addAscendingOrderByColumn(CampusPeer::NAME);
    $campuses = CampusPeer::doSelect($c);
    return select_tag($name, objects_for_select($campuses, 'getId', 'getName', $selected, array()), $options);
}
示例#2
0
$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);
    $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()');
示例#3
0
        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;
    case 'upload':
        echo $cs_setting->getValue() ? link_to($cs_setting->getValue(), public_path('uploads/setting/' . $cs_setting->getValue())) . '<br />' : '';
        echo input_file_tag($name, $cs_setting->getValue(), $cs_setting->getOptions());
        break;
    default:
        echo input_tag($name, $cs_setting->getValue(), 'size=55');
        break;
}
示例#4
0
<?php

use_helper('Validation');
use_helper('Object');
include_partial('global/page_header', array('title' => 'Weryfikacja właściciela bloga'));
echo form_tag('blog/verification');
?>
    <fieldset>
        <div class="row">
            <label for="login">Wybierz swój blog: </label>
            <?php 
echo select_tag('blog_id', objects_for_select($blogs, 'getId', 'getName'));
?>
        </div>
    
        <div class="infobox"><p class="center">Podaj swój login i hasło z <a href="http://forum.php.pl">Forum PHP.pl</a></p></div>
    
        <div class="row">
            <?php 
echo form_error('login');
?>
            <label for="login">Login: </label>
            <?php 
echo input_tag('login');
?>
        </div>
        
        <div class="row">
            <?php 
echo form_error('password');
?>
示例#5
0
if ($sf_request->hasError('first_name')) {
    echo '<span class="form-error">' . $sf_request->getError('first_name') . '</span>';
}
?>
</div></label>
          <label for="last_name">Last Name:
            <div class="registration-input"><?php 
echo object_input_tag($profile, 'getLastName');
if ($sf_request->hasError('last_name')) {
    echo '<span class="form-error">' . $sf_request->getError('last_name') . '</span>';
}
?>
</div></label>
          <label for="department">Department:
            <div class="registration-input"><?php 
echo select_tag('department', objects_for_select($departments, 'getUuid', 'getName', $profile->getDepartmentId(), array()), array('class' => 'xxx'));
if ($sf_request->hasError('department')) {
    echo '<span class="form-error">' . $sf_request->getError('department') . '</span>';
}
?>
</div></label>
        </fieldset>
      </div>
      <div>
        You will be able to change your primary email address later by clicking on profile->edit
      </div>
      <div class="submit-row" style="text-align:center;"><?php 
echo submit_tag('Sign Up', array());
?>
<p/></div>
  </form>
 /**
  * Renders the images editor
  * 
  * @return string
  *
  */
 public function render()
 {
     return sprintf($this->editorSkeleton, label_for('page_name', __('Page name:')), input_tag('w3s_page_name', ''), label_for('group_name', __('Group name:')), select_tag('w3s_groups_select', objects_for_select(W3sGroupPeer::getActiveGroups(), 'getId', 'getGroupName')), link_to_function(__('Add Page'), 'W3sPage.add()', 'class="link_button"'));
 }
示例#7
0
    <?php 
if ($show_project_select) {
    ?>
        <label>
            <?php 
    echo __('Project');
    ?>
:
        </label>
        <select name="filter[project]">
            <option value="-1"><?php 
    echo __('All');
    ?>
</option>
            <?php 
    echo objects_for_select($projects, 'getId', '__toString', $sf_user->getAttribute('project', -1, 'report_filter') != -1 ? $sf_user->getAttribute('project', '', 'report_filter') : null);
    ?>
        </select>
        &nbsp;&nbsp;&nbsp;
    <?php 
}
?>

    <input class="button altbutton" type="submit" value="<?php 
echo __('Filter');
?>
" />
    &nbsp;&nbsp;&nbsp;
    <input type="button" onclick="location.href='<?php 
echo url_for('report/clearFilter?target=' . $destination_action . '&pagesize=' . $sf_request->getParameter('pagesize', 20) . '&page=' . $sf_request->getParameter('page', 1));
?>
<?php

use_helper('I18N', 'Object', 'Javascript');
?>

<?php 
if ($sf_request->hasError('filters{id_reunion}')) {
    ?>
  <?php 
    echo form_error('filters{id_reunion}', array('class' => 'form-error-msg'));
}
?>
  
<?php 
$value = select_tag('filters[id_reunion]', objects_for_select($reuniones, 'getIdReunion', 'getNombre', '', array('include_blank' => true), array('control_name' => 'filters[id_reunion]')));
echo $value ? $value : '&nbsp;';
示例#9
0
?>
                <label for="deceased_after">&nbsp;To</label>
                <?php 
echo $date_widget->render('added_date2', $added_date2);
?>
              </div>
              <div class="div-contact">
                <br clear="left"/>
                <label for="ff_city">Ref Source</label>
                <?php 
echo select_tag('ref_source', objects_for_select($ref_sources, 'getId', 'getSourceName', $ref_source, array('include_custom' => '- any -')), array('class' => 'text'));
?>
                <br clear="left"/>
                <label for="ff_country">Contact Type</label>
                <?php 
echo select_tag('contact_type', objects_for_select($contact_types, 'getId', '__toString', $contact_type, array('include_custom' => '- any -')), array('class' => 'text'));
?>
              </div>
              <div class="div-contact">
                <br clear="left"/>
                <br clear="left"/>
                <br clear="left"/>
                <input type="submit" value="Find"/>
                <?php 
echo link_to('reset', '@default_index?module=contact&filter=1');
?>
              </div>
            </div>
          </div>
          <input type="submit" class="hide" value="submit"/>
        </div>
 /**
  * Renders the editor
  * 
  * @return string
  *
  */
 public function render()
 {
     $options = DbFinder::from('W3sTemplate')->find();
     return sprintf($this->editorSkeleton, label_for('group_name', w3sCommonFunctions::toI18n('Group name:')), input_tag('w3s_group_name', ''), label_for('template_name', w3sCommonFunctions::toI18n('Template name:')), select_tag('w3s_templates_select', objects_for_select($options, 'getId', 'getTemplateName')), link_to_function(w3sCommonFunctions::toI18n('Add Group'), 'W3sGroup.add()', 'id="w3s_change_button" class="link_button"'));
 }
示例#11
0
    <?php 
    if ($sf_request->hasError('documento{id_reunion}')) {
        ?>
      <?php 
        echo form_error('documento{id_reunion}', array('class' => 'form-error-msg'));
        ?>
    <?php 
    }
    ?>
      
    <?php 
    $reuniones = $documento->getIdproyecto() ? ReunionPeer::getReunionesEmpresaProyecto($documento->getIdProyecto()) : array();
    ?>
      
    <?php 
    echo select_tag('documento[id_reunion]', objects_for_select($reuniones, 'getIdReunion', 'getNombre', $documento->getIdReunion(), array('include_custom' => "- " . __('Sin definir') . " -")));
    ?>
    </div>
  </div>
<?php 
}
?>
  <div class="form-row">
    <?php 
echo label_for('documento[id_categoria]', __($labels['documento{id_categoria}']), '');
?>
    <div class="content"><?php 
$value = object_select_tag($documento->getIdCategoria(), 'getNombre', array('related_class' => 'Parametro', 'control_name' => 'documento[id_categoria]', 'peer_method' => 'getCategoriasDocumentos', 'text_method' => 'getNombre', 'include_custom' => "- " . __('Sin definir') . " -"));
echo $value ? $value : '&nbsp;';
?>
</div>
    }
    ?>
">
  <?php 
    if ($sf_request->hasError('campo{valor_defecto}')) {
        ?>
    <?php 
        echo form_error('campo{valor_defecto}', array('class' => 'form-error-msg'));
        ?>
  <?php 
    }
    ?>
  <?php 
    eval("if (in_array('getCriterioAlcance',get_class_methods('" . $campo->getValorObjeto() . "Peer'))) {\$c = " . $campo->getValorObjeto() . "Peer::getCriterioAlcance();} else {\$c = new Criteria();}");
    eval("\$valores = " . $campo->getValorObjeto() . "Peer::doSelect(\$c);");
    $value = select_tag("campo[defecto_objeto]", objects_for_select($valores, 'getPrimaryKey', '__toString', $campo->getDefecto(), array('include_blank' => true)), array('control_name' => "campo[defecto_objeto]"));
    echo $value ? $value : '&nbsp;';
    ?>
  <div class="sf_edit_help"><?php 
    echo __('Indique el valor por defecto del campo');
    ?>
</div>
  </div>
  <?php 
}
?>
</div>

<div class="form-row" id="capa_texto_corto" <?php 
if (!$campo->esTipoTextoCorto()) {
    echo "style=\"display:none;\"";
示例#13
0
echo input_tag("last_name");
?>
		</li>
		<li>
			<?php 
echo label_for('register_password', 'Password'), input_password_tag("register_password");
?>
<br />
			<?php 
echo label_for('register_password_confirm', 'Confirm Password'), input_password_tag("register_password_confirm");
?>

		</li>
		<li>
			<?php 
echo label_for('register_email', __('Email')), input_tag("register_email");
?>
<br />
			<?php 
echo label_for('department', __('Department')), select_tag('department', objects_for_select($departments, 'getUuid', 'getName', '', array()), array('class' => 'xxx', 'style' => 'width:100px;'));
?>
		</li>
		</ul>
		<div style="text-align:center;clear:both;">
			<?php 
echo submit_tag('Submit', array('class' => 'btn', 'style' => 'color:black;'));
?>
		</div>
	</form>
</div>
示例#14
0
?>
          
        <?php 
echo observe_field('filters_id_fase', array('frequency' => 1, 'script' => 'true', 'update' => 'reuniones', 'url' => 'documentos/elegirfasefilters', 'with' => "'id_proyecto='+\$('filters_id_proyecto').value+'id_fase='+\$('filters_id_fase').value"));
?>
  
      </div>
    </div>
      
    <div class="form-row">
      <label for="filters_id_reunion"><?php 
echo __('Reunion:');
?>
</label>
      <div id="reuniones" class="content"><?php 
echo select_tag('filters[id_reunion]', options_for_select(array('' => '')) . objects_for_select($reuniones, 'getIdReunion', 'getNombre', isset($filters['id_reunion']) ? $filters['id_reunion'] : null));
?>
</div>
    </div>
    
    
    <div class="form-row">
      <label for="filters_id_categoria"><?php 
echo __('Categoría') . ":";
?>
</label>
      <div class="content"><?php 
$value = object_select_tag(isset($filters['id_categoria']) ? $filters['id_categoria'] : null, 'getNombre', array('related_class' => 'Parametro', 'control_name' => 'filters[id_categoria]', 'peer_method' => 'getCategoriasDocumentos', 'text_method' => 'getNombre', 'include_blank' => true));
echo $value ? $value : '&nbsp;';
?>
      </div>
示例#15
0
echo label_for('project_school', 'School'), select_tag('project_school', objects_for_select($campuses, 'getId', 'getName', '', array('include_blank' => true)));
?>
</li>
		<?php 
/*<li><?php echo label_for('project_status', 'Status'), select_tag('project_status', options_for_select(array(
                  '' => '',
                  '0' => __('complete'),
                  '1' => __('cancelled'),
                  '2' => __('pending approval'),
                  '3' => __('in progress'),
                  '4' => __('unknown'),
                  )) )
  ?></li> */
?>
		<li><?php 
echo label_for('project_department', 'Department'), select_tag('project_department', objects_for_select($departments, 'getId', 'getName', '', array('include_blank' => true)), array('class' => 'xxx'));
?>
</li>
		<li><br /><?php 
echo submit_tag(__('Update Projects'));
?>
</li>
	</ul>
	</form>

	<div style="height:20px;display:inline;">
      <p id="form-search-indicator" style="display:none">
      	<?php 
echo image_tag('indicator.gif');
?>
 Searching projects...
示例#16
0
<?php

use_helper("Object");
?>
<div id="item_provincia">
<?php 
echo select_tag('alumno[fk_provincia_id]', objects_for_select($provincias, 'getId', 'getNombreLargo', $provincia_id), array('control_name' => 'alumno[fk_provincia_id]'));
?>
</div>
示例#17
0
<?php

use_helper('Object');
?>
<div id="sf_admin_container">
<?php 
if (count($cicloslectivos) != 0) {
    ?>
    <?php 
    echo form_tag('ciclolectivo/actual');
    ?>

        <div align="center">Seleccione el Ciclo Lectivo para administrar
        <br><br>
        <?php 
    echo select_tag('ciclolectivo', objects_for_select($cicloslectivos, 'getId', 'getDescripcion', $sf_user->getAttribute('fk_ciclolectivo_id')));
    ?>
        <?php 
    echo input_hidden_tag('referer', $referer);
    ?>
        <br><br>
        <?php 
    echo submit_tag('Seleccionar');
    ?>
        </div>
        
    </form>
<?php 
}
?>
</div>
示例#18
0
                </td>
                <td>
                    <div class="form-row">
                        <label for="title">To Date:</label>
                        <?php 
echo input_date_tag('to_date', 'now', 'rich=true');
?>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <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 
示例#19
0
            <label class="raw" for="available_last_minute">Last Minute</label><br clear="all"/>
            <input type="checkbox" value="1" name="weekend" id="available_weekend" onchange="countFiltered('filter_email_form');"/>
            <label class="raw" for="available_weekend">Weekends</label><br clear="all"/>
            <input type="checkbox" value="1" name="assistant" id="available_assistant" onchange="countFiltered('filter_email_form');"/>
            <label class="raw" for="available_assistant">As Mission Assistant</label>
          </div>
        </div>
        <div class="wrap">
          <label for="transplant">Transplant</label>
          <input type="checkbox" class="" id="transplant" name="transplant" onchange="countFiltered('filter_email_form');"/>
          <label for="transplant" class="raw">Yes</label>
        </div>
        <div class="wrap">
          <label for="email_list_id">Mailing List</label>
          <?php 
echo select_tag('email_list_id', objects_for_select($email_lists, 'getId', 'getDescription', '', array('include_custom' => 'All')), array('onchange' => "countFiltered('filter_email_form');"));
?>
        </div>
        <div class="wrap">
          <label for="efficiency">Use Efficiency or more</label>
          <input type="text" class="text narrowest" id="efficiency" name="efficiency" onchange="countFiltered('filter_email_form')"/>
          % (enter a value from 0 to 100)
        </div>
       

        <div class="wrap">
          <label>Wing</label>
          <div class="wrap">
            Select:
            <?php 
echo jq_link_to_function('All', "\$('.wing').attr('checked', 'checked');");
示例#20
0
				<div class="roleform" id="roleform<?php 
    echo $key;
    ?>
" style="display:none;">					
					<form method="post" name="" onsubmit="return saverole('<?php 
    echo $key;
    ?>
','<?php 
    echo $value['id'];
    ?>
',this);" />
					<table>
						<tr>
						<td width="200">
						<?php 
    echo select_tag('role', objects_for_select($role_list, 'getId', 'getTitle'));
    ?>
						</td>
						<td>
							<?php 
    echo checkbox_tag('isEmail', 1) . " Email";
    echo checkbox_tag('isInstrumental', 1) . " Instrument Panel";
    ?>
						</td>
						</tr>
						<br />
					</table>	
						<input value="Save Role" type="submit" />					
						<span style="cursor:pointer;" onclick="document.getElementById('roleform<?php 
    echo $key;
    ?>
示例#21
0
                </div>
                <div class="wrap">
                  <label for="airline_id">Airline*:</label>
                  <?php 
    echo select_tag('airline_id', objects_for_select($airlines, 'getId', 'getName', $sf_params->get('airline_id'), array('include_custom' => 'Please Select')) . '<option value="other">Other</option>');
    ?>
                  <label>&nbsp;</label>
                  <input id="airline_custom" class="text" type="text" name="airline_custom" value="<?php 
    echo $sf_params->get('airline_custom');
    ?>
"/>
                </div>
                <div class="wrap">
                  <label for="fund_id">Commercial Fund:</label>
                  <?php 
    echo select_tag('fund_id', objects_for_select($funds, 'getId', 'getFundDesc', $sf_params->get('fund_id'), array('include_custom' => 'None')), array('class' => 'select'));
    ?>
                </div>
                <div class="wrap">
                  <label>Confirmation Code:</label>
                  <input class="text" type="text" name="confirm_code" value="<?php 
    echo $sf_params->get('confirm_code');
    ?>
"/>
                </div>
                <div class="wrap">
                  <label>Flight Cost:</label>
                  <input class="text" type="text" name="flight_cost" value="<?php 
    echo $sf_params->get('flight_cost');
    ?>
"/>
示例#22
0
<?php

use_helper('Javascript');
$c = new Criteria();
$paises = PaisPeer::doSelect($c);
if ($organizacion->getFkProvinciaId()) {
    $pais_selected = $organizacion->getProvincia()->getPais()->getId();
    $provincia_id = $organizacion->getFkProvinciaId();
} else {
    $pais_selected = $paises[0]->getId();
    $provincia_id = 0;
}
echo select_tag('pais_id', objects_for_select(PaisPeer::getEnOrden(), 'getId', 'getNombreLargo', $pais_selected));
echo observe_field('pais_id', array('update' => 'item_provincia', 'url' => 'organizacion/cambiarPais', 'with' => "'pais_id=' + value"));
echo javascript_tag(remote_function(array('update' => 'item_provincia', 'url' => 'organizacion/cambiarPais?pais_id=' . $pais_selected . '&provincia_id=' . $provincia_id)));
示例#23
0
<div class="project-titlebar">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Personal Info</div>
<?php 
echo form_tag('user/updateProfile', 'multipart=true', array('name' => 'profile'));
echo input_hidden_tag('tab', $tab, array());
?>
<label for="department">department: <?php 
echo select_tag('department', objects_for_select($departments, 'getUuid', 'getName', $profile->getDepartment()->getUuid(), array()), array('class' => 'xxx'));
if ($sf_request->hasError('department')) {
    echo $sf_request->getError('department');
}
?>
</label><br />
<label for="subdepartment">subdepartment: <?php 
echo select_tag('subdepartment', objects_for_select($subdepartments, 'getUuid', 'getName', $profile->getSubdepartment()->getUuid(), array()), array('class' => 'xxx'));
if ($sf_request->hasError('subdepartment')) {
    echo $sf_request->getError('subdepartment');
}
?>
</label><br />

<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));
示例#24
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('tarea{id_estado_tarea}')) {
    ?>
    <?php 
    echo form_error('tarea{id_estado_tarea}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>
  <?php 
$opciones = TareaPeer::getAllEstadosTareas();
$value = select_tag('tarea[id_estado_tarea]', objects_for_select($opciones, 'getPrimaryKey', '__toString', $tarea->getIdEstadoTarea(), array('include_blank' => false, 'control_name' => 'tarea[id_estado_tarea]')));
echo $value ? $value : "&nbsp";
?>
  </div>
</div>

<div class="form-row">
  <?php 
echo label_for('tarea[fecha_inicio]', __($labels['tarea{fecha_inicio}']) . ":", '');
?>
  <div class="content<?php 
if ($sf_request->hasError('tarea{fecha_inicio}')) {
    ?>
 form-error<?php 
}
?>
示例#25
0
?>
            <?php 
if ($sf_request->hasError('department')) {
    echo '<span class="form-error">' . $sf_request->getError('department') . '</span>';
}
?>
            <?php 
echo label_for('department_id', 'Department'), object_select_tag($project, 'getDepartmentId', array('related_class' => 'Department', 'peer_method' => 'retrieveAlphabetical'));
?>
            <?php 
if ($sf_request->hasError('campus')) {
    echo '<span class="form-error">' . $sf_request->getError('campus') . '</span>';
}
?>
            <?php 
echo label_for('campus', 'Campus'), select_tag('campus', objects_for_select($campuses, 'getId', 'getName', '', array()), array('class' => 'xxx'));
?>
<br />
            <?php 
if ($sf_request->hasError('title')) {
    echo '<span class="form-error">' . $sf_request->getError('title') . '</span>';
}
?>
            <?php 
echo label_for('title', 'Project Title'), object_input_tag($project, 'getTitle', array('style' => 'width:95%;'));
?>
            <?php 
if ($sf_request->hasError('description')) {
    echo '<span class="form-error">' . $sf_request->getError('description') . '</span>';
}
?>
示例#26
0
  <fieldset>
    <h2><?php 
echo __('filters');
?>
</h2>
     <div class="form-row">
    <?php 
echo label_for('filters[id_empresa]', __('empresa'), '');
?>
    <div class="content">
    <?php 
$id_empresa = isset($filters['id_empresa']) ? $filters['id_empresa'] : null;
$c = EmpresaPeer::getCriterioAlcance();
$empresas = EmpresaPeer::doSelect($c);
$value = select_empresas('filters[id_empresa]', objects_for_select($empresas, 'getIdEmpresa', '__toString', $id_empresa, array('include_blank' => true)), array('control_name' => 'filters[id_empresa]', 'include_blank' => true));
echo $value ? $value : "&nbsp;";
?>
    </div>
    </div>
   
    
    
  </fieldset>

  <ul class="sf_admin_actions">
    <li><?php 
echo button_to(__('reset'), 'tablas/list?filter=filter', 'class=sf_admin_action_reset_filter');
?>
</li>
    <li><?php 
示例#27
0
          <li><?php 
        echo $e;
        ?>
</li>
          <?php 
    }
    ?>
        </ul>
        <?php 
}
?>
      </div>
      <div class="wrap">
        <label for="template_id">Load from template</label>
        <?php 
echo select_tag('template_id', objects_for_select($email_templates, 'getId', 'getName', null, array('include_custom' => 'No Template')), array('class' => 'text', 'onchange' => 'loadTemplate(this);'));
?>
        <img src="/images/loading.gif" id="template_loading" style="display:none;"/>
      </div>
      <div class="wrap">
        <label for="subject">Subject</label>
        <?php 
echo input_tag('subject', $subject, array('class' => 'text'));
?>
        <?php 
if (isset($errors['subject'])) {
    ?>
        <ul class="error_list">
          <li><?php 
    echo $errors['subject'];
    ?>
示例#28
0
        <label for="form-item-2">Mission Date Range</label>
        <?php 
echo $date_widget->render('mission_date1', $mission_date1);
?>
        <strong class="to">to</strong>
        <?php 
echo $date_widget->render('mission_date2', $mission_date2);
?>
      </div>
      <div class="holder1">
        <label>Wing</label>
                    <?php 
if (!isset($wing)) {
    $wing = null;
}
echo select_tag('wing', objects_for_select($wings, 'getId', 'getName', $wing, array('include_custom' => 'All')), array('id' => 'wing_list', 'class' => 'text'));
?>
      </div>
        <div class="holder2">
        <label>Passenger</label>
        <input name="pass_name" type="text" class="text1" value="<?php 
echo isset($pass_name) ? $pass_name : '';
?>
"/>
      </div>
        <div class="holder2">
        <label>Pilot</label>
        <input name="pilot_name" type="text" class="text1" value="<?php 
echo isset($pilot_name) ? $pilot_name : '';
?>
"/>
示例#29
0
}
?>


<?php 
if ($DefParametro->getCampoOtroObjeto() != "") {
    $valoresObjeto = explode('#', $DefParametro->getCampoOtroObjeto());
    eval(trim($valoresObjeto[1]));
    ?>
<div class="form-row">
	<?php 
    echo label_for('otroObjeto', __(trim($valoresObjeto[0])));
    ?>
	<div class="row-data">
	<?php 
    $objects_for_select = objects_for_select($valorObjeto, trim($valoresObjeto[2]), trim($valoresObjeto[3]), $parametro->getOtroobjeto());
    echo select_tag('otroObjeto', $objects_for_select, array('style' => 'auto'));
    ?>
  </div>
</div>
<?php 
}
?>


<?php 
if ($DefParametro->getCamposino() != "") {
    ?>
<div class="form-row">
	<?php 
    echo label_for('sino', __($DefParametro->getCamposino()));
示例#30
-1
?>
">
  <?php 
if ($sf_request->hasError('tabla{id_usuario}')) {
    ?>
    <?php 
    echo form_error('tabla{id_usuario}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$usuario_actual = Usuario::getUsuarioActual();
$usuarios = $usuario_actual->getUsuariosAccesibles();
$opciones = objects_for_select($usuarios, 'getPrimaryKey', 'getNombreCompleto', $tabla->getIdUsuario());
$value = select_tag('tabla[id_usuario]', $opciones, array('control_name' => 'tabla[id_usuario]'));
echo $value ? $value : '&nbsp;';
?>
  </div>
</div>

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