자유게시판

[별지 제6호 서식] 첩약 처방·조제내역 안내서식 : 구현하기 : cp print****e_herb.php pri**ript_***e.php

작성자 정보

  • 삼둡 작성
  • 작성일

컨텐츠 정보

본문

echo "\n<br>이 첩약처방조제내역 안내를 인쇄하시려면 우측의 인쇄하기new를 누르세>
요.
<br>\n";
$sql = "select * from $tablename where serial=$serial";
$result = mysql_query($sql) or die (mysql_error());
$array=mysql_fetch_array($result);

$branch=$array[branch];

 


   $sql="select lifemaru, address, phone from branch where branch_name = '$branch'";
   $rs=sql_q2($sql);
   $row=mysql_fetch_array($rs);
   $lifemaru_mode=$row[0];
       $address=$row[1];
       $phone =$row[2];

   if ($lifemaru_mode == 2 || $lifemaru_mode == 1)
   {
       $branch = "생***루(".$branch.")";
       }
       else
       {
       if ($branch=="**")
               {
               $branch="청******원";
               }
               else
               {
               $branch = $branch."한의원";
               }
                $branch = $branch."한의원";
               }
       }

 

 

 

herb

 

gram

 

 


if (!$array[serial]) { alert ("처방이 유효하지 않습니다"); }


?>

