656 lines
21 KiB
Plaintext
656 lines
21 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ page import="java.util.*" %>
|
|
<%@include file= "/init.jsp" %>
|
|
<%
|
|
PersonBean person = (PersonBean)session.getAttribute(Constants.PERSON_BEAN);
|
|
String connector = person.getUserId();
|
|
|
|
%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
<!-- //JSTL 페이징 변수선언 -->
|
|
<c:set var="totalCount" value="${empty TOTAL_COUNT?0:TOTAL_COUNT}" />
|
|
<c:set var="maxPage" value="${empty MAX_PAGE_SIZE?1:MAX_PAGE_SIZE}" />
|
|
<c:set var="nPage" value="${empty param.page?1:param.page}" />
|
|
<c:set var="pageIndex" value="${(nPage-1)/10}" />
|
|
<c:set var="nextPage" value="${empty NEXT_PAGE?1:NEXT_PAGE}" />
|
|
<c:set var="prevPage" value="${empty PREV_PAGE?1:PREV_PAGE}" />
|
|
<c:set var="now" value="<%=new java.util.Date() %>"/>
|
|
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
|
|
|
|
<c:set var="connector" value="<%=connector %>" />
|
|
<script>
|
|
$(document).ready(function(){
|
|
|
|
if("${param.plant_cd}"!=""){
|
|
makeSelect("${param.plant_cd}");
|
|
$("#outc_cd6").val("${param.outc_cd6}");
|
|
}else{
|
|
var option="";
|
|
option += "<select name='outc_cd6' id='outc_cd6' type='select'>"
|
|
option += "<option value=''>선택</option>";
|
|
option += "</select>";
|
|
$("#outc_cd6_td").append(option);
|
|
|
|
$("#outc_cd6").select2();
|
|
|
|
}
|
|
|
|
$('.select2').select2();
|
|
/* $('#region_cd').select2();
|
|
|
|
$('#customer_cd').select2();
|
|
|
|
$('#orditem_cd').select2();
|
|
*/
|
|
|
|
|
|
$("#btnSearch").click(function(){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
});
|
|
|
|
//SR자료등록 팝업
|
|
$(".File").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
var docType =$(this).attr("data-docType");
|
|
var docTypeName = $(this).attr("data-docTypeName");
|
|
var params = "?targetObjId="+objId+"&docType="+docType+"&docTypeName="+docTypeName;
|
|
window.open("/projectConcept/FileRegistPopup.do"+params, "", "width=800, height=335");
|
|
});
|
|
|
|
//qna 팝업
|
|
$(".btnQna").click(function(){
|
|
window.open("/projectConcept/projectConceptQnaListPopup.do", "", "width=1180, height=730");
|
|
});
|
|
|
|
//영업활동 등록 팝업
|
|
$(".btnRegist").click(function(){
|
|
var params = "?actionType=regist"
|
|
//window.open("/ordermgmt/ordermgmtUpdateFormPopup.do"+params, "", "width=650, height=750","menubars=no, scrollbars=yes, resizable=yes");
|
|
window.open("/project/projectFormPopUp.do"+params, "", "width=1150, height=676","menubars=no, scrollbars=yes, resizable=yes");
|
|
});
|
|
|
|
//프로젝트의 form,detail 팝업을 보여준다.
|
|
function openProjectFormPopUp(objId){
|
|
window.open("","projectFormPopUp","width=1150, height=676");
|
|
var params = "?actionType=regist"
|
|
var url = "/project/projectFormPopUp.do"+params;
|
|
if("" != objId){
|
|
url = "/project/projectDetailPopUp.do";
|
|
}
|
|
var form = document.form1;
|
|
form.objId.value = objId;
|
|
form.action = url;
|
|
form.target = "projectFormPopUp";
|
|
form.submit();
|
|
}
|
|
|
|
//엑셀 업로드
|
|
$(".excelRegist").click(function(){
|
|
window.open("/projectConcept/exceluploadForm.do", "", "width=700, height=300,top=530,left=630");
|
|
});
|
|
|
|
|
|
//입찰품목 등록팝업
|
|
$(".conceptItemRegist").click(function(){
|
|
var params = "?actionType=regist"
|
|
window.open("/projectConcept/projectConceptProductInfoFormPopup.do"+params, "", "width=705, height=785");
|
|
});
|
|
|
|
|
|
$(".btnChart").click(function(){
|
|
var url = $(this).attr("url");
|
|
var carType = $(this).attr("carType");
|
|
var productType = $(this).attr("productType");
|
|
|
|
var pageUrl = url+"_"+carType+"_"+productType+".html";
|
|
|
|
window.open(pageUrl, "" ,"width=1000, height=400");
|
|
});
|
|
|
|
//수주활동 상세
|
|
$(".btnProjectConceptDetail").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
fn_projectConceptDetail(objId);
|
|
});
|
|
|
|
//예가 내역서 등록
|
|
$(".example").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
|
|
var url = "/ordermgmt/openOrderExcelImportPopUp.do?orderobjId="+objId+"&actionType=regist";
|
|
var target = "openOrderExcelImportPopUp";
|
|
window.open(url, target,"width=1345, height=700, menubars=no, scrollbars=yes, resizable=yes");
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//수주활동 제품별 상세
|
|
$(".btnProjectConceptProductDetail").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
fn_projectConceptProductDetail(objId);
|
|
});
|
|
|
|
|
|
$(".biddingResult").change(function(){
|
|
var projectConceptProdObjId = $(this).attr("data-OBJID");
|
|
var biddingResult = $(this).val();
|
|
|
|
$.ajax({
|
|
url:"/projectConcept/updateProjectConceptProdBiddingResult.do",
|
|
type:"POST",
|
|
data:{"projectConceptProdObjId":projectConceptProdObjId, "biddingResult":biddingResult},
|
|
dataType:"html",
|
|
success:function(data){
|
|
console.log("biddingResult : "+biddingResult);
|
|
|
|
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
|
|
});
|
|
|
|
//고객사 목록 조회
|
|
//fn_setOEMList();
|
|
|
|
//고객사별 차종 목록 조회
|
|
$("#search_oem").change(function(){
|
|
var oemObjId = $(this).val();
|
|
|
|
fn_setCarTypeList(oemObjId);
|
|
});
|
|
|
|
//제품군 제품 목록 조회
|
|
$("#search_productGroup").change(function(){
|
|
var productGroup = $(this).val();
|
|
fn_setProductTypeList(productGroup);
|
|
});
|
|
|
|
//메일배포
|
|
$("#btnSendMail").click(function(){
|
|
fn_sendMail();
|
|
});
|
|
|
|
//확정
|
|
$(".btnComplete").click(function(){
|
|
fn_completeProjectConcept();
|
|
});
|
|
|
|
//엔터 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
|
|
|
|
|
|
/*
|
|
$("input[type=radio]").change(function(){
|
|
if($(this).prop("checked")){
|
|
var finalFileCnt = $(this).attr("data-FINAL_FILE_CNT");
|
|
|
|
if(finalFileCnt > 0){
|
|
$(".btnComplete").show();
|
|
}else{
|
|
$(".btnComplete").hide();
|
|
}
|
|
}
|
|
});
|
|
*/
|
|
fnc_datepick();
|
|
if('${param.team_cd}'!=""){
|
|
optionJobGroup('${param.team_cd}');
|
|
|
|
$("#writer").val('${param.writer}');
|
|
}
|
|
|
|
|
|
//PART 등록 양식
|
|
$("#btnForm").click(function(){
|
|
top.location.href="/temp/Order_Reg_Form.xlsx";
|
|
});
|
|
|
|
|
|
//체크박스 전체선택/전체해제
|
|
$("#allCheck").click(function(){
|
|
if($("#allCheck").prop("checked")) {
|
|
$("input[type=checkbox]").prop("checked",true);
|
|
} else {
|
|
$("input[type=checkbox]").prop("checked",false);
|
|
}
|
|
});
|
|
|
|
|
|
//삭제
|
|
$("#btnDelete").click(function(){
|
|
fn_delete();
|
|
});
|
|
|
|
});
|
|
|
|
|
|
function fn_delete(){
|
|
|
|
var partLength = $("input[name=partCheckBox]:checked").length;
|
|
|
|
//초기화
|
|
$("#materOrdObjId").val("");
|
|
|
|
|
|
if(0 < partLength){
|
|
var checkArr = new Array();
|
|
var statusFlag = false;
|
|
$("input[name=partCheckBox]:checked").each(function(){
|
|
var objId = fnc_checkNull($(this).attr("data-objId").replace(" ",""));
|
|
checkArr.push(objId);
|
|
statusFlag = true;
|
|
});
|
|
|
|
$("#materOrdObjId").val(checkArr);
|
|
if(statusFlag){
|
|
|
|
if(confirm("프로젝트및 하위 WBS TASK 정보까지 모두 삭제 됩니다. \n 선택한 엽업정보를 삭제하시겠습니까?")){
|
|
|
|
var param = $("#hiddenForm").serialize();
|
|
$.ajax({
|
|
type : "POST",
|
|
url : "/ordermgmt/orderListDelete.do",
|
|
data: param,
|
|
dataType:"json",
|
|
success:function(data){
|
|
if(data =="SUCCESS"){
|
|
Swal.fire("삭제되었습니다.");
|
|
fn_search();
|
|
};
|
|
}
|
|
,error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
}else{
|
|
Swal.fire("삭제 가능한 항목이 없습니다.");
|
|
}
|
|
}else{
|
|
Swal.fire("선택한 항목이 없습니다.");
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
//영업활동등록 상세
|
|
function fn_projectConceptDetail(objId){
|
|
window.open("/ordermgmt/ordermgmtUpdateFormPopup.do?objId="+objId, "", "width=650, height=750","menubars=no, scrollbars=yes, resizable=yes");
|
|
}
|
|
|
|
//수주활동 검색 기능
|
|
function fn_search(){
|
|
document.form1.action = "/ordermgmt/ordermgmtList.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
//프로젝트 등록 Excel Export
|
|
function excelExport(){
|
|
document.form1.action = "/projectConcept/getProjectConceptProductList.do?actionType=excel";
|
|
document.form1.submit();
|
|
}
|
|
|
|
|
|
//코드값을 받아와서 동적으로 selectbox 생성
|
|
function optionJobGroup(code){
|
|
var val=code;
|
|
var params = "";
|
|
var option="";
|
|
var combobox = $("#writer");
|
|
combobox.empty();
|
|
if(val!=""){
|
|
params += "codeId="+val;
|
|
$.ajax({
|
|
type : "POST",
|
|
url : "/projectConcept/makewrite.do",
|
|
data : params,
|
|
dataType:"json",
|
|
async: false,
|
|
success: function(data){
|
|
if(data.RESULT !=""){
|
|
option += "<option value=''>전체</option>";
|
|
option += data.RESULT;
|
|
combobox.append(option);
|
|
}
|
|
}
|
|
});
|
|
// Swal.fire(Number(lev-1));
|
|
//$("#code"+Number(lev-1)).val(code).prop("selected", true);
|
|
}else{
|
|
|
|
option += "<option value=''>전체</option>";
|
|
combobox.append(option);
|
|
}
|
|
}
|
|
|
|
|
|
//코드값을 받아와서 동적으로 selectbox 생성
|
|
function makeSelect(code){
|
|
var val=code;
|
|
var params = "";
|
|
var option="";
|
|
var combobox = $("#outc_cd6_td");
|
|
combobox.empty();
|
|
|
|
|
|
/* <select name="outc_cd6" id="outc_cd6" type="select">
|
|
<option value="">선택</option>
|
|
</select> */
|
|
|
|
if(val!="" && val!="PLA03000"){
|
|
params += "codeId="+val;
|
|
$.ajax({
|
|
type : "POST",
|
|
url : "/ordermgmt/makeCodeselect.do",
|
|
data : params,
|
|
dataType:"json",
|
|
async: false,
|
|
success: function(data){
|
|
if(data.RESULT !=""){
|
|
option += "<select name='outc_cd6' id='outc_cd6' type='select'>"
|
|
option += "<option value=''>선택</option>";
|
|
option += data.RESULT;
|
|
option += "</select>";
|
|
combobox.append(option);
|
|
$("#outc_cd6").val("${param.outc_cd6}");
|
|
//$("#outc_cd6").select2();
|
|
}
|
|
}
|
|
});
|
|
}else{
|
|
if(val=="PLA03000"){
|
|
option += "<input type='text' name='outc_cd6' id='outc_cd6' value='${param.outc_cd6}'>"
|
|
combobox.append(option);
|
|
}else{
|
|
option += "<select name='outc_cd6' id='outc_cd6' type='select'>"
|
|
option += "<option value=''>선택</option>";
|
|
option += "</select>";
|
|
combobox.append(option);
|
|
//$("#outc_cd6").select2();
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
function saveexcelpop() {
|
|
|
|
var partLength = $("input[name=partCheckBox]:checked").length;
|
|
if(partLength == 0){
|
|
Swal.fire('선택된 영업정보가 없습니다.');
|
|
return;
|
|
}
|
|
if(partLength > 1){
|
|
Swal.fire('단건씩 선택해 주세요');
|
|
return;
|
|
}
|
|
|
|
var orderobjId ="";
|
|
$("input[name=partCheckBox]:checked").each(function(){
|
|
orderobjId = fnc_checkNull($(this).attr("data-objId").replace(" ",""));
|
|
});
|
|
|
|
var url = "/ordermgmt/openOrderExcelImportPopUp.do?orderobjId="+orderobjId;
|
|
var target = "openOrderExcelImportPopUp";
|
|
window.open(url, target,"width=1245, height=700, menubars=no, scrollbars=yes, resizable=yes");
|
|
}
|
|
|
|
|
|
//프로젝트의 form,detail 팝업을 보여준다.
|
|
function openProjectFormPopUp(objId){
|
|
window.open("","projectFormPopUp","width=1150, height=676");
|
|
var params = "?actionType=regist"
|
|
var url = "/project/projectFormPopUp.do"+params;
|
|
if("" != objId){
|
|
url = "/project/projectDetailPopUp.do";
|
|
}
|
|
var form = document.form1;
|
|
form.objId.value = objId;
|
|
form.action = url;
|
|
form.target = "projectFormPopUp";
|
|
form.submit();
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="hiddenForm" id="hiddenForm" method="post">
|
|
<input type="hidden" name="materOrdObjId" id="materOrdObjId">
|
|
</form>
|
|
|
|
<form name="form1" id="form1" action="" method="post">
|
|
|
|
<input type="hidden" name="delKey" id="delKey">
|
|
<div class="content-box">
|
|
<div class="content-box-s">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>프로젝트관리_영업관리</span>
|
|
</h2>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
|
|
<td><label for="Year">연도</label></td>
|
|
|
|
<td>
|
|
<select name="Year" id="Year" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
<c:forEach begin="${sysYear-4}" end="${sysYear}" var="req_year">
|
|
<option value="${req_year}"${param.Year eq req_year ? 'selected':'' }>${req_year}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="customer_cd">거래처</label></td>
|
|
<td>
|
|
<select name="customer_cd" id="customer_cd" style="" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.customer_cd}
|
|
</select>
|
|
</td>
|
|
<td><label for="plant_cd">제품군</label></td>
|
|
<td>
|
|
<select name="plant_cd" id="plant_cd" onchange='makeSelect($(this).val())' style="width:200px" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.plant_cd}
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="outc_cd6">종류</label></td>
|
|
<td id="outc_cd6_td">
|
|
|
|
</td>
|
|
|
|
<td class="align_r">
|
|
<label for="" class="">작성자</label>
|
|
</td>
|
|
<td>
|
|
<select name="reg_id" id="reg_id" style="width:140px;" class="select2" autocomplete="off">
|
|
<option value="">전체</option>
|
|
${code_map.reg_id}
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="result_cd">상태</label></td>
|
|
<td>
|
|
<select name="result_cd" id="result_cd" style="" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.result_cd}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<section class="contents_page_basic_margin">
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap">
|
|
<!-- <input type="button" value="영업활동 등록 양식" class="plm_btns Form" id="btnForm" name="btnForm">-->
|
|
<!-- <input type="button" value="예가내역서 업로드" class="plm_btns" onclick="saveexcelpop();"> -->
|
|
<input type="button" value="삭제" class="plm_btns delete" id="btnDelete">
|
|
<input type="button" value="등록" class="plm_btns btnRegist create">
|
|
<input type="button" value="조회" class="plm_btns" id="btnSearch" name="btnSearch">
|
|
<!-- <input type="button" value="삭제" class="plm_btns" id="btnDel"> -->
|
|
<!-- <input type="button" value="확정" class="plm_btns btnComplete" style="display:none;">
|
|
<input type="button" value="Excel Export" class="plm_btns" onclick="excelExport()"> -->
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="plm_table_wrap">
|
|
<div>
|
|
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="10px">
|
|
<col width="20px">
|
|
<col width="20px">
|
|
<col width="25px">
|
|
<col width="40px">
|
|
<col width="30px">
|
|
<col width="20px">
|
|
<col width="25px">
|
|
<col width="20px">
|
|
<col width="25px">
|
|
<col width="25px">
|
|
<col width="20px">
|
|
<col width="25px">
|
|
<col width="20px">
|
|
<col width="25px">
|
|
<col width="25px">
|
|
<col width="25px">
|
|
<col width="20px">
|
|
<col width="25px">
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td><input type="checkbox" id="allCheck" class="checkBox" style="width:15px;height:15px"></td>
|
|
<td>영업번호</td>
|
|
<td>구분</td>
|
|
<td>지역</td>
|
|
<td>거래처</td>
|
|
<td>프로젝트구분</td>
|
|
<td>제품군</td>
|
|
<td>종류</td>
|
|
<td>중량</td>
|
|
<td>SPAN</td>
|
|
<td>주행거리</td>
|
|
<td>견적요청일</td>
|
|
<td>견적 No.</td>
|
|
<td>입수자료</td>
|
|
<td>제출자료</td>
|
|
<td>예가내역서</td>
|
|
<td>작성자</td>
|
|
<td>등록일</td>
|
|
<td>상태</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:choose>
|
|
<c:when test="${!empty LIST}">
|
|
<c:forEach var="info" items="${LIST}" varStatus="status">
|
|
<tr>
|
|
<td><input style="width:15px;height:15px" type="checkbox" value="${info.ORDER_MGMT_OBJID}" name="partCheckBox" id="partCheckBox" data-objId="${info.ORDER_MGMT_OBJID}"></td>
|
|
<td title="${info.REGION_CD}"><a href="#" onclick="javascript:fn_projectConceptDetail('${info.ORDER_MGMT_OBJID}')">${info.REGION_CD}</a></td>
|
|
<td title="${info.ORDER_NAME}">${info.ORDER_NAME}</td>
|
|
<td title="${info.OUTC_CD5}">${info.OUTC_CD5}</td>
|
|
<td title="${info.CUSTOMER_NAME}" style="text-align:center;">${info.CUSTOMER_NAME}</td>
|
|
<td title="${info.PROJECT_DIVISION}" style="text-align:center;">${info.PROJECT_DIVISION}</td>
|
|
<td title="${info.PLANT_NAME}">${info.PLANT_NAME}</td>
|
|
<td title="${info.OUTC_CD6}">${info.OUTC_CD6}</td>
|
|
<td title="${info.REASON}" style="text-align:right;"><fmt:formatNumber value="${info.REASON}" pattern="#,###" /></td>
|
|
<td title="${info.OUTC_CD2}" style="text-align:right;"><fmt:formatNumber value="${info.OUTC_CD2}" pattern="#,###" /></td>
|
|
<td title="${info.OUTC_CD3}" style="text-align:right;"><fmt:formatNumber value="${info.OUTC_CD3}" pattern="#,###" /></td>
|
|
<td title="${info.REQ_DATE}">${info.REQ_DATE}</td>
|
|
<td title="${info.OUTC_CD4}">${info.OUTC_CD4}</td>
|
|
<td><a href="#" class="File file_${info.CU01_CNT eq 0?'empty_':''}icon" data-OBJID="${info.ORDER_MGMT_OBJID}" data-docType="CUSTOMER_01" data-docTypeName="영업관리01"></a></td>
|
|
<td><a href="#" class="File file_${info.CU02_CNT eq 0?'empty_':''}icon" data-OBJID="${info.ORDER_MGMT_OBJID}" data-docType="PART_FILE" data-docTypeName="PART_FILE"></a></td>
|
|
<td><a href="#" class="example file_${info.CU03_CNT eq 0?'empty_':''}icon" data-OBJID="${info.ORDER_MGMT_OBJID}"></a></td>
|
|
<td title="${info.REG_NAME}">${info.REG_NAME}</td>
|
|
<td title="${info.REG_DATE}">${info.REG_DATE}</td>
|
|
<td title="${info.RESULT_NAME}">${info.RESULT_NAME}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<tr>
|
|
<td colspan="19" align="center">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="pdm_page">
|
|
<input type="hidden" name="page" id="page" value="${nPage}">
|
|
<c:if test="${!empty LIST}">
|
|
<div class="page_pro">
|
|
<table align="center">
|
|
<tr>
|
|
<c:choose>
|
|
<c:when test="${nPage > 1}">
|
|
<td><a href="javascript:fnc_goPrev('${prevPage}');">prev</a></td>
|
|
<td> </td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td class="no_more_page">prev</td>
|
|
<td> </td>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
<c:forEach var="v" begin="${nPage>5?nPage-5:1}" end="${nPage>5?nPage+4:10}" step="1" varStatus="status">
|
|
<c:if test="${status.index -1 < maxPage}">
|
|
<c:choose>
|
|
<c:when test="${status.index eq nPage}">
|
|
<td><a href="#" class="now_page">${nPage}</a></td>
|
|
<td> </td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td><a href="javascript:fnc_goPage('${status.index}');">${status.index}</a></td>
|
|
<td> </td>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:if>
|
|
</c:forEach>
|
|
<c:choose>
|
|
<c:when test="${nPage < maxPage}">
|
|
<td><a href="javascript:fnc_goNext('${nextPage}');">next</a></td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td class="no_more_page">next</td>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tr>
|
|
</table>
|
|
<c:if test="${!empty LIST}">
|
|
<p id="adminPageCount">총 ${totalCount}건</p>
|
|
</c:if>
|
|
</div>
|
|
</c:if>
|
|
</div>
|
|
</section>
|
|
</div></div>
|
|
</form>
|
|
</body>
|
|
</html> |