한페이지에 2개의 폼을 불러오려고합니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

한페이지에 2개의 폼을 불러오려고합니다. 정보

한페이지에 2개의 폼을 불러오려고합니다.

본문

이제 배우기 시작한지 얼마안된 왕초보입니다.
난관에 봉착했는데 고수님들의 절실한 도움이 필요합니다...ㅠㅠ

문제는 한개의 페이지에 A폼 과 B폼 두가지를 지그재그로 배열되게 하고 싶은데요.

출력순서
A폼
B폼
A폼
B폼
.
.
.

이렇게하고 싶은데 현재코드로는 A폼만 주르륵 나오더라구요
이런 저런 방법을 해보았는데 고수님들 어떻게 해야하는건가요?

<?f_detail($teacher_number_Split1[22])?>에서

($teacher_number_Split1[22]) 하면 A폼 ($teacher_number[22]) 하면 B폼이 나오게는

어떻게해야하는건가요?

변수값에 따른 입력폼을 다르게 하고 싶어서요...

고수님들....

부탁드립니다~ 도와주세요~ㅠㅠ


(관련소스)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<LINK REL="StyleSheet" HREF="/include/style.css" TYPE="text/css">

<SCRIPT LANGUAGE="JavaScript">
<!--
function initsize() {
try{
self.resizeTo(document.body.scrollWidth, document.body.scrollHeight);
}catch(e){
try{
setTimeout("initsize()", 100)
}catch(e){
setTimeout("initsize()", 1000)
}
}
}
//-->
</SCRIPT>
<script>
 
 function resizeHeight(fr) {
  fr = typeof fr == 'string' ? document.getElementById(fr) : fr;
  fr.setExpression('height',newmain.document.body.scrollHeight);  }
 </script>


<BODY topmargin="0" leftmargin="0" onLoad="initsize()">

<?
include_once "info2.php";

$teacher_number_Split1 = explode("$", $teacher_number);
$teacher_number_Split2 = explode("$", $teacher_number);

//http://sajumentor.net/060/detail.php?sel=01

function f_detail($selVar)
{
$teacher_infoShow = f_showInfo($selVar);
?>

<style>
#namecard1 {
width:755px;
height:322px;
background:url(../homeskin/list_bg01.jpg) no-repeat 0 0;
}

#namecard2 {
width:755px;
height:500px;
background:url(../homeskin/list_bg02.jpg) no-repeat 0 0;
}

#name {
float:left;
position:relative;
top:14px;
left:11px;
}

#no{
float:right;
position:relative;
top:11px;
right:41px;
color:#ffffff;
font-size:25px;
font-weight:bold;
}

#card_center{
clear:both;
}
#photo{
float:left;
position:relative;
top:44px;
left:33px;
}

#review{
float:right;
position:relative;
background:#ff000;
width:500px;
height:68px;
padding:0px 50px 0 0px;
}

#right{
float:right;
position:relative;
top:64px;
right:10px;
padding:0 0 0 50px;
}

#button{
float:right;
position:relative;
padding:20px 150px 0 0 ;
}

#card_footer{
clear:both;
position:relative;
top:70px;

}
.info_txt{
padding:0px 0 4px 0;
text-align:right;

}
#phon_no{
text-align:center;
}

form { display : inline; margin:0px}
image {border:0;}

}

</style>

<script language="javascript" src="http://www.sajumento.com/homeskin/mEmbed.js"></script>

<div id="namecard1">
<div id="card_center">
<table width="755" height="322" border="1" cellpadding="0" cellspacing="0">
        <tr valign="top"><td>   
  <div id="photo"><a href="/060/detail.php?sel=<?=$selVar;?>" onFocus="blur()"><img src="../homeskin/ssphoto<?=$selVar;?>.png"></a></div>
</td>
            <td>
        <div id="right">
<div id="review"><?=$teacher_infoShow[5];?></div>
          <div class="info_txt"><img src="../homeskin/namecard_14.gif"></div>
<div id="phon_no"><a href="/060/detail.php?sel=<?=$selVar;?>" onFocus="blur()"><?=$teacher_infoShow[1];?></a></div>
<div id="button">
<a href="/060/detail.php?sel=<?=$selVar;?>" onFocus="blur()"><img src="/060/img/tel_0.gif" id="state_<?=$selVar;?>"></a>
<a href="/060/detail.php?sel=<?=$selVar;?>" onFocus="blur()"><img src="../homeskin/btn_review.gif" border="0"></a>
</div>
</div>
        </td></tr>
        </table>
  </div>

</div>

<?
}

?>
<table cellpadding="0" cellspacing="0">

    <tr><td colspan="3">
      <div style="padding:10px 0 5px 0;"><img src="../homeskin/title_namecard.jpg"></div>
    </td></tr>
   
  <tR><tD valign="top"><?f_detail($teacher_number_Split1[22])?></tD></tR>
   
    <tR><tD valign="top">
    <?f_detail($teacher_number_Split1[01])?>
    </tD></tR>
       
       
<?
include_once "../getState.php"
?>
</tD></tR>
   
</table>
</BODY>
</HTML>

<!--  name="newmain" onload="resizeHeight(this)" 아이프레임내에 삽입 -->

( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '243632' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )

1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

error file : /15sir/bbs/board.php