Yii 1.1: etimepicker

a simple time picker widget, 24hours format output readed from controls.
5 followers

This is a simple widget for your form, whenever you need to get a time from your user, you can insert multiple ETimePicker widgets on the same form. It uses jQuery.

Author: Christian Salazar (bluyell), christiansalazarh@gmail.com

http://www.yiiframeworkenespanol.org/wiki

Bitbucket Repository

Screenshot

Screenshot for ETimePicker

Requirements

Yii 1.1.12 jQuery.

Usage

In your view:

echo $form->hiddenField($model,'yourtimefield');
    $this->widget('ext.etimepicker.ETimePicker',
        array('altField'=>'YourModel_yourtimefield'));  // the input ID !
    echo $form->error($model,'yourtimefield');

Your sample model:

class YourModel extends CFormModel /*or CActiveRecord !*/ {
  public $yourtimefield;  // a time field: "hh:mm" formatted (24 hours)
  ...
}

Be the first person to leave a comment

Please to leave your comment.

Create extension