コード例 #1
0
ファイル: StoreMode.php プロジェクト: gingerP/shop
 private function renderCheckBoxes()
 {
     $checkFiz = 'chekbox_check';
     $onclickFiz = "onclick=\"window.location='" . URLBuilder::storeModeFiz(YesNoType::YES) . "'\"";
     $checkUr = 'chekbox_check';
     $onclickUr = "onclick=\"window.location='" . URLBuilder::storeModeUr(YesNoType::YES) . "'\"";
     if (!array_key_exists(Labels::CHECK_UR, $_GET) && array_key_exists(Labels::CHECK_FIZ, $_GET)) {
         $onclickFiz = '';
         $checkUr = '';
     } elseif (array_key_exists(Labels::CHECK_UR, $_GET) && !array_key_exists(Labels::CHECK_FIZ, $_GET)) {
         $onclickUr = '';
         $checkFiz = '';
     } elseif (array_key_exists(Labels::CHECK_UR, $_GET) && array_key_exists(Labels::CHECK_FIZ, $_GET)) {
         $onclickFiz = "onclick=\"window.location='" . URLBuilder::storeModeFiz(YesNoType::NO) . "'\"";
         $onclickUr = "onclick=\"window.location='" . URLBuilder::storeModeUr(YesNoType::NO) . "'\"";
     }
     echo "\r\n            <div class='float_left chekbox_control font_arial'>\r\n                <div id='" . Labels::CHECK_UR . "' class='chekbox float_left cursor_pointer " . $checkUr . "' " . $onclickUr . "></div>\r\n                <div class='chekbox_label'>" . Labels::STORE_MODE_UR . "</div>\r\n            </div>\r\n            <div class='float_left chekbox_control font_arial'>\r\n                <div id='" . Labels::CHECK_FIZ . "' class='chekbox float_left cursor_pointer " . $checkFiz . "' " . $onclickFiz . "></div>\r\n                <div class='chekbox_label'>" . Labels::STORE_MODE_FIZ . "</div>\r\n            </div>\r\n        ";
 }