my_double.html 16.9 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473
<style>
    .rotation {
        width: 100%;
        height: 200px;
    }

    .rotation img {
        width: 100%;
        height: 100%;
    }
.sidenav{
    background-color: #f7f9fc;
    min-height: 700px;
    border-right: 3px solid rgb(108, 115, 173);
}
    .basicinfo {
        margin: 15px 0;
    }

    .basicinfo .row>.col-xs-4 {
        padding-right: 0;
    }

    .basicinfo .row>div {
        margin: 5px 0;
    }

    .user-baseinfo {
        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 {
        height: 140px;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 30px;
        width: 85%;
    }

    .user-baseinfo .program .pic {
        padding: 10px;
        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 {
        height: 75px;
    }

    .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);
    }

    .double_choose ul {
        padding-right: 70%;
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-direction: row;
        width: 100%;
        font-size: 16px;
        border-bottom: 1px solid rgb(238, 238, 238);
        margin-bottom: 20px;
    }

    .double_choose ul li {
        width: 100%;
        text-align: center;
        padding-bottom: 6px;
        padding-top: 6px;
    }

    .li_active {
        border-bottom: 2px solid #007AFF;
        color: #007AFF;
    }

    .sx_item {
        width: 100%;
        border: 1px solid rgb(238, 238, 238);
        margin-bottom: 30px;
    }

    /* 第六届互联网大赛 */
    .sx_item .sx_item_title {
        width: 100%;
        height: 40px;
        border-bottom: 1px solid rgb(238, 238, 238);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 30px;
    }

    .sx_item .sx_item_title .circular {
        color: #007AFF;
    }



    .sx_item .sx_item_title>text {
        color: orange;
    }

    .sx_item .sx_item_title>div>text {
        font-size: 14px
    }

    /* 参赛主体 */
    .sx_item_main {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 40px;
    }

    .sx_item_main img {
        border-radius: 50%;
    }

    .sx_item_main .title {
        font-size: 14px;
        font-weight: bold;
    }

    .sx_operation>div {
        position: absolute;
        left: 100px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 100px;
    }

    /* 比赛分类+获奖名次 */
    .js_info {
        display: flex;
        height: 40px;
        flex-direction: column;
        justify-content: space-between;
    }

    .js_info text {
        font-size: 12px;
        color: #a2a2a2;
    }

    .sx_declare {
        padding-top: 15px;
        color: #007AFF;
    }

    /* 报名信息按钮 */
    .sx_operation {
        position: absolute;
        right: 30px;
        bottom: 10px;
    }

    .sx_operation a {
        display: inline-block;
        text-align: center;
        cursor: pointer;
        width: 5rem;
        height: 1.875rem;
        background-color: #fff;
        border: 1px solid rgb(238, 238, 238);
        line-height: 1.875rem;

    }
    .brief{
        width: 95%;
        font-size: 0.9rem;
        overflow:hidden;
        text-overflow:ellipsis;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        word-break:break-all;

    }
    .left_part{
        width: 16rem !important;
    }
    .panel-body{
        min-height: 650px !important;
    }
    .panel-default{
        margin-top: 30px !important;
    }
