28 $("#name").html(my_name); |
28 $("#name").html(my_name); |
29 $("#code").html(my_code); |
29 $("#code").html(my_code); |
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 }); |
|
34 $("#jqxRadioButton5").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
33 $('#jqxRadioButton1').on('checked', function (event) { |
35 $('#jqxRadioButton1').on('checked', function (event) { |
34 $('#Start').jqxButton({ disabled: false }); |
36 $('#Start').jqxButton({ disabled: false }); |
35 choice = 1; |
37 choice = 1; |
36 }); |
38 }); |
37 $('#jqxRadioButton2').on('checked', function (event) { |
39 $('#jqxRadioButton2').on('checked', function (event) { |
40 }); |
42 }); |
41 $('#jqxRadioButton3').on('checked', function (event) { |
43 $('#jqxRadioButton3').on('checked', function (event) { |
42 $('#Start').jqxButton({ disabled: false }); |
44 $('#Start').jqxButton({ disabled: false }); |
43 choice = 3; |
45 choice = 3; |
44 }); |
46 }); |
|
47 $('#jqxRadioButton4').on('checked', function (event) { |
|
48 $('#Start').jqxButton({ disabled: false }); |
|
49 choice = 4; |
|
50 }); |
|
51 $('#jqxRadioButton5').on('checked', function (event) { |
|
52 $('#Start').jqxButton({ disabled: false }); |
|
53 choice = 5; |
|
54 }); |
45 |
55 |
46 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); |
56 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); |
47 $('#Start').click(function () { |
57 $('#Start').click(function () { |
48 if (choice == 1) { |
58 if (choice == 1) { |
49 var url="prod_beerxml.php?record=" + my_record; |
59 var url="prod_beerxml.php?record=" + my_record; |
52 var url="prod_duplicate.php?record=" + my_record; |
62 var url="prod_duplicate.php?record=" + my_record; |
53 window.open(url); |
63 window.open(url); |
54 } else if (choice == 3) { |
64 } else if (choice == 3) { |
55 var url="prod_torecipe.php?record=" + my_record; |
65 var url="prod_torecipe.php?record=" + my_record; |
56 window.open(url); |
66 window.open(url); |
57 } |
67 } else if (choice == 4) { |
|
68 var url="prod_print.php?record=" + my_record; |
|
69 window.open(url); |
|
70 } else if (choice == 5) { |
|
71 var url="prod_forum.php?record=" + my_record; |
|
72 window.open(url); |
|
73 } |
58 // Return to the original product |
74 // Return to the original product |
59 window.location.href = my_return + "?record=" + my_record; |
75 window.location.href = my_return + "?record=" + my_record; |
60 }); |
76 }); |
61 |
77 |
62 }); |
78 }); |