index.html 17.3 KB
<style>
    .row .col-md-3{
        width: 16rem;
    }
    .basicinfo {
        margin: 15px 0;
    }

    .basicinfo .row > .col-xs-4 {
        padding-right: 0;
    }
    .sidenav{
        border-right: 3px solid rgb(108, 115, 173);
        height: 700px;
        background-color: #f7f9fc;
    }
    .basicinfo .row > div {
        margin: 5px 0;
    }

    .user-baseinfo{
        border: 1px solid #e7e7e7;
        margin: 5px;
    }
    .user-baseinfo .item_title{
        height: 40px;
        border-bottom: 1px solid #e7e7e7;
        line-height: 40px;
        padding-left: 30px;
        font-size: 16px;
    }
    .user-baseinfo .program{
        min-height: 140px;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 30px;
        width: 85%;
    }
    .user-baseinfo .program .pic{
        padding:20px 0px;
        width: 70px;
        height:70px;
        color: #fff;
        background-color: rgb(245, 127, 23);
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }
    .user-baseinfo .program .program_right{
        min-height: 75px !important;
        margin-left: 40px;
    }

    .user-baseinfo .program .program_name{
        color: rgb(245, 127, 23);
        font-size: 16px;
    }
    .user-baseinfo .program  .program_time{
        font-size: 14px;
        color: rgb(245, 127, 23);
    }
    .user-baseinfo .title2{
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        padding-left: 30px;
        background-color: rgb(241, 245, 251);
        border-top: 1px solid #e7e7e7;
        border-bottom: 1px solid #e7e7e7;
    }
    .program_info{
        height: 140px;
        padding-left: 30px;
        padding-top: 15px;
    }
    .program_info table{
        width: 80%;
    }
    .program_info table tr{
        height: 26px;
    }
    .program_info button{
        width: 45px;
        height: 20px;
        background-color: rgb(0, 147, 237);
        color: #fff;
        border: none;
    }
    .other{
        width: 40%;
        height: 40px;
        margin-left: -5px;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        border-left: none;
    }
    .other li{
        color: rgb(0, 147, 237) !important;
    }
    .processTable{
        width: 100%;
        height: 150px;
    }
    .processTable tr{
        border: 1px solid #e7e7e7;
    }
    .processTable tr:first-child{
        font-weight: bold;
    }
    .processTable tr td:first-child{
        text-align: center;
    }
    .processTable tr td:nth-child(2){
        padding-left: 35px;
    }
    /*.processTable tr td:nth-child(3){*/
    /*	padding-left: 35px;*/
    /*}*/
    .processTable td{
        line-height: 30px;
    }
    .last{
        color: rgb(0, 147, 237);
    }
    .rotation{
        width: 100%;
        height: 200px;
    }
    .rotation img{
        width: 100%;
        height: 100%;
    }
    .center{
        text-align: center;
    }
    .active a{
        color: #6970ac !important;
        font-weight: bold;
    }
    .col-md-9{
        margin-top: 30px;
    }
    .verify {
        position: absolute;
        right: 25px;
        top:0px;
        border:2px solid #E5A0A9;
    }
</style>
<div class="rotation">
    <img src="__CDN__/assets/img/teacherRotation.png" />
</div>
<div id="content-container" class="container">

    <div class="row">
        <div class="col-md-3">
            {include file="common/sidenav" /}
        </div>

        <div class="col-md-9">
            <div class="panel panel-default">
                <div class="panel-body">
                    <h2 class="page-header">
                        我的大创
                        <text>共</text>
                        <text style="color: #0093ed;">{$_list_count}</text>
                        <text>项目</text>
                    </h2>
                    <div class="row user-baseinfo">
                        <div class="main_right" >
                            {foreach name="_list" item="vo"}
                            <div class="dc_item">
                                <div class="item_title">
                                    <div class="circular"></div>
                                    <p style="margin: 0;">{$vo.container_name}</p>
                                </div>
                                <div class="program">
