<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0104)https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true -->
<html lang="ja-JP"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="Cache-Control" content="no-cache">
	<meta http-equiv="Expires" content="-1">
	<meta http-equiv="Content-Style-Type" content="text/css">
	<meta http-equiv="Content-Script-Type" content="text/javascript">
	<!--meta http-equiv="X-UA-Compatible" content="IE=emulateIE7"-->
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="keywords" content="">
	<meta name="description" content="">
	<meta name="referrer" content="unsafe-url">
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="Cache-Control" content="no-cache">

	<title>	コンテンツ管理システム
</title>

		<link rel="stylesheet" type="text/css" href="./reset.css" media="all">
		<link rel="stylesheet" type="text/css" href="./normal.css" media="all">
		<link rel="stylesheet" type="text/css" href="./style_2020.css" media="all">
		<link rel="stylesheet" type="text/css" href="./jquery.datepick.css" media="all">
		<link rel="stylesheet" type="text/css" href="./prettyPopin.css" media="all">
		<link rel="stylesheet" type="text/css" href="./jquery.keypad.css" media="all">
		<link rel="stylesheet" type="text/css" href="./win.css" media="all">
			<script type="text/javascript" src="./jquery-1.11.2.min.js.ダウンロード"></script>
		<script type="text/javascript" src="./jquery.plugin.min.js.ダウンロード"></script>
		<script type="text/javascript" src="./jquery.keypad.js.ダウンロード"></script>
		<script type="text/javascript" src="./jquery-ui.js.ダウンロード"></script>
		<script type="text/javascript" src="./script.js.ダウンロード"></script>
		<script type="text/javascript" src="./jquery.datepick.js.ダウンロード"></script>
		<script type="text/javascript" src="./jquery.datepick-ja.js.ダウンロード"></script>
		<script type="text/javascript" src="./jquery.prettyPopin.js.ダウンロード"></script>
	</head>

<body id="pagetop" style="cursor: auto;">


<script type="text/javascript" charset="utf-8">
$(function() {
	
	if (true) {
		$("#TB").sortable({
		       items: 'tr.dataRow',
		       cursor: 'pointer',
		       axis: 'y',
		       dropOnEmpty: false,
		       start: function (e, ui) {
		           ui.item.addClass("selected");
		       },
		       stop: function (e, ui) {
		           ui.item.removeClass("selected");
		       }
		   });
	}
	
    $(".formlisttbl tr:nth-child(even) TD").addClass("even");
    $(".formlisttbl tr:nth-child(odd) TD").addClass("odd");

});

$(function() {
	$('input[id^="keypad"]').keypad({
		layout: ['789','456'+($).keypad.CLOSE,'123'+($).keypad.CLEAR,'-0.'+($).keypad.BACK],
		keypadOnly: true,
		onKeypress: function(key, value, inst) {
			if (value == ".") {
				$(this).val("");
			    return;
			}
			var result = false;
			switch(key) {
	            case "-":
	            	var minusIndex = value.lastIndexOf('-');
			    	if (minusIndex != 0) {
			    		result = true;
			    	}
	                break;
	            case ".":
	            	if (value.match(/\-\./g) || value.match(/\./g).length > 1) {
	            		result = true;
	            	}
	            	break;
	            default:
					if (($).isNumeric(key) && ((value.startsWith("-0") && value.length == 3) || (value.startsWith("0") && value.length == 2))) {
						result = true;
					}

	        }
			if (result) {
				var subStr = value.substring(0, value.lastIndexOf(key));
	    		$(this).val(subStr);
	    		return;
			}
		}
	}).keypad('option', 'backText', '⌫');
});

function enqueteBack(){
	        location.href="/acms/agtsales_ex/shop/quickReportManagement/reload/1"; // FIXME: search
}

//削除リンククリック
function delCheck(val, obj){
	var apertureId;
	var apertureDepth;
	var contentTypeFlg;
	var questionList = new Array();

			if(4 == 24 &&  67555 == val){
			contentTypeFlg = 4;
						}
			if(1 == 24 &&  67556 == val){
			contentTypeFlg = 1;
						}
			if(1 == 24 &&  67557 == val){
			contentTypeFlg = 1;
						}
			if(1 == 24 &&  67558 == val){
			contentTypeFlg = 1;
						}
		if(contentTypeFlg == 24){
																								questionList.forEach(function (question){
			var rowIndex = $("#selectGroupBox_"+question).parents('tr:first')[0].rowIndex;
		    document.getElementById('delQuestionId').value += question+",";
		    document.getElementById('TB').deleteRow(rowIndex);
		});
	}else{
	    var rowIndex = $(obj).parents('tr:first')[0].rowIndex;
	    document.getElementById('delQuestionId').value += val+",";
	    document.getElementById('TB').deleteRow(rowIndex);
	}

}

