Warning: session_cache_limiter(): Cannot change cache limiter when session is active in /home/wiing/wiing-wsc.com/public_html/doktornet/wp-content/themes/machiisha/wait-time-complete.php on line 2
待ち時間完了 – 街のお医者さん 症状や病名から予防策や治療法を検索

街のお医者さんは病院・医院クリニックなどの医療機関を検索できます。

 

待ち時間完了

[insert_php]
/* check
if (date_default_timezone_get()) {
echo ‘date_default_timezone_set: ‘ . date_default_timezone_get() . ‘
‘;
}
*/
/*check
if (ini_get(‘date.timezone’)) {
echo ‘date.timezone: ‘ . ini_get(‘date.timezone’). ‘
‘;
}
*/

//日本語曜日を出力
//チェック用

/*
echo date(“Y/m/d”) . ‘日付
‘;
echo $weekno . ‘番号
‘;
echo $weekjp[$weekno] . ‘曜日
‘;
*/

//var_dump (date(“n月d日”)); check用
/*
if(in_array($holidaychk, $holidayjp)){
echo “本日は祝日です。”;
}else{echo “本日は祝日ではありません。
“;}
*/

/*
global $consul_week1;
foreach ((array)$consul_week1 as $pref1){
//echo $pref1;
}
*/

//======================= WRITING START

date_default_timezone_set(‘Asia/Tokyo’);//TIMESET

//日本語の曜日配列
$weekjp = array(
‘日’, //0
‘月’, //1
‘火’, //2
‘水’, //3
‘木’, //4
‘金’, //5
‘土’, //6
‘祝’ //7
);
//現在の曜日番号(日:0 月:1 火:2 水:3 木:4 金:5 土:6)を取得
$weekno = date(‘w’);

//日本の祝日 個別
$holidayjp = array(
‘1月01日’,//元日
‘1月11日’,//成人の日
‘2月11日’,//建国記念の日
‘3月20日’,//春分の日
‘3月21日’,//振替休日
‘4月29日’,//昭和の日
‘5月03日’,//憲法記念日
‘5月04日’,//みどりの日
‘5月05日’,//こどもの日
‘7月18日’,//海の日
‘8月11日’,//山の日
‘9月19日’,//敬老の日
‘9月22日’,//秋分の日
’10月10日’,//体育の日
’11月03日’,//文化の日
’11月23日’,//勤労感謝の日
’12月23日’,//天皇誕生日
’10月17日’//check用
);
$holidaychk = date(“n月d日”);

global $clinic_no;
$filename = ‘weight_time_’.$clinic_no.’.xml’;

// Domを生成
$dom = new DomDocument(‘1.0’, ‘utf-8’);
$dom->formatOutput = true;

// 元となる要素を生成
$root = $dom->appendChild($dom->createElement(‘root’));
$head = $root->appendChild($dom->createElement(‘head’));
$body = $root->appendChild($dom->createElement(‘body’));

// ヘッダ要素を生成
$head->appendChild($dom->createElement(‘title’, ‘待ち時間管理システム-街のお医者さん’));
$head->appendChild($dom->createElement(‘description’, ‘待ち時間、混雑状況、待ち人数を管理できます。’));

// ボディ要素を生成
// データ1
global $clinic_name;
global $clinic_no;
global $kinou_all;
global $consul_time1a;
global $consul_time1b;
global $consul_time1c;
global $consul_time1d;
global $consul_week1;
global $consul_time2a;
global $consul_time2b;
global $consul_time2c;
global $consul_time2d;
global $consul_week2;
global $consul_time3a;
global $consul_time3b;
global $consul_time3c;
global $consul_time3d;
global $consul_week3;

$content = $body->appendChild($dom->createElement(‘sec_consul’));
$content->appendChild($dom->createElement(‘clinic_name’, $clinic_name));
$content->appendChild($dom->createElement(‘clinic_no’, $clinic_no));
$content->appendChild($dom->createElement(‘kinouall’, $kinou_all));
$content->appendChild($dom->createElement(‘consul_time1a’, $consul_time1a));
$content->appendChild($dom->createElement(‘consul_time1b’, $consul_time1b));
$content->appendChild($dom->createElement(‘consul_time1c’, $consul_time1c));
$content->appendChild($dom->createElement(‘consul_time1d’, $consul_time1d));
if($consul_week1){
foreach((array)$consul_week1 as $key => $value){
$content->appendChild($dom->createElement(‘consul_week1’, $consul_week1[$key]));
};
};

$content->appendChild($dom->createElement(‘consul_time2a’, $consul_time2a));
$content->appendChild($dom->createElement(‘consul_time2b’, $consul_time2b));
$content->appendChild($dom->createElement(‘consul_time2c’, $consul_time2c));
$content->appendChild($dom->createElement(‘consul_time2d’, $consul_time2d));
if($consul_week2){
foreach((array)$consul_week2 as $key => $value){
$content->appendChild($dom->createElement(‘consul_week2’, $consul_week2[$key]));
};
};

$content->appendChild($dom->createElement(‘consul_time3a’, $consul_time3a));
$content->appendChild($dom->createElement(‘consul_time3b’, $consul_time3b));
$content->appendChild($dom->createElement(‘consul_time3c’, $consul_time3c));
$content->appendChild($dom->createElement(‘consul_time3d’, $consul_time3d));
if($consul_week3){
foreach((array)$consul_week3 as $key => $value){
$content->appendChild($dom->createElement(‘consul_week3’, $consul_week3[$key]));
};
};

