30 $("#jqxRadioButton1").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
30 $("#jqxRadioButton1").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
31 $("#jqxRadioButton2").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
31 $("#jqxRadioButton2").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
32 $("#jqxRadioButton3").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
32 $("#jqxRadioButton3").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
33 $("#jqxRadioButton4").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
33 $("#jqxRadioButton4").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
34 $("#jqxRadioButton5").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
34 $("#jqxRadioButton5").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
|
35 $("#jqxRadioButton6").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
35 $('#jqxRadioButton1').on('checked', function (event) { |
36 $('#jqxRadioButton1').on('checked', function (event) { |
36 $('#Start').jqxButton({ disabled: false }); |
37 $('#Start').jqxButton({ disabled: false }); |
37 choice = 1; |
38 choice = 1; |
38 }); |
39 }); |
39 $('#jqxRadioButton2').on('checked', function (event) { |
40 $('#jqxRadioButton2').on('checked', function (event) { |
50 }); |
51 }); |
51 $('#jqxRadioButton5').on('checked', function (event) { |
52 $('#jqxRadioButton5').on('checked', function (event) { |
52 $('#Start').jqxButton({ disabled: false }); |
53 $('#Start').jqxButton({ disabled: false }); |
53 choice = 5; |
54 choice = 5; |
54 }); |
55 }); |
|
56 $('#jqxRadioButton6').on('checked', function (event) { |
|
57 $('#Start').jqxButton({ disabled: false }); |
|
58 choice = 6; |
|
59 }); |
55 |
60 |
56 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); |
61 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); |
57 $('#Start').click(function () { |
62 $('#Start').click(function () { |
58 if (choice == 1) { |
63 if (choice == 1) { |
59 var url="prod_beerxml.php?record=" + my_record; |
64 var url="prod_beerxml.php?record=" + my_record; |
66 window.open(url); |
71 window.open(url); |
67 } else if (choice == 4) { |
72 } else if (choice == 4) { |
68 var url="prod_print.php?record=" + my_record; |
73 var url="prod_print.php?record=" + my_record; |
69 window.open(url); |
74 window.open(url); |
70 } else if (choice == 5) { |
75 } else if (choice == 5) { |
|
76 var url="prod_checklist.php?record=" + my_record; |
|
77 window.open(url); |
|
78 } else if (choice == 6) { |
71 var url="prod_forum.php?record=" + my_record; |
79 var url="prod_forum.php?record=" + my_record; |
72 window.open(url); |
80 window.open(url); |
73 } |
81 } |
74 // Return to the original product |
82 // Return to the original product |
75 window.location.href = my_return + "?record=" + my_record; |
83 window.location.href = "prod_edit.php?record=" + my_record + "&return=" + my_return; |
76 }); |
84 }); |
77 |
85 |
78 }); |
86 }); |