// 順序入れ替え
function swapRow(line, upDown){ // line:ボタンが押された行, upDown:上/下ボタン
    var TB=document.getElementById('TB');

    var maxRows = TB.rows.length - 1;
    var minRows = 1;
    if(upDown =='up' && line.parentNode.parentNode.rowIndex == minRows){ // 一番上で上ボタンを押した場合
        return;
    }
    if(upDown == 'down' && line.parentNode.parentNode.rowIndex + 1 > maxRows){ // 一番下で下ボタンを押した場合
        return;
    }

    var btn = jQuery(line).parent();
    var objTrTgt = btn.parent();    // これで一応TRが選択されている模様
    var objTgt ;
    if (upDown =='down') {
        // 下へ移動
        objTgt = objTrTgt.next();
        // 最上位、下位の場合はobjTgtはNULLになります。
        objTrTgt.insertAfter(objTgt);
    } else {
        // 上へ移動
        objTgt = objTrTgt.prev();
        objTrTgt.insertBefore(objTgt);
    }

    $(".formlisttbl tr:nth-child(even) TD").removeClass("odd").addClass("even");
    $(".formlisttbl tr:nth-child(odd) TD").removeClass("even").addClass("odd");
}

//削除対象がある場合は警告を出す。
function checkSubmit(){
	//非表示フラグ
	var connectFlgList = [];
	$('input[id^="connectFlg_"]').each(function() {
		var questionId = $(this).attr("id").split("_")[1];
		var value = $(this).prop('checked') ? "1" : "0";
		connectFlgList.push(questionId + "-" + value);
	});
	$('*[name="connectFlgList"]').val(connectFlgList.join(","));

	//非表示フラグ
	var hideFlgList = [];
	$('input[id^="hideFlg_"]').each(function() {
		var questionId = $(this).attr("id").split("_")[1];
		var value = $(this).prop('checked') ? "1" : "0";
		hideFlgList.push(questionId + "-" + value);
	});
	$('*[name="hideFlgList"]').val(hideFlgList.join(","));

    if(document.getElementById('delQuestionId').value != ""){
        if(confirm("削除対象があります。実行しますか?")){
            document.frm.submit();
        }
    }else{
        document.frm.submit();
    }
}

function noImage(val) {
    var img = val
    img.src="/acms/images/thum_no_image.jpg";
    //resizeThumbnail(img);
}

//全てチェック
function checkboxAllConnect(){
	//全てチェックボックスのチェックの値を取得
    var setCheck = document.getElementById("checkAllConnect").checked;
    //連結チェックボックスのオブジェクト取得
    var objs = $('input[id^="connectFlg_"]');
    if(objs != undefined && objs.length > 0 ){
        for(var i = 0; i < objs.length; i++){
        	//全てチェックボックスのチェックの値を連結チェックボックスのチェックの値に設定する
            objs[i].checked = setCheck;
        }
    }

}

                </script>


<div class="iu-text text-popup-title">
    <p>設問一覧</p>
