This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
public class DataSource { | |
private ArrayList<Integer> mPhotoPool; | |
private ArrayList<Integer> mQuotePool; | |
private ArrayList<Integer> mPhotoHdPool; | |
public ArrayList<Integer> getmPhotoHdPool() { | |
return mPhotoHdPool; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Showcasing a custom FieldGroupGieldFactory that generates an UploadField(from https://vaadin.com/directory#addon/easyuploads) | |
* if the FieldGroup is trying to bind to a byte[] object property. | |
* The image instance is updated each time a new image is uploaded | |
* | |
* Ruiu Gabriel Mihai (gabriel.ruiu@mail.com) | |
*/ | |
public class ImageReplacerFieldGroup extends FormLayout { | |
public ImageReplacerFieldGroup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.vaadin.mockapp.samples.crud; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Map; | |
import java.util.Set; | |
import org.vaadin.mockapp.samples.backend.data.Category; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<?php echo $form->labelEx($model,'End_date'); ?> | |
<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array( | |
'model'=>$model, 'attribute'=>'End_date', | |
'options'=>array( | |
'dateFormat'=>'yy-mm-dd', | |
'yearRange'=>'-70:+0', | |
'changeYear'=>'true', | |
'changeMonth'=>'true', | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: ubeergeek | |
* Date: 9/12/12 | |
* Time: 12:34 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
class WebUser extends CWebUser{ | |
private $_user; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<?php echo $form->labelEx($model,'CountryID'); ?> | |
<?php | |
echo $form->dropDownList($model,'CountryID', | |
CHtml::listData(Country::model()->findAll(), 'ID', 'Name')); | |
?> | |
<?php echo $form->error($model,'CountryID'); ?> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<?php echo $form->labelEx($model,'Send_Time'); ?> | |
<?php $form->widget( 'ext.EJuiTimePicker.EJuiTimePicker', array( | |
'model' => $model, | |
'attribute' => 'Send_Time', | |
)); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$criteria = new CDbCriteria; | |
//Select tip filterin by ID and TipcategoryID | |
$criteria->condition='ID=:ID AND TipcategoryID=:TipcategoryID'; | |
$criteria->params=array('ID'=>$NextTip,':TipcategoryID'=>$Tip_Alert->TipcategoryID); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array( // display 'status.Name' using an expression | |
'name'=>'accessLevelID', | |
'value'=>'$data->level->Name', | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$invoice = R::dispense('invoice'); | |
$invoice->Customer = 'Greg'; | |
$lineItems = R::dispense('lineitem', 2); | |
$lineItems[0]->LineNumber = 1; | |
$lineItems[0]->Amount = 2.50; | |
$lineItems[1]->LineNumber = 2; | |
$lineItems[1]->Amount = 10.00; | |
$invoice->ownLineItem = $lineItems; |
OlderNewer