AaDayhtml

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="ja">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=1.0">
<meta charset="UTF-8" name="description" th:content="#{D30.title}">
    <!--/* CSRF */-->
    <meta name="_csrf" th:content="${_csrf == null ?  '' : _csrf.token}" />
    <!--/* default header name is X-CSRF-TOKEN */-->
    <meta name="_csrf_header" th:content="${_csrf == null ? '' : _csrf.headerName}" />
    <link rel="icon" type="image/png"  sizes="16x16 24x24 32x32 48x48" th:href="@{/images/favicons.png}">
    <link rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}"/>
    <link rel="stylesheet" href="../static/css/header.css" th:href="@{/css/header.css}">
    <link rel="stylesheet" href="../static/css/footer.css" th:href="@{/css/footer.css}">
    <link rel="stylesheet"  href="../static/css/common.css"  th:href="@{/css/common.css}" />
    <link rel="stylesheet"  href="../static/css/competitionList.css"  th:href="@{/css/competitionList.css}" />
    <link rel="stylesheet"  href="../static/css/aaay.css"  th:href="@{/css/aaay.css}" />
    <link rel="stylesheet" th:href="@{/css/dayList.css}">
    <title th:text="#{D30.title}"></title>
</head>
<body>
    <div th:replace="header::header"></div>
    <main>
        <div class="day-title-frame">
            <span class="day-title-text" th:text="#{D30.title}"></span>
        </div>
        <div class="main-content-frame">
        <table>
                    <tr>
                        <th class="align-center" th:text="#{D30.table.item1}"></th>
                        <th class="align-center" th:text="#{D30.table.item2}"></th>
                        <th class="align-center" th:text="#{D30.table.item3}"></th>
                        <th class="align-center" th:text="#{D30.table.item4}"></th>
                        <th class="align-center min-size" th:text="#{D30.table.item5}"></th>
                    </tr>
                <th:block th:each="aadayEntity,stat : ${aadayList}">
                    <tr>
                        <td class="align-left" th:text="${aadayEntity.campaign_day_name}">
                        </td>
                        <td class="align-center" >
                                <th:block th:switch="${aadayEntity.titie_type}">
                                    <span th:case=1 th:text="#{D30.day.status0}"></span>
                                    <span th:case=2 th:text="#{D30.day.status1}"></span>
                                    <span th:case=3 th:text="#{D30.day.status2}"></span>
                                    <span th:case=4 th:text="#{D30.day.status3}"></span>
                                </th:block>
                        </td>
                        <td class="align-center">
                            <span th:text="${aadayEntity.startdate}"></span><br/>
                            <span th:text="${aadayEntity.enddate}"></span></td>
                        <td class="align-center" >
                            <button type="button" class="operation_button-4" th:text="#{D30.preview.PC}" th:οnclick="|PreviewScreenMy('__${aadayEntity.dayId}__', true)|"></button>
                            <button type="button" class="operation_button-4" th:text="#{D30.preview.SP}" th:οnclick="|PreviewScreenMy('__${aadayEntity.dayId}__', false)|"></button>
                        </td>
                        <td class="button-width">
                            <div class="my-bottom-buttons">
                                <th:block th:if="${aadayEntity.titie_type} eq 1">
                                    <button id="buttonpublic" class="test-button operation_button-5"  th:text="#{D30.btn.item1}" th:disabled="false" th:οnclick="messagepublic([[${aadayEntity.campaign_day_name}]],[[${aadayEntity.campaign_competition_id}]],[[${aadayEntity.campaign_day_id}]],this);" ></button>
                                </th:block>
                                <th:block th:if="${aadayEntity.titie_type} neq 1">
                                    <button type="button" class="test-button operation_button-6" th:text="#{D30.btn.item1}" th:disabled="true"></button>
                                </th:block>
                                
                                <th:block th:if="${aadayEntity.titie_type} neq 3">
                                    <button id="buttonresult" type="button" class="operation_button-6" th:text="#{D30.btn.item2}" th:disabled="true"></button>
                                </th:block>
                                <th:block th:if="${aadayEntity.titie_type} eq 3">
                                    <button type="button" class="operation_button-5" th:text="#{D30.btn.item2}" th:disabled="false" th:οnclick="messagepublic([[${aadayEntity.campaign_day_name}]],[[#{D30.table.item2}]])"></button>
                                </th:block>
                                
                                <form th:action="@{/day/create?dayId={id}&competitionId={competitionId}(id=${aadayEntity.dayId},competitionId=${campaignCompetitionId.competitionId})}" method="post">
                                    <button type="submit" class="operation_button-5" th:text="#{D30.btn.item7}" th:disabled="false"></button>
                                </form>
                                
                                <button  class="operation_button-5" th:text="#{btn.dele}" th:disabled="false" th:οnclick="messagepublic([[${aadayEntity.campaign_day_name}]],[[#{D30.table.item4}]])"></button>
                            
                                <th:block th:if="${aadayEntity.titie_type} neq 1">
                                    <form th:action="@{/day/{id}/result(id=${aadayEntity.dayId})}" method="post">
                                         <button type="submit" class="operation_button-5" th:text="#{D30.btn.item3}" th:disabled="false" ></button>
                                    </form>
                                    
                                </th:block>
                                <th:block th:if="${aadayEntity.titie_type} eq 1">
                                    <button  class="operation_button-6" th:text="#{D30.btn.item3}" th:disabled="true"></button>
                                </th:block>
                            </div>
                        </td>
                    </tr>
                </th:block>
        </table>
        <div class="bottom-buttons-frame">
            <form th:action="@{/day/create}" class="button-frame-single" method="POST">
                    <input type="hidden" th:field="${campaignCompetitionId.competitionId}">
                    <button type="submit" class="min_plus_button" th:text="#{D30.btn.item4}" style="width:240;
                                                                                                    min-height: 60px;
                                                                                                    justify-content:space-around;
                                                                                                    vertical-align: middle;
                                                                                                    text-align: center;
                                                                                                    line-height: 200%;"></button>
            </form>
            <form th:action="@{/day/copy}" class="button-frame-single" method="POST">
                    <input type="hidden" th:field="${campaignCompetitionId.competitionId}">
                    <button type="submit" class="min_plus_button my-min">
                            <span th:text="#{D30.btn.item5}"></span>
                    </button>
            </form>
        </div>
        <div class="bottom-buttons-frame">
            <!-- <form th:action="@{/game/{id}/list(id=${campaignCompetitionId.gameId})/}" class="button-frame-single" method="get" enctype="multipart/form-data"> -->
            <form th:action="@{/game/{id}/list(id=${campaignCompetitionId.gameId})}" class="button-frame-single" method="get" enctype="multipart/form-data">
                    <button type="submit" class="min_plus_button my-min-reflect" οnclick="" th:text="#{D31.back}"></button>
            </form>
            
                <button id="D30btnitem6" class="min_plus_button my-min" th:οnclick="'daymakeAction(4,\''+${campaignCompetitionId.competitionId}+'\')'">
                    <span th:text="#{D30.btn.item6}"></span>
                </button>
            
        </div>
        </div>
        <div class="custom-file">
            <input  type="file" class="custom-file-input" name="accountList" id="accountListUrl" accept=".CSV">
            <label id="accountListLbl" class="custom-file-label" for="accountListUrl" data-browse="" th:text="#{D04.dataText}" ></label>
        </div>
    </main>
    <div th:replace="footer::footer"></div>
    <script th:src="@{/js/jquery-3.5.1.min.js}"></script>
    <script src="../static/js/bootstrap.min.js" th:src="@{/js/bootstrap.min.js}"></script>
    <script defer type="text/javascript" th:src="@{/js/common.js}"></script>
    <script defer type="text/javascript" th:src="@{/js/competitionList.js}"></script>
    <script src="../js/dayList.js" th:src="@{/js/dayList.js}"></script>
    <script type="text/javascript" th:inline="javascript">
        /*<![CDATA[*/
            var ctxPath = /*[[@{/}]]*/ '';
        /*]]>*/

        function messagepublic(title,competitionId,dayid,obj){
            
             showCustomConfirm(title,competitionId,function(){
                 showWaitingMask();
                var params = {};
                 params['campaign_competition_id'] = competitionId;
                params['campaign_day_id'] = dayid; 
/*                 params.campaign_competition_id = competitionId;
                params.campaign_day_id = dayid; */
                /* var formData = JSON.stringify(params); */
                /* console.log("formData"); */
                console.log(params);
                 $.ajax({
                    url: ctxPath + "competition/" + competitionId +"/list/myinfoOpen",
                    type: "POST",
                    data:JSON.stringify(params),
                    dataType: "json",
                    processData: false,
                    contentType: "application/json;charset:utf-8",
                    success: function (data) {
                        console.log("data--->"+data.dayListForm.campaign_competition_id);
                        console.log("data--->"+data['dayListForm'].campaign_day_id);
                          $(obj).attr('disabled',true);
                          $(obj).prop('disabled','disabled'); 
                          $(obj).css("background-color","gray"); 
                          
/*                           $("#buttonpublic").attr('disabled',true);
                    $("#buttonpublic").attr('disabled','disabled'); 
                        $("#buttonpublic").prop('disabled','disabled'); 
                        $("#buttonpublic").css("background-color","gray");  */
                    },
                    error:function () {
                        gotoError();
                    },
                    complete: function() {
                        // 待機マスクを閉じる 
                        hideWaitingMask();
                    }
                }); 
                
                
                    
            }) 
        }
        
        function daymakeAction(index,urlstring){

            switch (index){
            case 1:
                break;
            case 2:
                break;
            case 3:
                break;
            case 4:{
/*                 var html = " <input type='hidden' name='pageNum' value=20 />";
                $("#my-sub-div").append(html);
                var urlPrefix ="test";
                $('#D30btnitem6form').attr('method', 'get');
                $('#D30btnitem6form').attr('action', ctxPath + "campaign/"+"uuuu/"+urlPrefix+"/"+dayId );
                $('#D30btnitem6form').submit(); */
                
                /*             alert();
                var openUrl=ctxPath +"competition/"+ urlstring + "/list" + "/output" ;
                console.log('openUrl:', openUrl);
                window.location.href=openUrl; */
                //必须用submit形式,ajax方式writer.flush()无效
                    var params = {};
                    params['campaign_competition_id'] = 999;
                    params['campaign_day_id'] = 66; 
                    $.ajax({
                        url: ctxPath + "competition/" + urlstring + "/" + "30" + "/list" + "/output" ,
                        type: "POST",
                        data:JSON.stringify(params),
                        dataType: "json",
                        processData: false,
                        contentType: "application/json;charset:utf-8",
                        success: function (data) {

                        },
                        error:function () {
                            /* gotoError(); */
                        },
                        complete: function() {
                            // 待機マスクを閉じる 
                            /* hideWaitingMask(); */
                        }
                    }); 
            }
                break;
            default:
            }

        }
        
        
        function PreviewScreenMy(id, isPC) {
            var url = ctxPath + "day/";
            var competitionId = $('#competitionId').val();
            if(isPC == true) {
                url = url + competitionId + "/" + id + "/preview?mode=0";
                window.open(url,"PreviewScreenPC");
                $('.preview_button').attr('style', 'outline: 0;');
            } else {
                url = url + competitionId + "/" + id + "/preview?mode=1";
                window.open(url,"PreviewScreenSP","width=390,height=844,scrollbars=no,status=no,toolbar=no,location=no,menubar=no,directories=no,resizable=no");
                $('.preview_button').attr('style', 'outline: 0;');
            }
        }
    </script>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值