Wählen Sie Ihre Sprache:

<we:dateSelect>

Since version: 2.3.0.0 | Requires endtag: no

Description

The <we:dateSelect>-Tag displays a select field for dates, which can be used together with the <we:processDateSelect>-Tag to read the date value into a variable such as a UNIX timestamp.

Attributes

name

Default value: - | since version: 2.3.0.0 | required: yes

Set this attribute to a unique name.


class

Default value: - | since version: 2.3.0.0 | required: no

Name of a CSS class.


submitonchange

Default value: - | since version: 2.3.0.0 | required: no

If this attribute is set to true, the form which encloses the <we:dateSelect>-Tag will be submitted after changing the date.

Allowed values:

  • true
  • false

start

Default value: - | since version: 4.0 | required: no

Setting this attribute to the date, which could be minimally selected. (Format: YYYY-MM-DD HH:MM)


end

Default value: - | since version: 4.0 | required: no

Setting this attribute to the date, which could be maximally selected. (Format: YYYY-MM-DD HH:MM)


cachelifetime

Default value: 0 | since version: 4.2.0.0 | required: no

With this attribute you define the validity of the Cache in seconds for this we:Tag. This attribute is used only if cache type defined in the template is we:Tag Cache or Cache is disabled.


Syntax

<we:dateSelect name="attribute" [class="attribute"] [submitonchange="true|false"] [start="attribute"] [end="attribute"] [cachelifetime="attribute"] />

Examples

Example

<html>
<head></head>
<body>
  <we:form>
    <we:processDateSelect name="Datum"/>
    <we:ifNotVar name="Datum" match="-1" type="global">
      Das gewählte Datum ist
      <?php print date("d.m.Y",$date); ?>
    </we:ifNotVar>
    <we:dateSelect name="Datum" class="normal" submitonchange="true"/><br>
  </we:form>
</body>
</html>