示例#1
0
									</div>
									<table class="table table-striped table-bordered">
										<tbody>
											<tr><th>Ülke</th><td>' . $film->ulke . '</td></tr>
											<tr><th>Yönetmen</th><td>' . $film->yonetmenler . '</td></tr>
											<tr><th>Senarist</th><td>' . $film->senaristler . '</td></tr>
											<tr><th>Yayın Tarihi</th><td>' . $film->yayintarihi . '</td></tr>
											<tr><th>Özet</th><td>' . $film->ozet . '</td></tr>
										</tbody>
									</table>
								</div>
							</div>';
                        $iframe_tpl = '<div class="input-group">
								<input id="iframe-target" class="form-control" style="width: 100%;" value="&lt;iframe src=&quot;' . SITEURL . '/imdb.php?type=iframe&url=' . $url . '&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; height=&quot;' . $height . '&quot; width=&quot;' . $width . '&quot;&gt;&lt;/iframe&gt;" />
								<span class="input-group-btn">
									<button type="button" class="btn btn-default" id="iframe-copy" data-clipboard-target="iframe-target"><i class="fa fa-copy"></i></button>
								</span>
								</div>';
                        $response["message"] = 'Bilgiler başarıyla alındı!';
                        $response["body"] = $body_tpl;
                        $response["iframe"] = $iframe_tpl;
                    } else {
                        $code = 400;
                        $response["message"] = "Girilen link işlem yapmaya uygun değil!<br />Örn. http://www.imdb.com/title/tt0111161";
                    }
                }
            }
            echo Func::json($response, $code);
            break;
    }
}