api_key = HP_API_KEY; if($req->request == 'redirect' || $req->request == 'manage') { $req->callback = HP_CALLBACK; $req->logo = HP_LOGO; $req->company = HP_COMPANY; $req->homepage = HP_HOMEPAGE; $req->manage = HP_MANAGE; } $result = sendRequest( HP_API_HOST, json_encode($req) ); if ($req->request == 'manage') { $res = json_decode($result, true); if ($res['result'] == 'success') { header('Location: ' . HP_BRON_MANAGE . $res['sid']); return ''; } } return $result; } if (!defined('HP_DISABLE_DIRECT') || !HP_DISABLE_DIRECT) { header('Content-Type: application/json'); $req = json_decode(file_get_contents("php://input")); if (isset($req) && isset($req->request)) { $result = HP_parseRequest($req); echo $result; } elseif (isset($_GET['request'])) { $req = new stdClass(); $req->request = $_GET['request']; if (isset($_GET['lang'])) { $req->lang = $_GET['lang']; } $result = HP_parseRequest($req); echo $result; } else { echo '["empty_request"]'; } } ?>
.hp-calendar { border: 1px solid #d4d0c8; display: inline-block; font-family: "Arial", sans-serif; } .hp-lists { margin: 5px 5px 0 5px; } .hp-clinic-list, .hp-profile-list, .hp-doctor-list { display: block; width: 100%; margin-bottom: 5px; border: 1px solid #d4d0c8; background: #eee; font: 14px sans-serif; } .hp-calendar-wrapper { } .hp-month-header { height: 24px; } .hp-month-title { text-align: center; cursor: default; font: bold 14px sans-serif; line-height: 20px; margin-top: 2px; } .hp-month-prev, .hp-month-next { margin: 0px 3px; cursor: pointer; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; user-select: none; } .hp-month-prev div, .hp-month-next div { margin: 0px 5px; } .hp-month-prev div:after { content: 'В«'; display: inline; font: bold 14px sans-serif; } .hp-month-next div:after { content: 'В»'; display: inline; font: bold 14px sans-serif; } .hp-month-prev { float: left; } .hp-disabled { visibility: hidden; } .hp-month-next { float: right; } .hp-week-header { border-bottom: 3px solid #d4d0c8; } .hp-week-header:after { display: block; content: ' '; clear: both; } .hp-week-header .hp-day-box { font-weight: bold; } .hp-week-header .hp-day-box:hover { border: 0; } .hp-day-box { display: inline-block; float: left; width: 28px; height: 30px; font: 12px 'Arial', sans-serif; line-height: 16px; text-align: center; cursor: default; } .hp-day-box .hp-day-label { width: 100%; height: 15px; padding-top: 7px; text-align: center; } .hp-day-box.hp-other-month { color: #aaa; } .hp-day-box.hp-available { font-weight: bold; color: #2a6; cursor: pointer; } .hp-day-box.hp-available.hp-active { background: #fff; border-bottom: 0; font-weight: bold; font-size: 14px; cursor: pointer; } .hp-day-box.hp-today { font-weight: bold; color: #fff; background: #f00; } .hp-day-box.hp-holiday { color: #e55; } .hp-day-box.hp-nohk { color: #d71; } .hp-day-box.hp-available:hover { } .hp-days-box { -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; user-select: none; } .hp-days-box:after { display: block; content: ''; clear: both; } .hp-new-week { clear: both; } .hp-tooltip { cursor: default; display: none; font-weight: normal; text-align: left; -moz-user-select: text; -khtml-user-select: text; -webkit-user-select: text; user-select: text; width: 233px; } .hp-tooltip-header { font-weight: bold; font-size: 16px; margin-bottom: 5px; } .hp-tooltip-container { max-height: 300px; overflow: auto; } .hp-left .hp-tooltip { } .hp-right .hp-tooltip { } .hp-calendar-info .hp-tooltip { display: block; } .hp-right .hp-tooltip:before { display: block; content: ' '; width: 24px; height: 1px; background: #fff; position: relative; top: -6px; left: -5px; } .hp-left .hp-tooltip:after { display: block; content: ' '; width: 24px; height: 1px; background: #fff; position: absolute; top: -1px; right: 0px; } .hp-tooltip strong { font-weight: bold; font-size: 14px; } .hp-tooltip-doctor { margin-bottom: 5px; } .hp-tooltip-slot { margin: 2px 0; border-top: 1px solid #d4d0c8; line-height: 26px; clear: both; font-weight: bold; color: #2a6; } .hp-tooltip-slot.hp-nohk { color: #d71; } .hp-tooltip-slot-doctor { font-size: 12px; font-style: italic; font-weight: normal; } .hp-tooltip-slot button { float: right; min-width: 50px; } .hp-tooltip-by-slot { display: none; } .hp-tooltip-sort { font-weight: bold; font-size: 14px; margin-bottom: 10px; } .hp-tooltip-sort span { cursor: pointer; } .hp-tooltip-sort span.hp-tooltip-sort-active { cursor: default; border-bottom: 1px dashed #f60; } .hp-clear { clear: both; }