{"id":193,"date":"2020-11-23T23:20:19","date_gmt":"2020-11-23T14:20:19","guid":{"rendered":"http:\/\/www.iso-jin.com\/?page_id=193"},"modified":"2020-11-23T23:21:06","modified_gmt":"2020-11-23T14:21:06","slug":"%e3%81%8a%e5%95%8f%e5%90%88%e3%81%9b","status":"publish","type":"page","link":"https:\/\/www.iso-jin.com\/?page_id=193","title":{"rendered":"\u304a\u554f\u5408\u305b"},"content":{"rendered":"<table class=\"wp-list-table widefat fixed striped table-view-list \">\n<tbody id=\"the-list\">\n<tr>\n<td class=\"id column-id\" data-colname=\"\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\">\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      background-color:#3070a8;      color:#FFFFFF;          }\r\n    .tcd-submit-button:hover{\r\n      background-color:#3060a9;    }\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('app644184', [])\r\n      app.controller('MainCtrl644184', function($scope, $http, $httpParamSerializerJQLike) {\r\n        $scope.data = {\"name\":\"\\u554f\\u5408\\u305b\",\"title\":\"\\u78ef\\u4eba\\u3078\\u306e\\u304a\\u554f\\u5408\\u305b\",\"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\":\"\\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\":\"\\u96fb\\u8a71\\u756a\\u53f7\",\"label2\":null,\"cols\":[],\"required\":false,\"answer\":\"\",\"type\":\"textarea\",\"options\":null},{\"label1\":\"\\u304a\\u554f\\u3044\\u5408\\u308f\\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,\"submitcol\":\"3070a8\",\"submithovercol\":\"3060a9\",\"submittextcol\":\"FFFFFF\",\"submitsize\":\"m\",\"submitalign\":\"center\",\"submit\":\"\\u554f\\u5408\\u305b\\u308b\",\"mailto\":\"info@iso-jin.com,furusato_fair2020@iso-jin.com,universeed@gmail.com\",\"mailsubj\":\"\\u78ef\\u4eba\\u30b5\\u30a4\\u30c8\\u304b\\u3089\\u306e\\u554f\\u5408\\u305b\",\"mailnotif\":false,\"redirect\":\"https:\\\/\\\/www.iso-jin.com\\\/\",\"id\":\"8\",\"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: 8 }\r\n          $http({\r\n            url: \"https:\/\/www.iso-jin.com\/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 = 'https:\/\/www.iso-jin.com\/';\r\n                      })\r\n        }\r\n      })\r\n  <\/script>\r\n  <div ng-app=\"app644184\" ng-controller=\"MainCtrl644184\">\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><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\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":[],"_links":{"self":[{"href":"https:\/\/www.iso-jin.com\/index.php?rest_route=\/wp\/v2\/pages\/193"}],"collection":[{"href":"https:\/\/www.iso-jin.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.iso-jin.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.iso-jin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iso-jin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=193"}],"version-history":[{"count":2,"href":"https:\/\/www.iso-jin.com\/index.php?rest_route=\/wp\/v2\/pages\/193\/revisions"}],"predecessor-version":[{"id":333,"href":"https:\/\/www.iso-jin.com\/index.php?rest_route=\/wp\/v2\/pages\/193\/revisions\/333"}],"wp:attachment":[{"href":"https:\/\/www.iso-jin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}