<% function yesno(entry) if entry = "1" then yesno = -1 else yesno = 0 end if end function if request("action") = "Cancel" then response.redirect "menu.asp" elseif request("action") = "Remove From Order" then sql = "DELETE FROM tbl_oline WHERE id=" & request("oline_id") cnn.execute sql cnn.close set cnn = nothing response.redirect "menu.asp" elseif request("action") = "Add to Order" or request("action") = "Save Changes" then if request("qty") = "" then msg = "Please enter the Quantity before clicking add to order." elseif request("label") = "" then msg = "Please enter Whose food is this? before clicking add to order." elseif not isnumeric(request("qty")) then msg = "Please enter a numeric Quantity before clicking add to order." elseif request("tortilla") = "" then msg = "Please choose a Tortilla flavor before clicking add to order." elseif request("rice") = "" then msg = "Please make a Rice selection before clicking add to order." elseif request("cheese") = "" then msg = "Please make a Cheese selection before clicking add to order." elseif request("beans_none")="" and request("beans_refried")="" and request("beans_black")="" and request("beans_whole")="" then msg = "Please make a Beans selection before clicking add to order." elseif request("beans_none") = "1" and _ (request("beans_refried") <> "" or request("beans_black") <> "" or request("beans_whole") <> "") then msg = "You cannot select the None option for Beans if you have checked another beans item." elseif (request("meat") = "C" or request("meat") = "B") and request("chicken") = "" then msg = "Please choose the type of chicken you want before clicking add to order." elseif request("sauce_none") = "" and request("sauce_bbq") = "" and request("sauce_mild") = "" and _ request("sauce_hot") = "" and request("sauce_death") = "" and request("sauce_habenero") = "" and _ request("sauce_lime") = "" then msg = "Please choose your sauce before clicking add to order. If you don't want any " & _ "sauces please check the none option." elseif request("sauce_none") <> "" and (request("sauce_bbq") <> "" or request("sauce_mild") <> "" or _ request("sauce_hot") <> "" or request("sauce_death") <> "" or request("sauce_habenero") <> "" or _ request("sauce_lime") <> "") then msg = "Please be sure to not choose any other sauce if you have already chosen the 'none' option." elseif request("e_none") = "" and request("e_scream") = "" and request("e_guac") = "" and _ request("e_cheese") = "" and request("e_rice") = "" and request("e_avo") = "" and _ request("e_tortilla") = "" and request("e_beans_black") = "" and request("e_queso") = "" and _ request("e_beans_refried") = "" and request("e_beans_whole") = "" and _ request("e_steak") = "" and request("e_wchick") = "" and request("e_dchick") = "" then msg = "Please choose your extras before clicking add to order. If you don't want any " & _ "extras please check the none option." elseif request("e_none") <> "" and (request("e_scream") <> "" or request("e_guac") <> "" or _ request("e_cheese") <> "" or request("e_rice") <> "" or request("e_avo") <> "" or _ request("e_tortilla") <> "" or request("e_beans_black") <> "" or _ request("e_beans_refried") <> "" or request("e_beans_whole") <> "" or _ request("e_steak") <> "" or request("e_wchick") <> "" or request("e_dchick") <> "") then msg = "Please be sure not to choose any other extra if you have already chosen the 'none' option." elseif request("f_none") = "" and request("white_onions") = "" and request("purple_onions") = "" and _ request("tomatoes") = "" and request("cilantro") = "" and request("pico") = "" and _ request("jalapenos") = "" and request("e_po") = "" and request("lettuce") = "" and _ request("salsa") = "" and request("rgarlic") = "" then msg = "Please choose your freebies before clicking add to order. If you don't want any " & _ "freebies please check the none option." elseif request("f_none") <> "" and (request("white_onions") <> "" or request("purple_onions") <> "" or _ request("tomatoes") <> "" or request("cilantro") <> "" or request("pico") <> "" or _ request("jalapenos") <> "" or request("e_po") <> "" or request("lettuce") <> "" or _ request("salsa") <> "" or request("rgarlic") <> "") then msg = "Please be sure not to choose any other freebie if you have already chosen the 'none' option." else if request("chicken") & "" = "" then chicken = "B" else chicken = request("chicken") price = request("price") if request("e_steak") = "1" or request("e_wchick") = "1" or request("e_dchick") = "1" then price = price + 1.75 if request("blabel") = "SS" or request("blabel") = "SC" or request("blabel") = "SV" then ' handle super monster different (all extras are free except meat) if request("e_tortilla") <> "" then price = price + .50 else ' always pay for these (no subtitutions) if request("e_guac") = "1" then price = price + .75 if request("e_avo") = "1" then price = price + 1 if request("e_queso") = "1" then price = price + .75 if request("e_scream") = "1" then price = price + .75 if request("e_cheese") = "1" then price = price + .50 if request("e_rice") = "1" then price = price + .50 if request("e_tortilla") <> "" then price = price + .50 if request("e_beans_black") = "1" or request("e_beans_refried") = "1" or request("e_beans_whole") = "1" then price = price + .50 end if end if sql = "INSERT INTO tbl_oline (order_id, product_id, qty, price, label, tortilla, tortilla2, rice, " & _ "cheese, beans_black, beans_refried, beans_whole, chicken, sauce_bbq, sauce_mild, sauce_hot, sauce_death, " & _ "sauce_habenero, sauce_lime, e_scream, e_guac, e_avo, e_cheese, e_rice, e_beans_black, e_beans_refried, e_beans_whole, " & _ "e_steak, e_wchick, e_dchick, e_po, e_queso, white_onions, purple_onions, pico, jalapenos, tomatoes, salsa, " & _ "cilantro, e_tortilla, lettuce, rgarlic, " & _ "notes_basic, notes_sauce, notes_free, notes_extra) VALUES (" & _ session("order_id") & ", " & _ request("id") & ", " & _ request("qty") & ", " & _ price & ", " & _ "'" & replace(request("label"), "'", "''") & "', " & _ "'" & request("tortilla") & "', " & _ "'" & request("tortilla2") & "', " & _ yesno(request("rice")) & ", " & _ request("cheese") & ", " & _ yesno(request("beans_black")) & ", " & _ yesno(request("beans_refried")) & ", " & _ yesno(request("beans_whole")) & ", " & _ "'" & chicken & "', " & _ yesno(request("sauce_bbq")) & ", " & _ yesno(request("sauce_mild")) & ", " & _ yesno(request("sauce_hot")) & ", " & _ yesno(request("sauce_death")) & ", " & _ yesno(request("sauce_habenero")) & ", " & _ yesno(request("sauce_lime")) & ", " & _ yesno(request("e_scream")) & ", " & _ yesno(request("e_guac")) & ", " & _ yesno(request("e_avo")) & ", " & _ yesno(request("e_cheese")) & ", " & _ yesno(request("e_rice")) & ", " & _ yesno(request("e_beans_black")) & ", " & _ yesno(request("e_beans_refried")) & ", " & _ yesno(request("e_beans_whole")) & ", " & _ yesno(request("e_steak")) & ", " & _ yesno(request("e_wchick")) & ", " & _ yesno(request("e_dchick")) & ", " & _ yesno(request("e_po")) & ", " & _ yesno(request("e_queso")) & ", " & _ yesno(request("white_onions")) & ", " & _ yesno(request("purple_onions")) & ", " & _ yesno(request("pico")) & ", " & _ yesno(request("jalapenos")) & ", " & _ yesno(request("tomatoes")) & ", " & _ yesno(request("salsa")) & ", " & _ yesno(request("cilantro")) & ", " & _ "'" & request("e_tortilla") & "', " & _ yesno(request("lettuce")) & ", " & _ yesno(request("rgarlic")) & ", " & _ "'" & replace(request("notes_basic"),"'","''") & "', " & _ "'" & replace(request("notes_sauce"),"'","''") & "', " & _ "'" & replace(request("notes_free"),"'","''") & "', " & _ "'" & replace(request("notes_extra"),"'","''") & "')" cnn.execute sql if request("action") = "Save Changes" then sql = "DELETE FROM tbl_oline WHERE id=" & request("oline_id") cnn.execute sql end if cnn.close set cnn = nothing response.redirect "menu.asp" end if tortilla = request("tortilla") tortilla2 = request("tortilla2") rice = request("rice") cheese = abs(request("cheese")) beans_black = request("beans_black") beans_refried = request("beans_refried") beans_whole = request("beans_whole") beans_none = request("beans_none") qty = request("qty") label = request("label") chicken = request("chicken") sauce_bbq = request("sauce_bbq") sauce_mild = request("sauce_mild") sauce_hot = request("sauce_hot") sauce_habenero = request("sauce_habenero") sauce_death = request("sauce_death") sauce_lime = request("sauce_lime") e_scream = request("e_scream") e_guac = request("e_guac") e_avo = request("e_avo") e_cheese = request("e_cheese") e_rice = request("e_rice") e_beans_black = request("e_beans_black") e_beans_refried = request("e_beans_refried") e_beans_whole = request("e_beans_whole") e_steak = request("e_steak") e_wchick = request("e_wchick") e_dchick = request("e_dchick") e_po = request("e_po") rgarlic = request("rgarlic") e_queso = request("e_queso") e_tortilla = request("e_tortilla") white_onions = request("white_onions") purple_onions = request("purple_onions") tomatoes = request("tomatoes") pico = request("pico") jalapenos = request("jalapenos") cilantro = request("cilantro") lettuce = request("lettuce") salsa = request("salsa") notes_basic = request("notes_basic") notes_sauce = request("notes_sauce") notes_extra = request("notes_extra") notes_free = request("notes_free") sauce_none = request("sauce_none") e_none = request("e_none") f_none = request("f_none") end if pid = request("id") if request("oline_id") <> "" then sql = "SELECT * FROM tbl_oline WHERE id=" & request("oline_id") set rs = server.createobject("adodb.recordset") rs.open sql, cnn, 1, 3 if not rs.eof then pid = rs("product_id") tortilla = rs("tortilla") tortilla2 = rs("tortilla2") rice = abs(rs("rice")) cheese = abs(rs("cheese")) beans_black = abs(rs("beans_black")) beans_refried = abs(rs("beans_refried")) beans_whole = abs(rs("beans_whole")) if beans_black = 0 and beans_refried = 0 and beans_whole = 0 then beans_none = 1 else beans_none = 0 end if qty = rs("qty") label = rs("label") chicken = rs("chicken") sauce_bbq = abs(rs("sauce_bbq")) sauce_mild = abs(rs("sauce_mild")) sauce_hot = abs(rs("sauce_hot")) sauce_habenero = abs(rs("sauce_habenero")) sauce_death = abs(rs("sauce_death")) sauce_lime = abs(rs("sauce_lime")) e_scream = abs(rs("e_scream")) e_guac = abs(rs("e_guac")) e_avo = abs(rs("e_avo")) e_cheese = abs(rs("e_cheese")) e_rice = abs(rs("e_rice")) e_beans_black = abs(rs("e_beans_black")) e_beans_refried = abs(rs("e_beans_refried")) e_beans_whole = abs(rs("e_beans_whole")) e_steak = abs(rs("e_steak")) e_wchick = abs(rs("e_wchick")) e_dchick = abs(rs("e_dchick")) e_po = abs(rs("e_po")) rgarlic = abs(rs("rgarlic")) e_queso = abs(rs("e_queso")) e_tortilla = rs("e_tortilla") white_onions = abs(rs("white_onions")) purple_onions = abs(rs("purple_onions")) tomatoes = abs(rs("tomatoes")) pico = abs(rs("pico")) jalapenos = abs(rs("jalapenos")) cilantro = abs(rs("cilantro")) lettuce = abs(rs("lettuce")) salsa = abs(rs("salsa")) notes_basic = rs("notes_basic") notes_sauce = rs("notes_sauce") notes_extra = rs("notes_extra") notes_free = rs("notes_free") if sauce_bbq=0 and sauce_mild=0 and sauce_hot=0 and sauce_habenero=0 _ and sauce_death=0 and sauce_lime=0 then sauce_none = 1 end if if e_scream=0 and e_guac=0 and e_avo=0 and e_cheese=0 and e_rice=0 _ and e_beans_black=0 and e_beans_refried=0 and e_beans_whole=0 _ and e_steak=0 and e_wchick=0 and e_dchick=0 and e_queso=0 and e_tortilla="" then e_none = 1 end if if white_onions=0 and purple_onions=0 and tomatoes=0 and pico=0 _ and jalapenos=0 and cilantro=0 and lettuce=0 and salsa=0 and e_po=0 and rgarlic=0 then f_none = 1 end if end if rs.close set rs = nothing end if if pid & "" = "" and session("order_id") = "" then response.redirect "http://www.freebirds.com/order" elseif pid & "" = "" then response.redirect "http://www.freebirds.com/order/menu.asp" end if %> <% if request("qty") <> "" then qty = request("qty") else qty = "1" set rs = server.createobject("adodb.recordset") sql = "SELECT * FROM tbl_product WHERE id=" & pid rs.open sql, cnn, 1, 3 product_type = rs("type") if left(rs("label"),1) = "E" then product_type = "exposed burrito" end if %> All items selected on this page will come inside your <%=product_type%>. If you'd like to have something on the side, please select it in the "Sides" menu page.

