Exemple #1
0
					  <div class="media-left media-middle">
					    <a href="#">
				      	<img class="media-object img-circle" src="<?php echo User::findModel($judgment->user_id)->head_picture;?>" alt="..." width="60px">	
				      </a>
					  </div>
					  <div class="media-body">
					  	<span class="evaluation-name"><?php echo User::findModel($judgment->user_id)->username;?></span>
					  	<?php for ($i = 1; $i <=5; $i++): ?>
								<?php if ($i <= $judgment->score) : ?>
									<span class="fa fa-star"></span>
								<?php else : ?>
									<span class="fa fa-star-o"></span>
								<?php endif;?>
							<?php endfor;?>
					    <h5 class="media-heading evaluation-content"><?php echo $judgment->content;?></h5>
					    <h6 class="evaluation-time"><?php echo Yii::t('app', 'Time')?>:<?php echo Common::getAwayTime($judgment->comment_time);?></h6>
					  </div>
					</div>

				<?php endforeach ?>



			</div>

		</div>

		<div class="col-lg-3  col-md-3 col-sm-3 course-view-right">
			<?= $this->render('course-right', ['btn' => 'view', 'isLearn' => $isLearn, 'course' => $course])?>

		</div>
Exemple #2
0
						  </div>
						  <div class="media-body">
						  	<span class="fa fa-question-circle fa-lg col-lg-1 qa-question-fa"></span>
						    <span class="media-heading qa-content" ><?php echo Markdown::convert($question->content)?></span>
						    <div class="qa-new">
						    	<span class="fa fa-comment fa-lg col-lg-1"></span>
						    	<?php if (Answer::replyLatest($question->id)): ?>
						    		<span>[最新回答]</span>
						    		<span><a href=""><?php echo User::findModel(Answer::replyLatest($question->id)->answer_user_id)->username?> :</a></span>
						    		<span><?php echo Answer::replyLatest($question->id)->content?></span>
						    	<?php else: ?>
						    		<span>[还没有人回答]</span>
						    	<?php endif ?>
						    	
						    </div>
						    <span class="evaluation-time col-lg-4">时间:<?php echo Common::getAwayTime($question->create_time)?></span>
						    <a href="/course/qadetail?qid=<?php echo $question->id?>"><span class="fa fa-comments comment-down"><?php echo count(Answer::replyList($question->id))?></span></a>
						    <a href="/course/qadetail?qid=<?php echo $question->id?>"><span class="fa fa-eye comment-up"><?php echo $question->views?></span></a>
						  </div>
						</div>
					<?php endforeach ?>
				</div>
			</div>
			<div class="tab-pane" id="attachment" style="margin-top:20px">
				<div class="container row">
					<table class="table table-striped">
				 		<?php if ($attachments): ?>
				 			<?php foreach ($attachments as $attachment): ?>
				 				<tr class="info">
									<td><?php echo $attachment->name . '.' . $attachment->extension?></td>
									<td><a href="/resource/download?id=<?php echo $attachment->id;?>" style="cursor:pointer"><span class="fa fa-download"></span></a></td>
Exemple #3
0
				<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 comment-detail">

					<?php $i = 1; foreach (CourseComment::commentList($course->id) as $comment): ?>
						<div class="media col-lg-12 evaluation-con">
						  <div class="media-left media-middle">
						    <a href="#">
						      <img class="media-object img-circle" src="<?php echo User::findModel($comment->user_id)->head_picture?>" alt="" width="60px">
						    </a>
						  </div>
						  <div class="media-body">
						  	<span class="evaluation-name"><?php echo User::findModel($comment->user_id)->username?></span>
						    <h5 class="media-heading evaluation-content" id="comment-content-<?php echo $i?>"><?php echo $comment->content?></h5>
						    <?php if ($comment->course_id == $comment->root_id): ?>
						    	<span class="evaluation-time">时间:<?php echo Common::getAwayTime($comment->comment_time)?></span>
								<?php else: ?>
						    	<span class="evaluation-time">时间:<?php echo Common::getAwayTime($comment->comment_time)?>&nbsp;<a href="/resource/play?id=<?php echo Resource::getVideo($comment->course_id)->url?>">源自:<?php Course::findModel($comment->course_id)->name?></a></span>
						    <?php endif ?>
						    <span class="fa fa-thumbs-o-down comment-down" onclick="commentDown(<?php echo $comment->id?>)"><?php echo $comment->down_count?></span>
						    <span class="fa fa-thumbs-o-up comment-up" onclick="commentUp(<?php echo $comment->id?>)"><?php echo $comment->up_count?></span>
						  </div>
						</div>
					<?php $i++;endforeach ?>
					

					

				</div>

			</div>

