#!/usr/bin/python3
import cgi
form = cgi.FieldStorage()
print('Content-type:text/html\n\n')
print('<html>')
print('<head>')
print('<title>Project</title>')
print('</head>')
print('<body>')
# The string has the {}, the variables inside format() will replace the {}
print('<h3>Add Responsible for Reservation </h3>')
# The form will send the info needed for the SQL query
print('<form action="update_actions.cgi" method="post">')
print('<p><input type="hidden" name="method" value="authorise"/></p>')
print('<p>Start Date: <input type="text" name="start_date"/></p>')
print('<p>End Date: <input type="text" name="end_date"/></p>')
print('<p>Country: <input type="text" name="country"/></p>')
print('<p>CNI: <input type="text" name="cni"/></p>')
print('<p>Add Responsible: <input type="text" name="responsible"/></p>')
print('<p><input type="submit" value="Submit"/></p>')
print('</form>')
# Link will lead back to main page
print('<a href="actions.cgi"><button>Back to Authorise/De-authorise Main Page</button></a> ')
print('</body>')
print('</html>')
IyEvdXNyL2Jpbi9weXRob24zCmltcG9ydCBjZ2kKZm9ybSA9IGNnaS5GaWVsZFN0b3JhZ2UoKQoKcHJpbnQoJ0NvbnRlbnQtdHlwZTp0ZXh0L2h0bWxcblxuJykKcHJpbnQoJzxodG1sPicpCnByaW50KCc8aGVhZD4nKQpwcmludCgnPHRpdGxlPlByb2plY3Q8L3RpdGxlPicpCnByaW50KCc8L2hlYWQ+JykKcHJpbnQoJzxib2R5PicpCiMgVGhlIHN0cmluZyBoYXMgdGhlIHt9LCB0aGUgdmFyaWFibGVzIGluc2lkZSBmb3JtYXQoKSB3aWxsIHJlcGxhY2UgdGhlIHt9CnByaW50KCc8aDM+QWRkIFJlc3BvbnNpYmxlIGZvciBSZXNlcnZhdGlvbiA8L2gzPicpCiMgVGhlIGZvcm0gd2lsbCBzZW5kIHRoZSBpbmZvIG5lZWRlZCBmb3IgdGhlIFNRTCBxdWVyeQpwcmludCgnPGZvcm0gYWN0aW9uPSJ1cGRhdGVfYWN0aW9ucy5jZ2kiIG1ldGhvZD0icG9zdCI+JykKcHJpbnQoJzxwPjxpbnB1dCB0eXBlPSJoaWRkZW4iIG5hbW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