{"id":255627,"date":"2015-04-20T21:04:02","date_gmt":"2015-04-20T17:04:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=255627"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=255627","title":{"rendered":"\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0430 PHP + Javascript"},"content":{"rendered":"<br \/>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h3>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0432\u043f\u043e\u043b\u043d\u0435, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439: \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0441\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430. \u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e: \u0444\u043e\u0442\u043e \u0442\u043e\u0432\u0430\u0440\u0430, \u0435\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e. \u0414\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/a1a\/cdf\/8b6\/a1acdf8b6964423db32a7186393881b3.jpg\"\/><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u0418\u0434\u0435\u044f \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h3>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0438 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437, \u0440\u0435\u0448\u0435\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0445\u0435\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u044b: \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043d\u0430 \u0444\u043e\u0442\u043e-\u0438\u043a\u043e\u043d\u043a\u0443, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0445\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u043c\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438, \u0430 \u043f\u0440\u0438 \u043d\u0435\u0443\u0441\u043f\u0435\u0445\u0435 \u2014 \u00aberror\u00bb. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0445\u0430, \u0444\u043e\u0442\u043e-\u0438\u043a\u043e\u043d\u043a\u0430 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u043c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u0443 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u0444\u043e\u0442\u043e, \u0430 \u0432 \u0441\u043a\u0440\u044b\u0442\u043e\u0435 \u043f\u043e\u043b\u0435 \u0444\u043e\u0440\u043c\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0435\u0451 \u0438\u043c\u044f, \u0430 \u043f\u0440\u0438 \u043d\u0435\u0443\u0441\u043f\u0435\u0445\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0444\u043e\u0442\u043e-\u0438\u043a\u043e\u043d\u043a\u0443 \u0438 \u043f\u0443\u0441\u0442\u043e\u0435 \u0441\u043a\u0440\u044b\u0442\u043e\u0435 \u043f\u043e\u043b\u0435 \u0444\u043e\u0440\u043c\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0438, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0435\u0435 \u0437\u0430 \u0438\u043c\u044f \u0444\u043e\u0442\u043e. \u0422\u0435\u043a\u0441\u0442\u043e\u0432\u0430\u044f \u0436\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0444\u043e\u0440\u043c\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0441\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u043c\u0430\u0441\u0441\u0438\u0432 [\u0438\u043c\u044f\u0424\u043e\u0442\u043e, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u0414\u0435\u0442\u0430\u043b\u0438, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u0428\u0442] \u2014 \u044d\u0442\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e: \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043c\u0435\u0442\u043e\u0434 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043f\u043e\u043b\u043d\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u043f\u0440\u0438 \u0438\u0445 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438. \u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, AJAX \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0444\u0430\u0439\u043b\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 target \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u043a\u0430\u0436\u0435\u043c \u0441\u043a\u0440\u044b\u0442\u044b\u0439 \u0444\u0440\u0435\u0439\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/863\/a69\/be2\/863a69be2e984190af56e595b0edf3b3.jpg\"\/><\/p>\n<h3>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>  \u0418\u0442\u0430\u043a, \u0432 \u043d\u0430\u0448\u0435\u043c \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u0438 HTML, PHP \u0438 Javascript. \u041f\u043e\u0435\u0445\u0430\u043b\u0438:<\/p>\n<p>  1. \u0412\u0435\u0440\u0441\u0442\u0430\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0444\u043e\u0440\u043c\u0443 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u043e\u0442\u043e. \u041e\u043d\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d input, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0441\u043f\u0440\u044f\u0447\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e css:<\/p>\n<pre><code class=\"html\">&lt;form enctype=&quot;multipart\/form-data&quot; action=&quot;&lt;?=site_url('otherdetails\/uploadOthDetPhoto')?&gt;&quot; method=&quot;post&quot; id=&quot;othdetphotoform&quot; target=&quot;hiddenframe&quot;&gt; &lt;input type=&quot;file&quot; id=&quot;photoloader&quot; name=&quot;photo&quot;\/&gt; &lt;\/form&gt; <\/code><\/pre>\n<p>  2. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0441\u043a\u0440\u044b\u0442\u044b\u0439 iframe, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0444\u043e\u0440\u043c\u044b \u0441 \u0444\u0430\u0439\u043b\u043e\u043c:<\/p>\n<pre><code class=\"html\">&lt;iframe id=&quot;hiddenframe&quot; name=&quot;hiddenframe&quot; style=&quot;width:0px;height:0px;border:0px&quot;&gt;&lt;\/iframe&gt; <\/code><\/pre>\n<p>  3. \u0412\u0435\u0440\u0441\u0442\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c:<\/p>\n<pre><code class=\"html\">&lt;table id=&quot;othdetails&quot; class=&quot;table table-hover borderbottom&quot;&gt;     &lt;thead&gt;         &lt;tr&gt;             &lt;th&gt;\u2116 \u043f\/\u043f&lt;\/th&gt;             &lt;th&gt;\u0424\u043e\u0442\u043e&lt;\/th&gt;             &lt;th&gt;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435&lt;\/th&gt;             &lt;th&gt;\u0448\u0442&lt;\/th&gt;             &lt;th&gt;&lt;\/th&gt;         &lt;\/tr&gt;     &lt;\/thead&gt;     &lt;tbody&gt;         &lt;tr&gt;             &lt;td class=&quot;col-xs-2 col-md-1&quot; style=&quot;vertical-align:middle;&quot;&gt;&lt;\/td&gt;             &lt;td style=&quot;width:110px;&quot;&gt;                 &lt;img src=&quot;photo_icon.png&quot; alt=&quot;\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u043e\u0442\u043e&quot; class=&quot;img-circle othdet_photo&quot;\/&gt;                 &lt;input class=&quot;form-control&quot; type=&quot;hidden&quot; name=&quot;dform_oth_details_photo[]&quot; value=&quot;&quot;\/&gt;             &lt;\/td&gt;             &lt;td&gt;&lt;textarea name=&quot;dform_oth_details_descr[]&quot; class=&quot;form-control&quot; rows=&quot;3&quot; placeholder=&quot;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u0435\u0442\u0430\u043b\u0438&quot;&gt;&lt;\/textarea&gt;&lt;\/td&gt;             &lt;td class=&quot;col-xs-2 col-md-1&quot; style=&quot;vertical-align:middle;&quot;&gt;&lt;input name=&quot;dform_oth_details_cnt[]&quot; type=&quot;number&quot; class=&quot;form-control&quot; value=&quot;1&quot; placeholder=&quot;\u0448\u0442&quot;\/&gt;&lt;\/td&gt;             &lt;td style=&quot;vertical-align:middle;text-align:right;&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-remove removebtn&quot; aria-hidden=&quot;true&quot;&gt;&lt;\/span&gt;&lt;\/td&gt;         &lt;\/tr&gt;     &lt;\/tbody&gt; &lt;\/table&gt; <\/code><\/pre>\n<p>  \u0412 \u0441\u0442\u0440\u043e\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 \u043c\u044b \u0438\u043c\u0435\u0435\u043c:  <\/p>\n<ul>\n<li>\n<pre><code class=\"html\">&lt;img src=&quot;photo_icon.png&quot; alt=&quot;\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u043e\u0442\u043e&quot; class=&quot;img-circle othdet_photo&quot;\/&gt; <\/code><\/pre>\n<p> \u2014 \u0438\u043a\u043e\u043d\u043a\u0430, \u043a\u043b\u0438\u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0438\u043a \/&gt; \u0432 \u0444\u043e\u0440\u043c\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u043e\u0442\u043e,  <\/li>\n<li>\n<pre><code class=\"html\">&lt;input class=&quot;form-control&quot; type=&quot;hidden&quot; name=&quot;dform_oth_details_photo[]&quot; value=&quot;&quot;\/&gt;<\/code><\/pre>\n<p> \u2014 \u044d\u0442\u043e \u043d\u0430\u0448 \u0441\u043a\u0440\u044b\u0442\u044b\u0439 input, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u0438\u043c\u044f \u0444\u043e\u0442\u043e,  <\/li>\n<li>\n<pre><code class=\"html\">&lt;textarea name=&quot;dform_oth_details_descr[]&quot; class=&quot;form-control&quot; rows=&quot;3&quot; placeholder=&quot;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u0435\u0442\u0430\u043b\u0438&quot;&gt;&lt;\/textarea&gt; <\/code><\/pre>\n<p> \u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435,  <\/li>\n<li>\n<pre><code class=\"html\">&lt;input name=&quot;dform_oth_details_cnt[]&quot; type=&quot;number&quot; class=&quot;form-control&quot; value=&quot;1&quot; placeholder=&quot;\u0448\u0442&quot;\/&gt;<\/code><\/pre>\n<p> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0448\u0442\u0443\u043a.  <\/li>\n<\/ul>\n<p>  3. \u041f\u0438\u0448\u0435\u043c PHP-\u043a\u043e\u0434 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code class=\"php\">public function uploadOthDetPhoto()     {         $this-&gt;isDformSet();         $config['upload_path'] = 'public\/uploads\/othdet\/';         $config['allowed_types'] = 'gif|jpg|png';         $config['max_size'] = '10240';         $config['encrypt_name'] = true;         $this-&gt;load-&gt;library('upload', $config);         $this-&gt;upload-&gt;initialize($config);         $this-&gt;upload-&gt;do_upload('photo');         $arrErrors = $this-&gt;upload-&gt;display_errors();         if (!empty($arrErrors) &gt; 0){             echo 'error';         }else{             $arrPhotoData = $this-&gt;upload-&gt;data();             $strFileName = $arrPhotoData['file_name'];             echo $strFileName;             $intMaxWidth = 800;             if ($arrPhotoData['image_width'] &gt; $intMaxWidth){                 unset($config);                 $config['image_library'] = 'gd2';                 $config['source_image']\t= $arrPhotoData['full_path'];                 $config['width'] = $intMaxWidth;                 $config['height'] = $intMaxWidth*$arrPhotoData['image_height']\/$arrPhotoData['image_width'];                 $config['maintain_ratio'] = TRUE;                 $this-&gt;load-&gt;library('image_lib', $config);                  $this-&gt;image_lib-&gt;resize();             }         }     } <\/code><\/pre>\n<p>  \u041c\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 CodeIgniter, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u0434 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439, \u043d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c, \u0441\u0443\u0442\u044c \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c: \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0438 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0438\u0437 \u0444\u043e\u0440\u043c\u044b \u0444\u0430\u0439\u043b, \u0435\u0441\u043b\u0438 \u0432\u0441\u0451 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432 \u043d\u0430\u0448 iframe \u0435\u0433\u043e \u0438\u043c\u044f, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u00aberror\u00bb.<\/p>\n<p>  4. \u041f\u0438\u0448\u0435\u043c Javascript, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441:<\/p>\n<pre><code class=\"javascript\">$(function(){     function rownumbers(){         $('#othdetails tbody tr').each(function(i) {             var number = i + 1;             $(this).find('td:first').text(number);         });     }          function update(){         var url = '&lt;?=site_url('otherdetails\/updateOthDet')?&gt;';         var postData = $('.form-control').serialize();         $.post(url, postData, function(){}, 'json');     }          var curimg = '';     var intervalID = '';          function checkphotoname() {         var linkedFrame = document.getElementById('hiddenframe');         var content = linkedFrame.contentWindow.document.body.innerHTML;         var completed = false;         if (content === 'error'){             curimg.attr('src','&lt;?=base_url()?&gt;public\/img\/photo_icon.png');             $('#error').show(200).delay(6000).hide(200);             $('#error').html('&lt;span class=&quot;glyphicon glyphicon-info-sign&quot; aria-hidden=&quot;true&quot;&gt;&lt;\/span&gt; \u0424\u043e\u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043e. \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u043e\u0442\u043e - 10 \u041c\u0431, \u0444\u043e\u0440\u043c\u0430\u0442\u044b: jpg,png,gif.');             completed = true;         }         else         if (content !== ''){             curimg.parent().children('.form-control').val(content);             curimg.attr('src','&lt;?=base_url()?&gt;public\/uploads\/othdet\/' + content);                 completed = true;         }         if (completed === true){             update();             clearInterval(intervalID);             $('#hiddenframe').contents().find('body').html('');         }     }          rownumbers();          $(document).on('click', '.othdet_photo', function(){         $('#hiddenframe').contents().find('body').html('');         curimg = $(this);         curimg.attr('src','&lt;?=base_url()?&gt;public\/img\/photo_icon.png');         curimg.parent().children('.form-control').val('');         update();         $('#photoloader').click();     });          $('#photoloader').change(function(){         curimg.attr('src','&lt;?=base_url()?&gt;public\/img\/indicator.gif');         $('#othdetphotoform').submit();         $('#photoloader').val('');     });          $('#othdetphotoform').submit(function(){         intervalID = setInterval(checkphotoname, 500);     });          $(document).on('change', '.form-control', function(){         update();     });          $(&quot;#addnewdet&quot;).click(function(){         var emp = 0;         $(&quot;.form-control[name!='dform_oth_details_photo[]']&quot;).each(function(indx){             if ($(this).val() === ''){                 emp = 1;                 $(this).focus();              }             });             if (emp === 1){             $('#error').show(200).delay(2000).hide(200);             $('#error').html('&lt;span class=&quot;glyphicon glyphicon-info-sign&quot; aria-hidden=&quot;true&quot;&gt;&lt;\/span&gt; \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0432\u0441\u0435 \u043f\u043e\u043b\u044f');         }else{             var row = '&lt;tr&gt;&lt;td class=&quot;col-xs-2 col-md-1&quot; style=&quot;vertical-align:middle;&quot;&gt;&lt;\/td&gt;&lt;td style=&quot;width:110px;&quot;&gt;&lt;img src=&quot;&lt;?=base_url()?&gt;public\/img\/photo_icon.png&quot; alt=&quot;\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u043e\u0442\u043e&quot; class=&quot;img-circle othdet_photo&quot;\/&gt;&lt;input class=&quot;form-control&quot; type=&quot;hidden&quot; name=&quot;dform_oth_details_photo[]&quot; value=&quot;&quot;\/&gt;&lt;\/td&gt;&lt;td&gt;&lt;textarea name=&quot;dform_oth_details_descr[]&quot; class=&quot;form-control&quot; rows=&quot;3&quot; placeholder=&quot;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u0435\u0442\u0430\u043b\u0438&quot;&gt;&lt;\/textarea&gt;&lt;\/td&gt;&lt;td class=&quot;col-xs-2 col-md-1&quot; style=&quot;vertical-align:middle;&quot;&gt;&lt;input name=&quot;dform_oth_details_cnt[]&quot; type=&quot;number&quot; class=&quot;form-control&quot; value=&quot;1&quot; placeholder=&quot;\u0448\u0442&quot;\/&gt;&lt;\/td&gt;&lt;td style=&quot;vertical-align:middle;text-align:right;&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-remove removebtn&quot; aria-hidden=&quot;true&quot;&gt;&lt;\/span&gt;&lt;\/td&gt;&lt;\/tr&gt;';             $(&quot;#othdetails tbody&quot;).append(row);             rownumbers();             $('[name=&quot;dform_oth_details_descr[]&quot;]').last().focus();         }         });          $(document).on('click', '.removebtn', function(){         $(this).parent().parent().remove();         update();         rownumbers();     });      }); <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0442\u0443\u0442 \u043e\u0431\u044a\u044f\u0441\u043d\u044e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435:  <\/p>\n<ul>\n<li>\n<pre><code class=\"javascript\">function rownumbers()<\/code><\/pre>\n<p> \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0435 \u043d\u043e\u043c\u0435\u0440\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435,  <\/li>\n<li>\n<pre><code class=\"javascript\">function update()<\/code><\/pre>\n<p> \u2014 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0441\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0442\u043e\u0432\u0430\u0440\u043e\u0432. \u0418\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u0441\u043c\u044b\u0441\u043b\u0430 \u043d\u0435\u0442,  <\/li>\n<li>\n<pre><code class=\"javascript\">var curimg = '';     var intervalID = '';<\/code><\/pre>\n<p> \u2014 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0444\u043e\u0442\u043e \u0438 \u0442\u0430\u0439\u043c\u0435\u0440. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435;  <\/li>\n<li>\n<pre><code class=\"javascript\">function checkphotoname() <\/code><\/pre>\n<p> \u2014 \u043e\u0434\u043d\u0430 \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439: \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u043e\u0442\u043e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043a\u0440\u044b\u0442\u043e\u0433\u043e iframe. \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0441 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u043c \u043f\u0440\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u0444\u043e\u0440\u043c\u044b \u0444\u043e\u0442\u043e \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0432\u043e\u0451 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u043c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u044b \u0444\u043e\u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u0444\u043e\u0442\u043e \u0438\u043a\u043e\u043d\u043a\u0438 \u0438\u043b\u0438 \u0432\u044b\u0434\u0430\u0447\u0435\u0439 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 \u043f\u0440\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e iframe, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0444\u043e\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c;  <\/li>\n<li>\n<pre><code class=\"javascript\">rownumbers();<\/code><\/pre>\n<p> \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0435 \u043d\u043e\u043c\u0435\u0440\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u2014 \u044f \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u043b \u0432 \u0441\u0442\u0430\u0442\u044c\u044e \u0442\u043e, \u0447\u0442\u043e \u044d\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a, \u0442\u0430\u043a \u0438 \u043f\u0440\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430, \u0442\u043e \u0435\u0441\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u043f\u0443\u0441\u0442\u043e\u0439;  <\/li>\n<li>\n<pre><code class=\"javascript\">$(document).on('click', '.othdet_photo', function(){ ...<\/code><\/pre>\n<p> \u2014 \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u043c \u043a\u043b\u0438\u043a input file \u0432 \u0444\u043e\u0440\u043c\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u0444\u043e\u0442\u043e-\u0438\u043a\u043e\u043d\u043a\u0438 (\u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0443\u043c\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0435 \u0444\u043e\u0442\u043e, \u043e\u0447\u0438\u0449\u0430\u0435\u043c \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e);  <\/li>\n<li>\n<pre><code class=\"javascript\">$('#photoloader').change(function(){ ...<\/code><\/pre>\n<p> \u2014 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0444\u043e\u0440\u043c\u0443 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u043e\u0442\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043f\u043e\u043b\u044f \u0444\u043e\u0442\u043e;  <\/li>\n<li>\n<pre><code class=\"javascript\">$('#othdetphotoform').submit(function(){ ...<\/code><\/pre>\n<p> \u2014 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0441 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u043c \u0432\u044b\u0448\u0435\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u043e\u0442\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440;  <\/li>\n<li>\n<pre><code class=\"javascript\">$(document).on('change', '.form-control', function() ...<\/code><\/pre>\n<p> \u2014 \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u043e\u043b\u044f (\u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u0438\u043c\u0435\u043d\u0438 \u0444\u043e\u0442\u043e) \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u0432\u0435\u0441\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440;  <\/li>\n<li>\n<pre><code class=\"javascript\">$(&quot;#addnewdet&quot;).click(function(){ ...<\/code><\/pre>\n<p> \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0442\u043e\u0432\u0430\u0440\u043e\u0432;  <\/li>\n<li>\n<pre><code class=\"javascript\">$(document).on('click', '.removebtn', function(){ ...<\/code><\/pre>\n<p> \u2014 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0442\u043e\u0432\u0430\u0440\u043e\u0432.  <\/li>\n<\/ul>\n<p>  \u0412\u043e\u0442, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0438 \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442 \u0442\u0430\u043a\u0430\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c, \u0441\u0434\u0435\u043b\u0430\u044e \u0434\u0435\u043c\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u0431\u043b\u043e\u043a\u043e\u043c \u0438 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044e \u0441\u044e\u0434\u0430 \u0441\u0441\u044b\u043b\u043a\u0443, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0434\u0430\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u0435! \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/256197\/\"> http:\/\/habrahabr.ru\/post\/256197\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h3>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0432\u043f\u043e\u043b\u043d\u0435, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439: \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0441\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430. \u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e: \u0444\u043e\u0442\u043e \u0442\u043e\u0432\u0430\u0440\u0430, \u0435\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e. \u0414\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/a1a\/cdf\/8b6\/a1acdf8b6964423db32a7186393881b3.jpg\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-255627","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255627"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255627\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}