function myheader4($id) { $criteria = new CDbCriteria(); $criteria->compare('parent_id', $id); $criteria->compare('tcredit>', 0); $model = aBudgetDetail::model()->find($criteria); $this->SetFont('Arial', 'B', 12); $this->Cell(0, 6, 'PT. AGUNG PODOMORO LAND, Tbk'); $this->Ln(3); $this->SetFont('Arial', 'B', 10); //$this->Cell(0,6,'Central Park'); $this->Cell(0, 7, aOrganization::model()->findByPk(aPorder::model()->findByPk($model->parent_id)->costcenter_id)->name); $this->Ln(10); $this->Cell(30, 6, 'Tahun:'); $this->Cell(0, 6, aBudget::model()->findByPk($model->parent_id)->year); $this->Ln(4); $this->Cell(30, 6, 'Budget:'); $this->Cell(0, 6, aBudget::model()->findByPk($model->parent_id)->name); $this->Ln(4); $this->Cell(30, 6, 'Total Budget:'); $this->Cell(0, 6, number_format(aBudget::model()->findByPk($model->parent_id)->sum_af), 0, ',', '.'); $this->Ln(10); $w = array(8, 25, 50, 30, 30, 30, 40, 50); $this->SetFont('Arial', 'B', 8); $this->Cell($w[0], 6, 'NO', 1); $this->Cell($w[1], 6, 'INPUT DATE', 1, 0, 'C'); $this->Cell($w[2], 6, 'NO REF', 1, 0, 'C'); $this->Cell($w[3], 6, 'PERIODE DATE', 1, 0, 'C'); $this->Cell($w[4], 6, 'TOTAL PR', 1, 0, 'C'); $this->Cell($w[5], 6, 'BALANCE', 1, 0, 'C'); $this->Cell($w[6], 6, 'ISSUER VIA ', 1, 0, 'C'); $this->Cell($w[7], 6, 'REMARK ', 1, 0, 'C'); $this->Ln(); }
public function loadModel($id) { $model = aOrganization::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
<?php $this->breadcrumbs = array($model->name); $this->menu = array(array('label' => 'Home', 'url' => array('/aOrganization')), array('label' => 'Create', 'url' => array('create')), array('label' => 'Update', 'url' => array('update', 'id' => $model->id)), array('label' => 'Delete', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?'))); $this->menu1 = aOrganization::getTopUpdated(); $this->menu2 = aOrganization::getTopCreated(); $this->menu3 = aOrganization::getTopRelated($model->id); ?> <div class="page-header"> <h1> <?php echo $model->name; ?> </h1> </div> <?php $this->widget('bootstrap.widgets.BootDetailView', array('data' => $model, 'attributes' => array('name'))); ?> <?php /* <h2>Account Behalf of This Entity</h2> <?php $this->widget('bootstrap.widgets.BootGridView', array( 'id'=>'t-account-grid', 'dataProvider'=>tAccountEntity::model()->searchEntity($model->id), 'itemsCssClass'=>'table table-striped table-bordered', 'template'=>'{items}{pager}', 'columns'=>array(
$form = $this->beginWidget('BootActiveForm', array('id' => 'user-module-form', 'type' => 'horizontal', 'enableAjaxValidation' => false)); ?> <?php echo $form->errorSummary($model); ?> <?php echo $form->textFieldRow($model, 'username', array('class' => 'span3')); ?> <?php echo $form->passwordFieldRow($model, 'password', array('class' => 'span3')); ?> <?php echo $form->dropDownListRow($model, 'default_group', aOrganization::model()->getRootList()); ?> <?php echo $form->dropDownListRow($model, 'status_id', sParameter::items("cStatusP")); ?> <div class="form-actions"> <?php echo CHtml::htmlButton($model->isNewRecord ? '<i class="icon-ok"></i> Create' : '<i class="icon-ok"></i> Save', array('class' => 'btn', 'type' => 'submit')); ?> </div> <?php $this->endWidget();
<?php $this->breadcrumbs = array('Organization Structure'); $this->menu = array(array('label' => 'Create', 'url' => array('create'))); $this->menu1 = aOrganization::getTopUpdated(); $this->menu2 = aOrganization::getTopCreated(); ?> <div class="pull-right"> <?php $this->renderPartial('_search', array('model' => $model)); ?> </div> <div class="page-header"> <h1><?php echo CHtml::image(Yii::app()->request->baseUrl . '/images/icon/document_organization_chart_01.png'); ?> Organization Structure</h1> </div> <?php $this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
?> </td> <td><?php echo CHtml::textField('amount[]', '', array('size' => 15, 'maxlength' => 15)); ?> </td> </tr> <?php } else { ?> <?php for ($i = 0; $i < sizeof($model->department_id); ++$i) { ?> <tr> <td><?php echo CHtml::dropDownList('department_id[]', $model->department_id[$i], aOrganization::getListProject()); ?> </td> <td><?php echo CHtml::dropDownList('budget_id[]', $model->budget_id[$i], aBudget::nonMainComponent(109)); ?> </td> <td><?php echo CHtml::textField('description[]', $model->description[$i], array('maxlength' => 500)); ?> </td> <td><?php echo CHtml::textField('amount[]', $model->amount[$i], array('size' => 15, 'maxlength' => 15)); ?> </td> </tr>
public function getData($cnd = " = 0") { $data = array(); foreach (aOrganization::model()->findAll('parent_id ' . $cnd) as $model) { $row['text'] = $model->name; $row['id'] = $model->id; $row['children'] = aOrganization::model()->getData(' = ' . $model->id); $data[] = $row; } return $data; }
<?php $form = $this->beginWidget('ext.bootstrap.widgets.BootActiveForm', array('id' => 's-group-form', 'type' => 'horizontal', 'enableAjaxValidation' => false)); ?> <?php echo $form->errorSummary($model); ?> <?php echo $form->dropDownListRow($model, 'organization_root_id', aOrganization::getRootList(), array('class' => 'span5')); ?> <div class="form-actions"> <?php echo CHtml::htmlButton($model->isNewRecord ? '<i class="icon-ok"></i> Create' : '<i class="icon-ok"></i> Save', array('class' => 'btn', 'type' => 'submit')); ?> </div> <?php $this->endWidget();
<?php $this->breadcrumbs = array('User' => array('view'), $model->id); $this->menu = array(array('label' => 'Home', 'url' => array('/sUser')), array('label' => 'Update', 'url' => array('update', 'id' => $model->id)), array('label' => 'Update Password', 'url' => array('updatePassword', 'id' => $model->id))); $this->menu2 = sUser::getTopCreated(); ?> <div class="page-header"> <h1> <?php echo CHtml::image(Yii::app()->request->baseUrl . '/images/icon/user.png'); ?> <?php echo CHtml::encode($model->username); ?> </h1> </div> <?php $this->widget('bootstrap.widgets.BootDetailView', array('data' => $model, 'attributes' => array('username', 'password', array('label' => 'Default Group', 'value' => aOrganization::model()->findByPk($model->default_group)->name), array('label' => 'Status', 'value' => $model->status->name)))); ?> <br /> <?php $this->widget('bootstrap.widgets.BootTabbable', array('type' => 'tabs', 'tabs' => array(array('label' => 'Module', 'content' => $this->renderPartial("_tabModule", array("model" => $model, "modelModule" => $modelModule), true), 'active' => true), array('label' => 'Group', 'content' => $this->renderPartial("_tabGroup", array("model" => $model, "modelGroup" => $modelGroup), true)))));
<?php $form = $this->beginWidget('BootActiveForm', array('id' => 't-account-entity-form', 'type' => 'horizontal', 'enableAjaxValidation' => false)); ?> <?php echo $form->errorSummary($model); ?> <?php echo $form->dropDownListRow($model, 'entity_id', aOrganization::items()); echo $form->textAreaRow($model, 'remark', array('class' => 'span3', 'rows' => 3)); echo $form->dropDownListRow($model, 'state_id', sParameter::items("cStatusP")); ?> <div class="form-actions"> <?php echo CHtml::htmlButton('<i class="icon-ok"></i>' . $model->isNewRecord ? 'Create' : 'Save', array('class' => 'btn', 'type' => 'submit')); ?> </div> <?php $this->endWidget();