Creating App USing REST APIS
Creating App USing REST APIS
<?php session_start(); ?> <html><head> <title>Hitesh Saini's DownloadBook</title> <meta name="description" content="Download free it ebooks, download free information technology books, download free ebooks" /> <meta name="keywords" content="hitesh saini website,free it ebooks,hitesh saini from bharatpur,download ebooks,download free ebooks" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <style type="text/css"> #head{width:800px;height:100px;border:1px solid blue;border:2px solid grey;} #left_head{float:left;width:400px;} #right_head{font-family:sans-serif;float:right;width:400px;} input.ex{z-index:1;font:sans-serif;width:300px; height:42px;font-size:25px;background:rgba(100,20,100,0.4); border:2px solid blue; border-color:rgba(10,200,100,0.4); border-radius:0px 0px 0px 0px;} input:focus{border-color:rgba(10,200,100,0.4);} input.sub{margin-left:-6px;border-bottom:1px solid blue;font:sans-serif;font-size:25px;height:42px;transition:all 0.2s ease-in-out;}input.sub{background:rgba(100,20,100,0.4); border:2px solid blue; border-color:rgba(10,200,100,0.4);border-left-color:rgba(100,20,100,0.1);border-radius:0px 7px 7px 0px;} input.sub:hover{cursor:hand;background:rgba(255,255,255,0.4);border-color:rgba(10,200,100,0.2);} div.label{font-size:20px;}label.total{color:blue;margin-top:-40px;font-family:sans-serif;font-style:italic;} button.img_butt{width:200px;height:200px;border:1px solid grey;border-radius:3px;cursor:hand; } img.img_content{width:200px;height:200px;border-radius:3px;cursor:hand;} #main_part{width:800px;border-bottom: 1px solid grey} #content_main{width: 800px;} img.fi_img{width:200px; height:262px;border:2px solid grey;} #file_pic{height:500px;width:200px;heigh:200px;float:left;} #discription{margin-left:5px;padding:2px;border-left:1px solid grey;width:590px;float:right;} input.comp_but,a.download{margin-left: 10px;transition:all 0.3s ease-in-out;text-shadow: 0px 1px 1px rgba(0, 0, 0, .8);text-decoration:none; font-family:'jenna sue';font-weight:bold;font-size:150%;} input.comp_but,a.download:hover{color:white;}input.comp_but{margin-left:-2px;width:200px;background:grey;transition:all 0.3s ease-in-out;color:blue; border-radius:4px;} a.download:visited{color:rgba(100,200,255,0.7);}input.comp_but:hover{cursor:hand;background:blue;color:white;} p.downl{background:grey;width:200px;height:30px;border-radius: 4px;} p.downl:hover{background:blue;transition:all 0.3s ease-in-out;} h1.file_title{color: rgba(200,20,100,0.9);text-shadow: 0px 1px 3px rgba(0, 0, 0, .8);} h3.author{color:rgba(10,12,30,0.4);}t{text-decoration: underline;} t.year{font-family: sans-serif;}k{color:blue;margin-left:3px;} m{margin-left:5px;color:rgba(12,100,29,0.7);text-shadow: 0px 1px 1px rgba(0, 0, 0, .8);} p.pg{text-shadow: 0px 1px 3px rgba(0, 0, 0, .8);background-color:blue;color:rgba(144,150,120,0.7);} p.fi_desc{font-family:verdana;color:rgba(10,20,30,0.7);} button#over_but{width: 195px} #footer_intro{width:800px;height:50px;} li.hs{padding-left:25px;padding-right:25px;font-family:jenna sue; src: url('fonts/JennaSue-webfont.eot'); src: local("jenna sue"), url('fonts/JennaSue-webfont.ttf'); font-size:30px;list-styel:none;display:inline;} li.hs a{text-decoration: none;font-weight:bold;text-shadow: 0px 1px 1px rgba(0, 0, 0, .8);} hs{font-size: 25px;text-shadow: 0px 1px 1px rgba(0, 0, 0, .8);} </style> <script type="text/javascript" src="http://hiteshs.netai.net/js/jquery-1.8.3.js"></script> <script type="text/javascript" src="http://hiteshs.netai.net/js/jquery.sliphover.js"></script> <script> $("document").ready(function(){ $('img.img_content').sliphover({ width:'200px',height:'200px' }); }); </script></head> <body> <div id="head"> <div id="left_head"> <form action="<?php $_SERVER["PHP_SELF"]; ?>" method="GET"> <input width='500px' class='ex' type "text" name="srch"/> <input class='sub' type="submit" value="Search"/> <?php if(isset($_GET["srch"])){ if(($_GET["srch"])){ $_SESSION["var"]=$_GET["srch"]; $x="http://it-ebooks-api.info/v1/search/".$_GET["srch"]; $json=file_get_contents($x); $data=json_decode($json); $total=$data->Total; $page_no=$data->Page; $_SESSION["var_page"]=$page_no; } }else{ echo""; } ?><p> <?php if(isset($_GET["srch"])) if(($_GET["srch"])){ $_SESSION["var"]=$_GET["srch"]; {if (($data->Total)>0){ echo "<label class='total'>".$data->Total." Search Result Found</label>";} else{echo"<label class='total'>No Result Found</label>" ;}}}else{echo"";} ?> </p> </form> </div> <div id="right_head"> Search and Download Free Computer Related Books,including Varius Web technologies Like Web Developement, Mobile{windows,iphones,android} Developement Books For Free</div> </div> <div id="content_main"> <div id="content"> <?php if(isset($_GET["srch"])){ if(($_GET["srch"])){ if($total>0&&$total<11){$server=$_SERVER["PHP_SELF"]; echo"<form id='cont' action='$server' method='POST'>"; foreach($data->Books as $val=>$value){ $ID=$value->ID; $Title=$value->Title; $Image=$value->Image;$isbn=$value->isbn; $desc=$value->Description; echo "<button name='content_button' value='$ID' id='content_sub' class='img_butt' type='submit'><img class='img_content' title='$desc' src='$Image' alt='$Title'/></button>"; } echo"</form>"; } else if($total>=11){ $server=$_SERVER["PHP_SELF"]; echo"<form id='cont' action='$server' method='POST'>"; foreach($data->Books as $val=>$value){ $ID=$value->ID; $Title=$value->Title; $Image=$value->Image;$isbn=$value->isbn; $desc=$value->Description; echo "<button name='content_button' value='$ID' id='content_sub' class='img_butt' type='submit'><img class='img_content' title='$desc' src='$Image' alt='$Title'/></button>"; } echo "<input type='hidden' value='".$_SESSION["var_page"]."'name='page'/>" ; echo "<button name='PREV' value='' id='content_sub' class='img_butt' type='button'><img class='img_content' title='' src='https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xfa1/t1.0-9/10262262_1511147469108673_2189397171353338045_n.jpg' alt='PREVIUS'/></button>"; echo "<button name='content_button' value='next' id='content_sub' class='img_butt' type='submit'><img class='img_content' title='' src='https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpa1/t1.0-9/10363646_1511147439108676_8403325716717748934_n.jpg' alt='NEXT'/></button>"; }else{echo"";} } } if(isset($_POST['content_button'])){ if ($_POST['content_button']) { if($_POST['content_button']=='next'){ if(isset($_POST['page'])){$pagee=$_POST['page'];} $next_dizit=$pagee+1; $next_url="http://it-ebooks-api.info/v1/search/".$_SESSION["var"]."/page/".$next_dizit; $nxt_json=file_get_contents($next_url); $nxt_data=json_decode($nxt_json); $ratio=($nxt_data->Total)/10; $max=intval($ratio); if($ratio>$next_dizit){ $server=$_SERVER["PHP_SELF"]; echo"<form id='cont' action='$server' method='POST'>"; foreach($nxt_data->Books as $val=>$value){ $ID=$value->ID; $Title=$value->Title; $Image=$value->Image;$isbn=$value->isbn; $desc=$value->Description; echo "<button name='content_button' value='$ID' id='content_sub' class='img_butt' type='submit'><img class='img_content' title='$desc' src='$Image' alt='$Title'/></button>"; } echo "<input type='hidden' value='$next_dizit'name='page'/>" ; echo "<button name='PREV' value='' id='content_sub' class='img_butt' type='button'><img class='img_content' title='' src='https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xfa1/t1.0-9/10262262_1511147469108673_2189397171353338045_n.jpg' alt='PREVIUS'/></button>"; echo "<button name='content_button' value='next' id='content_sub' class='img_butt' type='submit'><img class='img_content' title='' src='https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpa1/t1.0-9/10363646_1511147439108676_8403325716717748934_n.jpg' alt='NEXT'/></button>"; }else{ foreach($nxt_data->Books as $val=>$value){ $ID=$value->ID; $Title=$value->Title; $Image=$value->Image;$isbn=$value->isbn; $desc=$value->Description; echo "<button name='content_button' value='$ID' id='content_sub' class='img_butt' type='submit'><img class='img_content' title='$desc' src='$Image' alt='$Title'/></button>"; } echo "<button name='PREV' value='' id='content_sub' class='img_butt' type='button'><img class='img_content' title='' src='' alt='PREVIUS'/></button>"; } } else{ $url_two="http://it-ebooks-api.info/v1/book/".$_POST['content_button']; $file=file_get_contents($url_two); $data_two=json_decode($file); $file_title=$data_two->Title;$file_desc=$data_two->Description; $file_author=$data_two->Author;$year=$data_two->Year; $file_image=$data_two->Image;$file_down=$data_two->Download; $file_isbn=$data_two->ISBN;$media=$data_two->Publisher; $page=$data_two->Page; echo"<div id='main_part'><div id='file_pic'><img class='fi_img' src='$file_image' alt=''/><p class='downl'><a class='download' href='$file_down'>Download Here</a></p><p class='downl'><a class='download' href='http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dstripbooks&field-keywords=$file_isbn'>Buy Print book</a></p><form action='bcomp.php' method='POST'><input type='hidden' name='poster' value='$file_image'/><input type='hidden' name='title' value='$file_title'/><input type='hidden' name='isbn' value='$file_isbn'/><p><input class='comp_but' type='submit' value='Compare Prizes'/></p></form></div><div id='discription'>"; echo"<h1 class='file_title'>$file_title</h1><p><h3 class='author'>Author:<t class='au'>$file_author </t> ISBN:<t class='isbn'> $file_isbn</t> </h3> <h3 class='year'>Published in <t class='year'>$year </t> <k> by</k> <m>$media</m></h3></p><p class='pg'>Total Page:<d class='p'>$page</d></p><h3>Discription</h3><p class='fi_desc'>$file_desc</p>"; echo"</div></div>"; } }} ?></div> </div> <center> <div id='footer_intro'><p class='copy'>Copyright<hs>@<a href='https://www.facebook.com/HiteshSaini99'>HitEsh SaInI</a></hs></p> <ul class='fi'> <li class='hs'><a href='http://hiteshs.netai.net/'>Home</a></li> <li class='hs'><a href='http://hiteshs.netai.net/signUp.php'>The Nature</a></li> <li class='hs'><a href='http://hiteshs.netai.net/projects/Run%20Your%20html%20css%20xml%20codes%20%20.php'>write code</a></li> <li class='hs'><a href='https://www.facebook.com/HiteshSaini99'>about me</a></li> <li class='hs'><a href='http://hiteshs.netai.net/Contact.php'>contect me</a></li> </ul> </div></center></body></html>
<?php session_start(); ?> <html><head> <title>Hitesh Saini's DownloadBook</title> <meta name="description" content="Download free it ebooks, download free information technology books, download free ebooks" /> <meta name="keywords" content="hitesh saini website,free it ebooks,hitesh saini from bharatpur,download ebooks,download free ebooks" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <style type="text/css"> #head{width:800px;height:100px;border:1px solid blue;border:2px solid grey;} #left_head{float:left;width:400px;} #right_head{font-family:sans-serif;float:right;width:400px;} input.ex{z-index:1;font:sans-serif;width:300px; height:42px;font-size:25px;background:rgba(100,20,100,0.4); border:2px solid blue; border-color:rgba(10,200,100,0.4); border-radius:0px 0px 0px 0px;} input:focus{border-color:rgba(10,200,100,0.4);} input.sub{margin-left:-6px;border-bottom:1px solid blue;font:sans-serif;font-size:25px;height:42px;transition:all 0.2s ease-in-out;}input.sub{background:rgba(100,20,100,0.4); border:2px solid blue; border-color:rgba(10,200,100,0.4);border-left-color:rgba(100,20,100,0.1);border-radius:0px 7px 7px 0px;} input.sub:hover{cursor:hand;background:rgba(255,255,255,0.4);border-color:rgba(10,200,100,0.2);} div.label{font-size:20px;}label.total{color:blue;margin-top:-40px;font-family:sans-serif;font-style:italic;} button.img_butt{width:200px;height:200px;border:1px solid grey;border-radius:3px;cursor:hand; } img.img_content{width:200px;height:200px;border-radius:3px;cursor:hand;} #main_part{width:800px;border-bottom: 1px solid grey} #content_main{width: 800px;} img.fi_img{width:200px; height:262px;border:2px solid grey;} #file_pic{height:500px;width:200px;heigh:200px;float:left;} #discription{margin-left:5px;padding:2px;border-left:1px solid grey;width:590px;float:right;} input.comp_but,a.download{margin-left: 10px;transition:all 0.3s ease-in-out;text-shadow: 0px 1px 1px rgba(0, 0, 0, .8);text-decoration:none; font-family:'jenna sue';font-weight:bold;font-size:150%;} input.comp_but,a.download:hover{color:white;}input.comp_but{margin-left:-2px;width:200px;background:grey;transition:all 0.3s ease-in-out;color:blue; border-radius:4px;} a.download:visited{color:rgba(100,200,255,0.7);}input.comp_but:hover{cursor:hand;background:blue;color:white;} p.downl{background:grey;width:200px;height:30px;border-radius: 4px;} p.downl:hover{background:blue;transition:all 0.3s ease-in-out;} h1.file_title{color: rgba(200,20,100,0.9);text-shadow: 0px 1px 3px rgba(0, 0, 0, .8);} h3.author{color:rgba(10,12,30,0.4);}t{text-decoration: underline;} t.year{font-family: sans-serif;}k{color:blue;margin-left:3px;} m{margin-left:5px;color:rgba(12,100,29,0.7);text-shadow: 0px 1px 1px rgba(0, 0, 0, .8);} p.pg{text-shadow: 0px 1px 3px rgba(0, 0, 0, .8);background-color:blue;color:rgba(144,150,120,0.7);} p.fi_desc{font-family:verdana;color:rgba(10,20,30,0.7);} button#over_but{width: 195px} #footer_intro{width:800px;height:50px;} li.hs{padding-left:25px;padding-right:25px;font-family:jenna sue; src: url('fonts/JennaSue-webfont.eot'); src: local("jenna sue"), url('fonts/JennaSue-webfont.ttf'); font-size:30px;list-styel:none;display:inline;} li.hs a{text-decoration: none;font-weight:bold;text-shadow: 0px 1px 1px rgba(0, 0, 0, .8);} hs{font-size: 25px;text-shadow: 0px 1px 1px rgba(0, 0, 0, .8);} </style> <script type="text/javascript" src="http://hiteshs.netai.net/js/jquery-1.8.3.js"></script> <script type="text/javascript" src="http://hiteshs.netai.net/js/jquery.sliphover.js"></script> <script> $("document").ready(function(){ $('img.img_content').sliphover({ width:'200px',height:'200px' }); }); </script></head> <body> <div id="head"> <div id="left_head"> <form action="<?php $_SERVER["PHP_SELF"]; ?>" method="GET"> <input width='500px' class='ex' type "text" name="srch"/> <input class='sub' type="submit" value="Search"/> <?php if(isset($_GET["srch"])){ if(($_GET["srch"])){ $_SESSION["var"]=$_GET["srch"]; $x="http://it-ebooks-api.info/v1/search/".$_GET["srch"]; $json=file_get_contents($x); $data=json_decode($json); $total=$data->Total; $page_no=$data->Page; $_SESSION["var_page"]=$page_no; } }else{ echo""; } ?><p> <?php if(isset($_GET["srch"])) if(($_GET["srch"])){ $_SESSION["var"]=$_GET["srch"]; {if (($data->Total)>0){ echo "<label class='total'>".$data->Total." Search Result Found</label>";} else{echo"<label class='total'>No Result Found</label>" ;}}}else{echo"";} ?> </p> </form> </div> <div id="right_head"> Search and Download Free Computer Related Books,including Varius Web technologies Like Web Developement, Mobile{windows,iphones,android} Developement Books For Free</div> </div> <div id="content_main"> <div id="content"> <?php if(isset($_GET["srch"])){ if(($_GET["srch"])){ if($total>0&&$total<11){$server=$_SERVER["PHP_SELF"]; echo"<form id='cont' action='$server' method='POST'>"; foreach($data->Books as $val=>$value){ $ID=$value->ID; $Title=$value->Title; $Image=$value->Image;$isbn=$value->isbn; $desc=$value->Description; echo "<button name='content_button' value='$ID' id='content_sub' class='img_butt' type='submit'><img class='img_content' title='$desc' src='$Image' alt='$Title'/></button>"; } echo"</form>"; } else if($total>=11){ $server=$_SERVER["PHP_SELF"]; echo"<form id='cont' action='$server' method='POST'>"; foreach($data->Books as $val=>$value){ $ID=$value->ID; $Title=$value->Title; $Image=$value->Image;$isbn=$value->isbn; $desc=$value->Description; echo "<button name='content_button' value='$ID' id='content_sub' class='img_butt' type='submit'><img class='img_content' title='$desc' src='$Image' alt='$Title'/></button>"; } echo "<input type='hidden' value='".$_SESSION["var_page"]."'name='page'/>" ; echo "<button name='PREV' value='' id='content_sub' class='img_butt' type='button'><img class='img_content' title='' src='https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xfa1/t1.0-9/10262262_1511147469108673_2189397171353338045_n.jpg' alt='PREVIUS'/></button>"; echo "<button name='content_button' value='next' id='content_sub' class='img_butt' type='submit'><img class='img_content' title='' src='https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpa1/t1.0-9/10363646_1511147439108676_8403325716717748934_n.jpg' alt='NEXT'/></button>"; }else{echo"";} } } if(isset($_POST['content_button'])){ if ($_POST['content_button']) { if($_POST['content_button']=='next'){ if(isset($_POST['page'])){$pagee=$_POST['page'];} $next_dizit=$pagee+1; $next_url="http://it-ebooks-api.info/v1/search/".$_SESSION["var"]."/page/".$next_dizit; $nxt_json=file_get_contents($next_url); $nxt_data=json_decode($nxt_json); $ratio=($nxt_data->Total)/10; $max=intval($ratio); if($ratio>$next_dizit){ $server=$_SERVER["PHP_SELF"]; echo"<form id='cont' action='$server' method='POST'>"; foreach($nxt_data->Books as $val=>$value){ $ID=$value->ID; $Title=$value->Title; $Image=$value->Image;$isbn=$value->isbn; $desc=$value->Description; echo "<button name='content_button' value='$ID' id='content_sub' class='img_butt' type='submit'><img class='img_content' title='$desc' src='$Image' alt='$Title'/></button>"; } echo "<input type='hidden' value='$next_dizit'name='page'/>" ; echo "<button name='PREV' value='' id='content_sub' class='img_butt' type='button'><img class='img_content' title='' src='https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xfa1/t1.0-9/10262262_1511147469108673_2189397171353338045_n.jpg' alt='PREVIUS'/></button>"; echo "<button name='content_button' value='next' id='content_sub' class='img_butt' type='submit'><img class='img_content' title='' src='https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpa1/t1.0-9/10363646_1511147439108676_8403325716717748934_n.jpg' alt='NEXT'/></button>"; }else{ foreach($nxt_data->Books as $val=>$value){ $ID=$value->ID; $Title=$value->Title; $Image=$value->Image;$isbn=$value->isbn; $desc=$value->Description; echo "<button name='content_button' value='$ID' id='content_sub' class='img_butt' type='submit'><img class='img_content' title='$desc' src='$Image' alt='$Title'/></button>"; } echo "<button name='PREV' value='' id='content_sub' class='img_butt' type='button'><img class='img_content' title='' src='' alt='PREVIUS'/></button>"; } } else{ $url_two="http://it-ebooks-api.info/v1/book/".$_POST['content_button']; $file=file_get_contents($url_two); $data_two=json_decode($file); $file_title=$data_two->Title;$file_desc=$data_two->Description; $file_author=$data_two->Author;$year=$data_two->Year; $file_image=$data_two->Image;$file_down=$data_two->Download; $file_isbn=$data_two->ISBN;$media=$data_two->Publisher; $page=$data_two->Page; echo"<div id='main_part'><div id='file_pic'><img class='fi_img' src='$file_image' alt=''/><p class='downl'><a class='download' href='$file_down'>Download Here</a></p><p class='downl'><a class='download' href='http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dstripbooks&field-keywords=$file_isbn'>Buy Print book</a></p><form action='bcomp.php' method='POST'><input type='hidden' name='poster' value='$file_image'/><input type='hidden' name='title' value='$file_title'/><input type='hidden' name='isbn' value='$file_isbn'/><p><input class='comp_but' type='submit' value='Compare Prizes'/></p></form></div><div id='discription'>"; echo"<h1 class='file_title'>$file_title</h1><p><h3 class='author'>Author:<t class='au'>$file_author </t> ISBN:<t class='isbn'> $file_isbn</t> </h3> <h3 class='year'>Published in <t class='year'>$year </t> <k> by</k> <m>$media</m></h3></p><p class='pg'>Total Page:<d class='p'>$page</d></p><h3>Discription</h3><p class='fi_desc'>$file_desc</p>"; echo"</div></div>"; } }} ?></div> </div> <center> <div id='footer_intro'><p class='copy'>Copyright<hs>@<a href='https://www.facebook.com/HiteshSaini99'>HitEsh SaInI</a></hs></p> <ul class='fi'> <li class='hs'><a href='http://hiteshs.netai.net/'>Home</a></li> <li class='hs'><a href='http://hiteshs.netai.net/signUp.php'>The Nature</a></li> <li class='hs'><a href='http://hiteshs.netai.net/projects/Run%20Your%20html%20css%20xml%20codes%20%20.php'>write code</a></li> <li class='hs'><a href='https://www.facebook.com/HiteshSaini99'>about me</a></li> <li class='hs'><a href='http://hiteshs.netai.net/Contact.php'>contect me</a></li> </ul> </div></center></body></html>
Comments
Post a Comment