Exemple #1
0
<?php
/* @var $this SegScheduledToursController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Seg Scheduled Tours',
);

$this->menu=array(
	array('label'=>'Create SegScheduledTours', 'url'=>array('create')),
	array('label'=>'Manage SegScheduledTours', 'url'=>array('admin')),
);
?>

<h1>Seg Scheduled Tours for <?php echo $id; ?></h1>
<?php echo "ref:".chtml::link("there", array("city","id"=>"munchen")); ?>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
)); ?>
Exemple #2
0
    echo $row->getAnotation(255);
    ?>
</div>
					<?php 
    if ($row->hasImage('preview')) {
        ?>
					</div><div class="clear"></div>
					<?php 
    }
    ?>
					<?php 
    $this->widget('NewsTags', array('news' => $row));
    ?>
					<div class="news_info">
						<?php 
    echo CHtml::link('Читать полностью', array('/news/item/show', 'url' => $block->url, 'id' => $row->id));
    ?>
						<?php 
    if ($block->allowComments) {
        echo chtml::link("Комментарии (" . count($row->comments) . ")", array('/news/item/show', 'url' => $block->url, 'id' => $row->id, '#' => 'news_comments'), array('class' => 'news_comments'));
    }
    ?>
					</div>
				</div>    
	        </div>
	    <?php 
}
?>
	</div>
</div>
Exemple #3
0
<div class="movie-item">
  <?php 
echo chtml::link(chtml::image($data->getcover(), $data->get('name'), array('class' => 'left')), array('movie/view', 'url_key' => $data->url_key));
?>
  <h3><?php 
echo $data->get('name');
?>
</h3>
  <?php 
echo $data->getReleaseYear();
?>
<br />
  <br />
  <ul>
    <li>Views: <?php 
echo $data->views;
?>
</li>
    <li>Comments: <?php 
echo count($data->comments);
?>
</li>
    <li>My Rating: <?php 
echo ($rate = $data->getMyRating()) ? $rate : 'unseen';
?>
</li>
  </ul>
</div>
Exemple #4
0
 public function getIssueDiagram($model = null)
 {
     $issuesArray = array();
     if (is_null($model)) {
         $issues = $this->issues_null;
     } else {
         $issues = $model->issues;
     }
     foreach ($issues as $value) {
         $link = chtml::link("x", array('issue/view', 'id' => $value->id));
         $pos = strpos($link, "href=");
         $link = substr($link, $pos + 6, strpos($link, "\"", $pos + 6) - $pos - 6);
         $arr = array('name' => $value->name, 'type' => $value->getTypeText(), 'link' => $link, 'id' => $value->id, 'description' => $value->description, 'status' => $value->getStatusText());
         if (count($value->issues) > 0) {
             $arr['items'] = $this->getIssueDiagram($value);
         }
         $issuesArray[] = $arr;
     }
     return $issuesArray;
 }