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

온라인견적에서 같은 분류의 상품 여러개 선택할 수 있는 방법 문의

· 15년 전 · 6 · 1
안녕하세요? 두가지 질문드립니다.

1)온라인견적서 추가하고 있는중입니다.
예를들어 색연필이라는 분류에 빨,주,노,초,파,남,보 이렇게 7가지 색깔이 들어있지만 견적리스트에는 하나만 선택할 수 있게 되어있습니다.
빨간, 노랑, 파랑 이렇게 여러개를 선택하게 하려면 어떻게 해야 하는지요?
질문을 검색해 보니 하위카테고리를 이용하라고 답변을 주셨던데, 그렇게 한다면 상품수 만큼 하위카테고리를 만들어야 한다는 말씀이신지요?
방법이 없을까요? ㅠ.ㅠ;;
부탁드리겠습니다.

2)또 한가지 코딩 좀 여쭐게요.
onlinecalcprint.php파일 수정중인데요.
위에 링크된 화면에서 빨간부분은 표테두리가 나타나지 않습니다.
해당 부분은 아래와 같이 코딩되어 있습니다.
어디를 고쳐야 할지요.


<table width="665" height="448" cellspacing="0" style="border-collapse:collapse;">
<tr>
<td width="661" height="54" style="border-width:1; border-top-color:rgb(0,102,204); border-right-color:rgb(0,102,204); border-bottom-color:rgb(153,153,153); border-left-color:rgb(0,102,204); border-style:solid;" colspan="4">
<p align="center"><b>견 &nbsp;적 &nbsp;내 &nbsp;용</b></p>
</td>
</tr>
<tr>
<td width="318" height="17" style="border-width:1; border-top-color:rgb(0,102,153); border-right-color:rgb(153,153,153); border-bottom-color:rgb(0,102,204); border-left-color:rgb(0,102,204); border-style:solid;">
<p align="center"><b>모 &nbsp;&nbsp;&nbsp;델 &nbsp;&nbsp;&nbsp;명</b></p>
</td>
<td width="59" height="34" style="border-width:1; border-top-color:rgb(0,102,153); border-right-color:rgb(153,153,153); border-bottom-color:rgb(0,102,204); border-left-color:rgb(153,153,153); border-style:solid;">
<p align="center"><b>수량</b></p>
</td>
<td width="135" height="34" style="border-width:1; border-top-color:rgb(0,102,153); border-right-color:rgb(153,153,153); border-bottom-color:rgb(0,102,204); border-left-color:rgb(153,153,153); border-style:solid;">
<p align="center"><b>단가</b></p>
</td>
<td width="125" height="34" style="border-width:1; border-top-color:rgb(0,102,153); border-right-color:rgb(0,102,204); border-bottom-color:rgb(0,102,204); border-left-color:rgb(153,153,153); border-style:solid;">
<p align="center"><b>합계</b></p>
</td>
</tr>
<tr><td colspan="4" bgcolor="#F6F8F8">
<?
$k = 0;
$total_amount = 0;
for ($i=0; $i<count($_POST[it_id]); $i++)
{
$it_id = $_POST[it_id][$i];
if (!$it_id)
continue;

$sql = " select b.ca_name
from $cfg[table_item] a, $cfg[table_category] b
where a.ca_id = b.ca_id
and a.it_id= '$it_id' ";
$ca = sql_fetch($sql);

$qty = $_POST[ct_qty][$i];
$it_name = $_POST[it_name][$i];

$amount = $_POST[it_amount][$i];
$subtotal_amount = $amount * $qty;
$total_amount += $subtotal_amount;

if ($k > 0)

$k++;
echo "<tr>";
echo "<td width=318 height=37 border=1 bordercolor=black bgcolor=f6f8f8>
<p align=center>".($_POST[it_name][$i])."</p></td>";
echo "<td width=59 height=37 border=1 bordercolor=black bgcolor=f6f8f8><p align=center> $qty</p>
</td>";
echo "<td width=135 height=37 border=1 bordercolor=black bgcolor=f6f8f8 >
<p align=center>" .display_amount($amount). "</p>
</td>";
echo "<td width=125 height=37 border=1 bordercolor=black bgcolor=f6f8f8 >
<p align=center>".display_amount($subtotal_amount)."</p>
</td></tr>";
}
?>
</td></tr>

<tr>
<td width="318" height="37" style="border-width:1; border-top-color:rgb(153,153,153); border-right-color:rgb(153,153,153); border-bottom-color:rgb(153,153,153); border-left-color:rgb(0,102,204); border-top-style:solid; border-right-style:none; border-bottom-style:solid; border-left-style:solid;">
<p align="center">=== &nbsp;&nbsp;이하여백 &nbsp;&nbsp;===</p>
</td>
<td width="59" height="37" style="border-width:1; border-color:rgb(153,153,153); border-top-style:solid; border-right-style:none; border-bottom-style:solid; border-left-style:none;">&nbsp;</td>
<td width="135" height="37" style="border-width:1; border-color:rgb(153,153,153); border-top-style:solid; border-right-style:none; border-bottom-style:solid; border-left-style:none;">&nbsp;</td>

<tr>
<td width="388" style="border-width:1; border-top-color:rgb(0,102,204); border-right-color:rgb(153,153,153); border-bottom-color:rgb(0,102,204); border-left-color:rgb(0,102,204); border-style:solid;" colspan="2" height="64">
<p align="center">* 화물택배 배송 후 자가설치*</p>
</td>
<td width="135" style="border-width:1; border-top-color:rgb(0,102,204); border-right-color:rgb(153,153,153); border-bottom-color:rgb(0,102,204); border-left-color:rgb(153,153,153); border-style:solid;" height="64">
<p align="center"><b>견적합계(VAT포함)</b></p>
</td>
<td width="125" style="border-width:1; border-top-color:rgb(0,102,204); border-right-color:rgb(0,102,204); border-bottom-color:rgb(0,102,204); border-left-color:rgb(153,153,153); border-style:solid;" height="64" bgcolor="#EAEBEB">
<p align="center"><b><span style="font-size:12pt;"><? echo display_amount($total_amount) ?></span></b></p>
</td>
</tr>
</table>

댓글 작성

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

로그인하기

댓글 1개

1. 빨주노초파남보를 분류별로 각각 생성하셔야 합니다.

2. style="border:1px solid red;" 와 같은 코드를 넣어보시기 바랍니다.

게시글 목록

번호 제목
14355
14353
14351
14347
14343
14338
14334
14332
14330
14328
14324
14323
14321
14319
14314
14311
14309
14307
14301
14299