테스트 사이트 - 개발 중인 베타 버전입니다

iframe 첨부1 파일이름 자동 붙이기 문의 채택완료

심봉사 9년 전 조회 3,567

아래와 같이 첨부1 이름을 자동으로 불러오고 싶은데 

고수님의 조언 부탁 합니다

매번 html 폴더에 복사후 수정하는 작업 편리하게 이름만 추가하는 방법 부탁 합니다


<p><iframe name="ifrm1" src="http://shimss.ipdisk.co.kr/html/">http://shimss.ipdisk.co.kr/html/첨부1.htmframeborder="2" width="100%" height="800"></iframe></p> 

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

답변 6개

채택된 답변
+20 포인트
돌아온헌이
<div class="code-block-wrapper">
<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">&lt;?

// Copyright 유성헌 2015-12-31

$data_path = G5_DATA_PATH.&#039;/file/&#039;.$bo_table;

$sql = &quot; select * from g5_board_file where wr_id = &#039;$wr_id&#039; and bo_table = &#039;$bo_table&#039;&quot;;

$qr = sql_query($sql);

for ($i=0; $row=sql_fetch_array($qr); $i++) {

$bf_file1[$i] = $row[bf_file];

}

$url = $data_path.&#039;/&#039;.$bf_file1[0]; //첨부파일 출력



?&gt;

&lt;p&gt;&lt;iframe name=&quot;ifrm1&quot; src=&quot;&lt;a href=&quot;http://shimss.ipdisk.co.kr/html/&lt;?php&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;http://shimss.ipdisk.co.kr/html/&lt;?php&lt;/a&gt; echo $url ?&gt;&quot; frameborder=&quot;2&quot; width=&quot;100%&quot; height=&quot;800&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;</code></pre>
</div><br />
로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

헌이
9년 전
$url = $data_path.'/'.$bf_file1[0]; 첨부파일 1번째
$url = $data_path.'/'.$bf_file1[1]; 첨부파일 2번째~~~~~~

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

1
9년 전

실력이 초보자라  잘 안되네요 

그동안 감사 합니다

고수님께서 basic 스킨하나 수정 부탁 합니다.

로그인 후 평가할 수 있습니다

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

1
9년 전

감사 합니다

이것을 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개

헌이
9년 전
Html로붙이면안되죠
뷰에서코드수정 하셔야 합니다

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

돌아온헌이

다시변경 

</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>

로그인 후 평가할 수 있습니다

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

1
9년 전

예 그누보드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개

헌이
9년 전
요렇게 하시면 되겠네요

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

돌아온헌이
그누보드&amp;nbsp; 환경에서 사용 하시나요?.
로그인 후 평가할 수 있습니다

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

답변을 작성하려면 로그인이 필요합니다.

로그인