The 'notes' line is to designate 'light', 'extra', or 'on the side' for any item in this section. If you indicate 'extra' for any item (excluding meat), we will add 1/2 again the normal portion for free. If you'd like a full extra portion of any item, please select that item in the "Extras" section. If you would like to purchase additional Sides of any item, you may select something from the "Sides" Menu Page.

<%if msg <> "" then response.write "" & msg & ""%>

<%=rs("name")%> <%=formatcurrency(rs("price"),2)%>
Whose food is this?  Qty


<%' use this for nacho products that don't come with a tortilla%> <%if left(rs("label"),1)="N" then%> <%else%> <%end if%> <%if rs("label")="SS" or rs("label") = "SC" or rs("label") = "SV" then%> <%end if%> <%if left(rs("name"),5)="Nacho" then%> <%else%> <%end if%> <%if rs("meat") = "C" or rs("meat") = "B" then%> <%if rs("meat") = "B" then%> <%else%> <%end if%> <%end if%> <%if rs("label")="SS" or rs("label") = "SC" or rs("label") = "SV" then%> <%else%> <%end if%>
Tortilla: >Flour   >Wheat   >Cayenne   >Spinach   <%if left(rs("label"),1)="B" then%> >Corn   >None <%end if%>
2nd Tortilla: >Flour   >Wheat   >Cayenne   >Spinach
Rice: >Yes  >No
Queso: >Yes  >No
Cheese: >None   >Monterrey Jack   >Cheddar/Jack Mix  
Beans: >None   >Black   >Refried   >Whole   (choose one or more)
Notes:  

