"Street", "abbrev" => "Street", "name" => "street", "type" => "text", "size" => 30, "required" => 1), array("label" => "City", "abbrev" => "City", "name" => "city", "type" => "text", "size" => 30, "required" => 1), array("label" => "State", "abbrev" => "State", "name" => "state", "type" => "state", "size" => 2, "required" => 1), array("label" => "Zip", "abbrev" => "Zip", "name" => "zip", "type" => "zip", "size" => 5, "required" => 1), array("label" => "Email", "abbrev" => "Email", "name" => "email1", "type" => "email", "size" => 40, "required" => 1), array("label" => "Phone", "abbrev" => "Phone", "name" => "phone", "type" => "phone", "size" => 12, "required" => 1), array("label" => "Number of Men Dancers", "abbrev" => "Men Dancers", "name" => "num_men_dancers", "type" => "num", "size" => 1, "required" => 1), array("label" => "Number of Women Dancers", "abbrev" => "Women Dancers", "name" => "num_women_dancers", "type" => "num", "size" => 1, "required" => 1), array("label" => "Notes", "abbrev" => "Notes", "name" => "notes", "type" => "text", "size" => 1000), array("label" => "Hospitality Request: Number of People", "abbrev" => "Hosp Req Num", "name" => "hosp_req_num", "type" => "num", "size" => 1), array("label" => "Hospitality Request: Number of Beds", "abbrev" => "Hosp Req Beds", "name" => "hosp_req_beds", "type" => "num", "size" => 1), array("label" => "Hospitality Request: Smoker", "abbrev" => "Hosp Req Smoker", "name" => "hosp_req_smoker", "type" => "check", "size" => 1), array("label" => "Hospitality Request: Cats OK", "abbrev" => "Hosp Req Cats", "name" => "hosp_req_cats", "type" => "check", "size" => 1), array("label" => "Hospitality Request: Dogs OK", "abbrev" => "Hosp Req Dogs", "name" => "hosp_req_dogs", "type" => "check", "size" => 1), array("label" => "Hospitality Request: Notes (Allergies, etc.)", "abbrev" => "Hosp Req Notes", "name" => "hosp_req_notes", "type" => "text", "size" => 60), array("label" => "Hospitality Request: Carpooling With", "abbrev" => "Carpooler", "name" => "hosp_req_carpooler", "type" => "text", "size" => 40), array("label" => "Hospitality Offer: Number of People", "abbrev" => "Hosp Offer Num", "name" => "hosp_offer_num", "type" => "num", "size" => 1), array("label" => "Hospitality Offer: Number of Beds", "abbrev" => "Hosp Offer Beds", "name" => "hosp_offer_beds", "type" => "num", "size" => 1), array("label" => "Hospitality Offer: Smoker", "abbrev" => "Hosp Offer Smoker", "name" => "hosp_offer_smoker", "type" => "check", "size" => 1), array("label" => "Hospitality Offer: Have Cats", "abbrev" => "Hosp Offer Cats", "name" => "hosp_offer_cats", "type" => "check", "size" => 1), array("label" => "Hospitality Offer: Have Dogs", "abbrev" => "Hosp Offer Dogs", "name" => "hosp_offer_dogs", "type" => "check", "size" => 1), ); // Max width of single line of text. // Fields longer than this will be implemented as textarea with multiple lines. var $c_text_line_width = 80; // Max length of name fields var $c_name_max_length = 20; // Telephone Fields. // label is what is displayed next to the button. // name attribute must be unique, including data, phone, radio, selections // items is list of buttons. // default is item to be selected initially by default. // required attribute is optional. var $c_aryPhone_Fields = null; // Radio Buttons. // label is what is displayed next to the button. // name attribute must be unique, including data, phone, radio, selections // items is list of buttons. // default is item to be selected initially by default. // required attribute is optional. var $c_aryRadio_Fields = null; // Selection Lists. // label is what is displayed next to the list. // items is list of selections. // default is item to be selected initially by default. // required attribute is optional. var $c_arySelect_Fields = null; // Attendance options. // Each item is (label, abbreviation, price). var $c_aryAttendance_Fields = array( array("label" => "Adult", "abbrev" => "Adult", "price" => 85), array("label" => "Student Jr High and up", "abbrev" => "Student", "price" => 45, "no_early_late_reg" => 1), array("label" => "Child 12 and under", "abbrev" => "Child", "price" => 35, "no_early_late_reg" => 1), array("label" => "CDSS Member Discount", "abbrev" => "CDSS", "price" => -5), ); // Dis/Allow select of multiple attendance options. var $c_attendance_multi_select = 0; // Early registration discount. Use negative number. var $c_early_reg_discount = -10; // Late registration fee var $c_late_reg_fee = 0; // Early/Late registration cutoff date. // Format = "January 15, 2017", or "" or null if not used. // This is the last date for early registration, // or the first date for late registration. // Example: for January 15, 2019, the early registration discount // will be applied through Jan 15, and stop on Jan 16. // The late registration fee will start on Jan 15. var $c_early_late_reg_cutoff_date = "August 15, 2029"; // Date to shutdown registration. // Format = "January 15, 2019", or "" or null if not used. // Registrations will not be accepted at this and later dates. var $c_reg_shutdown_date = "September 22, 2029"; // Merchandise Data Fields. // Each item is (label, abbreviation, price). var $c_aryMerchandise_Fields = array( array("label" => "T-Shirt Small", "abbrev" => "TShirtS", "price" => 14), array("label" => "T-Shirt Medium", "abbrev" => "TShirtM", "price" => 14), array("label" => "T-Shirt Large", "abbrev" => "TShirtL", "price" => 14), array("label" => "T-Shirt Extra Large", "abbrev" => "TShirtXL", "price" => 14), ); // Membership options var $c_member_single_price = 0; var $c_member_family_price = 0; // Maximum number of musicians var $c_max_musicians = 0; // Musician Data Fields. // Each item is (label, abbreviation, name, datatype, datasize). var $c_aryMusician_Fields = null; // Maximum number of callers var $c_max_callers = 0; // Caller Data Fields. // Each item is (label, abbreviation, name, datatype, datasize, required). var $c_aryCaller_Fields = null; // These are filled in during initialization, based on c_test_mode var $c_paypal_email = ""; var $c_paypal_url = ""; var $c_paypal_ipn_url = ""; var $c_registrar_email = ""; var $c_hospitality_email = ""; // Today's date, filled in during initialization. var $c_today = ""; // Class Constructor function __construct(){ // Setup values for normal and test modes if ($this->c_test_mode == 0) { // Production $this->c_paypal_email = 'payments@yourdomain.com'; $this->c_paypal_url = "https://www.paypal.com"; // DO NOT CHANGE $this->c_paypal_ipn_url = "https://www.paypal.com/cgi-bin/webscr"; // DO NOT CHANGE $this->c_registrar_email = "registrar@yourdomain.com"; $this->c_hospitality_email = "hospitality@yourdomain.com"; } else { // Testing Sandbox $this->c_paypal_email = 'payments-seller1@yourdomain.com'; $this->c_paypal_url = "https://www.sandbox.paypal.com"; // DO NOT CHANGE $this->c_paypal_ipn_url = "https://www.sandbox.paypal.com/cgi-bin/webscr"; // DO NOT CHANGE $this->c_registrar_email = "somebody3@somewhere.com"; $this->c_hospitality_email = "somebody4@somewhere.com; } // else c_test_mode // Get Today's date $this->c_today = date("Y-m-d"); // DO NOT CHANGE } // Online_Reg_Config_Class constructor } // Online_Reg_Config_Class ?>