<?php
/* @var $this FavoritesController */
/* @var $data Favorites */
?>

<div class="view">

	<b><?php echo CHtml::encode($data->getAttributeLabel('title')); ?>:</b>
	<?php echo CHtml::link(CHtml::encode($data->title), array('view','type'=>'single','id'=>$data->id)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('tigan')); ?>:</b>
	<?php echo Helper::truncate_utf8_string($data->tigan,256); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('tizhi')); ?>:</b>
	<br />	
	<?php
		$arr_az=array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
		$i=0;
		foreach(explode('^-^',$data->tizhi) as $k=>$v) 
			{
				echo $arr_az[$i].'、'.CHtml::encode($v)."<br/>";$i++;
			}
	?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('answer')); ?>:</b>
	<?php echo CHtml::encode($data->answer); ?>
	<br />
	<b><?php echo CHtml::label('操作',''); ?>:</b>
	<?php echo CHtml::link('删除',array('favorites/delete/','type'=>'single'),$htmlOptions=array ('class'=>'delete','val'=>$data->id)); ?>
	<br />

</div>