All combo orders come with Steak. Please select which type of Chicken you'd like.

Chicken: >White Meat   >Dark Meat   >Both

Sauces:
>None
>Bad Ass BBQ Sauce
>Mild Tomatillo
>Hot Tomatillo
>Death
>Habenero
>Fresh Lime Juice
Notes:  

Freebies:
>None
>White Onions
>Tomatoes
>Salsa
>Pico De Gallo
>Jalapeños
>Cilantro
>Lettuce
>Roasted Peppers and Onions
<%if session("store_id") < 2 or session("store_id") > 4 then%> >Roasted Garlic
<%else%> <%end if%>
Notes:  

Extras:
>None
>Sour Cream
>Guacamole
>2 oz Queso
>Sliced Avocado
>Extra Cheese
>Extra Rice
 Extra Beans: >Black   >Refried   >Whole
 Extra Tortilla 50¢: >Flour   >Wheat   >Cayenne   >Spinach
 Extra Meat $1.75: >Steak   >White Chicken   >Dark Chicken
Extras:
>None
>Sour Cream, 75¢
>Guacamole, 75¢
>2 oz Queso, 75¢
>Sliced Avocado, $1
>Extra Cheese, 50¢
>Extra Rice, 50¢
 Extra Beans 50¢: >Black   >Refried   >Whole
 Extra Tortilla 50¢: >None  >Flour  >Wheat  >Cayenne  >Spinach <%if rs("meat") <> "V" then%>
 Extra Meat $1.75: >Steak   >White Chicken   >Dark Chicken <%end if%>
Notes:  

"> "> "> "> <%if request("oline_id") <> "" then%>       <%else%> <%end if%>   

<% rs.close set rs = nothing %>