</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 left_part">
            {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;">{$count}</text>
                        <text>项目</text>
                    </h2>


                    <div class="row user-baseinfo">
                        <div class="main_right">
                            <div class="double_choose">
                                <ul>
                                    <li style="cursor: pointer" data-type="1" {eq name="type" value="1" }
                                        class="li_active" {/eq}>申请的项目</li>
                                    <li style="cursor: pointer" data-type="2" {eq name="type" value="2" }
                                        class="li_active" {/eq}>创建的项目</li>
                                </ul>
                                {notempty name="apply_list"}
                                <div id="all_content">
                                    {foreach name="apply_list" item="vo"}
                                    <div class="sx_item">
                                        <div class="sx_item_title">
                                            <div style="display: flex;align-items: center;">
                                                <div class="circular"></div>
                                                <text>{$vo.container_name}</text>
                                            </div>
                                            <text>申请时间:{$vo.createtime|date='Y-m-d',###}</text>
                                        </div>

                                        <div style="padding-top: 10px; text-align: right; padding-right: 40px;color: #1187F5;">{$vo.status_text}</div>
                                        <div class="sx_item_main">
                                            <div style="width: 15%;">
                                                <div
                                                style="width:4rem;height: 4rem;margin-right: 1rem;background-color: #ebb563;line-height: 4rem;border-radius: 30px;text-align: center;color: #ffffff;font-size: 25px">{if ($vo.captain_type == 0)}学{else/}师{/if}
                                                </div>

                                            </div>
                                            <div style="width: 85%;overflow-x: hidden;">
                                                <a href="{:url('detail',['id'=>$vo['id']])}">
                                                    <p class="title brief">{$vo.project_name}</p>
                                                    <p class="title brief">{$vo.project_des}</p>
                                                </a>
                                            </div>
                                            <div class="sx_operation">
                                                {eq name="vo.is_complete" value="1"}
                                                    {eq name="vo.is_regiter" value="1"}
<!--                                                        <a href="javascript:;" data-id="{$vo.id}" data-project_type="{$vo.project_type}" class="btn-signup" id="signup">报名</a>-->
                                                    {else/}
                                                        {gt name="vo.register_id" value="0"}
                                                        <a  href="{:url('regiter_detail/index',['id'=>$vo['register_id']])}"  class="btn-signup regiter_detail" >项目详情</a>
                                                        {else/}
                                                        <a  href="{:url('detail',['id'=>$vo['id']])}"  class="btn-signup regiter_detail" >项目详情</a>
                                                        {/gt}


                                                    {/eq}

                                                {else/}
                                                    {if ($vo.proposer_state == 0)}
                                                        <a href="javascript:;" data-id="{$vo.apply_id}" id="del">撤销申请</a>
                                                        <a href="javascript:;" data-id="{$vo.apply_id}"
                                                           id="change_apply">变更申请信息</a>
                                                    {/if}
                                                {/eq}
                                            </div>
                                        </div>
                                    </div>
                                    {/foreach}
                                </div>
                                <div class="pull-right" style="padding-right: 20px">
                                    {$apply_list->render()}
                                </div>
                                {/notempty}
                                {notempty name="my_list"}
                                <div id="establish_content" class="taggle">
                                    {volist name="my_list" id="vo"}
                                    <div class="sx_item">
                                        <div class="sx_item_title">
                                            <div style="display: flex;align-items: center;">
                                                <div class="circular"></div>
                                                <text>{$vo.container_name}</text>
                                            </div>
                                            <text>申请时间:{$vo.createtime|date='Y-m-d',###}</text>
                                        </div>
                                        {eq name="vo.is_complete" value="1"} <div style="padding-top: 10px; text-align: right; padding-right: 40px;color: #46db7a;">{$vo.status_text}</div>{/eq}
                                        <div class="sx_item_main">

                                            <div class="pic">
                                                <div style="width:4rem;height: 4rem;margin-right: 1rem;background-color: #ebb563;line-height: 4rem;border-radius: 30px;text-align: center;color: #ffffff;font-size: 25px">
                                                    学</div>
                                            </div>
                                            <div style="width: 85%;">
                                                <a href="{:url('detail',['id'=>$vo['id']])}">
                                                    <p class="title brief">{$vo.project_name}</p>
                                                    <p class="sx_item_content brief">{$vo.project_des}</p>
                                                </a>
                                                <div class="sx_declare">
                                                    <text>待审成员人数:{$vo.student_count}</text>
                                                    {empty name="vo.register_id"} <a class="btn btn-info member_declare" data-id="{$vo.id}">审核成员</a>{/empty}
                                                </div>
                                                <div class="sx_declare">
                                                    <text>待审教师人数:{$vo.teacher_count}</text>

                                                    {empty name="vo.register_id"}   <a class="btn btn-info teacher_declare" data-id="{$vo.id}">审核教师</a>{/empty}
                                                </div>
                                                <div class="sx_operation">
                                                    {eq name="vo.is_complete" value="1"}
                                                    {eq name="vo.is_regiter" value="1"}
                                                    <a href="javascript:;" data-id="{$vo.id}" data-project_type="{$vo.project_type}" class="btn-signup" >报名</a>
                                                    {else/}
                                                        {gt name="vo.register_id" value="0"}
                                                        <a href="{:url('regiter_detail/index',['id'=>$vo['register_id']])}"  class="btn-signup regiter_detail" >项目详情</a>
                                                        {else /}
                                                        <a href="{:url('detail',['id'=>$vo['id']])}">项目详情</a>
                                                        {/gt}
                                                    {/eq}
                                                    {else/}
                                                    <button class="btn btn-info btn-finish"
                                                            data-id="{$vo.id}">完成双选</button>
                                                    <button class="btn btn-danger btn-del_apply"
                                                            data-id="{$vo.id}">删除</button>
                                                    {/eq}

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

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="modal2" style="padding-left: 20rem; display:none;">
    <form id="add-form" class="form-horizontal" name="applyteacher" role="form" data-toggle="validator" method="POST"
          onsubmit="return false;" style="margin-top:10px;" action="{:url('edit_apply')}">
        <div class="form-group">
            <div class="col-xs-12 col-sm-8">
                <label for="c-mobile">手机号:</label>
                <input id="c-mobile" class="form-control" data-rule="required,mobile" name="row[mobile]" type="text">
                <input id="c-id" class="form-control" name="row[id]" type="hidden">
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-8">
                <label for="c-proposer_details">申请理由和个人简介:</label>
                <textarea id="c-proposer_details" class="form-control " data-rule="required" rows="10"
                          name="row[proposer_details]" style="resize:none;" cols="50"></textarea>
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-success btn-update">提交</button>
            </div>
        </div>
    </form>
</div>