그누보드 게시글 작성 파일첨부 Bootstrap 5.x 버전 (최신 구조 간소화형) 적용
작성자 정보
- 최고관리자 작성
- 192.♡.0.1 아이피
- 작성일
컨텐츠 정보
- 460 조회
- 목록
링크
첨부
본문
<!-- <script>
var flen = 0;
function add_file(delete_code) {
var upload_count = <?php echo (int)$board['bo_upload_count']; ?>;
if (upload_count && flen >= upload_count) {
alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
return;
}
var objTbl;
var objNum;
var objRow;
var objCell;
var objContent;
if (document.getElementById)
objTbl = document.getElementById("variableFiles");
else
objTbl = document.all["variableFiles"];
objNum = objTbl.rows.length;
objRow = objTbl.insertRow(objNum);
objCell = objRow.insertCell(0);
objContent = '<div class="row mx-n2">';
objContent += '<div class="<?php echo $file_col ?> mt-2 px-2"><div class="input-group"><div class="input-group-prepend"><label class="input-group-text" for="fwriteFile'+objNum+'">파일 '+objNum+'</label></div>';
objContent += '<div class="custom-file"><input type="file" name="bf_file[]" class="custom-file-input" title="파일 용량 <?php echo $upload_max_filesize; ?> 이하만 업로드 가능" id="fwriteFile' + objNum + '">';
objContent += '<label class="custom-file-label" for="imgboxFile" data-browse="선택"></label></div></div></div>';
objContent += '<input class="form-control" type="file" name="bf_file[]" id="fwriteFile' + objNum + '" accept="*/*">';
-->
<!-- ② Bootstrap 5.x 버전 (최신 구조 간소화형) -->
<script>
var flen = 0;
function add_file(delete_code) {
var upload_count = <?php echo (int)$board['bo_upload_count']; ?>;
if (upload_count && flen >= upload_count) {
alert("이 게시판은 " + upload_count + "개 까지만 파일 업로드가 가능합니다.");
return;
}
var objTbl;
var objNum;
var objRow;
var objCell;
var objContent;
if (document.getElementById)
objTbl = document.getElementById("variableFiles");
else
objTbl = document.all["variableFiles"];
objNum = objTbl.rows.length;
objRow = objTbl.insertRow(objNum);
objCell = objRow.insertCell(0);
objContent = '<div class="row mx-n2">';
objContent += '<div class="<?php echo $file_col ?> mt-2 px-2">';
objContent += '<label for="fwriteFile' + objNum + '" class="form-label">파일 ' + objNum + '</label>';
objContent += '<input class="form-control" type="file" name="bf_file[]" id="fwriteFile' + objNum + '" title="파일 용량 <?php echo $upload_max_filesize; ?> 이하만 업로드 가능">';
objContent += '</div></div>';
첨부 파일을 스킨보드에 구성 PDF보기( W:\g5\skin\board\BS4-Basic-Webzine_11q_pdf_php82\view.skin.php + view_pdf.php구성)
관련자료
-
이전
-
다음
댓글 0
등록된 댓글이 없습니다.
