Инструменты пользователя

Инструменты сайта


limb2:en:template_system:tags:form_tags:date_tag

Date Picker Tag

Tag date_tag

<date id='id' name='name' [some other params]>

Purpose

Inserts a DHTML date picker element and a text input into the page (see LIMB_DIR/shared/calendar.js for the js-code).

Scope

Immediate child of <form> tag.

Attributes

See <control tag> for more info.

Contents

Decorating html or text.

Example

<tr>

  <td><date name="start_date" type="text" id="start_date" class='input' onfocus="this.blur()" function='fStartPop(document["announce_form"]["start_date"],document["announce_form"]["finish_date"])'>
  </td>
</tr>
<tr>
  <td><date name="finish_date" type="text" id="finish_date" class='input' onfocus="this.blur()" function='fEndPop(document["announce_form"]["start_date"],document["announce_form"]["finish_date"])'>
  </td>
</tr> 

Component date_component

A runtime component for the <date> tag.

Methods

  • init_date() – outputs js-script loading code
  • _get_frame_id() – internal method used at runtime that returns a string which determined DHML date picker component parameters.
  • render_date() – outputs the DHML date picker control code
  • get_value() – returns the value for the text input component.

Обсуждение

Ваш комментарий. Вики-синтаксис разрешён:
     __  _   __   __    __   ____ 
 __ / / | | / /  / /   / /  / __ \
/ // /  | |/ /  / /__ / /__/ /_/ /
\___/   |___/  /____//____/\___\_\
 
limb2/en/template_system/tags/form_tags/date_tag.txt · Последнее изменение: 2010/11/10 10:02 — 127.0.0.1