<!--                                    {if $vo.review_stage == 0 && $vo.project_approval_status == 0 && $vo.qr_code}-->
<!--                                    <div class="verify">-->
<!--                                        <a title="教师审核二维码"  href="javascript:;" id="qr_code"><img src="{$vo.qr_code}" width="75" height="75" ></a>-->
<!--                                    </div>-->
<!--                                    {/if}-->
                                    <div class="pic">
                                        <text class="iconfont" style="font-size: 1.5rem;">&#xe617;</text>
                                        <text class="center ">
                                            {switch name="vo.review_stage" }
                                            {case value="1"}
                                            {if $vo.project_level > 0 && $vo.project_status == 0}
                                            已立项
                                            {else/}
                                            未立项
                                            {/if}
                                            {/case}
                                            {case value="2"}
                                            中期检查
                                            {/case}
                                            {case value="3"}
                                            项目结项
                                            {default /}
                                            未立项
                                            {/switch}
                                        </text>
                                    </div>
                                    <div class="program_right">

                                        <p class="program_name">{$vo.project_name}</p>
                                        <p class="program_intro">{$vo.project_des}</p>
                                        <p class="program_time iconfont">&#xe611;&nbsp;{$vo.name}</p>
                                    </div>

                                </div>

                                <p class="title2">项目信息 <a style="float: right; margin: 10px 10px 0px 0px;" class="btn btn-success btn-xs" href="javascript:;">{if $vo.is_captain == 2}队长{else/}队员{/if}</a></p>
                                <div class="program_info">
                                    <table border="0" cellspacing="0" cellpadding="2rem">
                                        <tr>
                                            <td>项目编号:{if $vo['project_no']} {$vo['project_no']}  {else/} 未编号 {/if}</td>
                                            <td>项目级别:{:pkLevel($vo['project_level'])}</td>
                                        </tr>
                                    </table>
                                    <ul class="other">
                                        <li> <a style="background-color:#3498DB;" class="btn btn-success btn-xs" href="{:url('index/member_change/index',array('id'=>$vo['id']))}">变更成员 </a></li>
                                        <li><a style="background-color:#3498DB;" class="btn btn-success btn-xs" href="{:url('index/project_achievements/PaperIndex',array('id'=>$vo['id']))}">成果录入</a></li>
                                    </ul>
                                </div>
                                <table border="1" borderColor="#333" cellspacing="0" class="processTable" >
                                    <tr >
                                        <td>流程名称</td>
                                        <td>起止时间</td>
                                        <td>状态</td>
                                        <td>操作</td>
                                    </tr>
                                    <tr>
                                        <td>项目申报</td>
                                        <td>
                                            {if $vo['can_apply_approval']}
                                            <text>{$vo.project_starttime | date="Y-m-d",###} 至 {$vo.project_endtime| date="Y-m-d",###}</text>
                                            <text>{:pkTime($vo.project_starttime , $vo.project_endtime)}</text>
                                            {else/}
                                            未开启
                                            {/if}
                                        </td>
                                        <td style="text-align: center;">
                                            {if $vo['can_apply_approval']}
                                            {if $vo['project_status'] == 0 }
                                            {if $vo['project_approval_status'] != 3}
                                            <text>审核中</text>
                                            {else/}
                                            <text>已审核</text>
                                            {/if}
                                            {elseif $vo['project_status'] == 1 }
                                            <text>已淘汰</text>
                                            {elseif $vo['project_status'] == 2 }
                                            <text>已退回</text>
                                            {else/}
                                            <text>已延期</text>
                                            {/if}
                                            {else/}
                                            --
                                            {/if}

                                        </td>
                                        <td style="text-align: center;">
                                            <a href="/project/enter/{$vo.project_type}/{$vo.id}" style="background-color:#3498DB;" class="btn btn-success btn-xs"><text>项目申报信息</text></a>
                                            <a href=javascript:; data-stage="0" data-id="{$vo.id}" style="background-color:#3498DB;" class="btn btn-success btn-xs verify_list"><text>审核信息</text></a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>中期检查</td>
                                        <td>
                                            {if $vo['can_apply_mid']}
                                            <text>{$vo.midterm_review_starttime | date="Y-m-d",###} 至 {$vo.midterm_review_endtime| date="Y-m-d",###}</text>
                                            <text>{:pkTime($vo.midterm_review_starttime , $vo.midterm_review_endtime)}</text>
                                            {else/}
                                            未开启
                                            {/if}
                                        </td>
                                        <td style="text-align: center;">
                                            {if $vo['can_apply_mid']}
                                            {if $vo['project_status'] == 0 }
                                            {if $vo['mid_attachment'] == ''}
                                            <text>未提交</text>
                                            {else/}
                                            {if $vo['project_metaphase_status'] == 3}
                                            <text>已审核</text>
                                            {else/}
                                            <text>审核中</text>
                                            {/if}
                                            {/if}
                                            {elseif $vo['project_status'] == 1 }
                                            <text>已淘汰</text>
                                            {elseif $vo['project_status'] == 2 }
                                            <text>已退回</text>
                                            {else/}
                                            <text>已延期</text>
                                            {/if}
                                            {else/}
                                            --
                                            {/if}

                                        </td>
                                        <td style="text-align: center;">
                                            {if ($vo['can_apply_mid']) && (time() > $vo.midterm_review_starttime && time() < $vo.midterm_review_endtime)}
                                            <a style="background-color:#3498DB;" class="btn btn-success btn-xs" href="{:url('index/review/midterm',array('id'=>$vo['id']))}">中期检查信息</a>
                                            <a style="background-color:#3498DB;" href=javascript:; class="btn btn-success btn-xs verify_list" data-stage="1" data-id="{$vo.id}"><text>审核信息</text></a>
                                            {else/}
                                            <a class="btn btn-default btn-xs" disabled href="javascript:;">中期检查信息</a>
                                            <a href=javascript:; class="btn btn-default btn-xs" disabled><text>审核信息</text></a>
                                            {/if}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>项目结题</td>
                                        <td>
                                            {if $vo['can_apply_conclusion']}
                                            <text>{$vo.conclusion_starttime | date="Y-m-d",###} 至 {$vo.conclusion_endtime| date="Y-m-d",###}</text>
                                            <text>{:pkTime($vo.conclusion_starttime , $vo.conclusion_endtime)}</text>
                                            {else/}
                                            未开启
                                            {/if}
                                        </td>
                                        <td style="text-align: center;">
                                            {if $vo['can_apply_conclusion']}
                                            {if $vo['project_status'] == 0 }
                                            {if $vo['conclusion_attachment'] == ''}
                                            <text>未提交</text>
                                            {else/}
                                            {if $vo['project_conclusion_status'] == 3}
                                            <text>已审核</text>
                                            {else/}
                                            <text>审核中</text>
                                            {/if}
                                            {/if}
                                            {elseif $vo['project_status'] == 1 }
                                            <text>已淘汰</text>
                                            {elseif $vo['project_status'] == 2 }
                                            <text>已退回</text>
                                            {else/}
                                            <text>已延期</text>
                                            {/if}
                                            {else/}
                                            --
                                            {/if}
                                        </td>
                                        <td style="text-align: center;">
                                            {if condition="($vo['can_apply_conclusion']) && (time() > $vo.conclusion_starttime && time() <$vo.conclusion_endtime)"}
                                            <a style="background-color:#3498DB;" class="btn btn-success btn-xs" href="{:url('index/review/conclusion',array('id'=>$vo['id']))}">项目结题信息</a>
                                            <a style="background-color:#3498DB;" class="btn btn-success btn-xs verify_list" href=javascript:;  data-stage="2" data-id="{$vo.id}"><text>审核信息</text></a>
                                            {else /}
                                            <a class="btn btn-default btn-xs" disabled href="javascript:;">项目结题信息</a>
                                            <a href=javascript:; class="btn btn-default btn-xs" disabled><text>审核信息</text></a>
                                            {/if}
                                        </td>
                                    </tr>
                                </table>


                            </div>
                            {/foreach}

                            <div class="pull-right" style="padding-right: 20px">
                                {$_list->render()}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>