iframe 첨부1 파일이름 자동 붙이기 문의 채택완료
아래와 같이 첨부1 이름을 자동으로 불러오고 싶은데
고수님의 조언 부탁 합니다
매번 html 폴더에 복사후 수정하는 작업 편리하게 이름만 추가하는 방법 부탁 합니다
<p><iframe name="ifrm1" src="http://shimss.ipdisk.co.kr/html/">http://shimss.ipdisk.co.kr/html/첨부1.htm" frameborder="2" width="100%" height="800"></iframe></p>
답변 6개
<button onclick="copyCodePrism(this)" class="copy-code-btn" style="position: absolute; top: 10px; right: 10px; z-index: 10; background: rgba(0,0,0,0.5); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 6px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(10px);" onmouseover="this.style.background='rgba(0,0,0,0.7)'; this.style.transform='translateY(-1px)'" onmouseout="this.style.background='rgba(0,0,0,0.5)'; this.style.transform='translateY(0)'">
<svg style="width: 14px; height: 14px; display: inline-block; vertical-align: middle; margin-right: 4px;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"></path>
</svg>
<span class="copy-text">Copy</span>
</button>
<pre class="language-php"><code class="language-php"><?
// Copyright 유성헌 2015-12-31
$data_path = G5_DATA_PATH.'/file/'.$bo_table;
$sql = " select * from g5_board_file where wr_id = '$wr_id' and bo_table = '$bo_table'";
$qr = sql_query($sql);
for ($i=0; $row=sql_fetch_array($qr); $i++) {
$bf_file1[$i] = $row[bf_file];
}
$url = $data_path.'/'.$bf_file1[0]; //첨부파일 출력
?>
<p><iframe name="ifrm1" src="<a href="http://shimss.ipdisk.co.kr/html/<?php" target="_blank" rel="noopener noreferrer">http://shimss.ipdisk.co.kr/html/<?php</a> echo $url ?>" frameborder="2" width="100%" height="800"></iframe></p></code></pre>
</div><br />
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
감사 합니다
이것을 edit에(html) 바로 붙이기 가 안되는데,,,,,다시 한번 부탁 좀
http://shimss.ipdisk.co.kr/g5s/bbs/board.php?bo_table=s11&wr_id=1414">http://shimss.ipdisk.co.kr/g5s/bbs/board.php?bo_table=s11&wr_id=1414
또는
그누보드 skim의 어느 파일에(view.php)
붙이면 되는지 부탁 드립니다.
주) http://shimss.ipdisk.co.kr/g5s">http://shimss.ipdisk.co.kr/g5s
폴더 하나 만들고 붙이기
ex) http://shimss.ipdisk.co.kr/g5s/html/">http://shimss.ipdisk.co.kr/g5s/html/ 첨부파일이름.htm
또는
ex) http://shimss.ipdisk.co.kr/html/">http://shimss.ipdisk.co.kr/html/ 첨부파일이름.htm

답변에 대한 댓글 1개
뷰에서코드수정 하셔야 합니다
댓글을 작성하려면 로그인이 필요합니다.
다시변경
</p><p> </p><div id="highlighter_498429" class="syntaxhighlighter " style="width: 681.109px; line-height: 25.2072px; font-size: 14.004px; color: rgb(80, 80, 80); margin: 0px !important; padding: 1px !important; border: 1px solid rgb(221, 221, 221) !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: relative !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; background: none rgb(255, 255, 255) !important;"><div class="lines" style="margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; font-size: 1em !important; background: none !important;"><div class="line alt2" style="margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; font-size: 1em !important; background: none rgb(248, 248, 248) !important;"><table class="__se_tbl_ext" style="margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; font-size: 1em !important; border-collapse: collapse !important; background: none !important;"><tbody style="margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; font-size: 1em !important; background: none !important;"><tr style="margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; font-size: 1em !important; background: none !important;"><td class="content" style="margin: 0px !important; padding: 0px 0px 0px 0.5em !important; border-width: 0px 0px 0px 3px !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; outline: 0px !important; float: none !important; vertical-align: top !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; font-size: 1em !important; color: rgb(0, 0, 0) !important; background: none !important;"><code class="plain" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; background: none !important;"><p><iframe name=</code><code class="string" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; color: blue !important; background: none !important;">"ifrm1"</code> <code class="plain" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; background: none !important;">src=</code><code class="string" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; color: blue !important; background: none !important;">"<a href="<a href="http://shimss.ipdisk.co.kr/html/%3C?php" target="_blank" rel="noopener noreferrer">http://shimss.ipdisk.co.kr/html/%3C?php</a>" style="color: blue !important; text-decoration: none;"><?php</a> echo $url ?>"</code><code class="plain" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; background: none !important;">frameborder=</code><code class="string" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; color: blue !important; background: none !important;">"2"</code> <code class="plain" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; background: none !important;">width=</code><code class="string" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; color: blue !important; background: none !important;">"100%"</code> <code class="plain" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; background: none !important;">height=</code><code class="string" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; color: blue !important; background: none !important;">"800"</code><code class="plain" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; background: none !important;">></iframe></p></code></td></tr></tbody></table></div></div></div><p>
댓글을 작성하려면 로그인이 필요합니다.
예 그누보드5 입니다
게시판작성을 워드로 작성 html 변경 저장 간편한게 html 폴더에 저장후
이름만 붙이고 자동으로 불러오는 방법을 찾고자 합니다
파일.htm을 첨부 추가후 이름만 자동으로 붙이고 나오게 하는 방법을 찾고자 합니다
어렵게 아래와같이 iframe 사용합니다 ( 매번 이름을 추가 )
http://shimss.ipdisk.co.kr/g5s/bbs/board.php?bo_table=s11&wr_id=1405">http://shimss.ipdisk.co.kr/g5s/bbs/board.php?bo_table=s11&wr_id=1405
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
$url = $data_path.'/'.$bf_file1[1]; 첨부파일 2번째~~~~~~