<?php 
Yii::app()->clientScript->registerScript('myCap' . $data->id, "\n\n\t\t\$('#myCap'+{$data->id}).click(function(){\n\t\t\$(this).slideUp();\n\t\t\$.ajax({\n\t\ttype : 'get',\n\t\turl  : \$(this).attr('href'),\n\t\tdata: '',\n\t\tsuccess : function(r){\n\t\t\$('#mydialog').dialog('open');\n\t\t\$('#list-'+{$data->id}).slideUp('slow');\n\t\tsetTimeout(\"\$('#mydialog').dialog('close') \",1200);\n}\n})\n\t\treturn false;\n});\n\n\n\t\t");
?>


<div id="list-<?php 
echo $data->id;
?>
" class="well">

	<b><?php 
echo CHtml::encode($data->system_ref);
if ($data->state_id != 1) {
    echo " (" . sParameter::item("cStatus", $data->state_id) . ")";
}
?>
 </b>

	<?php 
echo CHtml::link('detail<i class="icon-chevron-right"></i>', '#', array('class' => 'hide-info' . $data->id));
?>

	<br />
	<br />
	<div class="list<?php 
echo $data->id;
?>
" style="display: none">
	
Пример #2
0
<?php

$this->breadcrumbs = array('Event Management' => array('index'), $model->id);
?>

<div class="page-header">
	<h1>
		<?php 
echo $model->issue;
?>
	</h1>
</div>
<?php 
$this->widget('ext.JuiButtonSet.JuiButtonSet', array('items' => array(array('label' => 'List View', 'icon-position' => 'left', 'url' => array('admin')), array('label' => 'Update', 'icon-position' => 'left', 'url' => array('update', 'id' => $model->id))), 'htmlOptions' => array('style' => 'clear: both;')));
?>

<?php 
//$this->widget('bootstrap.widgets.BootDetailView', array(
$this->widget('ext.XDetailView', array('ItemColumns' => 2, 'data' => $model, 'attributes' => array(array('name' => 'event_id', 'value' => sParameter::item("cEvent", $model->event_id)), 'id', array('name' => 'category_id', 'value' => sParameter::item("cEventCat", $model->category_id)), 'issue', 'person_incharge', 'todo', 'progress', 'incomplete_exp', 'remark')));
Пример #3
0
		<?php 
echo $model->sender_ref;
?>
	</h1>
</div>

<div class="row-fluid">
	<div class="span12">
		<div class="well">
			<h4><span class="icon fam-note"></span>
				<?php 
echo sUser::model()->findName($model->sender_id) . ' to ' . sUser::model()->findName($model->receiver_id);
?>
				|
				<?php 
echo sParameter::item("cCategory", $model->category_id);
?>
			</h4>
			<br />
			<?php 
echo $model->long_desc;
?>

			<h6>
				<?php 
echo Yii::app()->dateFormatter->format("dd-MM-yyyy HH:mm", $model->sender_date);
?>
			</h6>

			<?php 
$comment = sNotificationDetail::model()->findAll(array('condition' => 'parent_id = ' . $model->id));
Пример #4
0
 public function system_reff()
 {
     $_state = null;
     if ($this->state_id != 1) {
         $_state = " (" . sParameter::item("cStatus", $this->state_id) . ")";
     }
     $_format = $this->system_ref . $_state;
     return $_format;
 }
Пример #5
0
<?php

$this->breadcrumbs = array('Account Payable' => array('index'), $model->system_ref);
$this->menu = array(array('label' => 'Home', 'url' => array('/mAccpayable/')), array('label' => 'Approval', 'url' => array('/mAccpayable/', 'id' => 1)), array('label' => 'Payment', 'url' => array('/mAccpayable/', 'id' => 2)), array('label' => 'Paid', 'url' => array('/mAccpayable/', 'id' => 3)), array('label' => 'Show All', 'url' => array('/mAccpayable/', 'id' => 0)), array('label' => 'Print', 'url' => array('print', 'id' => $model->id)));
$this->menu1 = bPorder::getTopUpdated(1);
$this->menu2 = bPorder::getTopCreated(1);
//$this->menu3=uJournal::getTopRelated($model->user_ref);
?>

<div class="page-header">
	<h1>
		Account Payable:
		<?php 
echo $model->system_ref;
if ($model->state_id != 1) {
    echo " (" . sParameter::item("cStatus", $model->state_id) . ")";
}
?>
	</h1>
</div>

<?php 
$this->widget('bootstrap.widgets.BootDetailView', array('data' => $model, 'attributes' => array('input_date', 'yearmonth_periode', 'user_ref', 'system_ref', 'remark')));
?>

<br />

<?php 
echo $this->renderPartial('/uJournal/_viewDetail', array('id' => $model->id));
?>
<div class="comment">
	<div class="author">
		<b><?php 
echo sParameter::item("cCategory", $data->category_id);
?>
 </b>
	</div>

	<div class="time">
		<?php 
echo CHtml::encode($data->sender_date, 1);
?>
	</div>

	<div class="content">
		<?php 
echo CHtml::encode($data->long_desc);
?>
	</div>
</div>