Esempio n. 1
0
  }
  }
  );
  
  function donothing(){}
});

</script>

<?php 
$this->pageTitle = Yii::app()->name . ' - ' . $model->firstname . ' ' . $model->lastname . ' (' . $model->username . ')';
?>

<div id="left_container" class="form">
		<div style="float:left;" class="nyroModal"><?php 
echo SiteHelper::get_user_picture((int) $model->id, 'medium_', 'image');
?>
</div>
		<div id="profile_user_head_info" style="float:left; padding-left:10px">
			<h2 style="padding:0px"><?php 
echo $model->firstname . ' ' . $model->lastname;
?>
</h2>
			<?php 
echo CHtml::link($model->username, array('mysub/' . $model->username));
?>
			
		</div>
		<div class="clear_both"></div>
		<br><br>
		<div class="detail_section">
Esempio n. 2
0
<div id="column_2_container">
	<div id="column_left">
		<div><?php 
echo SiteHelper::get_user_picture((int) $model->user_id, 'small_', 'profile');
?>
</div>
		<div>
			<?php 
$user = User::model()->with('ucountry')->findByPk($model->user_id);
echo CHtml::link($user->username, array('profile/' . $user->username));
?>
			<br>
			<?php 
echo $user->firstname . ' ' . $user->lastname;
?>
			<?php 
if ($user->sex) {
    echo "<br><h4>" . Yii::t('user', 'Sex') . ":</h4>";
    echo $user->sex == 1 ? Yii::t('site', 'Male') : Yii::t('site', 'Female');
}
?>
					
			<?php 
if ($user->country_id) {
    echo "<br><h4>" . Yii::t('site', 'Country') . ":</h4>";
    echo ucwords(strtolower($user->ucountry->name));
}
?>
			<?php 
if ($user->about and $user->share_about == 1) {
    echo "<br><h4>" . Yii::t('user', 'About') . ":</h4>";
Esempio n. 3
0
echo Yii::t('site', 'LIVE NOW: {1}', array('{1}' => '<a target="_top" style="color: #046381;" href="' . Yii::app()->createUrl('site/index') . '">\' + json.title + \'</a>'));
?>
');
			if(callback === undefined) {
				setTimeout(function (){$("#header_top_frame").contents().find('body, body a').css("color", "white");},500);
				setTimeout(function (){$("#header_top_frame").contents().find('body, body a').css("color", "");},1000);
				setTimeout(function (){$("#header_top_frame").contents().find('body, body a').css("color", "white");},1500);
				setTimeout(function (){$("#header_top_frame").contents().find('body, body a').css("color", "");},2000);
			}else{				
				$('#header_top_frame').contents().find('head').append('<style> a, a:link, a:visited { text-decoration: none; color: #046381;font-weight: bold;  font-size: 13px;}a:hover { text-decoration: underline; }</style>');
				$('#header_top_frame').contents().find('body').attr('style','margin:3px 1px 1px 1px; border:0px;padding:0px;text-align:right; font: bold 13px Trebuchet MS, Arial, Helvetica, sans-serif; color: #686868;');
				
				if(callback == "firsttime"){
					if( typeof json.session_username !== 'undefined' ) {
						$('#menu_right').html('<?php 
echo SiteHelper::get_user_picture((int) Yii::app()->user->id, 'icon_', 'profile');
?>
<select style="vertical-align:middle" onchange="if (this.value) window.location.href=this.value"><option value="" selected><?php 
echo Yii::t('site', 'My Account:');
?>
</option><option value="<?php 
echo Yii::app()->createUrl("profile/" . Yii::app()->user->name);
?>
"><?php 
echo Yii::t('site', 'Profile');
?>
</option><option value="<?php 
echo Yii::app()->createUrl('site/logout');
?>
"><?php 
echo Yii::t('site', 'Logout');
Esempio n. 4
0
</div><!-- comment -->
<?php 
}
?>
<br>
<div class="flash-notice" style="border:none"><?php 
echo Yii::t('subject', 'NOTE: Comments are allowed only on Live Subjects({link_begin}homepage{link_end}).', array('{link_begin}' => '<a href ="' . Yii::app()->createUrl('site/index') . '">', '{link_end}' => '</a>'));
?>
</div>
</div><!-- form -->
<div id="right_container">
	<div id="sub_info_column" style="padding-left:30px;">
		<div class="detail_section">
		<h3 class="detail_header">Author</h3>
		<div style="float:left;"><?php 
echo SiteHelper::get_user_picture((int) $model->user_id, 'small_', 'mysub');
?>
</div>
		<div style="float:left; padding-left:10px">
			<?php 
$user = User::model()->with('ucountry')->findByPk($model->user_id);
echo $user->firstname . ' ' . $user->lastname . '<br>';
echo CHtml::link($user->username, array('mysub/' . $user->username));
?>
<br>
			
		</div>
		<div class="clear_both"></div>
		</div>
		<div class="detail_section">
			<h3 class="detail_header"><?php