コード例 #1
0
ファイル: create3.php プロジェクト: andyliao0508/Yi-demo
echo $form->textArea($model, 'memo', array('rows' => 2, 'cols' => 80, 'maxlength' => 255));
?>
            <?php 
echo $form->error($model, 'memo');
?>
        </td>

        <td>
            	<?php 
echo CHtml::submitButton('新增', array('name' => 'create'));
?>
        </td>
    </tr>
	
</table>                
<?php 
$this->endWidget();
?>

</div>

<?php 
$log = new TbaLog('search');
$log->unsetAttributes();
// clear any default values
if (isset($_GET['TbaLog'])) {
    $log->attributes = $_GET['TbaLog'];
}
$log->logtype = 2;
$log->opt2 = 0;
$this->renderPartial('_querylog', array('model' => $log));
コード例 #2
0
 public function actionQuerylog()
 {
     $model = new TbaLog('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['TbaLog'])) {
         $model->attributes = $_GET['TbaLog'];
     }
     $this->render('querylog', array('model' => $model));
 }