<?php 
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'end_date', 'options' => array('showAnim' => 'fold', 'dateFormat' => 'dd-mm-yy'), 'htmlOptions' => array('style' => 'height:28px;')));
?>
	</div>
</div>
<div class="control-group">
	<?php 
echo $form->labelEx($model, 'reminder', array('class' => 'control-label'));
?>
	<div class="controls">
		<?php 
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'reminder', 'options' => array('showAnim' => 'fold', 'dateFormat' => 'dd-mm-yy'), 'htmlOptions' => array('style' => 'height:28px;')));
?>
	</div>
</div>

<?php 
echo $form->dropDownListRow($model, 'status_id', sParameter::items("cStatusTask"));
echo $form->dropDownListRow($model, 'priority_id', sParameter::items("cPriority"));
echo $form->dropDownListRow($model, 'category_id', sParameter::items("cTaskCategory"));
echo $form->textAreaRow($model, 'notes', array('rows' => 3, 'class' => 'span4'));
?>

<div class="form-actions">
	<?php 
echo CHtml::htmlButton('<i class="icon-ok"></i> Submit', array('class' => 'btn', 'type' => 'submit'));
?>
</div>

<?php 
$this->endWidget();
Пример #2
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();
Пример #3
0
<?php

$form = $this->beginWidget('BootActiveForm', array('id' => 't-account-form', 'type' => 'horizontal', 'enableAjaxValidation' => false));
?>

<?php 
echo $form->errorSummary($model);
?>

<?php 
echo $form->dropDownListRow($model, 'haschild_id', sParameter::items("cHasChild"), array('disabled' => !empty($model->hasJournal), 'hint' => 'Dropdown will disabled automatically when this account already has journal voucher on current period'));
echo $form->textFieldRow($model, 'account_no', array('class' => 'span3'));
echo $form->textFieldRow($model, 'account_name', array('class' => 'span3'));
echo $form->textAreaRow($model, 'short_description', array('class' => 'span5', 'rows' => 3));
//echo $form->dropDownListRow($model,'currency_id',sParameter::items("cCurrency","*inherited*"));
//echo $form->dropDownListRow($model,'state_id',sParameter::items("cStatus","*inherited*"));
?>

<?php 
$this->widget('ext.appendo.JAppendo', array('id' => 'repeateEnum', 'model' => $model, 'viewName' => '_accountProperties', 'labelDel' => 'Remove Row'));
?>

<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();
?>
echo $form->textFieldRow($model, 'begindate');
?>
	<?php 
echo $form->textFieldRow($model, 'enddate');
?>

<?php 
/*
$this->widget('ext.monthpicker.MonthPicker', array(
    'model'=>$model,
    'name'=>'begindate',
));
*/
?>

<?php 
echo $form->dropDownListRow($model, 'type_report_id', array('1' => 'Summary Style', '2' => 'Detail Style'));
?>

<?php 
echo $form->dropDownListRow($model, 'post_id', sParameter::items("cStatus", 2));
?>

<div class="form-actions">
	<?php 
echo CHtml::htmlButton('<i class="icon-ok"></i> Report', array('class' => 'btn', 'type' => 'submit'));
?>
</div>

<?php 
$this->endWidget();
<?php 
echo $form->textFieldRow($model, 'input_date');
?>

<?php 
echo $form->textFieldRow($model, 'no_ref', array('class' => 'span3'));
echo $form->textFieldRow($model, 'periode_date');
?>

<?php 
echo $form->dropDownListRow($model, 'budgetcomp_id', aBudget::mainComponent(), array());
?>


<?php 
echo $form->textAreaRow($model, 'remark', array('rows' => 2, 'cols' => 50));
?>


<?php 
echo $form->dropDownListRow($model, 'issuer_id', sParameter::items("cIssuer"));
$this->widget('ext.appendo.JAppendo', array('id' => 'repeateEnum', 'model' => $model, 'viewName' => '_detailPorder', 'labelDel' => 'Remove Row'));
?>
<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();
<?php

$form = $this->beginWidget('BootActiveForm', array('id' => 'c-jemaat-form', 'type' => 'horizontal', 'enableAjaxValidation' => false));
?>

<?php 
echo $form->errorSummary($model);
?>


<?php 
echo $form->textFieldRow($model, 'branch_code', array('class' => 'span3'));
echo $form->dropDownListRow($model, 'structure_id', sParameter::items("cStructure"));
echo $form->textFieldRow($model, 'name', array('class' => 'span3'));
echo $form->textFieldRow($model, 'address', array('class' => 'span3'));
echo $form->textFieldRow($model, 'address2', array('class' => 'span3'));
echo $form->textFieldRow($model, 'address3', array('class' => 'span3'));
echo $form->textFieldRow($model, 'address4', array('class' => 'span3'));
?>

