#include "graphapp.h"
field name, phone;
textbox address;
checkbox ham, mushrooms, olives, capsicum;
radiobutton tomato, barbeque;
void place_order(button b)
{
printf("Name = %s\n", gettext(name));
printf("Phone = %s\n", gettext(phone));
printf("Address = %s\n", gettext(address));
printf("Sauce:\n");
if (ischecked(tomato)) printf(" Tomato\n");
if (ischecked(barbeque)) printf(" Barbeque\n");
printf("Toppings:\n");
if (ischecked(ham)) printf(" Ham\n");
if (ischecked(mushrooms)) printf(" Mushrooms\n");
if (ischecked(olives)) printf(" Olives\n");
if (ischecked(capsicum)) printf(" Capsicum\n");
exitapp();
}
void reset_form(button b)
{
settext(name, "");
settext(phone, "");
settext(address, "");
check(tomato);
uncheck(barbeque);
uncheck(ham);
uncheck(mushrooms);
uncheck(olives);
uncheck(capsicum);
show(name);
}