Esempio n. 1
0
<div class="view">
	<h3><?php 
echo CHtml::link("#" . $data->case_id . " - " . CHtml::encode($data->case_name), Yii::app()->controller->createUrl("cases/view", array("id" => $data->case_id)));
?>
</h3>
	<?php 
$this->widget('widgets.HasComments', array('countComments' => Logs::getCountComments(Yii::app()->controller->id, $data->case_id), 'item_id' => $data->case_id));
?>
	<div class="moduleTextDescription corners">
		<?php 
echo ECHtml::word_split(CHtml::encode($data->case_description), 20) . "...";
?>
<br />
	</div>
	
	<div class="subcolumns">
		<div class="c33l">
			<?php 
if (!empty($data->case_code)) {
    ?>
			<div class="subcolumns">
				<div class="c38l">
					<b><?php 
    echo $data->getAttributeLabel('case_code');
    ?>
:</b>
				</div>
				<div class="c62r">
					<?php 
    echo CHtml::encode($data->case_code);
    ?>
Esempio n. 2
0
<div class="view">
	<h3><?php 
echo CHtml::link("#" . $data->document_id . " - " . CHtml::encode($data->document_name), array('documents/view', 'id' => $data->document_id));
?>
</h3>
	<?php 
$countComments = Logs::getCountComments(Yii::app()->controller->id, $data->document_id);
if ($countComments > 0) {
    ?>
	<span class="jewelCount">
		<span id="jewelRequestCount">
			<?php 
    echo CHtml::link($countComments . " " . Yii::t('site', 'comments'), array('view', 'id' => $data->document_id, '#' => 'comments'), array('title' => Yii::t('site', 'comments')));
    ?>
		</span>
	</span>
	<?php 
}
?>
	<div class="moduleTextDescription corners">
		<?php 
echo ECHtml::word_split(CHtml::encode($data->document_description), 20) . "...";
?>
	</div>
	<div style="text-align:right">
		<b><?php 
echo CHtml::link(Yii::t('documents', 'ViewDetails'), array('documents/view', 'id' => $data->document_id), array('class' => 'detailsImg'));
?>
</b>
	</div>
</div>