Commit e1c324bf authored by sam.pople's avatar sam.pople

anothermark

parent e4c23df7
...@@ -11,9 +11,9 @@ import java.util.ArrayList; ...@@ -11,9 +11,9 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
public class Database extends SQLiteOpenHelper { public class Database extends SQLiteOpenHelper {
public static final String databasename = "playsrusdata2.db"; public static final String databasename = "playsrusdata3.db";
public Database(@Nullable Context cont) { public Database(@Nullable Context cont) {
super(cont, "playsrusdata2.db", null, 1); super(cont, "playsrusdata3.db", null, 1);
} }
@Override @Override
public void onCreate(SQLiteDatabase data) { public void onCreate(SQLiteDatabase data) {
......
...@@ -15,7 +15,7 @@ import androidx.annotation.Nullable; ...@@ -15,7 +15,7 @@ import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
public class antigone extends AppCompatActivity implements AdapterView.OnItemSelectedListener{ public class antigone extends AppCompatActivity implements AdapterView.OnItemSelectedListener{
String[] seatings = { "Seated" }; String[] seatings = { "Inner circle", "Outer circle", "Standing"};
private EditText fullName; private EditText fullName;
private TextView displayplayname; private TextView displayplayname;
......
...@@ -15,7 +15,7 @@ import androidx.annotation.Nullable; ...@@ -15,7 +15,7 @@ import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
public class hamlet extends AppCompatActivity implements AdapterView.OnItemSelectedListener{ public class hamlet extends AppCompatActivity implements AdapterView.OnItemSelectedListener{
String[] seatings = { "Seated" }; String[] seatings = { "Seated", "Standing" };
private EditText fullName; private EditText fullName;
private TextView displayplayname; private TextView displayplayname;
......
...@@ -15,7 +15,7 @@ import androidx.annotation.Nullable; ...@@ -15,7 +15,7 @@ import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
public class midsummer extends AppCompatActivity implements AdapterView.OnItemSelectedListener{ public class midsummer extends AppCompatActivity implements AdapterView.OnItemSelectedListener{
String[] seatings = { "Seated" }; String[] seatings = { "On stage", "Grass" };
private EditText fullName; private EditText fullName;
private TextView displayplayname; private TextView displayplayname;
......
...@@ -15,7 +15,7 @@ import androidx.annotation.Nullable; ...@@ -15,7 +15,7 @@ import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
public class oedipus extends AppCompatActivity implements AdapterView.OnItemSelectedListener{ public class oedipus extends AppCompatActivity implements AdapterView.OnItemSelectedListener{
String[] seatings = { "Seated" }; String[] seatings = { "Seated", "Standing" };
private EditText fullName; private EditText fullName;
private TextView displayplayname; private TextView displayplayname;
......
...@@ -47,7 +47,6 @@ public class seating extends AppCompatActivity implements AdapterView.OnItemSele ...@@ -47,7 +47,6 @@ public class seating extends AppCompatActivity implements AdapterView.OnItemSele
String playnameforthis = "The Merchant of Venice"; String playnameforthis = "The Merchant of Venice";
int ticketsthere = database.gettickets(playnameforthis); int ticketsthere = database.gettickets(playnameforthis);
String getseating = seatingtype.getSelectedItem().toString(); String getseating = seatingtype.getSelectedItem().toString();
String getname = fullName.getText().toString();
displaytickets.setText(String.valueOf(ticketsthere)); displaytickets.setText(String.valueOf(ticketsthere));
//This ensures that the number of ordered tickets is acceptable //This ensures that the number of ordered tickets is acceptable
confirm.setOnClickListener(v -> { confirm.setOnClickListener(v -> {
......
...@@ -15,7 +15,7 @@ import androidx.annotation.Nullable; ...@@ -15,7 +15,7 @@ import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
public class tempest extends AppCompatActivity implements AdapterView.OnItemSelectedListener{ public class tempest extends AppCompatActivity implements AdapterView.OnItemSelectedListener{
String[] seatings = { "Seated" }; String[] seatings = { "Boat A", "Boat B", "Boat C" };
private EditText fullName; private EditText fullName;
private TextView displayplayname; private TextView displayplayname;
......
...@@ -121,8 +121,8 @@ ...@@ -121,8 +121,8 @@
<Button <Button
android:id="@+id/filtered" android:id="@+id/filtered"
android:layout_width="207dp" android:layout_width="195dp"
android:layout_height="90dp" android:layout_height="84dp"
android:text="View Performances With Wheelchair Access" android:text="View Performances With Wheelchair Access"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
...@@ -133,8 +133,8 @@ ...@@ -133,8 +133,8 @@
<Button <Button
android:id="@+id/filtered2" android:id="@+id/filtered2"
android:layout_width="200dp" android:layout_width="187dp"
android:layout_height="95dp" android:layout_height="90dp"
android:text="View Performances With Flashing Lights" android:text="View Performances With Flashing Lights"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
......
...@@ -52,18 +52,18 @@ ...@@ -52,18 +52,18 @@
<TextView <TextView
android:id="@+id/textView9" android:id="@+id/textView9"
android:layout_width="387dp" android:layout_width="378dp"
android:layout_height="29dp" android:layout_height="31dp"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:text="Venue - Merchant Adventurer's Hall, York" android:text="Venue - Merchant Adventurer's Hall, York"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textSize="20sp" android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.428" app:layout_constraintHorizontal_bias="0.666"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.297" app:layout_constraintVertical_bias="0.295"
tools:text="Venue - Merchant Adventurer's Hall, York" /> tools:text="Venue - Merchant Adventurer's Hall, York" />
<TextView <TextView
......
...@@ -89,10 +89,10 @@ ...@@ -89,10 +89,10 @@
android:text="View Bookings" android:text="View Bookings"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.059" app:layout_constraintHorizontal_bias="0.093"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.83" /> app:layout_constraintVertical_bias="0.812" />
<Button <Button
android:id="@+id/undo" android:id="@+id/undo"
...@@ -104,18 +104,18 @@ ...@@ -104,18 +104,18 @@
app:layout_constraintHorizontal_bias="0.855" app:layout_constraintHorizontal_bias="0.855"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.761" /> app:layout_constraintVertical_bias="0.737" />
<Button <Button
android:id="@+id/undo2" android:id="@+id/undo2"
android:layout_width="200dp" android:layout_width="186dp"
android:layout_height="79dp" android:layout_height="93dp"
android:text="View Performances with Flashing Lights" android:text="View Performances with Flashing Lights"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.927" app:layout_constraintHorizontal_bias="0.884"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.928" /> app:layout_constraintVertical_bias="0.918" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
...@@ -66,22 +66,22 @@ ...@@ -66,22 +66,22 @@
android:text="View Bookings" android:text="View Bookings"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.014" app:layout_constraintHorizontal_bias="0.059"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.83" /> app:layout_constraintVertical_bias="0.782" />
<Button <Button
android:id="@+id/undo5" android:id="@+id/undo5"
android:layout_width="205dp" android:layout_width="187dp"
android:layout_height="87dp" android:layout_height="88dp"
android:text="View Performances With Wheelchair Access" android:text="View Performances With Wheelchair Access"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.849" app:layout_constraintHorizontal_bias="0.875"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.756" /> app:layout_constraintVertical_bias="0.702" />
<Button <Button
android:id="@+id/undo6" android:id="@+id/undo6"
...@@ -90,8 +90,8 @@ ...@@ -90,8 +90,8 @@
android:text="View All" android:text="View All"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.835" app:layout_constraintHorizontal_bias="0.837"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.9" /> app:layout_constraintVertical_bias="0.876" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
...@@ -124,10 +124,10 @@ ...@@ -124,10 +124,10 @@
android:textSize="24sp" android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.712" app:layout_constraintHorizontal_bias="0.734"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.414" /> app:layout_constraintVertical_bias="0.423" />
<TextView <TextView
android:id="@+id/venicetickets2" android:id="@+id/venicetickets2"
......
...@@ -51,25 +51,25 @@ ...@@ -51,25 +51,25 @@
<Button <Button
android:id="@+id/bookingback" android:id="@+id/bookingback"
android:layout_width="143dp" android:layout_width="126dp"
android:layout_height="60dp" android:layout_height="57dp"
android:text="Back" android:text="Back"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.014" app:layout_constraintHorizontal_bias="0.143"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.83" /> app:layout_constraintVertical_bias="0.82" />
<Button <Button
android:id="@+id/button27" android:id="@+id/button27"
android:layout_width="221dp" android:layout_width="179dp"
android:layout_height="60dp" android:layout_height="53dp"
android:text="Cancel Bookings" android:text="Cancel Bookings"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.978" app:layout_constraintHorizontal_bias="0.931"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.83" /> app:layout_constraintVertical_bias="0.821" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment