本文整理汇总了PHP中input_date_range_tag函数的典型用法代码示例。如果您正苦于以下问题:PHP input_date_range_tag函数的具体用法?PHP input_date_range_tag怎么用?PHP input_date_range_tag使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了input_date_range_tag函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: label_for
echo label_for("filters[fecha_inicio]", __('inicio') . ":");
?>
<div class="content">
<?php
echo input_date_range_tag('filters[fecha_inicio]', isset($filters['fecha_inicio']) ? $filters['fecha_inicio'] : null, array('rich' => true, 'withtime' => false, 'calendar_button_img' => '/images/icons/date.png'));
?>
</div>
</div>
<div class="form-row">
<?php
echo label_for("filters[fecha_vencimiento]", __('vencimiento') . ":");
?>
<div class="content">
<?php
echo input_date_range_tag('filters[fecha_vencimiento]', isset($filters['fecha_vencimiento']) ? $filters['fecha_vencimiento'] : null, array('rich' => true, 'withtime' => false, 'calendar_button_img' => '/images/icons/date.png'));
?>
</div>
</div>
</fieldset>
<!--Ana: Para el filtro por calendario -->
<input type="hidden" name="filtro_calendario" id="filtro_calendario" value="0">
<input type="hidden" name="mes" id="mes" value="<?php
echo date('m');
?>
">
<input type="hidden" name="year" id="year" value="<?php
echo date('Y');
?>
">
示例2: input_date_range_tag
<td class='filter'>
<?php
echo input_date_range_tag('filters[ORDER_DATE]', isset($filters['ORDER_DATE']) ? $filters['ORDER_DATE'] : null, array('rich' => true, 'withtime' => false, 'calendar_button_img' => '/images/calendar.gif', 'middle' => '<br/>'));
?>
</td>
<td class='filter'>
<?php
echo input_date_range_tag('filters[DUE_DATE]', isset($filters['DUE_DATE']) ? $filters['DUE_DATE'] : null, array('rich' => true, 'withtime' => false, 'calendar_button_img' => '/images/calendar.gif', 'middle' => '<br/>'));
?>
</td>
<td class='filter'>
<?php
echo input_date_range_tag('filters[RETURN_DATE]', isset($filters['RETURN_DATE']) ? $filters['RETURN_DATE'] : null, array('rich' => true, 'withtime' => false, 'calendar_button_img' => '/images/calendar.gif', 'middle' => '<br/>'));
?>
</td>
</tr>
</thead>
<tbody>
<?php
if ($pager->getNbResults() < 1) {
?>
<tr class="list"><td colspan="100"><div class="no_record"><?php
echo __('No record found');
?>
</div></td></tr>
<?php
} else {
?>
示例3: object_select_tag
<?php
echo object_select_tag(isset($filters['ACADEMIC_CALENDAR_ID']) ? $filters['ACADEMIC_CALENDAR_ID'] : null, null, array('include_blank' => true, 'related_class' => 'AcademicCalendar', 'peer_method' => 'doSelectFiltered', 'text_method' => '__toString', 'control_name' => 'filters[ACADEMIC_CALENDAR_ID]'));
?>
</td>
<td class='filter'><?php
echo select_tag('filters[STATUS]', options_for_select(array(StudentAbsence::STATUS_SICK => __('_STUDENT_STATUS_SICK_'), StudentAbsence::STATUS_ADMITION => __('_STUDENT_STATUS_ADMITION_'), StudentAbsence::STATUS_ABSENT => __('_STUDENT_STATUS_ABSENT_')), isset($filters['STATUS']) ? $filters['STATUS'] : null, array('include_blank' => true)));
?>
</td>
<td class='filter'>
<?php
echo input_date_range_tag('filters[START]', isset($filters['START']) ? $filters['START'] : null, array('middle' => '<br>', 'rich' => true, 'calendar_button_img' => '/images/calendar.gif'));
?>
</td>
<td class='filter'>
<?php
echo input_date_range_tag('filters[END]', isset($filters['END']) ? $filters['END'] : null, array('middle' => '<br>', 'rich' => true, 'calendar_button_img' => '/images/calendar.gif'));
?>
</td>
<td class='filter'>
<?php
echo input_tag('filters[TOTAL_DAYS]', isset($filters['TOTAL_DAYS']) ? $filters['TOTAL_DAYS'] : null, array('size' => 2, 'maxlength' => 3));
?>
</td>
</tr>
</thead>
<tbody>
<?php
if ($pager->getNbResults() < 1) {
?>
<tr class="list"><td colspan="100"><div class="no_record"><?php
echo __('No record found');
示例4: input_tag
?>
</td>
<td class='filter'><?php
echo input_tag('filters[YEAR]', isset($filters['YEAR']) ? $filters['YEAR'] : null, array('size' => 2));
?>
</td>
<td class='filter'><?php
echo input_tag('filters[AMOUNT]', isset($filters['AMOUNT']) ? $filters['AMOUNT'] : null, array('size' => 7));
?>
</td>
<td class='filter'>
<?php
echo input_date_range_tag('filters[PAID_AT]', isset($filters['PAID_AT']) ? $filters['PAID_AT'] : null, array('middle' => '<br>', 'rich' => true, 'withtime' => false, 'calendar_button_img' => '/images/calendar.gif'));
?>
</td>
</tr>
</thead>
<tbody>
<?php
if ($pager->getNbResults() < 1) {
?>
<tr class="list"><td colspan="100"><div class="no_record"><?php
echo __('No record found');
?>
</div></td></tr>
<?php
} else {
示例5: array
$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()');
$t->is(reset_tag(), '<input type="reset" name="reset" value="Reset" />', 'reset_tag() default value is "Reset"');
$t->is(reset_tag("save"), '<input type="reset" name="reset" value="save" />', 'reset_tag() takes a value as its first argument');
// options
示例6: __
<div class="form-row">
<label><?php
echo __('Period:', null, 'sfStatistics');
?>
</label>
<div class="content">
<?php
if (isset($filters['period']['from']) && !is_int($filters['period']['from'])) {
$filters['period']['from'] = strtotime($filters['period']['from']);
}
if (isset($filters['period']['to']) && !is_int($filters['period']['to'])) {
$filters['period']['to'] = strtotime($filters['period']['to']);
}
?>
<?php
echo input_date_range_tag('filters[period]', isset($filters['period']) ? $filters['period'] : null, array('rich' => true, 'withtime' => false, 'calendar_button_img' => '/sf/sf_admin/images/date.png'));
?>
</div>
</div>
</fieldset>
<ul class="sf_admin_actions">
<li><?php
echo button_to(__('reset'), 'sfStatistics/index?filter=filter', 'class=sf_admin_action_reset_filter');
?>
</li>
<li><?php
echo submit_tag(__('filter'), 'name=filter class=sf_admin_action_filter');
?>
</li>
</ul>
示例7: input_tag
</label>
<div class="content">
<?php
echo input_tag('search_params[copyright]', isset($search_params['copyright']) ? $search_params['copyright'] : null, 'size=20');
?>
</div>
</div>
<div class="form-row">
<label for="search_params_created_at"><?php
echo __('Created on:', null, 'sfAsset');
?>
</label>
<div class="content">
<?php
echo input_date_range_tag('search_params[created_at]', isset($search_params['created_at']) ? $search_params['created_at'] : null, array('rich' => true, 'withtime' => true, 'calendar_button_img' => '/sf/sf_admin/images/date.png'));
?>
</div>
</div>
<div class="form-row">
<label for="search_params_description"><?php
echo __('Description:', null, 'sfAsset');
?>
</label>
<div class="content">
<?php
echo input_tag('search_params[description]', isset($search_params['description']) ? $search_params['description'] : null, 'size=20');
?>
</div>
</div>
示例8: submit_image_tag
<tr class="list" id='filter' <?php
if (!isset($filters)) {
echo 'style=""';
}
?>
>
<td class='filter'><?php
echo submit_image_tag('/images/magnifier.png', array('class' => 'sort', 'onclick' => "blur();"));
?>
</td>
<td class='filter_first'><?php
echo object_select_tag(isset($filters['DEPARTMENT_ID']) ? $filters['DEPARTMENT_ID'] : null, null, array('include_blank' => true, 'related_class' => 'VDepartment', 'peer_method' => 'doSelectOrdered', 'control_name' => 'filters[DEPARTMENT_ID]'));
?>
</td>
<td class='filter'><?php
echo input_date_range_tag('filters[TIME_IN]', isset($filters['TIME_IN']) ? $filters['TIME_IN'] : null, array('rich' => true, 'withtime' => false, 'calendar_button_img' => '/images/calendar.gif', 'middle' => ' s/d '));
?>
</td>
<td class='filter'><?php
echo input_tag('filters[TOTAL]', isset($filters['TOTAL']) ? $filters['TOTAL'] : null, array('size' => 15));
?>
</td>
<td class='filter'> </td>
</tr>
</thead>
<tbody>
<?php
if ($pager->getNbResults() < 1) {
?>
<tr class="list"><td colspan="100"><div class="no_record"><?php
echo __('No record found');
示例9: object_select_tag
</td>
<!--
<td class='filter'>
<?php
#echo object_select_tag(isset($filters['col_status_id']) ? $filters['col_status_id'] : null, null, array ( 'include_blank' => true, 'related_class' => 'ColStatus', 'text_method' => '__toString', 'control_name' => 'filters[col_status_id]', ))
?>
</td>
-->
<td class='filter'>
<?php
echo input_date_range_tag('filters[order_date]', isset($filters['order_date']) ? $filters['order_date'] : null, array('rich' => true, 'withtime' => true, 'calendar_button_img' => '/images/calendar.gif', 'middle' => '<br/>'));
?>
</td>
<td class='filter'>
<?php
echo input_date_range_tag('filters[return_date]', isset($filters['return_date']) ? $filters['return_date'] : null, array('rich' => true, 'withtime' => true, 'calendar_button_img' => '/images/calendar.gif', 'middle' => '<br/>'));
?>
</td>
<td class='filter'> </td>
</tr>
</thead>
<tbody>
<?php
if ($pager->getNbResults() < 1) {
?>
<tr class="list"><td colspan="100"><div class="no_record"><?php
echo __('No record found');
?>
</div></td></tr>
<?php
} else {
示例10: submit_image_tag
echo 'style="display:none;"';
}
?>
>
<td class='filter'><?php
echo submit_image_tag('/images/magnifier.png', array('class' => 'sort', 'onclick' => "blur();"));
?>
</td>
<td class='filter_first'>
<?php
echo input_tag('filters[TRX_ID]', isset($filters['TRX_ID']) ? $filters['TRX_ID'] : null, array('size' => 15));
?>
</td>
<td class='filter'>
<?php
echo input_date_range_tag('filters[INCOMING_DATE]', isset($filters['INCOMING_DATE']) ? $filters['INCOMING_DATE'] : null, array('middle' => '<br>', 'rich' => true, 'withtime' => true, 'calendar_button_img' => '/images/calendar.gif'));
?>
</td>
<td class='filter'><?php
echo input_tag('filters[TRX_DATE]', isset($filters['TRX_DATE']) ? $filters['TRX_DATE'] : null, array('size' => 14));
?>
</td>
<td class='filter'><?php
echo input_tag('filters[MSISDN]', isset($filters['MSISDN']) ? $filters['MSISDN'] : null, array('size' => 15));
?>
</td>
<td class='filter'><?php
echo input_tag('filters[SMS]', isset($filters['SMS']) ? $filters['SMS'] : null, array('size' => 15));
?>
</td>
<td class='filter'><?php
示例11: __
?>
</select>
</div>
</div>
<div class="form-row">
<label for="fecha"><?php
echo __($labels['sesion{fecha}']);
?>
</label>
<div class="content">
<?php
echo input_date_range_tag('filters[fecha]', isset($filters['fecha']) ? $filters['fecha'] : null, array('rich' => true, 'withtime' => true, 'calendar_button_img' => '/sf/sf_admin/images/date.png', 'date_format' => 'dd/MM/yyyy HH:mm', 'size' => '9'));
?>
</div>
</div>
</fieldset>
<ul class="sf_admin_actions">
<li><?php
echo button_to(__('reset'), 'sesiones/list?filter=filter', 'class=sf_admin_action_reset_filter');
?>
</li>
<li><?php
echo submit_tag(__('filter'), 'name=filter class=sf_admin_action_filter');
示例12: select_tag
$lista_documentos = DocumentoPeer::getAllDocumentosByTrabajadorActual();
$value = select_tag('filters[id_documento]', objects_for_select($lista_documentos, 'getPrimaryKey', '__toString', isset($filters['id_documento']) ? $filters['id_documento'] : null, array('include_blank' => true)));
echo $value ? $value : ' ';
?>
</div>
</div>
<div class="form-row">
<label for="fecha"><?php
echo __('Fecha Subida:');
?>
</label>
<div class="content">
<?php
echo input_date_range_tag('filters[fecha]', isset($filters['fecha']) ? $filters['fecha'] : null, array('rich' => true, 'calendar_button_img' => '/sf/sf_admin/images/date.png'));
?>
</div>
</div>
</fieldset>
<ul class="sf_admin_actions">
<li><?php
echo button_to(__('Reiniciar'), 'historico_documentos/list?filter=filter', 'class=sf_admin_action_reset_filter');
?>
</li>
<li><?php
echo submit_tag(__('Filtrar'), 'name=filter class=sf_admin_action_filter');
?>
</li>
示例13: label_for
<input type="hidden" name="filters[id_empresa]" id="filters_id_empresa" control_name="filters[id_empresa]" value="<?php
echo $id_empresa;
?>
">
<input type="hidden" name="filters[id_tabla]" id="filters_id_tabla" control_name="filters[id_tabla]" value="<?php
echo $id_tabla;
?>
">
<div class="form-row">
<?php
echo label_for("filters[ultimo_contacto][from]", __('última actualización') . ":");
?>
<div class="content">
<?php
echo input_date_range_tag('filters[ultimo_contacto]', isset($filters['ultimo_contacto']) ? $filters['ultimo_contacto'] : null, array('rich' => true, 'calendar_button_img' => '/images/icons/date.png'));
?>
</div>
</div>
</fieldset>
<ul class="sf_admin_actions">
<?php
/*$ruta=sfContext::getInstance()->getUser()->getAttribute('ruta_legedia',null);*/
$ruta = UsuarioPeer::getRuta();
if (isset($_GET['i'])) {
echo input_hidden_tag('i', $_GET['i']);
}
?>
<li><input class="sf_admin_action_reset_filter" value="<?php
示例14: campo_lista_checkboxes
$value = campo_lista_checkboxes($etiqueta_campo, $seleccionados, $opciones);
}
} else {
$id_label_campo = $etiqueta_campo . "[item_base]";
if ($campo->esTipoTextoCorto()) {
$value = input_tag($id_label_campo, isset($filtros['item_base']) ? $filtros['item_base'] : null, array("size" => 10));
}
if ($campo->esTipoTextoLargo()) {
$value = input_tag($id_label_campo, isset($filtros['item_base']) ? $filtros['item_base'] : null, array("size" => 10));
}
if ($campo->esTipoNumero()) {
$value = "Mayor que " . input_tag($id_label_campo . "[great]", isset($filtros['item_base']['great']) ? $filtros['item_base']['great'] : null, array("size" => 5));
$value .= "y menor que " . input_tag($id_label_campo . "[less]", isset($filtros['item_base']['less']) ? $filtros['item_base']['less'] : null, array("size" => 5));
}
if ($campo->esTipoFecha()) {
$value = input_date_range_tag($id_label_campo, isset($filtros['item_base']) ? $filtros['item_base'] : null, array('rich' => true, 'calendar_button_img' => '/images/icons/date.png'));
}
if ($campo->esTipoBooleano()) {
$value = campo_booleano($id_label_campo, isset($filtros['item_base']) ? $filtros['item_base'] : null);
}
if ($campo->esTipoSelectPeriodo()) {
//SOBREECRIBIMOS EL LABEL CAMPO
$id_label_campo = $etiqueta_campo;
$periodo_desde = isset($filtros['from']['periodo']) ? $filtros['from']['periodo'] : '';
$year_desde = isset($filtros['from']['year']) ? $filtros['from']['year'] : '';
$periodo_hasta = isset($filtros['to']['periodo']) ? $filtros['to']['periodo'] : '';
$year_hasta = isset($filtros['to']['year']) ? $filtros['to']['year'] : '';
$value = campo_periodos($id_label_campo, $campo->getTipoPeriodo(), $periodo_desde, $year_desde, $periodo_hasta, $year_hasta);
}
if ($campo->esTipoTabla()) {
if (isset($filtros['item_base'])) {
示例15: label_for
echo label_for("filters[salida_asunto]", __('asunto') . ":");
?>
<div class="content">
<?php
echo input_tag('filters[salida_asunto]', isset($filters['salida_asunto']) ? $filters['salida_asunto'] : null, array('control_name' => 'filters[salida_asunto]'));
?>
</div>
</div>
<div class="form-row">
<?php
echo label_for("filters[salida_fecha]", __('fecha') . ":");
?>
<div class="content">
<?php
echo input_date_range_tag('filters[salida_fecha]', isset($filters['salida_fecha']) ? $filters['salida_fecha'] : null, array('rich' => true, 'withtime' => false, 'calendar_button_img' => '/images/icons/date.png'));
?>
</div>
</div>
</fieldset>
<ul class="sf_admin_actions">
<li><?php
echo button_to(__('reiniciar'), 'mensajes/salida?filter=filter', 'class=sf_admin_action_reset_filter');
?>
</li>
<li><?php
echo submit_tag(__('filtrar'), 'name=filter class=sf_admin_action_filter');
?>
</li>