Exemple #4
0
							    <a href="/course/qadetail?qid=<?php echo $question->id?>"><span class="fa fa-eye comment-up"><?php echo $question->views?></span></a>
							  </div>
							</div>
						<?php endforeach ?>
					<?php else: ?>
					  <div class="alert alert-warning" role="alert"><?php echo Yii::t('app', 'No more questions.');?></div>
					<?php endif ?>
					
				</section>
				<section id="section-reply">
					<?php if (Answer::myReplyList($user->id)): ?>
						<?php foreach (Answer::myReplyList($user->id) as $reply): ?>
						  <div class="alert alert-success" role="alert">
						  	<span>[回复<a href="#"><?php echo User::findModel($reply->answered_user_id)->username?>]</a>:<?php echo $reply->content?></span>
						  	<a href="/course/qadetail?qid=<?php echo $reply->question_id?>"><span class="fa fa-eye" style="float: right;margin-left: 5px"></span></a>
						  	<span class="zone-reply-time"><?php echo Common::getAwayTime($reply->create_time)?></span>
						  </div>
						<?php endforeach ?>
					<?php else: ?>
						<div class="alert alert-warning" role="alert"><?php echo Yii::t('app', 'No more answers.');?></div>
					<?php endif ?>
				</section>
				<section id="section-focus">
       		<div class="alert alert-warning" role="alert"><?php echo Yii::t('app', 'No more focus questions.');?></div>
				</section>
			</div>
		</div>
	</div>


<script type="text/javascript" src="/js/cbpFWTabs.js"></script>
Exemple #5
0
			
				<div class="col-lg-2 col-md-2 col-sm-2 reply-user-info">
					<div  style="margin: 0 25%"><a href='#'><img src="<?php echo User::findModel($reply->answer_user_id)->head_picture?>" class="img-circle" width="60px"></a></div>
					<div class="reply-user-info-name"><?php echo User::findModel($reply->answer_user_id)->username?></div>
				</div>
				<div class="col-lg-3 col-md-2 col-sm-2">
					<?php if ($user->id != $reply->answered_user_id): ?>
						<span style="color: rgba(102,102,102,0.5)">[<?php echo User::findModel($reply->answer_user_id)->username?>回复<?php echo User::findModel($reply->answered_user_id)->username?>]</span>
					<?php endif ?>
				</div>
				<div class="col-lg-10 col-md-10 col-sm-10">
					<?php echo Markdown::convert($reply->content)?>
				</div>
				<div class="col-lg-10 col-md-10 col-sm-10">
					<div class="col-lg-4 col-md-4 col-sm-4">
						<?php echo Common::getAwayTime($reply->create_time)?>
					</div>
					<div class="col-lg-2 col-md-2 col-sm-2" style="float:right">
						<?php if ($reply->answer_user_id != Yii::$app->user->id): ?>
							<span class="fa fa-reply" onclick="changeAnsweredName(<?php echo $reply->answer_user_id?>)">回复</span>
	
						<?php endif ?>
					</div>
				</div>
			
			
		</div>
		<?php endforeach ?>

		<div class="col-lg-12 col-md-12 col-sm-12 qadetail-input">
			<?php