Antonio Ramirez, on 06 October 2012 - 04:51 PM, said:
How about jquery easy ui
Posted 18 October 2012 - 08:37 AM
Antonio Ramirez, on 06 October 2012 - 04:51 PM, said:
Posted 18 October 2012 - 03:25 PM
54byte, on 16 October 2012 - 09:04 PM, said:
<div class="form-actions">
<?php $this->widget('bootstrap.widgets.TbButton', array(
'type'=>'primary',
'label'=>'Search',
)); ?>
</div>
<div class="form-actions">
<?php $this->widget('bootstrap.widgets.TbButton', array(
'buttonType'=>'submit',
'type'=>'primary',
'label'=>'Search',
)); ?>
</div>
Posted 18 October 2012 - 03:30 PM
xicond, on 18 October 2012 - 08:37 AM, said:
Posted 18 October 2012 - 11:41 PM
Antonio Ramirez, on 10 October 2012 - 10:16 AM, said:
Posted 20 October 2012 - 02:40 PM
54byte, on 16 October 2012 - 09:04 PM, said:
<div class="form-actions">
<?php $this->widget('bootstrap.widgets.TbButton', array(
'type'=>'primary',
'label'=>'Search',
)); ?>
</div>
<div class="form-actions">
<?php $this->widget('bootstrap.widgets.TbButton', array(
'buttonType'=>'submit',
'type'=>'primary',
'label'=>'Search',
)); ?>
</div>
Posted 20 October 2012 - 02:59 PM
NkM, on 18 October 2012 - 11:41 PM, said:
Posted 20 October 2012 - 03:04 PM
masterthink, on 14 October 2012 - 07:59 PM, said:
Posted 20 October 2012 - 03:14 PM
54byte, on 14 October 2012 - 08:37 PM, said:
$this->widget('bootstrap.widgets.TbExtendedGridView',array(
'id'=>'kbki-subklas-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'type'=>'striped bordered',
'columns'=>array(
'id',
array(
'name'=>'deskripsi',
'class'=>'bootstrap.widgets.TbJEditableColumn',
'saveURL'=>$this->createUrl('myUrl),
'jEditableOptions' => array(
'type' => 'text',
'submitdata' => array('attribute'=>'deskripsi'),
'cssclass' => 'form',
'width' => '200px',
),
),
array(
'class'=>'bootstrap.widgets.TbButtonColumn',
),
),
));
echo CHtml::openTag('span', array('class' => $this->cssClass, 'data-rowid' => $data->id));
echo CHtml::openTag('span', array('class' => $this->cssClass, 'data-rowid' => $data->primaryKey));
var id = jQuery(this).data('rowid');
[code]
var id = jQuery(this).attr('data-rowid');
Posted 20 October 2012 - 03:38 PM
54byte, on 11 October 2012 - 09:14 PM, said:
Posted 21 October 2012 - 11:36 AM
Antonio Ramirez, on 20 October 2012 - 03:14 PM, said:
echo CHtml::openTag('span', array('class' => $this->cssClass, 'data-rowid' => $data->id));
echo CHtml::openTag('span', array('class' => $this->cssClass, 'data-rowid' => $data->primaryKey));
var id = jQuery(this).data('rowid');
[code]
var id = jQuery(this).attr('data-rowid');
Antonio Ramirez, on 20 October 2012 - 03:38 PM, said:
Posted 21 October 2012 - 01:35 PM
54byte, on 21 October 2012 - 11:36 AM, said:
Posted 21 October 2012 - 08:05 PM
Antonio Ramirez, on 21 October 2012 - 01:35 PM, said:
public function actionAdmin()
{
$model=new KbkiSeksi('search');
$model->unsetAttributes(); // clear any default values
if(isset($_GET['KbkiSeksi']))
$model->attributes=$_GET['KbkiSeksi'];
$this->render('admin',array(
'model'=>$model,
));
}
public function actionEditable()
{
$r = Yii::app()->getRequest();
if($r->getParam('editable'))
{
$idnya=$r->getParam('id');
$model=KbkiSeksi::model()->findByPk($idnya);
if($model!==NULL)
{
$model->deskripsi=$r->getParam('value');
if($model->save())
{
echo "<script type='text/javascript'>alert('Some message');</script>";
echo $model->deskripsi;
}
else
{
echo "<script type='text/javascript'>javascript: alert('Some message');</script>";
}
}
else
{
echo "<script type='text/javascript'>javascript: alert('Some message');</script>";
}
Yii::app()->end();
}
}
Posted 22 October 2012 - 07:25 AM
<?php
$this->widget('ext.bootstrap.widgets.TbButton',array(
'label' => 'Primary',
'type' => 'primary',
'size' => 'large'
));
$this->widget('ext.bootstrap.widgets.TbButton',array(
'label' => 'Secondary',
'size' => 'large'
));
?>
// preloading 'log' component
'preload'=>array('log','bootstrap',),
'components'=>array(
'bootstrap'=>array(
'class'=>'ext.bootstrap.components.Bootstrap', // assuming you extracted bootstrap under extensions
'coreCss'=>true,
'responsiveCss'=>true,
'yiiCss'=>true,
'enableJS'=>true,
),
),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.extensions.*',
'application.extensions.core.*',
'application.extensions.utils.*',
'application.extensions.emessage-command.*',
'application.extensions.bootstrap.widgets.*',
),
'modules'=>array(
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'mdp',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
'generatorPaths'=>array( 'bootstrap.gii'),
),
),
Posted 22 October 2012 - 09:20 AM
54byte, on 16 October 2012 - 09:04 PM, said:
<div class="form-actions">
<?php $this->widget('bootstrap.widgets.TbButton', array(
'type'=>'primary',
'label'=>'Search',
)); ?>
</div>
<div class="form-actions">
<?php $this->widget('bootstrap.widgets.TbButton', array(
'buttonType'=>'submit',
'type'=>'primary',
'label'=>'Search',
)); ?>
</div>
Posted 22 October 2012 - 09:29 AM
nath-0, on 22 October 2012 - 07:25 AM, said:
<?php
$this->widget('ext.bootstrap.widgets.TbButton',array(
'label' => 'Primary',
'type' => 'primary',
'size' => 'large'
));
$this->widget('ext.bootstrap.widgets.TbButton',array(
'label' => 'Secondary',
'size' => 'large'
));
?>
// preloading 'log' component
'preload'=>array('log','bootstrap',),
'components'=>array(
'bootstrap'=>array(
'class'=>'ext.bootstrap.components.Bootstrap', // assuming you extracted bootstrap under extensions
'coreCss'=>true,
'responsiveCss'=>true,
'yiiCss'=>true,
'enableJS'=>true,
),
),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.extensions.*',
'application.extensions.core.*',
'application.extensions.utils.*',
'application.extensions.emessage-command.*',
'application.extensions.bootstrap.widgets.*',
),
'modules'=>array(
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'mdp',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
'generatorPaths'=>array( 'bootstrap.gii'),
),
),
'yiiCss'=>true, 'enableJS'=>true,
Posted 22 October 2012 - 10:31 AM
'bootstrap'=>array(
'class'=>'ext.bootstrap.components.Bootstrap', // assuming you extracted bootstrap under extensions
'coreCss'=>true,
'responsiveCss'=>true,
'yiiCss'=>true,
'enableJS'=>true,
),
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=qyii',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
),
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'qyiiFileLogRoute',
'levels'=>'error, warning',
'logFile'=>'logs.txt',
)
// uncomment the following to show log messages on web pages
/*
array(
'class'=>'CWebLogRoute',
),
*/
),
),
'bootstrap'=>array(
'class'=>'application.extensions.bootstrap.components.Bootstrap', // assuming you extracted bootstrap under extensions
'coreCss'=>true,
'responsiveCss'=>true,
),
'widgetFactory'=>array(
'widgets'=>array(
'CGridView'=>array(
'itemsCssClass'=>'tabResults',
// 'columns'=>'QGridColumn',
),
),
),
),
'components'=>array(
'bootstrap'=>array(
'class'=>'ext.bootstrap.components.Bootstrap', // assuming you extracted bootstrap under extensions
'coreCss'=>true,
'responsiveCss'=>true,
'yiiCss'=>true,
'enableJS'=>true,
),
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
),
Posted 22 October 2012 - 10:35 AM
Posted 23 October 2012 - 12:46 AM
54byte, on 22 October 2012 - 11:54 PM, said: