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

스크립트관련 질문좀 드릴꼐요 채택완료

kdw3104 8년 전 조회 3,322

이 부분이 10000원(가격)이 정해진 상태에서  업 다운을 누르면 가격변동이 되는곳 같은데 다른 가격으로 적용을 할려니 잘 모르겠습니다.

</p><p>pay = eval(document.getElementById('pay_'+which).value);</p><p><span style="white-space:pre">	</span>p_cnt = eval(document.getElementById('p_cnt_'+which).value);</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span>basongbi = eval(document.getElementById('basongbi').value);</p><p><span style="white-space:pre">	</span>tot_pay = eval(document.getElementById('tot_pay').value);</p><p>
</p><p>
</p><p><span style="white-space:pre">	</span>switch(key)</p><p><span style="white-space:pre">	</span>{</p><p>
</p><p><span style="white-space:pre">		</span>case("up"):</p><p><span style="white-space:pre">			</span>p_cnt = p_cnt+1;</p><p><span style="white-space:pre">			</span>document.getElementById('p_cnt_'+which).value = p_cnt;</p><p><span style="white-space:pre">		</span>break;</p><p>
</p><p><span style="white-space:pre">		</span>case("down"):</p><p><span style="white-space:pre">			</span>if(p_cnt<1)</p><p><span style="white-space:pre">			</span>{</p><p><span style="white-space:pre">				</span>alert("더 이상 내릴 수 없습니다");</p><p><span style="white-space:pre">			</span>}</p><p><span style="white-space:pre">			</span>else</p><p><span style="white-space:pre">			</span>{</p><p><span style="white-space:pre">				</span>p_cnt = p_cnt-1;</p><p><span style="white-space:pre">				</span>document.getElementById('p_cnt_'+which).value = p_cnt;</p><p><span style="white-space:pre">			</span>}</p><p>
</p><p><span style="white-space:pre">		</span>break;</p><p><span style="white-space:pre">		</span>default:</p><p><span style="white-space:pre">		</span>break;</p><p><span style="white-space:pre">	</span>}</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span>total_cnt = eval(document.getElementById('p_cnt_0').value)+eval(document.getElementById('p_cnt_1').value)+eval(document.getElementById('p_cnt_2').value)+eval(document.getElementById('p_cnt_3').value)+eval(document.getElementById('p_cnt_4').value)+eval(document.getElementById('p_cnt_5').value)+eval(document.getElementById('p_cnt_6').value)+eval(document.getElementById('p_cnt_7').value);</p><p>
</p><p><span style="white-space:pre">	</span>total_price = 10000;</p><p><span style="white-space:pre">	</span>total_sum_price = total_cnt*total_price;</p><p>
</p><p><span style="white-space:pre">	</span>if(total_sum_price>0)</p><p><span style="white-space:pre">	</span>{</p><p><span style="white-space:pre">		</span>if(total_cnt>1)</p><p><span style="white-space:pre">		</span>{</p><p><span style="white-space:pre">			</span>document.getElementById('basongbi').value = 0;</p><p><span style="white-space:pre">		</span>}</p><p><span style="white-space:pre">		</span>else</p><p><span style="white-space:pre">		</span>{</p><p><span style="white-space:pre">			</span>document.getElementById('basongbi').value = 3000;</p><p><span style="white-space:pre">		</span>}</p><p><span style="white-space:pre">	</span>}</p><p><span style="white-space:pre">	</span>else</p><p><span style="white-space:pre">	</span>{</p><p><span style="white-space:pre">			</span>document.getElementById('basongbi').value = 0;</p><p><span style="white-space:pre">	</span>}</p><p>
</p><p><span style="white-space:pre">	</span>document.getElementById('tot_pay').value = total_sum_price + eval(document.getElementById('basongbi').value);</p><p>
</p><p>}</p><div>

가격이 다른 제품을 수량을 늘릴경우 정해진 금액 10000원만 증가가 됩니다. 10000원 기준이 되어서 모든게 증가하고 감소하게 프로그래밍 되어 있는데 이걸 p_cnt_0~p_cnt_7 까지 다른 가격으로 증가되게 할려먼 어떤 소스를 넣어야 할지 막막하네요.. 제가 만든게 아니라 뭐가 뭔지도 모르겠고.. 어설프게만 알고 있어서 좀 당황 스럽네요... 좀 알려주세요..

아래는 전체 소스를 올려드립니다.

</p><p><? include "../_include.php"; ?></p><p><?</p><p>if($mode=="ok"){</p><p>
</p><p>include"db.php";</p><p>
</p><p>$result = mysql_query("SELECT max(no) FROM $table");</p><p><span style="white-space:pre">	</span>if (!$result) {</p><p><span style="white-space:pre">		</span>echo "</p><p><span style="white-space:pre">			</span><script></p><p><span style="white-space:pre">				</span>window.alert(\"DB 접속 에러입니다!\")</p><p><span style="white-space:pre">				</span>history.go(-1)</p><p><span style="white-space:pre">			</span></script>";</p><p><span style="white-space:pre">		</span>exit;</p><p><span style="white-space:pre">	</span>}</p><p><span style="white-space:pre">	</span>$row = mysql_fetch_row($result);</p><p>
</p><p><span style="white-space:pre">	</span>if($row[0]) {</p><p><span style="white-space:pre">	</span>   $new_no = $row[0] + 1;</p><p><span style="white-space:pre">	</span>} else {</p><p><span style="white-space:pre">	</span>   $new_no = 1;</p><p><span style="white-space:pre">	</span>}   </p><p>############################################</p><p>/*</p><p><span style="white-space:pre">	</span>product_0</p><p><span style="white-space:pre">	</span>product_1</p><p>
</p><p><span style="white-space:pre">	</span>pay_0 </p><p><span style="white-space:pre">	</span>pay_1</p><p>
</p><p><span style="white-space:pre">	</span>p_cnt_0</p><p><span style="white-space:pre">	</span>p_cnt_1</p><p>
</p><p><span style="white-space:pre">	</span>basongbi</p><p><span style="white-space:pre">	</span>tot_pay<span style="white-space:pre">	</span></p><p>*/</p><p>
</p><p>$product = "";</p><p>$p_cnt = $p_cnt_0+$p_cnt_1+$p_cnt_2+$p_cnt_3+$p_cnt_4+$p_cnt_5+$p_cnt_6+$p_cnt_7;</p><p>
</p><p>
</p><p>if($p_cnt_0>0)</p><p>{</p><p><span style="white-space:pre">	</span>$product .= $product_0."(".$p_cnt_0."권)";</p><p>}</p><p>if($p_cnt_1>0)</p><p>{</p><p><span style="white-space:pre">	</span>if($pay_0>0)</p><p><span style="white-space:pre">	</span>{</p><p><span style="white-space:pre">		</span>$product .= " / ";</p><p><span style="white-space:pre">	</span>}</p><p>
</p><p><span style="white-space:pre">	</span>$product .= $product_1."(".$p_cnt_1."권)";</p><p>}</p><p>if($p_cnt_2>0)</p><p>{</p><p><span style="white-space:pre">	</span>if($pay_0>0)</p><p><span style="white-space:pre">	</span>{</p><p><span style="white-space:pre">		</span>$product .= " / ";</p><p><span style="white-space:pre">	</span>}</p><p>
</p><p><span style="white-space:pre">	</span>$product .= $product_2."(".$p_cnt_2."권)";</p><p>}</p><p>if($p_cnt_3>0)</p><p>{</p><p><span style="white-space:pre">	</span>if($pay_0>0)</p><p><span style="white-space:pre">	</span>{</p><p><span style="white-space:pre">		</span>$product .= " / ";</p><p><span style="white-space:pre">	</span>}</p><p>
</p><p><span style="white-space:pre">	</span>$product .= $product_3."(".$p_cnt_3."권)";</p><p>}</p><p>if($p_cnt_4>0)</p><p>{</p><p><span style="white-space:pre">	</span>if($pay_0>0)</p><p><span style="white-space:pre">	</span>{</p><p><span style="white-space:pre">		</span>$product .= " / ";</p><p><span style="white-space:pre">	</span>}</p><p>
</p><p><span style="white-space:pre">	</span>$product .= $product_4."(".$p_cnt_4."권)";</p><p>}</p><p>if($p_cnt_5>0)</p><p>{</p><p><span style="white-space:pre">	</span>if($pay_0>0)</p><p><span style="white-space:pre">	</span>{</p><p><span style="white-space:pre">		</span>$product .= " / ";</p><p><span style="white-space:pre">	</span>}</p><p>
</p><p><span style="white-space:pre">	</span>$product .= $product_5."(".$p_cnt_5."권)";</p><p>}</p><p>if($p_cnt_6>0)</p><p>{</p><p><span style="white-space:pre">	</span>if($pay_0>0)</p><p><span style="white-space:pre">	</span>{</p><p><span style="white-space:pre">		</span>$product .= " / ";</p><p><span style="white-space:pre">	</span>}</p><p>
</p><p><span style="white-space:pre">	</span>$product .= $product_6."(".$p_cnt_6."권)";</p><p>}</p><p>if($p_cnt_7>0)</p><p>{</p><p><span style="white-space:pre">	</span>if($pay_0>0)</p><p><span style="white-space:pre">	</span>{</p><p><span style="white-space:pre">		</span>$product .= " / ";</p><p><span style="white-space:pre">	</span>}</p><p>
</p><p><span style="white-space:pre">	</span>$product .= $product_7."(".$p_cnt_7."권)";</p><p>}</p><p>
</p><p>
</p><p>$tot_pay = number_format($tot_pay)." 원";</p><p>
</p><p>
</p><p>$date=date("Y-m-d H:i;s");</p><p>$dbinsert ="insert into $table values('$new_no',</p><p>'$name',</p><p>'$tel1',</p><p>'$tel2',</p><p>'$tel3',</p><p>'$hp1',</p><p>'$hp2',</p><p>'$hp3',</p><p>'$addr1',</p><p>'$memo',</p><p>'$product',</p><p>'$pay',</p><p>'$p_cnt',</p><p>'$basongbi',</p><p>'$tot_pay',</p><p>'$basong',</p><p>'$date',</p><p>'no'</p><p>)";</p><p>$result_insert= mysql_query($dbinsert,$db);</p><p>
</p><p>//완료 메세지를 보인후 페이지를 이동 시킨다</p><p>echo ("</p><p>     <script></p><p>      alert ('주문이 성공적으로 접수되었습니다');</p><p>      window.close();</p><p>      </script></p><p><span style="white-space:pre">		</span>");</p><p><span style="white-space:pre">		</span>exit;</p><p>
</p><p>}</p><p>
</p><p>///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////</p><p>
</p><p>$Bgcolor_1="#FFFFFF";</p><p>$Bgcolor_2="#65B1B1";</p><p>$Bgcolor_3="#FFFFFF";</p><p>$align_td1="left";</p><p>$InputStyle="style='font-size:10pt; background-color:#DAF8F4; color:#000000; border-style:solid; border:1 solid $Bgcolor_2'";</p><p>?></p><p>
</p><p><head></p><p>
</p><p><script language=javascript></p><p>
</p><p>var NUM = "0123456789"; </p><p>var SALPHA = "abcdefghijklmnopqrstuvwxyz";</p><p>var ALPHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"+SALPHA;</p><p>
</p><p>////////////////////////////////////////////////////////////////////////////////</p><p>function TypeCheck (s, spc) {</p><p>var i;</p><p>
</p><p>for(i=0; i< s.length; i++) {</p><p>if (spc.indexOf(s.substring(i, i+1)) < 0) {</p><p>return false;</p><p>}</p><p>}        </p><p>return true;</p><p>}</p><p>
</p><p>/////////////////////////////////////////////////////////////////////////////////</p><p>
</p><p>function OrderCheckField()</p><p>{</p><p><span style="white-space:pre">	</span>var f=document.OrderInfo;</p><p>
</p><p><span style="white-space:pre">	</span>if (f.name.value == "") {</p><p><span style="white-space:pre">		</span>alert("성명을 입력하여주세요");</p><p><span style="white-space:pre">		</span>f.name.focus();</p><p><span style="white-space:pre">		</span>return false;</p><p><span style="white-space:pre">	</span>}</p><p><span style="white-space:pre">	</span>if (f.hp1.value == "") {</p><p><span style="white-space:pre">		</span>alert("핸드폰번호를 입력하여주세요");</p><p><span style="white-space:pre">		</span>f.hp1.focus();</p><p><span style="white-space:pre">		</span>return false;</p><p><span style="white-space:pre">	</span>}</p><p><span style="white-space:pre">	</span>if (f.hp2.value == "") {</p><p><span style="white-space:pre">		</span>alert("핸드폰번호를 입력하여주세요");</p><p><span style="white-space:pre">		</span>f.hp2.focus();</p><p><span style="white-space:pre">		</span>return false;</p><p><span style="white-space:pre">	</span>}</p><p><span style="white-space:pre">	</span></p><p>
</p><p>
</p><p><span style="white-space:pre">	</span>if (f.hp3.value == "") {</p><p><span style="white-space:pre">		</span>alert("핸드폰번호를 입력하여주세요");</p><p><span style="white-space:pre">		</span>f.hp3.focus();</p><p><span style="white-space:pre">		</span>return false;</p><p><span style="white-space:pre">	</span>}</p><p><span style="white-space:pre">	</span>if (f.addr1.value == "") {</p><p><span style="white-space:pre">		</span>alert("주소를 입력하여주세요");</p><p><span style="white-space:pre">		</span>f.addr1.focus();</p><p><span style="white-space:pre">		</span>return false;</p><p><span style="white-space:pre">	</span>}</p><p>
</p><p><span style="white-space:pre">	</span>if(f.tot_pay.value == "0")</p><p><span style="white-space:pre">	</span>{</p><p><span style="white-space:pre">		</span>alert("최소 1권 이상 주문하셔야 합니다");</p><p><span style="white-space:pre">		</span>return false;</p><p><span style="white-space:pre">	</span>}</p><p>
</p><p>}</p><p>
</p><p>function num_check(key, which)</p><p>{</p><p><span style="white-space:pre">	</span>/*</p><p><span style="white-space:pre">	</span>product_0</p><p><span style="white-space:pre">	</span>product_1</p><p>
</p><p><span style="white-space:pre">	</span>pay_0 </p><p><span style="white-space:pre">	</span>pay_1</p><p>
</p><p><span style="white-space:pre">	</span>p_cnt_0</p><p><span style="white-space:pre">	</span>p_cnt_1</p><p>
</p><p><span style="white-space:pre">	</span>basongbi</p><p><span style="white-space:pre">	</span>tot_pay<span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span>*/</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span>pay = eval(document.getElementById('pay_'+which).value);</p><p><span style="white-space:pre">	</span>p_cnt = eval(document.getElementById('p_cnt_'+which).value);</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span>basongbi = eval(document.getElementById('basongbi').value);</p><p><span style="white-space:pre">	</span>tot_pay = eval(document.getElementById('tot_pay').value);</p><p>
</p><p>
</p><p><span style="white-space:pre">	</span>switch(key)</p><p><span style="white-space:pre">	</span>{</p><p>
</p><p><span style="white-space:pre">		</span>case("up"):</p><p><span style="white-space:pre">			</span>p_cnt = p_cnt+1;</p><p><span style="white-space:pre">			</span>document.getElementById('p_cnt_'+which).value = p_cnt;</p><p><span style="white-space:pre">		</span>break;</p><p>
</p><p><span style="white-space:pre">		</span>case("down"):</p><p><span style="white-space:pre">			</span>if(p_cnt<1)</p><p><span style="white-space:pre">			</span>{</p><p><span style="white-space:pre">				</span>alert("더 이상 내릴 수 없습니다");</p><p><span style="white-space:pre">			</span>}</p><p><span style="white-space:pre">			</span>else</p><p><span style="white-space:pre">			</span>{</p><p><span style="white-space:pre">				</span>p_cnt = p_cnt-1;</p><p><span style="white-space:pre">				</span>document.getElementById('p_cnt_'+which).value = p_cnt;</p><p><span style="white-space:pre">			</span>}</p><p>
</p><p><span style="white-space:pre">		</span>break;</p><p><span style="white-space:pre">		</span>default:</p><p><span style="white-space:pre">		</span>break;</p><p><span style="white-space:pre">	</span>}</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span>total_cnt = eval(document.getElementById('p_cnt_0').value)+eval(document.getElementById('p_cnt_1').value)+eval(document.getElementById('p_cnt_2').value)+eval(document.getElementById('p_cnt_3').value)+eval(document.getElementById('p_cnt_4').value)+eval(document.getElementById('p_cnt_5').value)+eval(document.getElementById('p_cnt_6').value)+eval(document.getElementById('p_cnt_7').value);</p><p>
</p><p><span style="white-space:pre">				</span>total_price = 10000;</p><p><span style="white-space:pre">	</span>total_sum_price = total_cnt*total_price;</p><p>
</p><p><span style="white-space:pre">	</span>if(total_sum_price>0)</p><p><span style="white-space:pre">	</span>{</p><p><span style="white-space:pre">		</span>if(total_cnt>1)</p><p><span style="white-space:pre">		</span>{</p><p><span style="white-space:pre">			</span>document.getElementById('basongbi').value = 0;</p><p><span style="white-space:pre">		</span>}</p><p><span style="white-space:pre">		</span>else</p><p><span style="white-space:pre">		</span>{</p><p><span style="white-space:pre">			</span>document.getElementById('basongbi').value = 3000;</p><p><span style="white-space:pre">		</span>}</p><p><span style="white-space:pre">	</span>}</p><p><span style="white-space:pre">	</span>else</p><p><span style="white-space:pre">	</span>{</p><p><span style="white-space:pre">			</span>document.getElementById('basongbi').value = 0;</p><p><span style="white-space:pre">	</span>}</p><p>
</p><p><span style="white-space:pre">	</span>document.getElementById('tot_pay').value = total_sum_price + eval(document.getElementById('basongbi').value);</p><p>
</p><p>}</p><p>
</p><p></script></p><p>
</p><p><style></p><p>.td1 {font-family:굴림; font-size: 9pt;; color:#FFFFFF; font-weight:bold; line-height: normal;}</p><p>.td2 {font-family:굴림; font-size: 9pt;; color:#008080; font-weight:none; line-height:130%;}</p><p></style></p><p>
</p><p></head></p><p><body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0"></p><p><table width="600" border="0" cellspacing="0" cellpadding="0"></p><p> </p><p>
</p><p><form name='OrderInfo' method='post' OnSubmit='return OrderCheckField()' action='<?=$PHP_SELF?>'></p><p><INPUT TYPE="hidden" name='mode' value='ok'></p><p><input type=hidden name=basong value="대기"></p><p>  <tr> </p><p>    <td height="316"> </p><p>      <table width="588" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#D9CF9B" bordercolordark="#FFFFFF" align="center"></p><p>        <tr bgcolor="#CCCC99"> </p><p>          <td align="center" bgcolor="snow" height="40" colspan="2"></p><p>            </p><p>                            <p align="left"><span style="font-size:9pt;">  ◆ </p><p>                            </span><b><span style="font-size:10pt;">주문하시는 </p><p>                            분의 정보 </span></b><span style="font-size:9pt;"><font color="#666666">('</font></span><font face="돋움" color="red"><span style="font-size:9pt;">*</span></font><font face="돋움" color="#666666"><span style="font-size:9pt;">' </p><p>                            표시는 필수 입력항목입니다.  )</span></font></td></p><p>        </tr></p><p>
</p><p>        <tr bgcolor="#CCCC99"> </p><p>          <td align="center" bgcolor="#EBEBD6" height="40"></p><p><p align="center"><font size="2" face="돋움" color="red">*</font><font size="2" face="돋움">성명(단체명)</font></td></p><p>          <td align="left" bgcolor="#FAFAF3" height="40"> </p><p>            <font size="2" face="돋움"> <input type="text" size="15" maxlength="20" style="height:20;border-color:#000000; border:solid 1;" name="name"></p><p>            (입금자와 동일하게 입력하세요)</font></p><p>          </td></p><p>        </tr></p><p>
</p><p>        <tr bgcolor="#CCCC99"> </p><p>          <td align="center" bgcolor="#EBEBD6" height="40"></p><p>                                                                        <p align="center"><font size="2" face="돋움">전화번호</font></td></p><p>          <td align="left" bgcolor="#FAFAF3" height="40"> </p><p>            <font size="2" face="돋움"> <input type="text" size="4" maxlength="20" style="height:20;border-color:#000000; border:solid 1;" name="tel1"> </p><p>                            - <input type="text" size="4" maxlength="20" style="height:20;border-color:#000000; border:solid 1;" name="tel2"> </p><p>                            - <input type="text" size="4" maxlength="20" style="height:20;border-color:#000000; border:solid 1;" name="tel3"></font></p><p>          </td></p><p>        </tr></p><p>
</p><p>        <tr bgcolor="#CCCC99"> </p><p>          <td align="center" bgcolor="#EBEBD6" height="40"></p><p><p align="center"><font size="2" face="돋움" color="red">*</font><font size="2" face="돋움">휴대폰</font></td></p><p>          <td align="left" bgcolor="#FAFAF3" height="40"> </p><p>            <font size="2" face="돋움"> <input type="text" size="4" maxlength="20" style="height:20;border-color:#000000; border:solid 1;" name="hp1"> </p><p>                            - <input type="text" size="4" maxlength="20" style="height:20;border-color:#000000; border:solid 1;" name="hp2"> </p><p>                            - <input type="text" size="4" maxlength="20" style="height:20;border-color:#000000; border:solid 1;" name="hp3"></font></p><p>          </td></p><p>        </tr></p><p>
</p><p>        <tr></p><p>          <td bgcolor="#EBEBD6" align="center" height="40"></p><p><p align="center"><font size="2" face="돋움" color="red">*</font><font size="2" face="돋움">수령지 </p><p>                            주소</font></td></p><p>          <td bgcolor="#FAFAF3" align="left" height="40"></p><p>          <font size="2" face="돋움"> <input type="text" size="59" maxlength="60" style="height:20;border-color:#000000; border:solid 1;" name="addr1"></font></p><p>
</p><p>          </td></p><p>        </tr></p><p>
</p><p>        <tr></p><p>          <td bgcolor="#EBEBD6" align="center" height="40"></p><p>                                                                        <p align="center"><font size="2" face="돋움">전달메세지</font></td></p><p>          <td bgcolor="#FAFAF3" align="left" height="40"></p><p>          </p><p><font size="2" face="돋움"> <textarea name="memo" rows="5" cols="57"></textarea></font></p><p>          </td></p><p>        </tr></p><p>
</p><p>        <tr bgcolor="#CCCC99"> </p><p>          <td align="center" bgcolor="snow" height="40" colspan="2"></p><p>            </p><p>                            <p align="left"><span style="font-size:9pt;">  ◆ </p><p>                            </span><b><span style="font-size:10pt;">주문합계 </p><p>                            및 결재정보</span></b></td></p><p>        </tr></p><p>
</p><p>        <tr bgcolor="#CCCC99"> </p><p>          <td align="center" bgcolor="white" height="40" colspan="2"></p><p>
</p><p><span style="white-space:pre">							</span></p><p>
</p><p><table width="98%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#D9CF9B" bordercolordark="#FFFFFF" align="center"></p><p>
</p><p><tr></p><p><td width="131" height="30" bgcolor="#EBEBD6"><p align="center"><b><span style="font-size:9pt;">상 품 명</span></b></p></td></p><p><td width="103" height="30" bgcolor="#EBEBD6"><p align="center"><b><span style="font-size:9pt;">판 매 가</span></b></p></td></p><p><td width="77" height="30" bgcolor="#EBEBD6"><p align="center"><b><span style="font-size:9pt;">수   량</span></b></p></td></p><p><td width="106" height="30" bgcolor="#EBEBD6"><p align="center"><b><span style="font-size:9pt;">배 송 비</span></b></p></td></p><p><td width="107" height="30" bgcolor="#EBEBD6"><p align="center"><b><span style="font-size:9pt;">총  합  계</span></b></p></td></p><p></tr></p><p>
</p><p>
</p><p>
</p><p><tr></p><p><td width="131" style="font-weight:bold;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span><input type="hidden" name="product_0" id="product_0" value="바보천사 석이"></p><p><span style="white-space:pre">	</span>바보천사 석이</p><p></td></p><p><td width="103" style="font-weight:bold;font-size:12px;text-align:center;color:#ff0000;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="hidden" name="pay_0" id="pay_0" value="12000"></p><p><span style="white-space:pre">	</span><b>12,000 원</b></p><p><span style="white-space:pre">	</span></font></p><p>
</p><p>
</p><p></td></p><p><td width="77"></p><p>
</p><p><span style="white-space:pre">	</span><table border=0 width="73"></p><p><span style="white-space:pre">	</span><tr></p><p><span style="white-space:pre">	</span><td width="51" style="font-weight:none;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="text" size="2" maxlength="2" style="height:20;border-color:#000000; text-align:center;border:solid 1;" name="p_cnt_0" id="p_cnt_0" value="0" onblur="num_check('', '0')"> 권</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span><td width="12"></p><p><span style="white-space:pre">		</span><table border=0 height=25></p><p><span style="white-space:pre">		</span><tr></p><p><span style="white-space:pre">		</span><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" v onclick="num_check('up', '0')">▲</a></td></p><p><span style="white-space:pre">		</span></tr></p><p><span style="white-space:pre">		</span></p><p><span style="white-space:pre">		</span><tr><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('down', '0')">▼</a></td></p><p><span style="white-space:pre">		</span></tr></p><p>
</p><p><span style="white-space:pre">		</span></table></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span></tr></p><p><span style="white-space:pre">	</span></table></p><p>
</p><p></td></p><p>
</p><p><td width="106" rowspan="8"></p><p><span style="white-space:pre">	</span><div style="float:left;"></p><p><span style="white-space:pre">	</span><input type="text" size="10" maxlength="20" style="height:20;font-weight:bold;color:red; text-align:right;border-color:#000000; border:0;" name="basongbi" id="basongbi" value="0" readonly></p><p><span style="white-space:pre">	</span></div></p><p><span style="white-space:pre">	</span><div style="float:left;font-weight:bold;color:red; font-size:12px;padding:2px 0 0 2px;"></p><p><span style="white-space:pre">	</span>원</p><p><span style="white-space:pre">	</span></div></p><p><span style="white-space:pre">	</span></td></p><p><td width="107" rowspan="8"></p><p><span style="white-space:pre">	</span><div style="float:left;"></p><p><span style="white-space:pre">	</span><input type="text" size="10" maxlength="20" style="height:20;font-weight:bold;color:red; text-align:right;border-color:#000000; border:0;" name="tot_pay" id="tot_pay" value=0 readonly></p><p><span style="white-space:pre">	</span></div></p><p><span style="white-space:pre">	</span><div style="float:left;font-weight:bold;color:red; font-size:12px;padding:2px 0 0 2px;"></p><p><span style="white-space:pre">	</span>원</p><p><span style="white-space:pre">	</span></div></p><p><span style="white-space:pre">	</span></td></p><p></tr></p><p>
</p><p><tr></p><p><td width="131" style="font-weight:bold;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span><input type="hidden" name="product_1" id="product_1" value="두 효자의 이야기"></p><p><span style="white-space:pre">	</span>두 효자의 이야기</p><p></td></p><p><td width="103" style="font-weight:bold;font-size:12px;text-align:center;color:#ff0000;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="hidden" name="pay_1" id="pay_1" value="12000"></p><p><span style="white-space:pre">	</span><b>12,000 원</b></p><p><span style="white-space:pre">	</span></font></p><p>
</p><p></td></p><p><td width="77"></p><p>
</p><p><span style="white-space:pre">	</span><table border=0 width="73"></p><p><span style="white-space:pre">	</span><tr></p><p><span style="white-space:pre">	</span><td width="51" style="font-weight:none;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="text" size="2" maxlength="2" style="height:20;border-color:#000000; text-align:center;border:solid 1;" name="p_cnt_1" id="p_cnt_1" value="0" onblur="num_check('', '1')"> 권</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span><td width="12"></p><p><span style="white-space:pre">		</span><table border=0 height=25></p><p><span style="white-space:pre">		</span><tr></p><p><span style="white-space:pre">		</span><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('up', '1')">▲</a></td></p><p><span style="white-space:pre">		</span></tr></p><p><span style="white-space:pre">		</span></p><p><span style="white-space:pre">		</span><tr><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('down', '1')">▼</a></td></p><p><span style="white-space:pre">		</span></tr></p><p>
</p><p><span style="white-space:pre">		</span></table></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span></tr></p><p><span style="white-space:pre">	</span></table></p><p>
</p><p></td></p><p></tr></p><p>
</p><p><tr></p><p><td width="131" style="font-weight:bold;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span><input type="hidden" name="product_2" id="product_2" value="함마니와 진돗개 백구"></p><p><span style="white-space:pre">	</span>함마니와 진돗개 백구</p><p></td></p><p><td width="103" style="font-weight:bold;font-size:12px;text-align:center;color:#ff0000;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="hidden" name="pay_2" id="pay_2" value="10000"></p><p><span style="white-space:pre">	</span><b>10,000 원</b></p><p><span style="white-space:pre">	</span></font></p><p>
</p><p></td></p><p><td width="77"></p><p>
</p><p><span style="white-space:pre">	</span><table border=0 width="73"></p><p><span style="white-space:pre">	</span><tr></p><p><span style="white-space:pre">	</span><td width="51" style="font-weight:none;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="text" size="2" maxlength="2" style="height:20;border-color:#000000; text-align:center;border:solid 1;" name="p_cnt_2" id="p_cnt_2" value="0" onblur="num_check('', '2')"> 권</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span><td width="12"></p><p><span style="white-space:pre">		</span><table border=0 height=25></p><p><span style="white-space:pre">		</span><tr></p><p><span style="white-space:pre">		</span><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('up', '2')">▲</a></td></p><p><span style="white-space:pre">		</span></tr></p><p><span style="white-space:pre">		</span></p><p><span style="white-space:pre">		</span><tr><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('down', '2')">▼</a></td></p><p><span style="white-space:pre">		</span></tr></p><p>
</p><p><span style="white-space:pre">		</span></table></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span></tr></p><p><span style="white-space:pre">	</span></table></p><p>
</p><p></td></p><p></tr></p><p>
</p><p><tr></p><p><td width="131" style="font-weight:bold;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span><input type="hidden" name="product_3" id="product_3" value="하나님이 있다고? 네가 봤어?"></p><p><span style="white-space:pre">	</span>하나님이 있다고? 네가 봤어?</p><p></td></p><p><td width="103" style="font-weight:bold;font-size:12px;text-align:center;color:#ff0000;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="hidden" name="pay_3" id="pay_3" value="7000"></p><p><span style="white-space:pre">	</span><b>7,000 원</b></p><p><span style="white-space:pre">	</span></font></p><p>
</p><p></td></p><p><td width="77"></p><p>
</p><p><span style="white-space:pre">	</span><table border=0 width="73"></p><p><span style="white-space:pre">	</span><tr></p><p><span style="white-space:pre">	</span><td width="51" style="font-weight:none;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="text" size="2" maxlength="2" style="height:20;border-color:#000000; text-align:center;border:solid 1;" name="p_cnt_3" id="p_cnt_3" value="0" onblur="num_check('', '3')"> 권</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span><td width="12"></p><p><span style="white-space:pre">		</span><table border=0 height=25></p><p><span style="white-space:pre">		</span><tr></p><p><span style="white-space:pre">		</span><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('up', '3')">▲</a></td></p><p><span style="white-space:pre">		</span></tr></p><p><span style="white-space:pre">		</span></p><p><span style="white-space:pre">		</span><tr><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('down', '3')">▼</a></td></p><p><span style="white-space:pre">		</span></tr></p><p>
</p><p><span style="white-space:pre">		</span></table></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span></tr></p><p><span style="white-space:pre">	</span></table></p><p>
</p><p></td></p><p></tr></p><p>
</p><p><tr></p><p><td width="131" style="font-weight:bold;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span><input type="hidden" name="product_4" id="product_4" value="아이들의 두목 선두"></p><p><span style="white-space:pre">	</span>아이들의 두목 선두</p><p></td></p><p><td width="103" style="font-weight:bold;font-size:12px;text-align:center;color:#ff0000;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="hidden" name="pay_4" id="pay_4" value="10000"></p><p><span style="white-space:pre">	</span><b>10,000 원</b></p><p><span style="white-space:pre">	</span></font></p><p>
</p><p></td></p><p><td width="77"></p><p>
</p><p><span style="white-space:pre">	</span><table border=0 width="73"></p><p><span style="white-space:pre">	</span><tr></p><p><span style="white-space:pre">	</span><td width="51" style="font-weight:none;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="text" size="2" maxlength="2" style="height:20;border-color:#000000; text-align:center;border:solid 1;" name="p_cnt_4" id="p_cnt_4" value="0" onblur="num_check('', '4')"> 권</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span><td width="12"></p><p><span style="white-space:pre">		</span><table border=0 height=25></p><p><span style="white-space:pre">		</span><tr></p><p><span style="white-space:pre">		</span><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('up', '4')">▲</a></td></p><p><span style="white-space:pre">		</span></tr></p><p><span style="white-space:pre">		</span></p><p><span style="white-space:pre">		</span><tr><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('down', '4')">▼</a></td></p><p><span style="white-space:pre">		</span></tr></p><p>
</p><p><span style="white-space:pre">		</span></table></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span></tr></p><p><span style="white-space:pre">	</span></table></p><p>
</p><p></td></p><p></tr></p><p>
</p><p><tr></p><p><td width="131" style="font-weight:bold;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span><input type="hidden" name="product_5" id="product_5" value="용서가 준 평화 마을"></p><p><span style="white-space:pre">	</span>용서가 준 평화 마을</p><p></td></p><p><td width="103" style="font-weight:bold;font-size:12px;text-align:center;color:#ff0000;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="hidden" name="pay_5" id="pay_5" value="10000"></p><p><span style="white-space:pre">	</span><b>10,000 원</b></p><p><span style="white-space:pre">	</span></font></p><p>
</p><p></td></p><p><td width="77"></p><p>
</p><p><span style="white-space:pre">	</span><table border=0 width="73"></p><p><span style="white-space:pre">	</span><tr></p><p><span style="white-space:pre">	</span><td width="51" style="font-weight:none;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="text" size="2" maxlength="2" style="height:20;border-color:#000000; text-align:center;border:solid 1;" name="p_cnt_5" id="p_cnt_5" value="0" onblur="num_check('', '5')"> 권</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span><td width="12"></p><p><span style="white-space:pre">		</span><table border=0 height=25></p><p><span style="white-space:pre">		</span><tr></p><p><span style="white-space:pre">		</span><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('up', '5')">▲</a></td></p><p><span style="white-space:pre">		</span></tr></p><p><span style="white-space:pre">		</span></p><p><span style="white-space:pre">		</span><tr><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('down', '5')">▼</a></td></p><p><span style="white-space:pre">		</span></tr></p><p>
</p><p><span style="white-space:pre">		</span></table></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span></tr></p><p><span style="white-space:pre">	</span></table></p><p>
</p><p></td></p><p></tr></p><p><tr></p><p><td width="131" style="font-weight:bold;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span><input type="hidden" name="product_6" id="product_6" value="뿡뿡이네 가족 이야기"></p><p><span style="white-space:pre">	</span>뿡뿡이네 가족 이야기</p><p></td></p><p><td width="103" style="font-weight:bold;font-size:12px;text-align:center;color:#ff0000;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="hidden" name="pay_6" id="pay_6" value="10000"></p><p><span style="white-space:pre">	</span><b>10,000 원</b></p><p><span style="white-space:pre">	</span></font></p><p>
</p><p></td></p><p><td width="77"></p><p>
</p><p><span style="white-space:pre">	</span><table border=0 width="73"></p><p><span style="white-space:pre">	</span><tr></p><p><span style="white-space:pre">	</span><td width="51" style="font-weight:none;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="text" size="2" maxlength="2" style="height:20;border-color:#000000; text-align:center;border:solid 1;" name="p_cnt_6" id="p_cnt_6" value="0" onblur="num_check('', '6')"> 권</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span><td width="12"></p><p><span style="white-space:pre">		</span><table border=0 height=25></p><p><span style="white-space:pre">		</span><tr></p><p><span style="white-space:pre">		</span><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('up', '6')">▲</a></td></p><p><span style="white-space:pre">		</span></tr></p><p><span style="white-space:pre">		</span></p><p><span style="white-space:pre">		</span><tr><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('down', '6')">▼</a></td></p><p><span style="white-space:pre">		</span></tr></p><p>
</p><p><span style="white-space:pre">		</span></table></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span></tr></p><p><span style="white-space:pre">	</span></table></p><p>
</p><p></td></p><p></tr></p><p><tr></p><p><td width="131" style="font-weight:bold;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span><input type="hidden" name="product_7" id="product_7" value="우리 엄마는 바보"></p><p><span style="white-space:pre">	</span>우리 엄마는 바보</p><p></td></p><p><td width="103" style="font-weight:bold;font-size:12px;text-align:center;color:#ff0000;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="hidden" name="pay_7" id="pay_7" value="10000"></p><p><span style="white-space:pre">	</span><b>10,000 원</b></p><p><span style="white-space:pre">	</span></font></p><p>
</p><p></td></p><p><td width="77"></p><p>
</p><p><span style="white-space:pre">	</span><table border=0 width="73"></p><p><span style="white-space:pre">	</span><tr></p><p><span style="white-space:pre">	</span><td width="51" style="font-weight:none;font-size:12px;text-align:center;"></p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span><input type="text" size="2" maxlength="2" style="height:20;border-color:#000000; text-align:center;border:solid 1;" name="p_cnt_7" id="p_cnt_7" value="0" onblur="num_check('', '7')"> 권</p><p><span style="white-space:pre">	</span></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span><td width="12"></p><p><span style="white-space:pre">		</span><table border=0 height=25></p><p><span style="white-space:pre">		</span><tr></p><p><span style="white-space:pre">		</span><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('up', '7')">▲</a></td></p><p><span style="white-space:pre">		</span></tr></p><p><span style="white-space:pre">		</span></p><p><span style="white-space:pre">		</span><tr><td><a style="cursor:hand" style="color:#cc0000;font-size:9pt;" onclick="num_check('down', '7')">▼</a></td></p><p><span style="white-space:pre">		</span></tr></p><p>
</p><p><span style="white-space:pre">		</span></table></p><p><span style="white-space:pre">	</span></td></p><p><span style="white-space:pre">	</span></tr></p><p><span style="white-space:pre">	</span></table></p><p>
</p><p></td></p><p></tr></p><p>
</p><p></table></p><p>
</p><p>
</p><p>
</p><p></td></p><p>        </tr></p><p>
</p><p>      </table></p><p>    </td></p><p>  </tr></p><p>  <tr> </p><p>    <td height="48" align="center" bgcolor="snow"> </p><p>                <p style="line-height:150%; margin-top:0; margin-bottom:0;"><span style="font-size:9pt;"> </span></p></p><p>                <p style="line-height:150%; margin-top:0; margin-bottom:0; margin-left:100;" align="left"><span style="font-size:9pt;">* </p><p>                </p><p><span style="white-space:pre">				</span>배송비는 2권 이상 구입시 무료입니다.</p><p>                *</span></p></p><p>                <p style="line-height:150%; margin-top:0; margin-bottom:0; margin-left:100;" align="left"><span style="font-size:9pt;"><b>>>결재방법</b> </p><p>                : 무통장입금</span></p></p><p>                <p style="line-height:150%; margin-top:0; margin-bottom:0; margin-left:100;" align="left"><span style="font-size:9pt;"><b>>>입금은행</b> </p><p>                : <b><font color="#CC0000">농협 351-0323-2795-23</font></b>     <b>예금주</b> </p><p>                : <font color="#CC0000">조주신(바보천사)</font></span></p></p><p>                <p style="line-height:150%; margin-top:0; margin-bottom:0; margin-left:100;" align="left"><span style="font-size:9pt;"><b>* </p><p>                위 계좌로 입금해 주시면 확인후 바로 배송해 드립니다. *</b></span></p></p><p>    </td></p><p>  </tr></p><p>  <tr> </p><p>    <td height="48" align="center" bgcolor="snow"> </p><p>    <input type="image" src="success.jpg"></p><p>    </td></p><p>  </tr></p><p>  </form></p><p></table></p><p><?</p><p>exit;</p><p>?></p><div>
댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
o
8년 전

32라인이 p_cnt_0부터 p_cnt_7까지 입력값을 추출하여 수량을 뽑아내는 코드이고

34라인이 금액으로 10000원으로 고정되어 있습니다.

이 두개를 곱해서 합계가 되는데 질문의 요지를 파악하기 어려워서

어떻게 수정해야할지 조언드리기는 어렵네요.

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

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

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

로그인