meal1 = StructNew(); meal1.name="Homestyle Bakes"; meal1.type="boxed,chicken"; meal1.side1=""; meal1.difficulty=0; //not used for anything yet meal1.maxFrequency=2; meal1.spent=0; //always default this to 0 meal1.exception=""; //always default this to "" meal2 = StructNew(); meal2.name="Mrs. Fields"; meal2.type="fish"; meal2.side1="Rice,Egg noodles,Pasta"; meal2.difficulty=0; //not used for anything yet meal2.maxFrequency=3; meal2.spent=0; //always default this to 0 meal2.exception=""; //always default this to "" meal3 = StructNew(); meal3.name="Tilapia"; meal3.type="fish"; meal3.side1="Rice,Egg noodles,Pasta,Cornbread"; meal3.difficulty=0; //not used for anything yet meal3.maxFrequency=3; meal3.spent=0; //always default this to 0 meal3.exception=""; //always default this to "" meal4 = StructNew(); meal4.name="Meatloaf"; meal4.type="beef"; meal4.side1="Garlic bread,Biscuits,Rice,Homemade bread"; meal4.difficulty=0; //not used for anything yet meal4.maxFrequency=3; meal4.spent=0; //always default this to 0 meal4.exception=""; //always default this to "" meal5 = StructNew(); meal5.name="Baked Chicken"; meal5.type="chicken"; meal5.side1="Biscuits,Egg noodles,Cornbread,Baked potatoes,Mashed potatoes,Roasted potatoes"; meal5.difficulty=0; //not used for anything yet meal5.maxFrequency=2; meal5.spent=0; //always default this to 0 meal5.exception=""; //always default this to "" meal6 = StructNew(); meal6.name="Tuna Melts"; meal6.type="fish"; meal6.side1=""; meal6.difficulty=0; //not used for anything yet meal6.maxFrequency=1; meal6.spent=0; //always default this to 0 meal6.exception=""; //always default this to "" meal7 = StructNew(); meal7.name="Cheeseburgers"; meal7.type="beef"; meal7.side1=""; meal7.difficulty=0; //not used for anything yet meal7.maxFrequency=1; meal7.spent=0; //always default this to 0 meal7.exception=""; //always default this to "" meal8 = StructNew(); meal8.name="Spaghetti"; meal8.type="pasta"; meal8.side1="Garlic bread,Biscuits,Homemade bread"; meal8.difficulty=0; //not used for anything yet meal8.maxFrequency=2; meal8.spent=0; //always default this to 0 meal8.exception=""; //always default this to "" meal9 = StructNew(); meal9.name="Tacos"; meal9.type="beef"; meal9.side1=""; meal9.difficulty=0; //not used for anything yet meal9.maxFrequency=3; meal9.spent=0; //always default this to 0 meal9.exception=""; //always default this to "" meal10 = StructNew(); meal10.name="Pork Chops"; meal10.type="pork"; meal10.side1="Cornbread,Biscuits,Homemade bread,Rice,Egg noodles,Biscuits,Baked potatoes,Roasted potatoes,Butter-Garlic potatoes,Mashed potatoes,Canned potatoes,Mac & cheese,Baked mac & cheese"; meal10.difficulty=0; //not used for anything yet meal10.maxFrequency=3; meal10.spent=0; //always default this to 0 meal10.exception=""; //always default this to "" meal11 = StructNew(); meal11.name="Ham"; meal11.type="ham"; meal11.side1="Cornbread,Biscuits,Homemade bread,Rice,Egg noodles,Mac & cheese,Baked mac & cheese"; meal11.difficulty=0; //not used for anything yet meal11.maxFrequency=2; meal11.spent=0; //always default this to 0 meal11.exception=""; //always default this to "" meal12 = StructNew(); meal12.name="Hamburger Helper"; meal12.type="beef,boxed"; meal12.side1="Cornbread,Biscuits,Homemade bread,Rice,Egg noodles,Garlic bread"; meal12.difficulty=0; //not used for anything yet meal12.maxFrequency=2; meal12.spent=0; //always default this to 0 meal12.exception=""; //always default this to "" meal13 = StructNew(); meal13.name="Tuna Helper"; meal13.type="boxed,fish,pasta"; meal13.side1="Biscuits,Homemade bread,"; meal13.difficulty=0; //not used for anything yet meal13.maxFrequency=2; meal13.spent=0; //always default this to 0 meal13.exception=""; //always default this to "" meal14 = StructNew(); meal14.name="Frozen Pizza"; meal14.type="junkfood"; meal14.side1=""; meal14.difficulty=0; //not used for anything yet meal14.maxFrequency=2; meal14.spent=0; //always default this to 0 meal14.exception=""; //always default this to "" meal15 = StructNew(); meal15.name="Baked Ziti"; meal15.type="pasta"; meal15.side1="Cornbread,Biscuits,Homemade bread"; meal15.difficulty=0; //not used for anything yet meal15.maxFrequency=1; meal15.spent=0; //always default this to 0 meal15.exception=""; //always default this to "" meal16 = StructNew(); meal16.name="Steak"; meal16.type="beef"; meal16.side1="Baked potatoes,Roasted potatoes,Butter-Garlic potatoes,Mashed potatoes,Canned potatoes,Cornbread,Biscuits"; meal16.difficulty=0; //not used for anything yet meal16.maxFrequency=2; meal16.spent=0; //always default this to 0 meal16.exception=""; //always default this to "" meal17 = StructNew(); meal17.name="Pork Roast"; meal17.type="pork"; meal17.side1="Rice,Cornbread,Biscuits,Homemade bread,Egg noodles,Mashed potatoes,Roasted potatoes,Canned potatoes,Butter-Garlic potatoes"; meal17.difficulty=0; //not used for anything yet meal17.maxFrequency=1; meal17.spent=0; //always default this to 0 meal17.exception=""; //always default this to "" meal18 = StructNew(); meal18.name="BBQ Chicken"; meal18.type="chicken"; meal18.side1="Mashed potatoes,Biscuits,"; meal18.difficulty=0; //not used for anything yet meal18.maxFrequency=2; meal18.spent=0; //always default this to 0 meal18.exception=""; //always default this to "" meal19 = StructNew(); meal19.name="Chicken Alfredo"; meal19.type="chicken,pasta"; meal19.side1="Biscuits,Homemade bread"; meal19.difficulty=0; //not used for anything yet meal19.maxFrequency=1; meal19.spent=0; //always default this to 0 meal19.exception=""; //always default this to "" meal20 = StructNew(); meal20.name="Venison Steak"; meal20.type="deer"; meal20.side1="Cornbread,Homemade bread,Mashed potatoes,Roasted potatoes,Egg noodles"; meal20.difficulty=0; //not used for anything yet meal20.maxFrequency=1; meal20.spent=0; //always default this to 0 meal20.exception=""; //always default this to "" /**********************************************************/ /**********************************************************/ /**********************************************************/ /* add all of your meal structs to this array */ session.meals = ArrayNew(1); ArrayAppend(session.meals, meal1); ArrayAppend(session.meals, meal2); ArrayAppend(session.meals, meal3); ArrayAppend(session.meals, meal4); ArrayAppend(session.meals, meal5); ArrayAppend(session.meals, meal6); ArrayAppend(session.meals, meal7); ArrayAppend(session.meals, meal8); ArrayAppend(session.meals, meal9); ArrayAppend(session.meals, meal10); ArrayAppend(session.meals, meal11); ArrayAppend(session.meals, meal12); ArrayAppend(session.meals, meal13); ArrayAppend(session.meals, meal14); ArrayAppend(session.meals, meal15); ArrayAppend(session.meals, meal16); ArrayAppend(session.meals, meal17); ArrayAppend(session.meals, meal18); ArrayAppend(session.meals, meal19); ArrayAppend(session.meals, meal20); /* list your fruits and veggies */ fruit_n_veggie_list = "Grapes,Apples,Oranges,Applesauce,Peas,Greenbeans,Carrots,Broccoli,Corn"; /* list exceptions here. These are dates when no meal is required. The "exception" attribute will be displayed on the given day. the "day" attribute specifies the day of the month (integer) that the exception applies to */ exception1 = StructNew(); exception1.exception="Graduation Party"; exception1.date=2; exception2 = StructNew(); exception2.exception="Birthday Party
Friends coming up"; exception2.date=9; exception3 = StructNew(); exception3.exception="Camping"; exception3.date=22; exception4 = StructNew(); exception4.exception="Camping"; exception4.date=23; /* add all of your exceptions to this array */ exceptions = ArrayNew(1); ArrayAppend(exceptions, exception1); ArrayAppend(exceptions, exception2); ArrayAppend(exceptions, exception3); ArrayAppend(exceptions, exception4); minMealProximity = 5; //closest we'll allow meals of a shared type to reside (integer number of days BETWEEN) minSideProximity = 2; //closest we'll allow side dishes to be repeated (integer number of days BETWEEN) menuMonth = 10; menuYear = 2007; /* name the CSS file that you use to style the results - default: "default.css" */ cssFile = "default.css";