本文整理汇总了PHP中Currency::unsetAttributes方法的典型用法代码示例。如果您正苦于以下问题:PHP Currency::unsetAttributes方法的具体用法?PHP Currency::unsetAttributes怎么用?PHP Currency::unsetAttributes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Currency
的用法示例。
在下文中一共展示了Currency::unsetAttributes方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionDate
public function actionDate($date = null)
{
$model = new Currency('search');
$model->unsetAttributes();
if (isset($_GET['Currency'])) {
$model->setAttributes($_GET['Currency']);
}
$model->date = date('Y-m-d', strtotime($date));
$this->render('index', ['baseUrl' => Yii::app()->urlManager->createUrl('currency/currencyAdmin/index'), 'refreshUrl' => Yii::app()->urlManager->createUrl('currency/currencyAdmin/parse'), 'date' => $date, 'model' => $model]);
}
示例2: array
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'currencyid');
echo $form->hiddenField($model, 'currencyid');
?>
<input type="text" name="account_name" id="currencyname" title="Account name" readonly value="<?php
echo Currency::model()->findByPk($model->currencyid) !== null ? Currency::model()->findByPk($model->currencyid)->currencyname : '';
?>
">
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'currency_dialog', 'options' => array('title' => Yii::t('app', 'Currency'), 'width' => 'auto', 'autoOpen' => false, 'modal' => true)));
$currency = new Currency('searchwstatus');
$currency->unsetAttributes();
// clear any default values
if (isset($_GET['Currency'])) {
$currency->attributes = $_GET['Currency'];
}
$this->widget('zii.widgets.grid.CGridView', array('id' => 'currency-grid', 'dataProvider' => $currency->Searchwstatus(), 'filter' => $currency, '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" => "$(\\"#currency_dialog\\").dialog(\\"close\\"); $(\\"#currencyname\\").val(\\"$data->currencyname\\"); $(\\"#Journaldetail_currencyid\\").val(\\"$data->currencyid\\");
"))'), array('name' => 'currencyid', 'visible' => false, 'value' => '$data->currencyid', 'htmlOptions' => array('width' => '1%')), 'currencyname', 'symbol')));
$this->endWidget('zii.widgets.jui.CJuiDialog');
echo CHtml::Button('...', array('onclick' => '$("#currency_dialog").dialog("open"); return false;'));
?>
<?php
echo $form->error($model, 'currencyid');
?>
示例3: actionIndex
/**
* Lists all models.
*/
public function actionIndex()
{
parent::actionIndex();
$purchasingorg = new Purchasingorg('search');
$purchasingorg->unsetAttributes();
// clear any default values
if (isset($_GET['Purchasingorg'])) {
$purchasingorg->attributes = $_GET['Purchasingorg'];
}
$paymentmethod = new Paymentmethod('search');
$paymentmethod->unsetAttributes();
// clear any default values
if (isset($_GET['Paymentmethod'])) {
$paymentmethod->attributes = $_GET['Paymentmethod'];
}
$purchasinggroup = new Purchasinggroup('search');
$purchasinggroup->unsetAttributes();
// clear any default values
if (isset($_GET['Purchasinggroup'])) {
$purchasinggroup->attributes = $_GET['Purchasinggroup'];
}
$supplier = new Supplier('search');
$supplier->unsetAttributes();
// clear any default values
if (isset($_GET['Supplier'])) {
$supplier->attributes = $_GET['Supplier'];
}
$podetail = new Podetail('search');
$podetail->unsetAttributes();
// clear any default values
if (isset($_GET['Podetail'])) {
$podetail->attributes = $_GET['Podetail'];
}
$product = new Prmaterial('search');
$product->unsetAttributes();
// clear any default values
if (isset($_GET['Prmaterial'])) {
$product->attributes = $_GET['Prmaterial'];
}
$unitofmeasure = new Unitofmeasure('search');
$unitofmeasure->unsetAttributes();
// clear any default values
if (isset($_GET['Unitofmeasure'])) {
$unitofmeasure->attributes = $_GET['Unitofmeasure'];
}
$currency = new Currency('search');
$currency->unsetAttributes();
// clear any default values
if (isset($_GET['Currency'])) {
$currency->attributes = $_GET['Currency'];
}
$sloc = new Sloc('search');
$sloc->unsetAttributes();
// clear any default values
if (isset($_GET['Sloc'])) {
$sloc->attributes = $_GET['Sloc'];
}
$tax = new Tax('search');
$tax->unsetAttributes();
// clear any default values
if (isset($_GET['Tax'])) {
$tax->attributes = $_GET['Tax'];
}
$model = new Poheader('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Poheader'])) {
$model->attributes = $_GET['Poheader'];
}
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, 'purchasingorg' => $purchasingorg, 'purchasinggroup' => $purchasinggroup, 'paymentmethod' => $paymentmethod, 'supplier' => $supplier, 'podetail' => $podetail, 'product' => $product, 'unitofmeasure' => $unitofmeasure, 'currency' => $currency, 'sloc' => $sloc, 'tax' => $tax, 'podetail' => $podetail));
}
示例4: actionAdmin
/**
* Manages all models.
*/
public function actionAdmin()
{
$model = new Currency('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Currency'])) {
$model->attributes = $_GET['Currency'];
}
if ($this->isExportRequest()) {
$this->exportCSV($model->search(), array('name', 'filename'));
}
$this->render('admin', array('model' => $model));
}
示例5: array
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'currencyid');
echo $form->hiddenField($model, 'currencyid');
?>
<input type="text" name="currency_name" id="currency_name" readonly value="<?php
echo Currency::model()->findByPk($model->currencyid) !== null ? Currency::model()->findByPk($model->currencyid)->currencyname : '';
?>
">
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'currency_dialog', 'options' => array('title' => Yii::t('app', 'Currency'), 'width' => 'auto', 'autoOpen' => false, 'modal' => true)));
$employee = new Currency('searchwstatus');
$employee->unsetAttributes();
// clear any default values
if (isset($_GET['Currency'])) {
$employee->attributes = $_GET['Currency'];
}
$this->widget('zii.widgets.grid.CGridView', array('id' => 'employee-grid', 'dataProvider' => $employee->Searchwstatus(), 'filter' => $employee, 'template' => '{summary}{pager}<br>{items}{pager}{summary}', 'columns' => array(array('header' => '', 'type' => 'raw', 'value' => 'CHtml::Button("+",
array("name" => "send_employee",
"id" => "send_employee",
"onClick" => "$(\\"#currency_dialog\\").dialog(\\"close\\"); $(\\"#currency_name\\").val(\\"$data->currencyname\\"); $(\\"#Wagetype_currencyid\\").val(\\"$data->currencyid\\");"))'), array('name' => 'currencyid', 'visible' => false, 'value' => '$data->currencyid', 'htmlOptions' => array('width' => '1%')), 'currencyname')));
$this->endWidget('zii.widgets.jui.CJuiDialog');
echo CHtml::Button('...', array('onclick' => '$("#currency_dialog").dialog("open"); return false;'));
?>
<?php
echo $form->error($model, 'employeeid');
?>
</div>
示例6: actionAdmin
/**
* Manages all models.
*/
public function actionAdmin()
{
$model = new Currency('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Currency'])) {
$model->attributes = $_GET['Currency'];
}
$this->render('admin', array('model' => $model));
}
示例7: actionIndex
/**
* Lists all models.
*/
public function actionIndex()
{
parent::actionIndex();
$supplier = new Supplier('searchwstatus');
$supplier->unsetAttributes();
// clear any default values
if (isset($_GET['Supplier'])) {
$supplier->attributes = $_GET['Supplier'];
}
$product = new Product('searchwstatus');
$product->unsetAttributes();
// clear any default values
if (isset($_GET['Product'])) {
$product->attributes = $_GET['Product'];
}
$purchasinggroup = new Purchasinggroup('searchwstatus');
$purchasinggroup->unsetAttributes();
// clear any default values
if (isset($_GET['Purchasinggroup'])) {
$purchasinggroup->attributes = $_GET['Purchasinggroup'];
}
$currency = new Currency('searchwstatus');
$currency->unsetAttributes();
// clear any default values
if (isset($_GET['Currency'])) {
$currency->attributes = $_GET['Currency'];
}
$model = new Purchinforec('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Purchinforec'])) {
$model->attributes = $_GET['Purchinforec'];
}
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, 'supplier' => $supplier, 'product' => $product, 'purchasinggroup' => $purchasinggroup, 'currency' => $currency));
}