jalalidatepicker jquery date picker for persian calendar

  1. Requirements
  2. Usage
  3. Resources

Requirements

Yii 1.1 or above

Usage

download and extract in Yii_root/protected/widgets

put this code in your view

<?php  
  echo CHtml::textField('datepicker');
  $this->widget('application.widgets.JalaliDatePicker.JalaliDatePicker',array('textField'=>'datepicker',	
 	'options'=>array(
 		'changeMonth'=>'true',
 		'changeYear'=>'true',
 		'showButtonPanel'=>'true',
 	)
 ));?>

examle with model

<?php  
  echo CHtml::activeTextField($model,'datepicker');
  $this->widget('application.widgets.JalaliDatePicker.JalaliDatePicker',array(
    'model'=>$model,
    'textField'=>'datepicker',        	
 	'options'=>array(
 		'changeMonth'=>'true',
 		'changeYear'=>'true',
 		'showButtonPanel'=>'true',
 	)
 ));?>

Resources

9 0
11 followers
3 031 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Date and Time
Developed by: naser
Created on: Jul 25, 2011
Last updated: 7 years ago

Downloads

show all

Related Extensions