// 混雑状況
global $kinou_konzatsu;
global $konzatsu;
global $konzatsu_tex;
global $konzatsu_com;
$content = $body->appendChild($dom->createElement(‘sec_konzatsu’));
$content->appendChild($dom->createElement(‘kinou_konzatsu’, $kinou_konzatsu));
$content->appendChild($dom->createElement(‘konzatsu’, $konzatsu));
$content->appendChild($dom->createElement(‘konzatsu_tex’, $konzatsu_tex));
$content->appendChild($dom->createElement(‘konzatsu_com’, $konzatsu_com));

// 待ち時間
global $kinou_jikan;
global $jikan_time;
global $jikan_minutes;
global $jikan_tex;
global $jikan_com;
$content = $body->appendChild($dom->createElement(‘sec_jikan’));
$content->appendChild($dom->createElement(‘kinou_jikan’, $kinou_jikan));
$content->appendChild($dom->createElement(‘jikan_time’, $jikan_time));
$content->appendChild($dom->createElement(‘jikan_minutes’, $jikan_minutes));
$content->appendChild($dom->createElement(‘jikan_tex’, $jikan_tex));
$content->appendChild($dom->createElement(‘jikan_com’, $jikan_com));

// 待ち人数
global $kinou_ninzuu;
global $ninzuu;
global $ninzuu_tex;
global $ninzuu_com;
$content = $body->appendChild($dom->createElement(‘sec_ninzuu’));
$content->appendChild($dom->createElement(‘kinou_ninzuu’, $kinou_ninzuu));
$content->appendChild($dom->createElement(‘ninzuu’, $ninzuu));
$content->appendChild($dom->createElement(‘ninzuu_tex’, $ninzuu_tex));
$content->appendChild($dom->createElement(‘ninzuu_com’, $ninzuu_com));

$dom->save($filename);
[/insert_php]

更新完了-総合待ち時間サービス管理画面

以下の内容で更新されました

[insert_php]
echo ‘管理ID-‘.$clinic_no.’ ‘.$clinic_name;
[/insert_php]

診療時間設定

診療時間-メイン (必須)

[insert_php]
if($consul_week1){
echo “

“;
echo “メイン診療曜日:[“;
$length1 = count($consul_week1);
foreach((array)$consul_week1 as $tmp1){
$countno1++;
if($tmp1!=’7′){
echo $weekjp[$tmp1].’曜’;
}
if($tmp1==’7′){
echo $weekjp[$tmp1].’日’;
}
if($countno1 != $length1){
echo’・’;
}
}
echo “]
“;
echo “前部”.$consul_time1a.”~”.$consul_time1b.”  後部”.$consul_time1c.”~”.$consul_time1d;
print “

“;
}
if($consul_week2){
echo “

“;
echo “サブ1診療曜日:[“;
$length2 = count($consul_week2);
foreach((array)$consul_week2 as $tmp2){
$countno2++;
if($tmp2!=’7′){
echo $weekjp[$tmp2].’曜’;
}
if($tmp2==’7′){
echo $weekjp[$tmp2].’日’;
}
if($countno2 != $length2){
echo’・’;
}
}
echo “]
“;
echo “前部”.$consul_time2a.”~”.$consul_time2b.”  後部”.$consul_time2c.”~”.$consul_time2d;
print “

“;
}

if($consul_week3){
echo “

“;
echo “サブ2診療曜日は:[“;
$length3 = count($consul_week3);
foreach((array)$consul_week3 as $tmp3){
$countno3++;
if($tmp3!=’7′){
echo $weekjp[$tmp3].’曜’;
}
if($tmp3==’7′){
echo $weekjp[$tmp3].’日’;
}
if($countno3 != $length3){
echo’・’;
}
}
echo “]
“;
echo “前部”.$consul_time3a.”~”.$consul_time3b.”  後部”.$consul_time3c.”~”.$consul_time3d;
print “

“;
}
[/insert_php]

混雑状況設定

[insert_php] if($kinou_konzatsu == ”){
echo ‘

 混雑状況

‘.$konzatsu.’

‘;
echo ‘

 混雑状況フリーワード

‘.$konzatsu_tex.’

‘;
echo ‘

 混雑状況ショートメッセージ

‘.$konzatsu_com.’

‘;}
[/insert_php]
[insert_php] if($kinou_konzatsu != ”){
echo ‘

 混雑状況機能停止

‘;
}[/insert_php]

[insert_php] if($kinou_jikan== ”){
echo ‘

 待ち時間

時間数  ‘.$jikan_time.’時間’.$jikan_minutes.’ 分

‘;
echo ‘

 待ち時間フリーワード

‘.$jikan_tex.’

‘;
echo ‘

 待ち時間ショートメッセージ

‘.$jikan_com.’

‘;
}
[/insert_php]
[insert_php] if($kinou_jikan != ”){
echo ‘

‘.$kinou_jikan.’ 待ち時間機能停止

‘;
}
[/insert_php]

[insert_php] if($kinou_ninzuu == ”){
echo ‘

 待ち人数

‘.$ninzuu.’ 人

‘;
echo ‘

 待ち人数フリーワード

‘.$ninzuu_tex.’

‘;
echo ‘

 待ち人数ショートメッセージ

‘.$ninzuu_com.’

‘;
}
[/insert_php]
[insert_php] if($kinou_ninzuu != ”){
echo ‘

‘.$kinou_ninzuu.’ 待ち人数機能停止

‘;
}
[/insert_php]

 

ページトップへ