<style type="text/css">
.space { background:#FFFFFF;float:left;margin:0;padding:0;cursor:default; }
.bar { background:#000000;float:left;margin:0;padding:0;cursor:default; }
.bartext { clear:both;font-family:Fixedsys,Arial;font-size:12px;cursor:default; }
</style>

<SCRIPT>
  function pagePrint(Obj) {
      var W = Obj.offsetWidth;        //screen.availWidth;
      var H = Obj.offsetHeight;        //screen.availHeight;
       var features = "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=" + W + ",height=" + H + ",left=0,top=0";
      var PrintPage = window.open("about:blank",Obj.id,features);
      PrintPage.document.open();
      PrintPage.document.write("<html><head><title></title><style type='text/css'>body, tr, td, input, textarea { font-family:굴림; font-size:12px; }</style>\n </head>\n<body>" + Obj.innerHTML + "\n</body></html>");
      PrintPage.document.close();
      PrintPage.document.title = document.domain;
      PrintPage.printWindow(PrintPage.location.reload());
  }
</SCRIPT>

 


<!-- 2022년 12월 엣지만 쓰게되어서 추가-->
<script type="text/javascript">
<!--
var initBody;

function beforePrint() {
boxes = document.body.innerHTML;
document.body.innerHTML = box.innerHTML;
}
function afterPrint() {
document.body.innerHTML = boxes;
}
function printArea() {
window.print();
}

window.onbeforeprint = beforePrint;
window.onafterprint = afterPrint;

-->
</script>


<table width=640>
<tr>
<td>
<div ID="box">
<script>
  function printWindow() {
      factory.printing.header = "생****원 조제의뢰서(처방전)";
      factory.printing.footer = "생명**전원  문의전화 031-****7";
      factory.printing.portrait = true; //false 로할경우 가로방향으로 출력합니
다.
      factory.printing.leftMargin = 30.0;//마진값은 적당하게 주시면 됩니다.
      factory.printing.topMargin = 40.0;
      factory.printing.rightMargin = 1.0;
      factory.printing.bottomMargin = 1.0;
      factory.printing.Print(false);
  }
</script>
<object id=factory style='display:none'  classid='clsid:1663ed61-23eb-11d2-b92f-008048fdd814'  codebase='smsx.cab#Version=6,4,438,06'>
</object>

 

<TABLE border="1" cellspacing="0" cellpadding="0" style='border-collapse:collapse;border:none;'width=800>
<TR>
<TD colspan="10" valign="middle" style='width:641;height:53;border-left:solid #000000 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #5d5d5d 0.4pt;padding:1.4pt 1.4pt 1.4pt 1.4pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:120%;'><SPAN STYLE='font-size:16.0pt;font-family:"한양견고딕,한컴돋움";line-height:120%'>첩약 처방·조제내
역 안내</SPAN></P>
</TD>
</TR>
<TR>
<TD rowspan="4" valign="middle" style='width:42;height:85;border-left:solid #000000 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체"'>환자</SPAN></P>
</TD>
<TD rowspan="2" colspan="2" valign="middle" style='width:100;height:43;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #666666 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;'><SPAN STYLE='font-family:"돋움체"'>>성 명</SPAN></P>
</TD>
<TD rowspan="2" colspan="3" valign="middle" style='width:179;height:43;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #666666 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0><SPAN STYLE='font-family:"돋움체";color:#008000'>
       <? echo $array[pt_name]; ?> </SPAN></P>
</TD>
<TD rowspan="4" valign="middle" style='width:92;height:85;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;'><SPAN STYLE='font-family:"돋움체"'>>처방기관</SPAN></P>
</TD>
<TD colspan="2" valign="middle" style='width:73;height:28;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #666666 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;'><SPAN STYLE='font-family:"돋움체"'>>기관명칭</SPAN></P>
</TD>
<TD valign="middle" style='width:156;height:28;border-left:solid #666666 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #666666 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0><SPAN STYLE='font-family:"돋움체";color:#008000'>
       <? echo $branch; ?> </SPAN></P>
</TD>
</TR>
<TR>
<TD rowspan="2" colspan="2" valign="middle" style='width:73;height:28;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;'><SPAN STYLE='font-family:"돋움체"'>>전화번호</SPAN></P>
</TD>
<TD rowspan="2" valign="middle" style='width:156;height:28;border-left:solid #666666 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0><SPAN STYLE='font-family:"돋움체"'>
       <? echo $phone ; ?> </SPAN></P>
</TD>
</TR>
<TR>
<TD rowspan="2" colspan="2" valign="middle" style='width:100;height:43;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;'><SPAN STYLE='font-family:"돋움체"'>>생년월일/성별</SPAN></P>
</TD>
<TD rowspan="2" colspan="3" valign="middle" style='width:179;height:43;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;'><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'>○○○○○○-
       <?
       if ($array[sex] == "m") { echo "1";}
       else {echo "2";}
        ?> ******</SPAN></P>
</TD>
</TR>
<TR>
<TD colspan="2" valign="middle" style='width:73;height:28;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;'><SPAN STYLE='font-family:"돋움체";letter-spacing:-15%'>처방의 </SPAN></P>
</TD>
<TD valign="middle" style='width:156;height:28;border-left:solid #666666 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0><SPAN STYLE='font-family:"돋움체";color:#008000'>
       <? echo $array[doctor] ; ?> </SPAN></P>
</TD>
</TR>
<TR>
<TD colspan="3" valign="middle" style='width:141;height:28;border-left:solid #000000 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 1.1pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0><SPAN STYLE='font-size:11.0pt;font-family:"돋움체";letter-spacing:-5%;line-height:160%'>발급 연월일(처방일) </SPAN></P>
</TD>
<TD colspan="3" valign="middle" style='width:179;height:28;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 1.1pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;'><SPAN STYLE='font-size:9.0pt;font-family:"돋움체";line-height:160%'>
       <? echo $array[time]; ?> </SPAN></P>
</TD>
<TD valign="middle" style='width:92;height:28;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 1.1pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체"'>질병분류기호</SPAN></P>
</TD>
<TD colspan="3" valign="middle" style='width:228;height:28;border-left:solid #666666 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 1.1pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='margin-left:14.1pt;text-indent:-14.1pt;line-height:130%;'><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";letter-spacing:-14%;line-height:130%'>
       <? echo  $array[secret_comment]; ?> </SPAN></P>
</TD>
</TR>
<TR>
<TD rowspan="4" colspan="3" valign="middle" bgcolor="#fffae6"  style='width:141;height:112;border-left:solid #000000 1.1pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #000000 1.1pt;border-bottom:solid #000000 1.1pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체";color:#008000'></SPAN></P>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체";color:#008000'></SPAN></P>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체"'>조제탕전기관</SPAN></P>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체";color:#008000'></SPAN></P>
</TD>
<TD colspan="3" valign="middle" bgcolor="#fffae6"  style='width:179;height:38;border-left:solid #7f7f7f 0.4pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #000000 1.1pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체"'>기관명</SPAN></P>
</TD>
<TD valign="middle" bgcolor="#fffae6"  style='width:92;height:38;border-left:solid #7f7f7f 0.4pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #000000 1.1pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체";color:#008000'>생***루</SPAN></P>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체";color:#008000'>원외탕전원</SPAN></P>
</TD>
<TD colspan="2" valign="middle" bgcolor="#fffae6"  style='width:73;height:38;border-left:solid #7f7f7f 0.4pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #000000 1.1pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체"'>전화번호</SPAN></P>
</TD>
<TD valign="middle" bgcolor="#fffae6"  style='width:156;height:38;border-left:solid #7f7f7f 0.4pt;border-right:solid #000000 1.1pt;border-top:solid #000000 1.1pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0><SPAN STYLE='font-family:"돋움체"'>(031) ***7</SPAN></P>
</TD>
</TR>
<TR>
<TD colspan="3" valign="middle" bgcolor="#fffae6"  style='width:179;height:25;border-left:solid #7f7f7f 0.4pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체"'>조제자 성명</SPAN></P>
</TD>
<TD colspan="4" valign="middle" bgcolor="#fffae6"  style='width:321;height:25;border-left:solid #7f7f7f 0.4pt;border-right:solid #000000 1.1pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체";color:#008000'>***</SPAN></P>
</TD>
</TR>
<TR>
<TD colspan="3" valign="middle" bgcolor="#fffae6"  style='width:179;height:25;border-left:solid #7f7f7f 0.4pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체"'>조제일자</SPAN></P>
</TD>
 

<TD colspan="4" valign="middle" bgcolor="#fffae6"  style='width:321;height:25;border-left:solid #7f7f7f 0.4pt;border-right:solid #000000 1.1pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체";font-weight:bold;color:#008000'>
       <? echo $array[boiling_time] ; ?>  </SPAN></P>
</TD>
</TR>
<TR>
<TD colspan="3" valign="middle" bgcolor="#fffae6"  style='width:179;height:25;border-left:solid #7f7f7f 0.4pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 1.1pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체"'>소재지</SPAN></P>
</TD>
<TD colspan="4" valign="middle" bgcolor="#fffae6"  style='width:321;height:25;border-left:solid #7f7f7f 0.4pt;border-right:solid #000000 1.1pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 1.1pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체";color:#008000'>경기 ***호</SPAN></P>
</TD>
</TR>
<TR>
<TD colspan="4" valign="middle" bgcolor="#ffffff"  style='width:162;height:33;border-left:solid #000000 0.4pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #000000 1.1pt;border-bottom:solid #7f7f7f 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:120%;'><SPAN STYLE='font-family:"돋움체";font-weight:bold'>① </SPAN><SPAN STYLE='font-family:"돋움체"'>1>회 복용 팩수</SPAN></P>
</TD>
<TD colspan="2" valign="middle" bgcolor="#ffffff"  style='width:159;height:33;border-left:solid #7f7f7f 0.4pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #000000 1.1pt;border-bottom:solid #7f7f7f 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:120%;'><SPAN STYLE='font-family:"돋움체";font-weight:bold'>② </SPAN><SPAN STYLE='font-family:"돋움체"'>1>일 복용 팩수</SPAN></P>
</TD>
<TD colspan="3" valign="middle" bgcolor="#ffffff"  style='width:165;height:33;border-left:solid #7f7f7f 0.4pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #000000 1.1pt;border-bottom:solid #7f7f7f 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:120%;'><SPAN STYLE='font-family:"굴림체";font-weight:bold'>③ </SPAN><SPAN STYLE='font-family:"돋움체"'>총
</SPAN><SPAN STYLE='font-family:"돋움체";letter-spacing:-4%'>투약일수</SPAN></P>
</TD>
<TD valign="middle" bgcolor="#ffffff"  style='width:156;height:33;border-left:solid #7f7f7f 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #000000 1.1pt;border-bottom:solid #7f7f7f 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-family:"돋움체"'>용 법</SPAN></P>
</TD>
</TR>
<TR>
<TD colspan="4" valign="middle" bgcolor="#ffffff"  style='width:162;height:54;border-left:solid #000000 0.4pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #7f7f7f 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0><SPAN STYLE='font-size:9.0pt;font-family:"돋움체";color:#008000;line-height:160%'>1팩</SPAN></P>
</TD>
<TD colspan="2" valign="middle" bgcolor="#ffffff"  style='width:159;height:54;border-left:solid #7f7f7f 0.4pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #7f7f7f 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0><SPAN STYLE='font-size:9.0pt;font-family:"돋움체";color:#008000;line-height:160%'>2팩 </SPAN></P>
</TD>
<TD colspan="3" valign="middle" bgcolor="#ffffff"  style='width:165;height:54;border-left:solid #7f7f7f 0.4pt;border-right:solid #7f7f7f 0.4pt;border-top:solid #7f7f7f 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0><SPAN STYLE='font-size:9.0pt;font-family:"돋움체";color:#008000;line-height:160%'>10일</SPAN></P>
</TD>
<TD valign="middle" bgcolor="#ffffff"  style='width:156;height:54;border-left:solid #7f7f7f 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #7f7f7f 0.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;'><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'>
       <? echo $array[howto]; ?> </SPAN></P>
<P CLASS=HStyle0 STYLE='text-align:center;'><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'></SPAN></P>
</TD>
</TR>
<TR>
<TD colspan="8" valign="middle" bgcolor="#ffffff"  style='width:440;height:28;border-left:solid #000000 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #666666 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:120%;'><SPAN STYLE='font-family:"돋움체";font-weight:bold'>④ </SPAN><SPAN STYLE='font-family:"돋움체"'>한
약재</SPAN></P>
</TD>
<TD rowspan="2" colspan="2" valign="middle" bgcolor="#fffae6"  style='width:201;height:49;border-left:solid #666666 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #666666 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:120%;'><SPAN STYLE='font-family:"돋움체";font-weight:bold'>⑤ </SPAN><SPAN STYLE='font-family:"돋움체"'>원
산지</SPAN></P>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:120%;'><SPAN STYLE='font-family:"굴림체";color:#008000'></SPAN></P>
</TD>
</TR>
 

<TR>
<TD colspan="5" valign="middle" bgcolor="#ffffff"  style='width:220;height:21;border-left:solid #000000 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #666666 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:120%;'><SPAN STYLE='font-family:"돋움체"'>명칭</SPAN></P>
</TD>
<TD colspan="3" valign="middle" bgcolor="#ffffff"  style='width:220;height:21;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #666666 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:120%;'><SPAN STYLE='font-family:"돋움체"'>코드</SPAN></P>
</TD>
</TR>

 

<?

for ($i=0;$i<62;$i++)
{
      $hhh=$herb[$i];
      $ggg=$gram[$i];
      $ggg=$ggg*$ch;


      $sql3 = "select * from herb where  herb='$hhh'";
      $result3 = mysql_query($sql3) or die (mysql_error());
      $array3=mysql_fetch_array($result3);

      $company=$array3[company];
      $from=$array3[herb_from];
      $maincode=$array3[maincode];
      $stancode=$array3[stancode];
      $itemcode=$array3[itemcode];

      if ($hhh) {

// echo "<tr> <td colspan=2> $hhh </td>  <td> $maincode </td>  <td> $from </td>
 //     <td> $company </td> <td> $stancode :: $itemcode </td> </tr> \n";
  //    }

 

?>
                  <TR>
                  <TD colspan="5" valign="middle" bgcolor="#ffffff"  style='width:220;height:28;border-left:solid #000000 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #666666 0.4pt;border-bottom:dotted #666666 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='line-height:120%;'><SPAN STYLE='font-family:"돋움체";color:#008000'> <? echo $hhh; ?> </SPAN></P>
</TD>
<TD colspan="3" valign="middle" bgcolor="#ffffff"  style='width:220;height:28;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:solid #666666 0.4pt;border-bottom:dotted #666666 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='line-height:120%;'><SPAN STYLE='font-family:"돋움체";color:#008000'> <? echo $maincode; ?>  </SPAN></P>
</TD>
<TD colspan="2" valign="middle" bgcolor="#fffae6"  style='width:201;height:28;border-left:solid #666666 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #666666 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='line-height:120%;'><SPAN STYLE='font-family:"돋움체";color:#008000'> <? echo $from; ?> </SPAN></P>
</TD>
</TR>
<?


      }

}

?>


<!--
<TR>
<TD colspan="5" valign="middle" bgcolor="#ffffff"  style='width:220;height:28;border-left:solid #000000 0.4pt;border-right:solid #666666 0.4pt;border-top:dotted #666666 0.4pt;border-bottom:solid #000000 1.1pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0><SPAN STYLE='font-family:"돋움체";color:#008000'>?</SPAN></P>
</TD>
<TD colspan="3" valign="middle" bgcolor="#ffffff"  style='width:220;height:28;border-left:solid #666666 0.4pt;border-right:solid #666666 0.4pt;border-top:dotted #666666 0.4pt;border-bottom:solid #000000 1.1pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0><SPAN STYLE='font-family:"돋움체";color:#008000'>?</SPAN></P>
</TD>
<TD colspan="2" valign="middle" bgcolor="#fffae6"  style='width:201;height:28;border-left:solid #666666 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #666666 0.4pt;border-bottom:solid #000000 1.1pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0><SPAN STYLE='font-family:"돋움체";color:#008000'>?</SPAN></P>
</TD>
</TR>
-->
<TR>
<TD colspan="2" valign="middle" bgcolor="#fffae6"  style='width:112;height:32;border-left:solid #000000 1.1pt;border-right:solid #666666 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 1.1pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;'><SPAN STYLE='font-family:"돋움체"'>>보관방법</SPAN></P>
</TD>
<TD colspan="8" valign="middle" bgcolor="#fffae6"  style='width:529;height:32;border-left:solid #666666 0.4pt;border-right:solid #000000 1.1pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 1.1pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='text-align:center;'><SPAN STYLE='font-family:"돋움체";color:#008000'>냉장 보관 요망(냉동 엄금) </SPAN></P>
</TD>
</TR>
<TR>
<TD colspan="10" valign="bottom" style='width:641;height:242;border-left:solid #000000 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #000000 1.4pt;border-bottom:solid #000000 0.4pt;padding:2.8pt 2.8pt 2.8pt 2.8pt'>
<P CLASS=HStyle0 STYLE='margin-left:17.3pt;text-indent:-17.3pt;'></P>
<TABLE border="1" cellspacing="0" cellpadding="0" style='border-collapse:collapse;border:none;'>
<TR>
<TD valign="middle" style='width:27;height:230;border-left:solid #000000 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 0.4pt;padding:1.4pt 5.1pt 1.4pt 5.1pt'>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:130%'>항</SPAN></P>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:130%'>목</SPAN></P>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:130%'>설</SPAN></P>
<P CLASS=HStyle0 STYLE='text-align:center;line-height:130%;'><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:130%'>명</SPAN></P>
</TD>
<TD valign="middle" style='width:604;height:230;border-left:solid #000000 0.4pt;border-right:solid #000000 0.4pt;border-top:solid #000000 0.4pt;border-bottom:solid #000000 0.4pt;padding:1.4pt 5.1pt 1.4pt 5.1pt'>
<P CLASS=HStyle0><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'>① 한약재를 조제·탕전하여 1회에 복용하는 팩수를 기재</SPAN></P>
<P CLASS=HStyle0><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'>② 한약재를 조제·탕전하여 1일에 복용하는 팩수를 기재</SPAN></P>
<P CLASS=HStyle0><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'>③ 복용하는 일수를‘5’ 또는 ‘10’으로 기재</SPAN></P>
<P CLASS=HStyle0><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'>④ 조제·탕전에 포함된 한약재 명칭과 코드(제품코드 또는 주성분코드)를 기재<
/SPAN></P>
<P CLASS=HStyle0><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'>⑤ 한약재의 원산지를 기재</SPAN></P>
<P CLASS=HStyle0><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";letter-spacing:-1%;line-height:160%'>- 처방 시 환자에게 제공하는 경우에는 선택 기재, 조제·탕
전 후 환자에게 제공하는 경우에는 필수 기재</SPAN></P>
<P CLASS=HStyle0><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";letter-spacing:-1%;line-height:160%'>- 원산지 기재 시 국가명은 필수 기재이며, 생산 지역명은 >필요시 병기</SPAN></P>
<P CLASS=HStyle0><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'></SPAN></P>
<P CLASS=HStyle0><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'>※ 음영표시는 조제탕전 기관에서 입력. 단, 공동이용탕전실을 이용하는 경우는
처방기관도 입력 가능</SPAN></P>
<P CLASS=HStyle0><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'></SPAN></P>
<P CLASS=HStyle0><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'></SPAN></P>
<P CLASS=HStyle0><SPAN STYLE='font-size:8.0pt;font-family:"돋움체";line-height:160%'></SPAN></P>
</TD>
</TR>
</TABLE>


<!-- <table border=1 cellspacing=0 width=350>
<?

for ($i=0;$i<62;$i++) {

$sql2 = "select * from herb where  herb='$herb[$i]'";
$result2 = mysql_query($sql2) or die (mysql_error());

$array2=mysql_fetch_array($result2);

if  ((!$array2[unit_herb]) and (!$array2[packed]))
      {
      $amount=$amount+($gram[$i]*$array[ch]);
      }

      else
      {
      /* $amount=$amount+$gram[$i]; */
      }

if ($array2[packed])
      {
       $packamount_edit = $packamount_edit + $gram[$i] ;
//      $herb[$i]= "<font color=#3333ff>$herb[$i]</font>";
      //소화재나 D시리즈 처럼 포장이 되어 있는 약재인 경우
      }

              }


$cc=$array[cc];
$pack=$array[pack];
$boil_time=$array[boil_time];

$ch=$array[ch];

$packamount=$cc*$pack;

$amount1300=$amount+$packamount+(1300*$boil_time) -$packamount_edit ;
$amount500=$amount+$packamount+(500*$boil_time) -$packamount_edit ;
$amount450=$amount+$packamount+(450*$boil_time) -$packamount_edit ;
$amount1050=$amount+$packamount+(1050*$boil_time) -$packamount_edit ;
$amount250=$amount+$packamount+(250*$boil_time) -$packamount_edit ;
$amount1000=$amount+$packamount+(1000*$boil_time) -$packamount_edit ;

if ($amount <1 )
      {
      $amount1300=0;$amount500=0;$amount450=0;$amount1050=0;$amount250=0;$amount1000=0;
       }


if ($array[branch]!='') {$branch=$array[branch]."점";}
echo "
<tr>
<td colspan=6 align=center>
";
?>
<img src=http://www.barcodesinc.com/generator/image.php?code=<?=$array[id]?>-<?=$array[serial]?>-<?=$array[confirm_id]?>&style=165&type=C128B&width=200&height=50&xres=1&font=3>
<?
if ($array[mode] >=4) { echo "<br>취소된 처방입니다<br>"; }

for ($i=0;$i<62;$i++) {

$sql2 = "select * from herb  where  herb='$herb[$i]'";
$result = mysql_query($sql2) or die (mysql_error());

$array2=mysql_fetch_array($result);

if ((!$array2[unit_herb]) and (!$array2[packed]))
      {
      $gram[$i]=$ch*$gram[$i];
      }
      else
      {
      $gram[$i]=$gram[$i];
      }
}
echo "-->";
/*
echo "

</td>
</tr>
<tr>
      <td>
      $branch
      </td>
      <td>
      $array[pt_number]?
      </td>
      <td>
      $array[pt_name]?
      </td>

      <td>
      처방의사
      </td>

      <td colspan=2 align=center>
      $array[doctor]
      </td>
</tr>
<tr>
</tr>
<tr>
<td colspan=2>명칭</td>
<td>코드</td>
<td>원산지</td>
<td>회사</td>
<td>표준코드::상품코드</td>

</tr>
";
*/


/*
echo"
<tr bgcolor=#eeeeee>
<td>
처방일자
</td>
<td colspan=2>
$array[time]
</td>
<td colspan=2>
 </td>
<td>

</td>
</tr>
<tr>
<td>
환자명
</td>
<td>
$array[pt_name]
</td>
<td colspan=2 align=center>
$array[sex]/$array[age]
</td>
<td>

</td>
<td>

</td>
</tr>

<tr>
<td>
주소
</td>
<td colspan=5>
$array[address]?
</td>
</tr>

<tr>
<td>
전화1
</td>
<td colspan=2>
$array[phone1]?
</td>
<td>
전화2
</td>
<td colspan=2>
$array[phone2]?
</td>
</tr>
<tr>
<td>
복용법
</td>
<td colspan=5>
$array[howto]?
</td>
</tr>";
*/
echo "
</table>
</div>
</td>

 

<td valign=top align=right>
이 조제의뢰서를 확인하고 있습니다.<br><br>
<!-- <a href='javascript:pagePrint(d2)'>처방전인쇄</a> -->
<form action='javascript:pagePrint(d2)'><input type=submit value=처방전인쇄></form>

";

?>
<a href="#" onclick="printArea()">인쇄하기NEW</a>
</td>
</tr>
</table>

<?
//logging
$ip=$REMOTE_ADDR  ;
$action = $g4[title] . $sql;

logging ();

include_once("");

mysql_connect(") or die (mysql_error());
mysql_select_db("");

include_once("");

mysql_close();

?>
 

 

 

 

 

관련자료

댓글 1

최고관리자님의 댓글

  • 최고관리자
  • 작성일
select count(*) from make_herb where ( year(time) = 2024 and month(time) =5 ) order by serial DESC and chch=1

인기검색어


최근글


새댓글