s

파일첨부시 파일설명란 필드 설정

스킨수정중 write.skin.php에 파일첨부필드에서

파일첨부시 하단에 첨부하는 파일에 대한설명문구를 넣을수 있는 필드값을 설정하려고하는데요
아래 소스값 적용시 파일첨부 필드란만 나오고
파일설명필드는 안나오거든요?
소스좀 살펴봐주시면 고맙겟습니다 왜 파일설명란 필드는 안나타나는것인지요?




<tr>
<td >
<table cellpadding=0 cellspacing=0>
<tr>
<td class=write_head style="padding-top:10px; line-height:20px 파일첨부<br>
<span onclick="add_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_add.gif"></span>
<span onclick="del_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_minus.gif"></span>

</td>
</tr>
</table>
</td>
<td colspan="3"><table id="variableFiles" cellpadding=0 cellspacing=0></table><?// print_r2($file); ?>
<script language="JavaScript">
var flen = 0;
function add_file(delete_code)
{
var upload_count = <?=(int)$board[bo_upload_count]?>;
if (upload_count && flen >= upload_count)
{
alert("이곳은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
return;
}

var objTbl;
var objRow;
var objCell;
if (document.getElementById)
objTbl = document.getElementById("variableFiles");
else
objTbl = document.all["variableFiles"];

objRow = objTbl.insertRow(objTbl.rows.length);
objCell = objRow.insertCell(0);

objCell.innerHTML = "<input type='file' class='ed' size=45 name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
if (delete_code)
objCell.innerHTML += delete_code;
else
{
<? if ($is_file_content) { ?>
objCell.innerHTML += "<br><input type='text' class='ed' size=50 name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.'>";
<? } ?>
;
}

flen++;
}

<?=$file_script; //수정시에 필요한 스크립트?>

function del_file()
{
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
var file_length = <?=(int)$file_length?>;
var objTbl = document.getElementById("variableFiles");
if (objTbl.rows.length - 1 > file_length)
{
objTbl.deleteRow(objTbl.rows.length - 1);
flen--;
}
}
</script>
|

댓글 2개

게시판 관리자에서 해당부분이 있는데 그 항목 체크하시면 될꺼예요
감사합니다 기본을 모르고 있었네요..ㅡ.ㅡ

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고