{"action":"created","comment":{"url":"https://api.github.com/repos/anph/test_sideci/pulls/comments/92137133","pull_request_review_id":12645251,"id":92137133,"diff_hunk":"@@ -0,0 +1,474 @@\n+<?php\n+$required\t= ' <span style=\"color:#FF0000\"><i class=\"fa fa-star\"></i>';\n+\n+// 会社名称\n+$name = array(\n+\t'name'\t=> 'name',\n+\t'id'\t=> 'name',\n+\t'value' => htmlspecialchars_decode(set_value('name', $company['name'], FALSE), ENT_QUOTES),\n+\t'class' => 'form-control'\n+);\n+\n+$name_s = array(\n+\t'name'\t=> 'name_s',\n+\t'id'\t=> 'name_s',\n+\t'value'\t=> htmlspecialchars_decode(set_value('name_s', $company['name_s'], FALSE), ENT_QUOTES),\n+\t'class'\t=> 'form-control'\n+);\n+\n+// 会社PR文\n+$pr_headlline = array(\n+\t'name'\t=> 'pr_headlline',\n+\t'id'\t=> 'pr_headlline',\n+\t'value' => htmlspecialchars_decode(set_value('pr_headlline', $company['pr_headlline'], FALSE), ENT_QUOTES),\n+\t'class' => 'form-control'\n+);\n+\n+// 会社テキスト\n+$pr_text = array(\n+\t'name'\t=> 'pr_text',\n+\t'id'\t=> 'pr_text',\n+\t'value' => htmlspecialchars_decode(set_value('pr_text', $company['pr_text'], FALSE), ENT_QUOTES),\n+\t'rows'\t=> '10',\n+\t'class' => 'form-control'\n+);\n+\n+// ロゴ画像\n+$logo = array(\n+\t'name'\t=> 'logo',\n+\t'id'\t=> 'logo',\n+\t'value' => set_value('logo'),\n+\t'class' => 'form-control photo_local',\n+\t'style' => 'height: auto;'\n+);\n+\n+// 非公開フラグ\n+$aryhidden_flg = array('0'=>'公開', '1'=>'非公開');\n+$hidden_flg = array(\n+\t'name'\t=> 'hidden_flg',\n+);\n+\n+\n+// ボタン関係\n+$submit = array(\n+\t'type' \t\t=> 'submit',\n+\t'content' \t=> '登録',\n+\t'class'\t\t=> 'btn btn-md btn-primary'\n+);\n+\n+$reset = array(\n+\t'type' \t\t=> 'reset',\n+\t'content' \t=> 'リセット',\n+\t'class'\t\t=> 'btn btn-md btn-default'\n+);\n+\n+\n+// 会社種類\n+$type = array(''=>'選択してください');\n+$type_selected = '';\n+foreach($type_list as $row)\n+{\n+\tif($row['id']==set_value('type', $company['type']))\n+\t{\n+\t\t$type_selected = set_value('type', $company['type']);\n+\t}\n+\n+\t$type[\"{$row[\"id\"]}\"] = $row[\"name\"];\n+}\n+\n+// 会社ロゴ\n+$logo_url = '';\n+if ($company['logo'] != '')\n+{\n+\t$logo_url = site_url(COMPANY_IMG_URL.'/'.$company['id'].'/logo_320.'.$company['logo']);\n+}\n+else\n+{\n+\t$logo_url = $company['logo_link'];\n+}\n+\n+$parent_company = array(''=>'選択してください');\n+$parent_company_selected = '';\n+foreach($parent_company_list as $row)\n+{\n+\tif($row['id']==set_value('parent_company', $company['parent_company']))\n+\t{\n+\t\t$parent_company_selected = set_value('parent_company', $company['parent_company']);\n+\t}\n+\t\n+\t$name_company = $row[\"name_s\"]. '（'. $row[\"name\"] .'）';\n+\tif ($row[\"parent_company\"] != '0') {\n+\t\t$name_company = $name_company . ' [子会社]';\n+\t}\n+\tif ($row['hidden_flg'] == FLAG_ON)\n+\t{\n+\t\t$name_company = $name_company .'（非公開）';\n+\t}\n+\t$parent_company[\"{$row[\"id\"]}\"] = $name_company;\n+}\n+\n+$hp = array(\n+\t'name'\t=> 'hp',\n+\t'id'\t=> 'hp',\n+\t'value' => htmlspecialchars_decode(set_value('hp', $company['hp'], FALSE), ENT_QUOTES),\n+\t'maxlength'\t=> '2083',\n+\t'class' => 'form-control'\n+);\n+?>\n+\n+<section class=\"content\">\n+\t<div class=\"box box-default color-palette-box\">\n+\t\t<div class=\"box-header with-border\">\n+\t\t\t<h3 class=\"box-title\"><i class=\"fa fa-building\"></i> 会社情報登録</h3>\n+\t\t</div>\n+\t\t<div class=\"box-body\">\n+\t\t\t<p class=\"text-right\"><a href=\"<?= site_url('cms/company/search') ?>\" class=\"btn btn-md btn-primary\"><i class=\"fa fa-list-alt\"></i> 会社一覧</a></p>\n+\n+\t\t\t<?php if (validation_errors()): ?>\n+\t\t\t<div class=\"col-md-12\" style=\"padding-left: 0;\">\n+\t\t\t\t<div class=\"box box-danger\" style=\"box-shadow: 0 4px 4px rgba(0,0,0,0.1);\">\n+\t\t\t\t\t<div class=\"box-body\">\n+\t\t\t\t\t\t<?php\n+\t\t\t\t\t\t$error = $this->form_validation->error_array();\n+\t\t\t\t\t\tforeach ($error as $key => $str):\n+\t\t\t\t\t\t?>\n+\t\t\t\t\t\t<div style=\"margin-bottom: 10px;\">\n+\t\t\t\t\t\t\t<a href=\"<?= \"#$key-error-box\" ?>\" style=\"color: #dd4b39;\"><?= $str; ?></a>\n+\t\t\t\t\t\t</div>\n+\t\t\t\t\t\t<?php endforeach; ?>\n+\t\t\t\t\t</div>\n+\t\t\t\t\t<!-- /.box-body -->\n+\t\t\t\t</div>\n+\t\t\t\t<!-- /.box -->\n+\t\t\t</div>\n+\t\t\t<?php endif; ?>\n+\n+\t\t\t<?php echo form_open_multipart($this->uri->uri_string()); ?>\n+\n+\t\t\t\t<div class=\"form-group\">\n+\t\t\t\t\t<label class=\"control-label\" for=\"name\">会社名<?php echo $required; ?> <i id=\"spin-ajax-<?php echo $name['name']; ?>\" class=\"fa fa-spinner fa-spin\" style=\"display:none;\"></i></label>\n+\t\t\t\t\t<div id=\"name-error-box\"><?php echo form_error($name['name']); ?></div>\n+\t\t\t\t\t<?php echo form_input($name);?>\n+\t\t\t\t</div>\n+\t\t\t\t<div class=\"form-group\">\n+\t\t\t\t\t<label class=\"control-label\" for=\"name_s\">会社通称<?php echo $required; ?> <i id=\"spin-ajax-<?php echo $name_s['name']; ?>\" class=\"fa fa-spinner fa-spin\" style=\"display:none;\"></i></label>\n+\t\t\t\t\t<div id=\"name_s-error-box\"><?php echo form_error($name_s['name']); ?></div>\n+\t\t\t\t\t<?php echo form_input($name_s);?>\n+\t\t\t\t</div>\n+\t\t\t\t<div class=\"form-group\">\n+\t\t\t\t\t<label class=\"control-label\" for=\"pr_headlline\">会社PR文</label>\n+\t\t\t\t\t<div id=\"pr_headlline-error-box\"><?php echo form_error($pr_headlline['name']); ?></div>\n+\t\t\t\t\t<?php echo form_input($pr_headlline);?>\n+\t\t\t\t</div>\n+\t\t\t\t<div class=\"form-group\">\n+\t\t\t\t\t<label class=\"control-label\" for=\"pr_text\">会社テキスト</label>\n+\t\t\t\t\t<div id=\"pr_text-error-box\"><?php echo form_error($pr_text['name']); ?></div>","path":"application/modules/cms/views/pc/company_form.php","position":165,"original_position":165,"commit_id":"5bc17496e6899f6a25d79b583d2df9ee38830c65","original_commit_id":"5bc17496e6899f6a25d79b583d2df9ee38830c65","user":{"login":"anph","id":8475601,"avatar_url":"https://avatars.githubusercontent.com/u/8475601?v=3","gravatar_id":"","url":"https://api.github.com/users/anph","html_url":"https://github.com/anph","followers_url":"https://api.github.com/users/anph/followers","following_url":"https://api.github.com/users/anph/following{/other_user}","gists_url":"https://api.github.com/users/anph/gists{/gist_id}","starred_url":"https://api.github.com/users/anph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anph/subscriptions","organizations_url":"https://api.github.com/users/anph/orgs","repos_url":"https://api.github.com/users/anph/repos","events_url":"https://api.github.com/users/anph/events{/privacy}","received_events_url":"https://api.github.com/users/anph/received_events","type":"User","site_admin":false},"body":"__[code_sniffer]__\n* Any char before the opening PHP tag is prohibited. Please remove newline or indentation before the opening PHP tag.\n* Any char after the closing PHP tag is prohibited. Please removes newline or spaces after the closing PHP tag.\n\n<!-- Comment by [SideCI](https://sideci.com) -->","created_at":"2016-12-13T10:20:34Z","updated_at":"2016-12-13T10:20:34Z","html_url":"https://github.com/anph/test_sideci/pull/1#discussion_r92137133","pull_request_url":"https://api.github.com/repos/anph/test_sideci/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/anph/test_sideci/pulls/comments/92137133"},"html":{"href":"https://github.com/anph/test_sideci/pull/1#discussion_r92137133"},"pull_request":{"href":"https://api.github.com/repos/anph/test_sideci/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/anph/test_sideci/pulls/1","id":97720621,"html_url":"https://github.com/anph/test_sideci/pull/1","diff_url":"https://github.com/anph/test_sideci/pull/1.diff","patch_url":"https://github.com/anph/test_sideci/pull/1.patch","issue_url":"https://api.github.com/repos/anph/test_sideci/issues/1","number":1,"state":"open","locked":false,"title":"commit code","user":{"login":"duoctvd","id":16394386,"avatar_url":"https://avatars.githubusercontent.com/u/16394386?v=3","gravatar_id":"","url":"https://api.github.com/users/duoctvd","html_url":"https://github.com/duoctvd","followers_url":"https://api.github.com/users/duoctvd/followers","following_url":"https://api.github.com/users/duoctvd/following{/other_user}","gists_url":"https://api.github.com/users/duoctvd/gists{/gist_id}","starred_url":"https://api.github.com/users/duoctvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duoctvd/subscriptions","organizations_url":"https://api.github.com/users/duoctvd/orgs","repos_url":"https://api.github.com/users/duoctvd/repos","events_url":"https://api.github.com/users/duoctvd/events{/privacy}","received_events_url":"https://api.github.com/users/duoctvd/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-13T10:13:09Z","updated_at":"2016-12-13T10:20:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24bd7a1cddcab084adcf7bc9bc58517d21ba3d6a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/anph/test_sideci/pulls/1/commits","review_comments_url":"https://api.github.com/repos/anph/test_sideci/pulls/1/comments","review_comment_url":"https://api.github.com/repos/anph/test_sideci/pulls/comments{/number}","comments_url":"https://api.github.com/repos/anph/test_sideci/issues/1/comments","statuses_url":"https://api.github.com/repos/anph/test_sideci/statuses/5bc17496e6899f6a25d79b583d2df9ee38830c65","head":{"label":"anph:test_sideci_myhome","ref":"test_sideci_myhome","sha":"5bc17496e6899f6a25d79b583d2df9ee38830c65","user":{"login":"anph","id":8475601,"avatar_url":"https://avatars.githubusercontent.com/u/8475601?v=3","gravatar_id":"","url":"https://api.github.com/users/anph","html_url":"https://github.com/anph","followers_url":"https://api.github.com/users/anph/followers","following_url":"https://api.github.com/users/anph/following{/other_user}","gists_url":"https://api.github.com/users/anph/gists{/gist_id}","starred_url":"https://api.github.com/users/anph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anph/subscriptions","organizations_url":"https://api.github.com/users/anph/orgs","repos_url":"https://api.github.com/users/anph/repos","events_url":"https://api.github.com/users/anph/events{/privacy}","received_events_url":"https://api.github.com/users/anph/received_events","type":"User","site_admin":false},"repo":{"id":76346631,"name":"test_sideci","full_name":"anph/test_sideci","owner":{"login":"anph","id":8475601,"avatar_url":"https://avatars.githubusercontent.com/u/8475601?v=3","gravatar_id":"","url":"https://api.github.com/users/anph","html_url":"https://github.com/anph","followers_url":"https://api.github.com/users/anph/followers","following_url":"https://api.github.com/users/anph/following{/other_user}","gists_url":"https://api.github.com/users/anph/gists{/gist_id}","starred_url":"https://api.github.com/users/anph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anph/subscriptions","organizations_url":"https://api.github.com/users/anph/orgs","repos_url":"https://api.github.com/users/anph/repos","events_url":"https://api.github.com/users/anph/events{/privacy}","received_events_url":"https://api.github.com/users/anph/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anph/test_sideci","description":null,"fork":false,"url":"https://api.github.com/repos/anph/test_sideci","forks_url":"https://api.github.com/repos/anph/test_sideci/forks","keys_url":"https://api.github.com/repos/anph/test_sideci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anph/test_sideci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anph/test_sideci/teams","hooks_url":"https://api.github.com/repos/anph/test_sideci/hooks","issue_events_url":"https://api.github.com/repos/anph/test_sideci/issues/events{/number}","events_url":"https://api.github.com/repos/anph/test_sideci/events","assignees_url":"https://api.github.com/repos/anph/test_sideci/assignees{/user}","branches_url":"https://api.github.com/repos/anph/test_sideci/branches{/branch}","tags_url":"https://api.github.com/repos/anph/test_sideci/tags","blobs_url":"https://api.github.com/repos/anph/test_sideci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anph/test_sideci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anph/test_sideci/git/refs{/sha}","trees_url":"https://api.github.com/repos/anph/test_sideci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anph/test_sideci/statuses/{sha}","languages_url":"https://api.github.com/repos/anph/test_sideci/languages","stargazers_url":"https://api.github.com/repos/anph/test_sideci/stargazers","contributors_url":"https://api.github.com/repos/anph/test_sideci/contributors","subscribers_url":"https://api.github.com/repos/anph/test_sideci/subscribers","subscription_url":"https://api.github.com/repos/anph/test_sideci/subscription","commits_url":"https://api.github.com/repos/anph/test_sideci/commits{/sha}","git_commits_url":"https://api.github.com/repos/anph/test_sideci/git/commits{/sha}","comments_url":"https://api.github.com/repos/anph/test_sideci/comments{/number}","issue_comment_url":"https://api.github.com/repos/anph/test_sideci/issues/comments{/number}","contents_url":"https://api.github.com/repos/anph/test_sideci/contents/{+path}","compare_url":"https://api.github.com/repos/anph/test_sideci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anph/test_sideci/merges","archive_url":"https://api.github.com/repos/anph/test_sideci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anph/test_sideci/downloads","issues_url":"https://api.github.com/repos/anph/test_sideci/issues{/number}","pulls_url":"https://api.github.com/repos/anph/test_sideci/pulls{/number}","milestones_url":"https://api.github.com/repos/anph/test_sideci/milestones{/number}","notifications_url":"https://api.github.com/repos/anph/test_sideci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anph/test_sideci/labels{/name}","releases_url":"https://api.github.com/repos/anph/test_sideci/releases{/id}","deployments_url":"https://api.github.com/repos/anph/test_sideci/deployments","created_at":"2016-12-13T10:03:38Z","updated_at":"2016-12-13T10:03:38Z","pushed_at":"2016-12-13T10:13:09Z","git_url":"git://github.com/anph/test_sideci.git","ssh_url":"git@github.com:anph/test_sideci.git","clone_url":"https://github.com/anph/test_sideci.git","svn_url":"https://github.com/anph/test_sideci","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"anph:develop","ref":"develop","sha":"ff2cb8737815fd3367ac536a6bdc826e6b49d694","user":{"login":"anph","id":8475601,"avatar_url":"https://avatars.githubusercontent.com/u/8475601?v=3","gravatar_id":"","url":"https://api.github.com/users/anph","html_url":"https://github.com/anph","followers_url":"https://api.github.com/users/anph/followers","following_url":"https://api.github.com/users/anph/following{/other_user}","gists_url":"https://api.github.com/users/anph/gists{/gist_id}","starred_url":"https://api.github.com/users/anph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anph/subscriptions","organizations_url":"https://api.github.com/users/anph/orgs","repos_url":"https://api.github.com/users/anph/repos","events_url":"https://api.github.com/users/anph/events{/privacy}","received_events_url":"https://api.github.com/users/anph/received_events","type":"User","site_admin":false},"repo":{"id":76346631,"name":"test_sideci","full_name":"anph/test_sideci","owner":{"login":"anph","id":8475601,"avatar_url":"https://avatars.githubusercontent.com/u/8475601?v=3","gravatar_id":"","url":"https://api.github.com/users/anph","html_url":"https://github.com/anph","followers_url":"https://api.github.com/users/anph/followers","following_url":"https://api.github.com/users/anph/following{/other_user}","gists_url":"https://api.github.com/users/anph/gists{/gist_id}","starred_url":"https://api.github.com/users/anph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anph/subscriptions","organizations_url":"https://api.github.com/users/anph/orgs","repos_url":"https://api.github.com/users/anph/repos","events_url":"https://api.github.com/users/anph/events{/privacy}","received_events_url":"https://api.github.com/users/anph/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anph/test_sideci","description":null,"fork":false,"url":"https://api.github.com/repos/anph/test_sideci","forks_url":"https://api.github.com/repos/anph/test_sideci/forks","keys_url":"https://api.github.com/repos/anph/test_sideci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anph/test_sideci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anph/test_sideci/teams","hooks_url":"https://api.github.com/repos/anph/test_sideci/hooks","issue_events_url":"https://api.github.com/repos/anph/test_sideci/issues/events{/number}","events_url":"https://api.github.com/repos/anph/test_sideci/events","assignees_url":"https://api.github.com/repos/anph/test_sideci/assignees{/user}","branches_url":"https://api.github.com/repos/anph/test_sideci/branches{/branch}","tags_url":"https://api.github.com/repos/anph/test_sideci/tags","blobs_url":"https://api.github.com/repos/anph/test_sideci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anph/test_sideci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anph/test_sideci/git/refs{/sha}","trees_url":"https://api.github.com/repos/anph/test_sideci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anph/test_sideci/statuses/{sha}","languages_url":"https://api.github.com/repos/anph/test_sideci/languages","stargazers_url":"https://api.github.com/repos/anph/test_sideci/stargazers","contributors_url":"https://api.github.com/repos/anph/test_sideci/contributors","subscribers_url":"https://api.github.com/repos/anph/test_sideci/subscribers","subscription_url":"https://api.github.com/repos/anph/test_sideci/subscription","commits_url":"https://api.github.com/repos/anph/test_sideci/commits{/sha}","git_commits_url":"https://api.github.com/repos/anph/test_sideci/git/commits{/sha}","comments_url":"https://api.github.com/repos/anph/test_sideci/comments{/number}","issue_comment_url":"https://api.github.com/repos/anph/test_sideci/issues/comments{/number}","contents_url":"https://api.github.com/repos/anph/test_sideci/contents/{+path}","compare_url":"https://api.github.com/repos/anph/test_sideci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anph/test_sideci/merges","archive_url":"https://api.github.com/repos/anph/test_sideci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anph/test_sideci/downloads","issues_url":"https://api.github.com/repos/anph/test_sideci/issues{/number}","pulls_url":"https://api.github.com/repos/anph/test_sideci/pulls{/number}","milestones_url":"https://api.github.com/repos/anph/test_sideci/milestones{/number}","notifications_url":"https://api.github.com/repos/anph/test_sideci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anph/test_sideci/labels{/name}","releases_url":"https://api.github.com/repos/anph/test_sideci/releases{/id}","deployments_url":"https://api.github.com/repos/anph/test_sideci/deployments","created_at":"2016-12-13T10:03:38Z","updated_at":"2016-12-13T10:03:38Z","pushed_at":"2016-12-13T10:13:09Z","git_url":"git://github.com/anph/test_sideci.git","ssh_url":"git@github.com:anph/test_sideci.git","clone_url":"https://github.com/anph/test_sideci.git","svn_url":"https://github.com/anph/test_sideci","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/anph/test_sideci/pulls/1"},"html":{"href":"https://github.com/anph/test_sideci/pull/1"},"issue":{"href":"https://api.github.com/repos/anph/test_sideci/issues/1"},"comments":{"href":"https://api.github.com/repos/anph/test_sideci/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/anph/test_sideci/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/anph/test_sideci/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/anph/test_sideci/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/anph/test_sideci/statuses/5bc17496e6899f6a25d79b583d2df9ee38830c65"}}}}
{"actor":{"display_login":"anph"}}