{"id":936,"date":"2015-04-08T16:34:06","date_gmt":"2015-04-08T13:34:06","guid":{"rendered":"http:\/\/synthesis.ipet.gr\/portal\/?page_id=936"},"modified":"2016-02-15T02:28:29","modified_gmt":"2016-02-15T00:28:29","slug":"search-en","status":"publish","type":"page","link":"http:\/\/synthesis.ipet.gr\/portal\/search-en\/","title":{"rendered":"Search"},"content":{"rendered":"<p>[insert_php]<br \/>\n\/\/Selected attributes of the HTML FORM<br \/>\nif(isset($_POST[&#8216;search&#8217;])){<br \/>\n\t$seachedFor = $_POST[&#8216;query&#8217;];<br \/>\n\t$europeanaChecked = europeanaIsSelected($_POST[&#8216;europeana&#8217;]);<br \/>\n\t$googleChecked = googleIsSelected($_POST[&#8216;google&#8217;]);<br \/>\n}else{<br \/>\n\t\t$htmlChecked = &#8216;checked&#8217;;<br \/>\n\t\t$googleChecked = &#8216;checked&#8217;;<br \/>\n\t\t$europeanaChecked = &#8216;checked&#8217;;<br \/>\n\t}<\/p>\n<p>function europeanaIsSelected ($a){<br \/>\n\t$r = &#8220;&#8221;;<br \/>\n\tif(!empty($a)){\t$r=&#8221;checked&#8221;;}<br \/>\n\treturn $r;<br \/>\n}<br \/>\nfunction googleIsSelected ($a){<br \/>\n\t$r = &#8220;&#8221;;<br \/>\n\tif(!empty($a)){\t$r=&#8221;checked&#8221;;}<br \/>\n\treturn $r;<br \/>\n}<\/p>\n<p>[\/insert_php]<\/p>\n<div class=\"container\">\n<form action=[insert_php] echo esc_attr($_SERVER['REQUEST_URI']); [\/insert_php] method=\"post\">\n<input type=\"text\" name=\"query\" value=\"[insert_php] echo $seachedFor; [\/insert_php]\" size=\"50\"><br \/>\n<input type=\"submit\" name=\"search\" value=\"Search\"><br \/>\n<label class=\"checkbox-inline\"><input type=\"checkbox\" name=\"europeana\" value=\"europeana\" [insert_php] echo $europeanaChecked; [\/insert_php] \/><\/label> Europeana <label class=\"checkbox-inline\"><input type=\"checkbox\" name=\"google\" value=\"google\" [insert_php] echo $googleChecked; [\/insert_php] \/><\/label>  Google <\/form>\n<\/div>\n<p>&nbsp;<\/p>\n<h3>Search in Synthesis Database<\/h3>\n<h4>Search for a Word<\/h4>\n<form action=[insert_php] echo esc_attr($_SERVER['REQUEST_URI']); [\/insert_php] method=\"post\">\n<input type=\"text\" name=\"key_word\" size=\"50\"><br \/>\n<input type=\"submit\" name=\"submit4\" value=\"Search\"><br \/>\n<\/form>\n<table border=\"0\" cellpadding=\"\" cellspacing=\"0\" padding=\"0\">\n<tr>\n<td align=\"right\">\n<h4>Cultural Objects<\/h4>\n<\/td>\n<\/tr>\n<form action=[insert_php] echo esc_attr($_SERVER['REQUEST_URI']); [\/insert_php] method=\"post\">\n<tr>\n<td align=\"right\"><b>Creator<\/b><\/td>\n<td><input type=\"text\" size=\"40\" name=\"pcreator\" \/> <\/td>\n<\/td>\n<tr>\n<td align=\"right\"><b>Type<\/b><\/td>\n<td><input  type=\"text\" size=\"40\" name=\"type\" \/> <\/td>\n<\/tr>\n<tr>\n<td align=\"right\"><b>Material<\/b><\/td>\n<td><input type=\"text\"  size=\"40\" name=\"material\" \/> <\/td>\n<tr>\n<td align=\"right\"><b>Collection<\/b><\/td>\n<td><input  type=\"text\" size=\"40\" name=\"collection\" \/> <\/td>\n<\/tr>\n<tr>\n<td align=\"right\"><b>Year<\/b><\/td>\n<td><input  type=\"text\" size=\"40\" name=\"ccyear\" \/> <\/td>\n<tr>\n<td align=\"right\"><b>\u03a4\u03cc\u03c0\u03bf\u03c2:<\/b><\/td>\n<p><\/select><\/td>\n<td> <select name=\"place\"  width=\"300\" style=\"width: 300px\"><option size=\"40\" value=\"0\">  All  <\/option><option value=\"1\">\u0391\u03af\u03b3\u03b9\u03bd\u03b1<\/option><\/select><\/td>\n<\/tr>\n<tr>\n<td align=\"right\"><b>Technique:<\/b><\/td>\n<td><input type=\"text\" size=\"40\" name=\"technique\" \/><\/td>\n<\/tr>\n<tr>\n<td align=\"right\"><b>Label:<\/b><\/td>\n<td><input type=\"text\" size=\"40\" name=\"Label1\" \/><\/td>\n<\/tr>\n<tr>\n<td><input type=\"submit\" name=\"submit\" value=\"Search\" \/><\/td>\n<\/tr>\n<\/form>\n<\/table>\n<table border=\"0\" cellpadding=\"\" cellspacing=\"0\" padding=\"0\">\n<form action=[insert_php] echo esc_attr($_SERVER['REQUEST_URI']); [\/insert_php] method=\"post\">\n<tr>\n<td align=\"right\">\n<h4>Learning Objects<\/h4>\n<\/td>\n<\/tr>\n<tr>\n<td align=\"right\"><b>Age group<\/b><\/td>\n<td> <select name=\"age_range\"  width=\"300\" style=\"width: 300px\"><option value=\"\">All<\/option><option value=\"16\">11-16 years old<\/option><option value=\"17\">9-17 years old<\/option><option value=\"15\">9-15 years old<\/option><\/select><\/td>\n<\/tr>\n<tr>\n<td align=\"right\"><b>Lesson<\/b><\/td>\n<td> <select name=\"lesson\"  width=\"300\" style=\"width: 300px\"><option value=\"\">All<\/option><option value=\"\u03a6\u03c5\u03c3\u03b9\u03ba\u03ae\">Physics<\/option><option value=\"\u03a7\u03b7\u03bc\u03b5\u03af\u03b1\">Chemistry<\/option><option value=\"\u0393\u03b1\u03bb\u03bb\u03b9\u03ba\u03ac\">French<\/option><option value=\"\u0393\u03b5\u03c9\u03b3\u03c1\u03b1\u03c6\u03af\u03b1\">Geography<\/option><option value=\"\u0393\u03b5\u03c9\u03bc\u03b5\u03c4\u03c1\u03af\u03b1\">Geometry<\/option><\/select><\/td>\n<\/tr>\n<tr>\n<td><input type=\"submit\" name=\"submit2\" value=\"Search\" \/><\/td>\n<\/tr>\n<p><\/br><br \/>\n<\/form>\n<\/table>\n<p>&nbsp;<br \/>\n<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n[insert_php]<br \/>\nif(isset($_POST[&#8216;search&#8217;])){<br \/>\n\tif(!empty($_POST[&#8216;query&#8217;])){<br \/>\n                $query = str_replace(&#8221; &#8220;,&#8221;+&#8221;,$_POST[&#8216;query&#8217;]);<br \/>\n\t\tif(isset($_POST[&#8216;europeana&#8217;])){<br \/>\n\t\t\techo &#8216;<\/p>\n<h2><b>Europeana Results<\/h2>\n<p><\/b><br \/>&#8216;;<br \/>\n\t\t\t$euro=file_get_contents(&#8216;http:\/\/&#8217;.$_SERVER[&#8216;HTTP_HOST&#8217;].&#8217;\/portal\/services\/search\/europeanaCall.php?query=&#8217;.$query);<br \/>\n                        echo $euro.&#8221;<\/p>\n<hr>\n<p>&#8220;;<br \/>\n\t\t}<br \/>\n                if(isset($_POST[&#8216;google&#8217;])){<br \/>\n\t\t\techo &#8216;<\/p>\n<h2><b>Google Results<\/h2>\n<p><\/b><br \/>&#8216;;<br \/>\n\t\t\t$google=file_get_contents(&#8216;http:\/\/&#8217;.$_SERVER[&#8216;HTTP_HOST&#8217;].&#8217;\/portal\/services\/search\/googleCall.php?query=&#8217;.rawurlencode($query));<br \/>\n\t\t\techo $google.&#8221;<\/p>\n<hr>\n<p>&#8220;;<br \/>\n\t\t}<br \/>\n        }<br \/>\n}<br \/>\n[\/insert_php]<\/p>\n<p>[insert_php]<br \/>\nif (isset($_POST[&#8216;submit&#8217;])) {<br \/>\n$searchword4=$_POST[&#8216;pcreator&#8217;];<br \/>\n$searchword5=$_POST[&#8216;type&#8217;];<br \/>\n$searchword6=$_POST[&#8216;place&#8217;];<br \/>\n$searchword7=$_POST[&#8216;material&#8217;];<br \/>\n$searchword8=$_POST[&#8216;technique&#8217;];<br \/>\n$searchword9=$_POST[&#8216;ccyear&#8217;];<br \/>\n$searchword10=$_POST[&#8216;Label1&#8217;];<br \/>\n$searchword11=$_POST[&#8216;collection&#8217;];<\/p>\n<p>$Synthesis=file_get_contents(&#8216;http:\/\/&#8217;.$_SERVER[&#8216;HTTP_HOST&#8217;].&#8217;\/portal\/DbSearchEn.php?pcreator=&#8217;.$searchword4.&#8217;&#038;\u0384type=&#8217;.rawurlencode($searchword5).&#8217;&#038;place=&#8217;.rawurlencode($searchword6).&#8217;&#038;material=&#8217;.rawurlencode($searchword7).&#8217;&#038;collection=&#8217;.rawurlencode($searchword11).&#8217;&#038;ccyear=&#8217;.urlencode($searchword9));<br \/>\necho &#8220;<\/p>\n<h4>Search Results<\/h4>\n<p>&#8220;;<br \/>\n\t\t\techo $Synthesis.&#8221;<\/p>\n<hr>\n<p>&#8220;; }<br \/>\n[\/insert_php]<\/p>\n<p>[insert_php]<br \/>\nif (isset($_POST[&#8216;submit2&#8217;])) {<br \/>\n$searchword=$_POST[&#8216;age_range&#8217;];<br \/>\n$searchword1=$_POST[&#8216;lesson&#8217;];<\/p>\n<p>$Synthesis=file_get_contents(&#8216;http:\/\/&#8217;.$_SERVER[&#8216;HTTP_HOST&#8217;].&#8217;\/portal\/Mathisiaka.php?age_range=&#8217;.$searchword.&#8217;&#038;lesson=&#8217;.$searchword1);<br \/>\necho &#8220;<\/p>\n<h4>Search Results<\/h4>\n<p>&#8220;;<br \/>\n\t\t\techo $Synthesis.&#8221;<\/p>\n<hr>\n<p>&#8220;; }<br \/>\n[\/insert_php]<\/p>\n<p>[insert_php]<br \/>\nif (isset($_POST[&#8216;submit3&#8217;])) {<br \/>\n$searchword=$_POST[&#8216;lend&#8217;];<br \/>\n$searchword1=$_POST[&#8216;interferenceyear&#8217;];<br \/>\n$searchword2=$_POST[&#8216;acquitiontype&#8217;];<br \/>\n$searchword3=$_POST[&#8216;iidentifier&#8217;];<\/p>\n<p>$Synthesis=file_get_contents(&#8216;http:\/\/&#8217;.$_SERVER[&#8216;HTTP_HOST&#8217;].&#8217;\/portal\/mouseio.php?lend=&#8217;.$searchword.&#8217;&#038;interferenceyear=&#8217;.$searchword1.&#8217;&#038;acquitiontype=&#8217;.$searchword2.&#8217;&#038;iidentifier=&#8217;.urlencode($searchword3));<br \/>\necho &#8220;<\/p>\n<h4>Search Results<\/h4>\n<p>&#8220;;<br \/>\n\t\t\techo $Synthesis.&#8221;<\/p>\n<hr>\n<p>&#8220;; }<br \/>\n[\/insert_php]<br \/>\n[insert_php]<br \/>\nif (isset($_POST[&#8216;submit4&#8217;])) {<br \/>\n$searchword=$_POST[&#8216;key_word&#8217;];<br \/>\n$Synthesis2=file_get_contents(&#8216;http:\/\/&#8217;.$_SERVER[&#8216;HTTP_HOST&#8217;].&#8217;\/portal\/FullSearch2En.php?key_word=&#8217;.urlencode($searchword));<br \/>\necho &#8220;<\/p>\n<h4>Search Results<\/h4>\n<p>&#8220;;<br \/>\necho $Synthesis2.&#8221;<\/p>\n<hr>\n<p>&#8220;; }<br \/>\n[\/insert_php] <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[insert_php] \/\/Selected attributes of the HTML FORM if(isset($_POST[&#8216;search&#8217;])){ $seachedFor = $_POST[&#8216;query&#8217;]; $europeanaChecked = europeanaIsSelected($_POST[&#8216;europeana&#8217;]); $googleChecked = googleIsSelected($_POST[&#8216;google&#8217;]); }else{ $htmlChecked = &#8216;checked&#8217;; $googleChecked = &#8216;checked&#8217;; $europeanaChecked = &#8216;checked&#8217;; } function europeanaIsSelected ($a){ $r = &#8220;&#8221;; if(!empty($a)){ $r=&#8221;checked&#8221;;} return $r; } function googleIsSelected ($a){ $r = &#8220;&#8221;; if(!empty($a)){ $r=&#8221;checked&#8221;;} return $r; } [\/insert_php] Europeana Google &nbsp; Search in Synthesis Database Search for a Word Cultural Objects Creator Type Material Collection Year \u03a4\u03cc\u03c0\u03bf\u03c2: All \u0391\u03af\u03b3\u03b9\u03bd\u03b1 Technique: Label: Learning Objects Age group All11-16 years&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page_with_sidebar.php","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-936","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/synthesis.ipet.gr\/portal\/wp-json\/wp\/v2\/pages\/936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/synthesis.ipet.gr\/portal\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/synthesis.ipet.gr\/portal\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/synthesis.ipet.gr\/portal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/synthesis.ipet.gr\/portal\/wp-json\/wp\/v2\/comments?post=936"}],"version-history":[{"count":16,"href":"http:\/\/synthesis.ipet.gr\/portal\/wp-json\/wp\/v2\/pages\/936\/revisions"}],"predecessor-version":[{"id":2389,"href":"http:\/\/synthesis.ipet.gr\/portal\/wp-json\/wp\/v2\/pages\/936\/revisions\/2389"}],"wp:attachment":[{"href":"http:\/\/synthesis.ipet.gr\/portal\/wp-json\/wp\/v2\/media?parent=936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}