{"id":18,"date":"2024-07-13T16:39:24","date_gmt":"2024-07-13T07:39:24","guid":{"rendered":"http:\/\/zeeenzon.jp\/?page_id=18"},"modified":"2024-07-17T20:32:53","modified_gmt":"2024-07-17T11:32:53","slug":"%e3%81%8a%e5%95%8f%e5%90%88%e3%81%9b","status":"publish","type":"page","link":"https:\/\/zeeenzon.jp\/?page_id=18","title":{"rendered":"\u304a\u554f\u5408\u305b"},"content":{"rendered":"\n\r\n  <style>\r\n    \r\n    .tcd-submit-button{\r\n      display:inline-block;\r\n      width:auto;\r\n      font-weight:700;\r\n      text-align:center;\r\n      vertical-align:middle;\r\n      -webkit-transition:all .25s ease-in-out;\r\n      -moz-transition:all .25s ease-in-out;\r\n      -o-transition:all .25s ease-in-out;\r\n      -ms-transition:all .25s ease-in-out;\r\n      transition:all .25s ease-in-out;\r\n\r\n              width:300px; max-width:100%; padding:.9em 1.3em .8em; font-size:150%;     \r\n      \r\n                      }\r\n    .tcd-submit-button:hover{\r\n          }\r\n\r\n    .workflow_left_td{\r\n      background-color:#FFFFFF!important;    }\r\n\r\n    .workflow_right_td{\r\n      background-color:#FFFFFF!important;    }\r\n\r\n    .workflow_top_th{\r\n      background-color:#FFFFFF!important;    }    \r\n  <\/style>\r\n  <script type=\"text\/javascript\">\r\n      var app = angular.module('app704511', [])\r\n      app.controller('MainCtrl704511', function($scope, $http, $httpParamSerializerJQLike) {\r\n        $scope.data = {\"name\":\"\\u554f\\u3044\\u5408\\u308f\\u305b\",\"title\":\"\",\"mainbgcol\":\"FFFFFF\",\"textboxcol\":\"FFFFFF\",\"col1\":\"FFFFFF\",\"textcol1\":\"000000\",\"col2\":\"FFFFFF\",\"textcol2\":\"000000\",\"col3\":\"FFFFFF\",\"textcol3\":\"000000\",\"bordercol\":\"DDDDDD\",\"type\":\"form\",\"tablewidth\":\"100%\",\"colwidth\":\"30%\",\"border\":true,\"steps\":[{\"label1\":\"\\u4f1a\\u793e\\u540d\",\"label2\":null,\"cols\":[],\"required\":false,\"answer\":\"\",\"type\":\"text\",\"options\":null},{\"label1\":\"\\u304a\\u540d\\u524d\",\"label2\":null,\"cols\":[],\"required\":true,\"answer\":\"\",\"type\":\"text\",\"options\":null},{\"label1\":\"\\u30e1\\u30fc\\u30eb\\u30a2\\u30c9\\u30ec\\u30b9\",\"label2\":null,\"cols\":[],\"required\":true,\"answer\":\"\",\"type\":\"email\",\"options\":null},{\"label1\":\"\\u304a\\u554f\\u5408\\u305b\\u5185\\u5bb9\",\"label2\":null,\"cols\":[],\"required\":true,\"answer\":\"\",\"type\":\"textarea\",\"options\":null}],\"columnpadding\":\"10\",\"layoutstyle\":null,\"column1\":null,\"column1head\":null,\"column1img\":null,\"column2\":null,\"column2head\":null,\"column2img\":null,\"column3\":null,\"column3img\":null,\"column4\":null,\"column4img\":null,\"submitsize\":\"m\",\"submitalign\":\"center\",\"redirect\":\"http:\\\/\\\/zeeenzon.jp\\\/\",\"mailto\":\"info@zeeenzon.jp\",\"mailsubj\":\"WEB\\u30b5\\u30a4\\u30c8\\u3088\\u308a\\u554f\\u3044\\u5408\\u308f\\u305b\",\"id\":\"3\",\"mail\":null};\r\n        $scope.data.steps.forEach(function(step, i){\r\n          if( $scope.data.steps[i].options ){\r\n            $scope.data.steps[i].options = step.options.split(\"\\n\")\r\n          }\r\n        })\r\n        $scope.confirmForm = function(){\r\n          $scope.confirm = true\r\n        }\r\n        $scope.sendForm = function(){\r\n          var str = \"\";\r\n          var mail = \"\";\r\n          $scope.data.steps.forEach(function(row){\r\n            str = str + row.label1 + ': ' + row.answer\r\n            str = str + '\\r\\n----------\\r\\n'\r\n            if( row.type == 'email' ){\r\n              mail = row.answer\r\n            }\r\n          })\r\n          var obj = { action: \"tcd_submit_form\", data: str, steps: angular.toJson($scope.data.steps), mail:mail, id: 3 }\r\n          $http({\r\n            url: \"https:\/\/zeeenzon.jp\/wp-admin\/admin-ajax.php\",\r\n            method: \"POST\",\r\n            data: obj,\r\n            headers: { 'Content-Type' : 'application\/x-www-form-urlencoded' },\r\n            transformRequest: $httpParamSerializerJQLike\r\n          }).then(function(res){\r\n                          window.location.href = 'http:\/\/zeeenzon.jp\/';\r\n                      })\r\n        }\r\n      })\r\n  <\/script>\r\n  <div ng-app=\"app704511\" ng-controller=\"MainCtrl704511\">\r\n\r\n    <h2 class=\"text-center\" ng-show=\"completed\">\r\n          <\/h2>\r\n\r\n    <form ng-submit=\"confirmForm()\" ng-hide=\"completed\">\r\n      <table class=\"workflow_form table table-bordered tcd-workflow wf-form\" style=\"table-layout:auto; background:#{{data.mainbgcol}}\">\r\n        <tr class=\"workflow_form_headline\" style=\"color:#{{data.textcol1}}\">\r\n          <th class=\"text-center workflow_top_th\" colspan=\"2\">\r\n            <b>{{data.title}}<\/b>\r\n              <span ng-if=\"data.subtitle\"><br\/>{{data.subtitle}}<\/span>\r\n          <\/th>\r\n        <\/tr>\r\n        <tr ng-repeat=\"row in data.steps\">\r\n          <td style=\"width:30%; vertical-align:middle\" class=\"text-center workflow_left_td\">\r\n            <span style=\"color:#{{data.textcol2}};\">{{row.label1}}<span ng-if=\" row.required == '1' \" style=\"color:firebrick\">&nbsp;*<\/span><\/span>\r\n          <\/td>\r\n\r\n          <td class=\"workflow_right_td\" ng-hide=\"confirm\">\r\n            <input style=\"background:#{{data.textboxcol}}\" class=\"form-control\" type=\"text\" ng-if=\" row.type == 'text' \" ng-model=\"row.answer\" ng-required=\" row.required == '1' \" \/>\r\n            <input style=\"background:#{{data.textboxcol}}\" class=\"form-control\" type=\"email\" ng-if=\" row.type == 'email' \" ng-model=\"row.answer\" ng-required=\" row.required == '1' \" \/>\r\n            <textarea style=\"background:#{{data.textboxcol}}\" class=\"form-control\" ng-if=\" row.type == 'textarea' \" ng-model=\"row.answer\" ng-required=\" row.required == '1' \"><\/textarea>\r\n            <fieldset ng-if=\" row.type == 'radio' \">\r\n              <div style=\"display:inline-block\" ng-repeat=\"option in row.options track by $index\">\r\n                <input name=\"{{row.label1}}\" type=\"radio\" id=\"{{option}}\" value=\"{{option}}\" ng-model=\"row.answer\" ng-required=\" row.required == '1' \" \/>&nbsp;&nbsp;<label for=\"{{option}}\">{{option}}<\/label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n              <\/div>\r\n            <\/fieldset>\r\n            <fieldset ng-if=\" row.type == 'select' \">\r\n              <select ng-required=\" row.required == '1' \" ng-model=\"row.answer\">\r\n                <option ng-if=\" row.required == '1' \" value=\"\">Please select<\/option>\r\n                <option ng-repeat=\"option in row.options track by $index\" value=\"{{option}}\">{{option}}<\/option>\r\n              <\/select>\r\n            <\/fieldset>\r\n          <\/td>\r\n          <td ng-show=\"confirm\">{{ row.answer }}<\/td>\r\n        <\/tr>\r\n      <\/table>\r\n      <div class=\"text-center\" colspan=\"2\" ng-hide=\"confirm\">\r\n        <input type=\"submit\" class=\"tcd-submit-button\" value=\"{{ data.submit ? data.submit : 'Confirm' }}\" \/>\r\n      <\/div>\r\n\r\n      <div class=\"text-center\" colspan=\"2\" ng-show=\"confirm\">\r\n        <button type=\"button\" class=\"tcd-submit-button\" ng-click=\"confirm = false\">\u30ad\u30e3\u30f3\u30bb\u30eb<\/button>\r\n        <button type=\"button\" class=\"tcd-submit-button\" ng-click=\"sendForm()\">\u9001\u4fe1<\/button>\r\n      <\/div>\r\n    <\/form>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-18","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/zeeenzon.jp\/index.php?rest_route=\/wp\/v2\/pages\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zeeenzon.jp\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/zeeenzon.jp\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/zeeenzon.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zeeenzon.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":2,"href":"https:\/\/zeeenzon.jp\/index.php?rest_route=\/wp\/v2\/pages\/18\/revisions"}],"predecessor-version":[{"id":60,"href":"https:\/\/zeeenzon.jp\/index.php?rest_route=\/wp\/v2\/pages\/18\/revisions\/60"}],"wp:attachment":[{"href":"https:\/\/zeeenzon.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}