--- a
+++ b/OSSEval/IMDBMovieApp/templates/IMDBMovieApp/search.html
@@ -0,0 +1,35 @@
+<!--
+# This Source Code Form of OSSEval is subject to the terms of the GNU AFFERO
+# GENERAL PUBLIC LICENSE, v. 3.0. If a copy of the AGPL was not
+# distributed with this file, You can obtain one at http://www.gnu.org/licenses/agpl.txt
+#
+# OSSeval is powered by the SOS Open Source AGPL edition.
+# The AGPL requires that you do not remove the SOS Open Source attribution and copyright
+# notices from the user interface (see section 5.d below).
+
+# OSSEval Copyright 2014 Bitergium SLL
+# SOS Open Source Copyright 2012 Roberto Galoppini
+# Author: Davide Galletti
+-->
+
+ {% load staticfiles %}
+
+ <form id="searchForm" action="{% url 'imdb_movie_search_html' %}" method="post">{% csrf_token %}
+ {{ form.as_p }}
+ <input type="submit" value="Search" />
+ </form>
+ <script type="text/javascript">
+ var w='<img src="{% static "images/wait1.gif" %}">';
+ var options = {
+ dataType: 'html',
+ beforeSubmit: function() {$("div#search_results").html(w);},
+ success: function(data) {
+ $('div#search_results').html('<table id="tableSearchResults">' + data + '</table>');
+ $('#tableSearchResults').dataTable();
+ },
+ error: function (data) {alert("Error");}
+ };
+ $("div#search").tabs();
+ $("form#searchForm").ajaxForm(options);
+ </script>
+