Beispiel #1
0
// ���ͺ��� diag �դ�����ҹ�������ֻ���
$diag_list = array('����ġ��','����ҵ','CVA','�ҡԹ�ѹ��');
$diag_list2 = array('��Ѵ','������','�ä�ͺ�״');

function test_diag($str, $diags){
    foreach ($diags as $key => $lc) {
        $test_pos = strpos($str, $lc);
        if( $test_pos !== false ){
            return true;
        }
    }
    return false;
}

// ���������ʢͧ ��Ѵ ������ �ͺ�״ �йѺ�繡��ͺ������ع��
$inBy = test_diag($cDiag, $diag_list2);
$nid_ext = '�Ǵ�������Ф���ع��';
if( $inBy === true ){
    $nid_ext = 'ͺ�͹����ع��';
}
      
print "<font face='Angsana New' size ='3'>��������������ѡ�ҷҧᾷ��Ἱ�´��¡�� $nid_ext "; 
	  
// �����ᾷ��Ἱ��
if( $cDoctor2 === "MD058" ){
    
    // $inList = test_diag($cDiag, $diag_list);
    // if( $inList !== true ){
    //     $for_txt = '���� ��鹿����ö�Ҿ�ͧ��ҧ���';
    // }else{
    //     $for_txt = '���� ��úӺѴ�ѡ����п�鹿����ö�Ҿ�ͧ��ҧ���';
Beispiel #2
0
<?php

// ���ͺ��� diag �դ�����ҹ�������ֻ���
$diag_list = array('����ġ��','����ҵ','CVA','�ҡԹ�ѹ��');

function test_diag($str, $diags){
    foreach ($diags as $key => $lc) {
        $test_pos = strpos($str, $lc);
        if( $test_pos !== false ){
            return true;
        }
    }
    return false;
}

$inList = test_diag($cDiag, $diag_list);

print "<font face='Angsana New' size ='3'>��������������ѡ�Ҵ��¡�ýѧ���&nbsp;&nbsp;&nbsp;";

if( $cDoctor2 === 'MD115' OR $cDoctor2 === 'MD037' OR $cDoctor2 === 'MD054' OR $cDoctor2 === 'MD089' ){
    if( $inList === true ){
        print '���� ��鹿����ö�Ҿ��ҧ���';
    }else{
        // ������ä����价�������� list
        print '���� �ӺѴ�ä';
    }
    
    print "<br>";
    if( $showStart > 0 && ( $date_start_th !== false && $date_end_th !== false ) ){
        echo "������ѹ���&nbsp;&nbsp;$txt_date_start&nbsp;&nbsp;�֧&nbsp;&nbsp;$txt_date_end ";
    }