This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; |
This file contains hidden or 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
<ifModule mod_rewrite.c> | |
Options +FollowSymLinks | |
IndexIgnore */* | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule (.*) index.html | |
</ifModule> |
This file contains hidden or 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 | |
namespace Baofeng\Ucenter; | |
class OAuth | |
{ | |
const REQUEST_TOKEN_TTL = 1800; | |
const TOKEN_TTL = -1; // unlimited |
This file contains hidden or 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
/* | |
Original code by Nick Brenn | |
Modified by Marc de Vinck | |
Make Projects Arduino-based 4WD robot | |
http://makeprojects.com/Project/Build-your-own-Arduino-Controlled-Robot-/577/1 | |
*/ | |
#include <AFMotor.h> | |
AF_DCMotor motor1(1, MOTOR12_8KHZ); | |
AF_DCMotor motor2(2, MOTOR12_8KHZ); | |
AF_DCMotor motor3(3, MOTOR12_1KHZ); |
OlderNewer