1:1문의 답변시 첨부파일 가능하게
본문
해당 답글이 있어 적용했지만, 답변시 파일첨부가 되지 않더라구요.
어떤 부분이 잘못된것일까요?
view.answerform.skin에서 form 사이에 아래 내용을 넣고
<div class="form-group">
<label class="col-sm-2 control-label">파일 #1</label>
<div class="col-sm-5">
<label class="control-label sp-label">
<input type="file" name="bf_file[1]" title="파일첨부 1 : 용량 <?php echo $upload_max_filesize; ?> 이하만 업로드 가능">
</label>
</div>
<div class="col-sm-5">
<?php if($w == 'u' && $write['qa_file1']) { ?>
<label class="control-label sp-label font-12"><input type="checkbox" id="bf_file_del1" name="bf_file_del[1]" value="1"> <?php echo $write['qa_source1']; ?> 파일 삭제</label>
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">파일 #2</label>
<div class="col-sm-5">
<label class="control-label sp-label">
<input type="file" name="bf_file[2]" title="파일첨부 2 : 용량 <?php echo $upload_max_filesize; ?> 이하만 업로드 가능">
</label>
</div>
<div class="col-sm-5">
<?php if($w == 'u' && $write['qa_file2']) { ?>
<label class="control-label sp-label font-12"><input type="checkbox" id="bf_file_del2" name="bf_file_del[2]" value="1"> <?php echo $write['qa_source2']; ?> 파일 삭제</label>
<?php } ?>
</div>
</div>
view.answer.skin.php 내용에서는 아래 내용을 추가했습니다.
<a href="/bbs/qadownload.php?qa_id=<?php echo $answer['qa_id']; ?>&no=1"><?echo $answer['qa_file1']; ?></a>
<a href="/bbs/qadownload.php?qa_id=<?php echo $answer['qa_id']; ?>&no=2"><?echo $answer['qa_file2']; ?></a>