<div class="g-main g-message">
    <h4 class="text-size16 cor-blue u-title">交易评价</h4>
    <div class="space"></div>
    <div class="clearfix hidden-xs">
        <form action="/user/workComment" method="get" id="screen_form">
            <div class="control-group pull-left">
                <label>
                    <input name="type" type="radio" class="ace screen" value=0 <?php echo e((empty($_GET['type'])|| $_GET['type']==0)?'checked':''); ?>>
                    <span class="lbl"> 全部</span>
                </label>
                <label>
                    <input name="type" type="radio" class="ace screen" value=1 <?php echo e((!empty($_GET['type']) && $_GET['type']==1)?'checked':''); ?>>
                    <span class="lbl"> 好评</span>
                </label>
                <label>
                    <input name="type" type="radio" class="ace screen" value=2 <?php echo e((!empty($_GET['type']) && $_GET['type']==2)?'checked':''); ?>>
                    <span class="lbl"> 中评</span>
                </label>
                <label>
                    <input name="type" type="radio" class="ace screen" value=3 <?php echo e((!empty($_GET['type']) && $_GET['type']==3)?'checked':''); ?>>
                    <span class="lbl"> 差评</span>
                </label>
            </div>
            <div class=" pull-right">
                <select name="from" class="form-control btn-big screen">
                    <option value="0" <?php echo e((empty($_GET['from']) || $_GET['from']==0)?'selected':''); ?>>给威客的评价</option>
                    <option value="1" <?php echo e((!empty($_GET['from']) && $_GET['from']==1)?'selected':''); ?>>威客给我的评价</option>
                </select>
            </div>
        </form>
    </div>
    <div class="space"></div>
    <?php if(count($comment['data'])>0): ?>
        <div class="g-tradevaluate">
            <?php foreach($comment['data'] as $v): ?>
                <div class="clearfix ">
                    <div class="col-sm-1 col-xs-3">
                        <div class="row">
                            <?php if($v['type']==1): ?>
                                <div class="g-valugood">
                                    <?php elseif($v['type']==2): ?>
                                        <div class="g-valuin">
                                            <?php elseif($v['type']==3): ?>
                                                <div class="g-valugood">
                                                    <?php endif; ?>
                                                    <?php if(empty($_GET['from']) || $_GET['from']==0): ?>
                                                        <img class="img-responsive" src="<?php echo e(CommonClass::getDomain().'/'.CommonClass::getAvatar($v['to_uid'])); ?>"  onerror="onerrorImage('<?php echo e(Theme::asset()->url('images/defauthead.png')); ?>',$(this))"alt="...">
                                                    <?php elseif(!empty($_GET['from']) && $_GET['from']==1): ?>
                                                        <img class="img-responsive" src="<?php echo e(CommonClass::getDomain().'/'.CommonClass::getAvatar($v['from_uid'])); ?>"  onerror="onerrorImage('<?php echo e(Theme::asset()->url('images/defauthead.png')); ?>',$(this))"alt="...">
                                                    <?php endif; ?>
                                                    <div class="g-valuimgbg"></div>
                                                </div>
                                                <div class="space-6"></div>
                                                <p class="text-center g-valuin p-space"><a href="javascript:;" class=" cor-blue2f"><?php echo e($v['nickname']); ?></a></p>
                                        </div>
                                </div>
                                <div class="col-sm-11 col-xs-9 s-myborder">
                                    <div class="clearfix">
                                        <span class=" pull-left text-muted text-size12 cor-gray87 s-myname">任务：<a  class="cor-blue42" target="_blank" href="<?php echo e(url('task',['id'=>$v['task_id']])); ?>">  <?php echo e($v['title']); ?></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;成交价：￥<?php echo e($v['bounty']); ?></span>
                                        <a class="pull-right cor-gray87 text-size12" href="javascript:;"><?php echo e(date('Y-m-d',strtotime($v['task_create']))); ?></a>
                                    </div>
                                    <div class="space-6"></div>
                                    <div class="p-space">
                                        <p class="cor-gray51 text-size14"><?php echo e(str_limit($v['comment'],120)); ?></p>
                                    </div>
                                    <div class="space-2"></div>
                                    <div class="clearfix">
                        <span class="cor-gray87 z-hov">
                            本次终合评分：<span class="cor-orange"><?php echo e($v['globle_score']); ?> </span><i class="u-evaico"></i>
                            <div class="u-recordstar b-border">
                                <div>
                                    工作速度：
                                    <?php for($i=0;$i<$v['speed_score'];$i++): ?>
                                        <span class="rec-active"></span>
                                    <?php endfor; ?>
                                    <?php for($i=0;$i<(5-$v['speed_score']);$i++): ?>
                                        <span></span>
                                    <?php endfor; ?>
                                    <a class="cor-orange mg-left"><?php echo e($v['speed_score']); ?>分 </a>
                                    <?php if($v['speed_score']>4 && $v['speed_score']<=5): ?>
                                        - 速度很快
                                    <?php elseif($v['speed_score']>3 && $v['speed_score']<=4): ?>
                                        - 速度一般
                                    <?php elseif($v['speed_score']>2 && $v['speed_score']<=3): ?>
                                        - 速度较慢
                                    <?php else: ?>
                                        - 速度很慢
                                    <?php endif; ?>
                                </div>
                                <div class="space-8"></div>
                                <div>
                                    工作质量：
                                    <?php for($i=0;$i<$v['quality_score'];$i++): ?>
                                        <span class="rec-active"></span>
                                    <?php endfor; ?>
                                    <?php for($i=0;$i<(5-$v['quality_score']);$i++): ?>
                                        <span></span>
                                    <?php endfor; ?>
                                    <a class="cor-orange mg-left"><?php echo e($v['quality_score']); ?>分 </a>
                                    <?php if($v['quality_score']>4 && $v['quality_score']<=5): ?>
                                        - 质量很高
                                    <?php elseif($v['quality_score']>3 && $v['quality_score']<=4): ?>
                                        - 质量一般
                                    <?php elseif($v['quality_score']>2 && $v['quality_score']<=3): ?>
                                        - 质量较低
                                    <?php else: ?>
                                        - 质量很低
                                    <?php endif; ?>
                                </div>
                                <div class="space-8"></div>
                                <div>
                                    工作态度：
                                    <?php for($i=0;$i<$v['attitude_score'];$i++): ?>
                                        <span class="rec-atv"></span>
                                    <?php endfor; ?>
                                    <?php for($i=0;$i<(5-$v['attitude_score']);$i++): ?>
                                        <span></span>
                                    <?php endfor; ?>
                                    <a class="cor-orange mg-left"><?php echo e($v['attitude_score']); ?>分 </a>
                                    <?php if($v['attitude_score']>4 && $v['attitude_score']<=5): ?>
                                        - 态度很好
                                    <?php elseif($v['attitude_score']>3 && $v['attitude_score']<=4): ?>
                                        - 速度一般
                                    <?php elseif($v['attitude_score']>2 && $v['attitude_score']<=3): ?>
                                        - 态度较差
                                    <?php else: ?>
                                        - 态度很差
                                    <?php endif; ?>
                                </div>
                            </div>
                        </span>
                                    </div>
                                    <div class="g-userborbtm"></div>
                                </div>
                        </div>
                        <div class="space"></div>
                        <?php endforeach; ?>
                        <div class="clearfix">
                            <?php /*<ul class="pagination pull-right">*/ ?>
                                <?php /*<?php if(!is_null($comment['prev_page_url'])): ?>*/ ?>
                                    <?php /*<li><a href="<?php echo URL('user/myCommentOwner').'?'.http_build_query(array_merge($merge,['page'=>$comment['current_page']-1])); ?>">&lt;</a></li>*/ ?>
                                <?php /*<?php endif; ?>*/ ?>
                                <?php /*<?php if($comment['last_page']>1): ?>*/ ?>
                                    <?php /*<?php for($i=1;$i<=$comment['last_page'];$i++): ?>*/ ?>
                                        <?php /*<li class="<?php echo e(($i==$comment['current_page'])?'active':''); ?>"><a href="<?php echo URL('user/myCommentOwner').'?'.http_build_query(array_merge($merge,['page'=>$i])); ?>" class="bg-blue"><?php echo e($i); ?></a></li>*/ ?>
                                    <?php /*<?php endfor; ?>*/ ?>
                                <?php /*<?php endif; ?>*/ ?>
                                <?php /*<?php if(!is_null($comment['next_page_url'])): ?>*/ ?>
                                    <?php /*<li><a href="<?php echo URL('user/myCommentOwner').'?'.http_build_query(array_merge($merge,['page'=>$comment['current_page']+1])); ?>">&gt;</a></li>*/ ?>
                                <?php /*<?php endif; ?>*/ ?>
                            <?php /*</ul>*/ ?>
                            <div class="pull-right">
                                <?php echo $comment_page->appends($_GET)->render(); ?>

                            </div>
                        </div>
                    </div>
                    <?php else: ?>
                        <div class="g-nomessage">暂无消息哦 ！</div>
                    <?php endif; ?>
                </div>

<?php echo Theme::asset()->container('custom-css')->usepath()->add('messages','css/usercenter/messages/messages.css'); ?>

<?php echo Theme::asset()->container('custom-css')->usepath()->add('usercenter','css/usercenter/usercenter.css'); ?>

<?php echo Theme::asset()->container('custom-js')->usepath()->add('ownercomment','js/doc/ownercomment.js'); ?>