<?php 
/*
<?php echo $form->labelEx($model,'propinsi_id'); ?>
<?php
echo $form->dropDownList($model,'propinsi_id',sKabupatenPropinsi::items("Any"),
		array(
				'empty'=>'select Propinsi:',
				'ajax' => array(
						'type'=>'POST',
						'url'=>CController::createUrl('/m1/aOrganization/kabupatenUpdate'),
						'update'=>'#'.CHtml::activeId($model,'kabupaten_id'),
?>

<?php 
echo $form->dropDownListRow($model, 'receiver_id', sUser::model()->allUsers());
?>


<?php 
echo $form->dropDownListRow($model, 'category_id', sParameter::items("cCategory"));
?>

<?php 
echo $form->textAreaRow($model, 'long_desc', array('class' => 'span6', 'rows' => 6));
//$this->widget('application.extensions.tinymce.ETinyMce',
//	array('name'=>'html','model'=>$model,'attribute'=>'long_desc'));
?>



<?php 
echo $form->dropDownListRow($model, 'read_id', sParameter::items("cRead"));
?>

<div class="form-actions">
	<?php 
echo CHtml::htmlButton('<i class="icon-ok"></i> Send', array('class' => 'btn', 'type' => 'submit'));
?>
</div>

<?php 
$this->endWidget();
Пример #8
0
<?php

$form = $this->beginWidget('BootActiveForm', array('id' => 't-account-form', 'type' => 'horizontal', 'enableAjaxValidation' => false));
?>

<?php 
//echo $form->errorSummary($model);
?>

<?php 
echo $form->dropDownListRow($model, 'haschild_id', sParameter::items("cHasChild"));
echo $form->textFieldRow($model, 'account_no', array('class' => 'span3'));
echo $form->textFieldRow($model, 'account_name', array('class' => 'span3'));
echo $form->textAreaRow($model, 'short_description', array('class' => 'span4', 'rows' => 3));
//echo $form->dropDownListRow($model,'currency_id',sParameter::items("cCurrency","*inherited*"));
echo $form->textFieldRow($model, 'beginning_balance', array('class' => 'span3', 'hint' => 'This field must be filled, otherwise record cannot be saved..'));
//echo $form->dropDownListRow($model,'state_id',sParameter::items("cStatus","*inherited*"));
?>

<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();
Пример #9
0
<?php

$this->breadcrumbs = array('Notification' => array('index'), 'Manage');
Yii::app()->clientScript->registerScript('search', "\n\t\t\$('.search-button').click(function(){\n\t\t\$('.search-form').toggle();\n\t\treturn false;\n});\n\t\t\$('.search-form form').submit(function(){\n\t\t\$.fn.yiiGridView.update('sNotification-grid', {\n\t\tdata: \$(this).serialize()\n});\n\t\treturn false;\n});\n\t\t");
?>

<div class="page-header">
	<h1>
		<?php 
echo CHtml::image(Yii::app()->request->baseUrl . '/images/icon/preferences_desktop_notification.png');
?>
		Notification Manager
	</h1>
</div>
<?php 
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'advancedsearch_dialog', 'options' => array('title' => 'Advanced Search', 'width' => 'auto', 'autoOpen' => false)));
$this->renderPartial('_search', array('model' => $model));
$this->endWidget('zii.widgets.jui.CJuiDialog');
?>

<div class="mymenu">
	<?php 
echo CHtml::link('Add New', array('create'));
echo CHtml::label(' | ', '#');
echo CHtml::link('Search', '#', array('onclick' => '$("#advancedsearch_dialog").dialog("open"); return false;'));
?>
</div>

<?php 
$this->widget('bootstrap.widgets.BootGridView', array('id' => 'sNotification-grid', 'dataProvider' => $model->search(), 'itemsCssClass' => 'table table-striped table-bordered', 'template' => '{items}{pager}', 'columns' => array(array('class' => 'CButtonColumn', 'template' => '{view}{update}{delete}{archive}', 'buttons' => array('archive' => array('label' => 'archive', 'url' => 'Yii::app()->createUrl("sNotification/markarchive", array("id"=>$data->id))', 'visible' => '$data->read_id != 6'))), array('name' => 'type_id', 'value' => 'sParameter::item("cNotifType",$data->type_id)', 'filter' => sParameter::items("cNotifType")), 'broadcast_code', array('name' => 'sender_date', 'value' => '$data->sender_date'), array('name' => 'sender_id', 'value' => 'sUser::model()->findName($data->sender_id)', 'filter' => sUser::model()->allUsers()), array('name' => 'receiver_date', 'value' => '$data->receiver_date'), array('name' => 'receiver_id', 'value' => 'sUser::model()->findName($data->receiver_id)', 'filter' => sUser::model()->allUsers('all')), array('name' => 'category_id', 'value' => 'sParameter::item("cCategory",$data->category_id)', 'filter' => sParameter::items("cCategory")), array('name' => 'long_desc', 'filter' => false), array('name' => 'read_id', 'value' => 'sParameter::item("cRead",$data->read_id)', 'filter' => sParameter::items("cRead")))));