</div>
<div class="button-popup-close" onclick="window.parent.closePopupDialog(); return false;"></div>
<div class="ifrm-container" id="popup_dialog" title=" " style="display:none;"></div>
<main>
<div id="wrapper">
    
        <div id="msgs" class="iu-header-box caution" style="margin-top:10px">
        
    </div>

    <form method="POST" action="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/questionUpdate/" name="frm">
        <input type="hidden" name="enqueteId" value="">
        <input type="hidden" name="delQuestionIdList" id="delQuestionId" value="">
        <input type="hidden" name="connectFlgList" value="">
        <input type="hidden" name="hideFlgList" value="">

                                    <input type="hidden" name="orderNoSortOld" value="67555">
                            <input type="hidden" name="orderNoSortOld" value="67556">
                            <input type="hidden" name="orderNoSortOld" value="67557">
                            <input type="hidden" name="orderNoSortOld" value="67558">
                        <table class="listdisp-table ui-sortable" id="TB" style="font-weight:500;width:960px;margin:0 auto;">
            <tbody><tr>
                <th scope="col" style="width:5%;text-align:center;" class="cell-list-header">No</th>
                <th scope="col" style="width:20%;text-align:center;" class="cell-list-header">設問名</th>
                <th scope="col" style="width:30%;text-align:center;" class="cell-list-header">回答方法</th>
                <th scope="col" style="width:10%;text-align:center;" class="cell-list-header"></th>
                <th scope="col" style="width:10%;text-align:center;" class="cell-list-header">連結
                    <!-- 全てチェックボックス -->
                    <input type="checkbox" id="checkAllConnect" name="checkAllConnect" onclick="checkboxAllConnect(this);">

                </th>
                <!-- 非表示区分を削除します。
                 <th scope="col" style="width:10%;text-align:center;" class="cell-list-header">非表示</th> -->

                                                <th scope="col" style="width:10%;text-align:center;" class="cell-list-header">表示順</th>
                <th scope="col" style="width:5%;text-align:center;" class="cell-list-header">削 除</th>
                                            </tr>

                                        <tr id="0" class="dataRow ui-sortable-handle">
										                     <!-- No -->
                    <td style="vertical-align:top;text-align:center;">
                            <a class="normallink" href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" onclick="showUrlInDialog(&#39;/acms/agtsales_ex/shop/questionEntry/questionUpdate/11312/67555/?noHeader=true&amp;doubleDialog=true&#39;, 800, 800); return false;">5</a>
                    </td>
                    <!-- 設問名 -->
                    <td class="breaktext" style="vertical-align:top;text-align:left;">
                        <div class="breaktext cell-list-center">
                            <a class="normallink" href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" onclick="showUrlInDialog(&#39;/acms/agtsales_ex/shop/questionEntry/questionUpdate/11312/67555/?noHeader=true&amp;doubleDialog=true&#39;, 800, 800); return false;">テスト
</a><br>
                        
                        </div>
                    </td>
                    <!-- 回答方法 -->
                    <td class="breaktext" style="vertical-align:top">
                    
                                                                        <input class="cell-list-center" type="text" name="q_5_67555" value="" size="20">
                                                                                            </td>

					<td></td>
                    <!-- 連結 -->
                                            <td style="text-align:center;vertical-align:top;padding-top:12px">
                            <input type="checkbox" id="connectFlg_67555" value="">
                        </td>
                    
                                                                    <td style="text-align:center;vertical-align:top;">
                            <a class="cell-list-center" style="display:inline; " href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" onclick="swapRow(this, &#39;up&#39;)">▲</a>
                            <a href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" style="display: inline;" onclick="swapRow(this,&#39;down&#39;)">▽</a>
                        </td>
                        <td style="text-align:center;vertical-align:top;">
                        <!--簡易帳票以外は削除ボタンを表示する -->
                         <!-- 絞り検索 -->
                         	<div class="iu-0 icon-common2 button-0" style="margin-left:5px;">
                                                       </div>
                            <input type="hidden" name="orderNoSort" value="67555">
                        </td>
                                                            </tr>
                            <tr id="2" class="dataRow ui-sortable-handle" style="">
										                     <!-- No -->
                    <td style="vertical-align:top;text-align:center;">
                            <a class="normallink" href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" onclick="showUrlInDialog(&#39;/acms/agtsales_ex/shop/questionEntry/questionUpdate/11312/67557/?noHeader=true&amp;doubleDialog=true&#39;, 800, 800); return false;">7</a>
                    </td>
                    <!-- 設問名 -->
                    <td class="breaktext" style="vertical-align:top;text-align:left;">
                        <div class="breaktext cell-list-center">
                            <a class="normallink" href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" onclick="showUrlInDialog(&#39;/acms/agtsales_ex/shop/questionEntry/questionUpdate/11312/67557/?noHeader=true&amp;doubleDialog=true&#39;, 800, 800); return false;">②
</a><br>
                        
                        </div>
                    </td>
                    <!-- 回答方法 -->
                    <td class="breaktext" style="vertical-align:top">
                                            <table style="width: 100%;">
                            <tbody><tr style="background-color:transparent;">
                                                                                                
                                
                                                                                                            
                                                                        
                                    <td width="90%" colspan="1" style="border:0px;vertical-align:top;background-color:transparent">
                                        <table style="width:100%">
                                        <tbody><tr>
                                            <td style="width:15px;vertical-align:top;padding:0;border:0px solid red;background-color:transparent">
                                                                                                                                                <input class="cell-list-center" type="checkbox" id="q_7_67557_a_1_125531" value="">
                                                                                            </td>
                                            <td style="width:auto;vertical-align:top;padding:0;padding-left:2px;border:0px;background-color:transparent;word-break:break-all">
                                            <label class="cell-list-center" style="height:100%;display: inline-block;vertical-align: top;line-height:100%" for="q_7_67557_a_1_125531">②</label>
                                                                                                                                                                                                    
                                                                                                                                            </td>
                                        </tr>
                                        </tbody></table>
                                    </td>
                                                            </tr>
                        </tbody></table>
                                        </td>

					<td></td>
                    <!-- 連結 -->
                                            <td style="text-align:center;vertical-align:top;padding-top:12px">
                            <input type="checkbox" id="connectFlg_67557" value="">
                        </td>
                    
                                                                    <td style="text-align:center;vertical-align:top;">
                            <a class="cell-list-center" style="display:inline; " href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" onclick="swapRow(this, &#39;up&#39;)">▲</a>
                            <a href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" style="display: inline;" onclick="swapRow(this,&#39;down&#39;)">▽</a>
                        </td>
                        <td style="text-align:center;vertical-align:top;">
                        <!--簡易帳票以外は削除ボタンを表示する -->
                         <!-- 絞り検索 -->
                         	<div class="iu-0 icon-common2 button-0" style="margin-left:5px;">
                                                       </div>
                            <input type="hidden" name="orderNoSort" value="67557">
                        </td>
                                                            </tr><tr id="3" class="dataRow ui-sortable-handle" style="">
										                     <!-- No -->
                    <td style="vertical-align:top;text-align:center;">
                            <a class="normallink" href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" onclick="showUrlInDialog(&#39;/acms/agtsales_ex/shop/questionEntry/questionUpdate/11312/67558/?noHeader=true&amp;doubleDialog=true&#39;, 800, 800); return false;">8</a>
                    </td>
                    <!-- 設問名 -->
                    <td class="breaktext" style="vertical-align:top;text-align:left;">
                        <div class="breaktext cell-list-center">
                            <a class="normallink" href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" onclick="showUrlInDialog(&#39;/acms/agtsales_ex/shop/questionEntry/questionUpdate/11312/67558/?noHeader=true&amp;doubleDialog=true&#39;, 800, 800); return false;">③
</a><br>
                        
                        </div>
                    </td>
                    <!-- 回答方法 -->
                    <td class="breaktext" style="vertical-align:top">
                                            <table style="width: 100%;">
                            <tbody><tr style="background-color:transparent;">
                                                                                                
                                
                                                                                                            
                                                                        
                                    <td width="90%" colspan="1" style="border:0px;vertical-align:top;background-color:transparent">
                                        <table style="width:100%">
                                        <tbody><tr>
                                            <td style="width:15px;vertical-align:top;padding:0;border:0px solid red;background-color:transparent">
                                                                                                                                                <input class="cell-list-center" type="checkbox" id="q_8_67558_a_1_125532" value="">
                                                                                            </td>
                                            <td style="width:auto;vertical-align:top;padding:0;padding-left:2px;border:0px;background-color:transparent;word-break:break-all">
                                            <label class="cell-list-center" style="height:100%;display: inline-block;vertical-align: top;line-height:100%" for="q_8_67558_a_1_125532">③</label>
                                                                                                                                                                                                    
                                                                                                                                            </td>
                                        </tr>
                                        </tbody></table>
                                    </td>
                                                            </tr>
                        </tbody></table>
                                        </td>

					<td></td>
                    <!-- 連結 -->
                                            <td style="text-align:center;vertical-align:top;padding-top:12px">
                            <input type="checkbox" id="connectFlg_67558" value="">
                        </td>
                    
                                                                    <td style="text-align:center;vertical-align:top;">
                            <a class="cell-list-center" style="display:inline; " href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" onclick="swapRow(this, &#39;up&#39;)">▲</a>
                            <a href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" style="display: inline;" onclick="swapRow(this,&#39;down&#39;)">▽</a>
                        </td>
                        <td style="text-align:center;vertical-align:top;">
                        <!--簡易帳票以外は削除ボタンを表示する -->
                         <!-- 絞り検索 -->
                         	<div class="iu-0 icon-common2 button-0" style="margin-left:5px;">
                                                       </div>
                            <input type="hidden" name="orderNoSort" value="67558">
                        </td>
                                                            </tr><tr id="1" class="dataRow ui-sortable-handle" style="">
										                     <!-- No -->
                    <td style="vertical-align:top;text-align:center;">
                            <a class="normallink" href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" onclick="showUrlInDialog(&#39;/acms/agtsales_ex/shop/questionEntry/questionUpdate/11312/67556/?noHeader=true&amp;doubleDialog=true&#39;, 800, 800); return false;">6</a>
                    </td>
                    <!-- 設問名 -->
                    <td class="breaktext" style="vertical-align:top;text-align:left;">
                        <div class="breaktext cell-list-center">
                            <a class="normallink" href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" onclick="showUrlInDialog(&#39;/acms/agtsales_ex/shop/questionEntry/questionUpdate/11312/67556/?noHeader=true&amp;doubleDialog=true&#39;, 800, 800); return false;">①
</a><br>
                        
                        </div>
                    </td>
                    <!-- 回答方法 -->
                    <td class="breaktext" style="vertical-align:top">
                                            <table style="width: 100%;">
                            <tbody><tr style="background-color:transparent;">
                                                                                                
                                
                                                                                                            
                                                                        
                                    <td width="90%" colspan="1" style="border:0px;vertical-align:top;background-color:transparent">
                                        <table style="width:100%">
                                        <tbody><tr>
                                            <td style="width:15px;vertical-align:top;padding:0;border:0px solid red;background-color:transparent">
                                                                                                                                                <input class="cell-list-center" type="checkbox" id="q_6_67556_a_1_125530" value="">
                                                                                            </td>
                                            <td style="width:auto;vertical-align:top;padding:0;padding-left:2px;border:0px;background-color:transparent;word-break:break-all">
                                            <label class="cell-list-center" style="height:100%;display: inline-block;vertical-align: top;line-height:100%" for="q_6_67556_a_1_125530">①</label>
                                                                                                                                                                                                    
                                                                                                                                            </td>
                                        </tr>
                                        </tbody></table>
                                    </td>
                                                            </tr>
                        </tbody></table>
                                        </td>

					<td></td>
                    <!-- 連結 -->
                                            <td style="text-align:center;vertical-align:top;padding-top:12px">
                            <input type="checkbox" id="connectFlg_67556" value="">
                        </td>
                    
                                                                    <td style="text-align:center;vertical-align:top;">
                            <a class="cell-list-center" style="display:inline; " href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" onclick="swapRow(this, &#39;up&#39;)">▲</a>
                            <a href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#" style="display: inline;" onclick="swapRow(this,&#39;down&#39;)">▽</a>
                        </td>
                        <td style="text-align:center;vertical-align:top;">
                        <!--簡易帳票以外は削除ボタンを表示する -->
                         <!-- 絞り検索 -->
                         	<div class="iu-0 icon-common2 button-0" style="margin-left:5px;">
                                                       </div>
                            <input type="hidden" name="orderNoSort" value="67556">
                        </td>
                                                            </tr>
                            
                            
                    </tbody></table>
        <div class="iu-box-popup-footer boxPos" style="width:960px;">
         <!--シンプルフォームもしくは、OZフォームの場合 -->
            					            		            <div class="button-common iu-search-button" style="width:18%; left:20%;" id="updateBtnDis" onclick="checkSubmit()">
		                <div class="iu-text text-in-button">
		                    <span><b>更&nbsp;新</b></span>
		                </div>
		            </div>
	            
	            	            	            <div class="button-common iu-box-update-next-button" style="width:18%; left:40%; background-color:#8080c0;" onclick="showUrlInDialog(&#39;/acms/agtsales_ex/shop/questionEntry/?noHeader=true&amp;doubleDialog=true&#39;, 800, 800); return false;">
	                <div class="iu-text text-in-button">
	                    <span>設問追加</span>
	                </div>
	            </div>
	            	            	            <div class="button-common iu-box-update-next-button" style="width:18%; left:80%; background-color:#959595;" onclick="showUrlInDialog(&#39;/acms/agtsales_ex/shop/taskItemIdEntry/init/11312/?noHeader=true&amp;doubleDialog=true&#39;, 800, 800); return false;">
	                <div class="iu-text text-in-button">
	                    <span>項目ID設定</span>
	                </div>
	            </div>
                        <div class="button-common iu-box-update-next-button" style="width:20%; background-color:#959595;" onclick="showUrlInDialog(&#39;/acms/agtsales_ex/shop/taskItemIdEntry/init/11312/?noHeader=true&amp;doubleDialog=true&#39;, 800, 800); return false;">
                <div class="iu-text text-in-button">
                    <span>項目ID設定</span>
                </div>
            </div>
                </div>
    </form>

    <div class="push"></div>
    <div class="pagetop">
        <a href="https://check.abookcloud.com/acms/agtsales_ex/shop/questionSearch/quickReportList/11312/1/?noHeader=true#pagetop">
            <img src="./pagetop.png">
        </a>
    </div>
</div>
</main>

<script type="text/javascript" charset="utf-8">
</script>


<div class="keypad-popup" style="display: none;"></div></body></html>