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;
 }
示例#3
0
$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();
 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

$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)))));