当前位置: 首页>>代码示例>>PHP>>正文


PHP Account::unsetAttributes方法代码示例

本文整理汇总了PHP中Account::unsetAttributes方法的典型用法代码示例。如果您正苦于以下问题:PHP Account::unsetAttributes方法的具体用法?PHP Account::unsetAttributes怎么用?PHP Account::unsetAttributes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Account的用法示例。


在下文中一共展示了Account::unsetAttributes方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

echo $form->hiddenField($model, 'journaldetailid');
echo $form->hiddenField($model, 'genjournalid');
?>
    <div class="row">
		<?php 
echo $form->labelEx($model, 'accountid');
echo $form->hiddenField($model, 'accountid');
?>
	  <input type="text" name="account_name" id="account_name" title="Account name" readonly value="<?php 
echo Account::model()->findByPk($model->accountid) !== null ? Account::model()->findByPk($model->accountid)->accountname : '';
?>
">    
<?php 
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'account_dialog', 'options' => array('title' => Yii::t('app', 'Account'), 'width' => 'auto', 'autoOpen' => false, 'modal' => true)));
$account = new Account('searchwstatus');
$account->unsetAttributes();
// clear any default values
if (isset($_GET['Account'])) {
    $account->attributes = $_GET['Account'];
}
$this->widget('zii.widgets.grid.CGridView', array('id' => 'account-grid', 'dataProvider' => $account->Searchwstatus(), 'filter' => $account, 'template' => '{summary}{pager}<br>{items}{pager}{summary}', 'columns' => array(array('header' => '', 'type' => 'raw', 'value' => 'CHtml::Button("V",
          array("name" => "send_absschedule",
          "id" => "send_absschedule",
          "onClick" => "$(\\"#account_dialog\\").dialog(\\"close\\"); $(\\"#account_name\\").val(\\"$data->accountname\\"); $(\\"#Journaldetail_accountid\\").val(\\"$data->accountid\\");
		  "))'), array('name' => 'accountid', 'visible' => false, 'value' => '$data->accountid', 'htmlOptions' => array('width' => '1%')), 'accountcode', 'accountname')));
$this->endWidget('zii.widgets.jui.CJuiDialog');
echo CHtml::Button('...', array('onclick' => '$("#account_dialog").dialog("open"); return false;'));
?>
		
		<?php 
echo $form->error($model, 'accountid');
开发者ID:bylinggha,项目名称:Capella-ERP-Indonesia,代码行数:31,代码来源:_formdetail.php

示例2: actionAdmin

 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Account('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Account'])) {
         $model->attributes = $_GET['Account'];
     }
     $this->render('admin', array('model' => $model));
 }
开发者ID:emisdb,项目名称:gena_0,代码行数:13,代码来源:AccountController.php

示例3: actionAdmin

 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Account('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Account'])) {
         $model->attributes = $_GET['Account'];
     }
 }
开发者ID:Lucerin,项目名称:Yii-projects,代码行数:12,代码来源:AccountController.php

示例4: actionAdmin

 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     // is current user has the required privilege ?
     if (!Yii::app()->user->checkAccess('account_admin')) {
         throw new CHttpException(403, 'You are not authorized to perform this action.');
     }
     $model = new Account('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Account'])) {
         $model->attributes = $_GET['Account'];
     }
     $this->render('admin', array('model' => $model));
 }
开发者ID:OlviLora,项目名称:PHPKeren,代码行数:17,代码来源:AccountController.php

示例5: actionIndex

 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     parent::actionIndex();
     $this->lookupdata();
     $model = new Account('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Account'])) {
         $model->attributes = $_GET['Account'];
     }
     if (isset($_GET['pageSize'])) {
         Yii::app()->user->setState('pageSize', (int) $_GET['pageSize']);
         unset($_GET['pageSize']);
         // would interfere with pager and repetitive page size change
     }
     $this->render('index', array('model' => $model, 'parentaccount' => $this->parentaccount, 'currency' => $this->currency, 'accounttype' => $this->accounttype));
 }
开发者ID:bylinggha,项目名称:Capella-ERP-Indonesia,代码行数:20,代码来源:AccountController.php

示例6: actionIndex

 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     $this->title = 'Daftar Akun';
     $model = new Account('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Account'])) {
         $model->attributes = $_GET['Account'];
     }
     $this->render('index', array('model' => $model));
 }
开发者ID:jimminababan,项目名称:kontrol-anggaran,代码行数:14,代码来源:AccountController.php


注:本文中的Account::unsetAttributes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。