/* Created with PageBuilder version 4.04 on Fri Jan 31 09:38:00 2014 */

#include "AsExtern.h"

#if RomPagerServer



/* ********************************************************* */
/* *    Built from "html\web_page_multiple_submits.htm"    * */
/* ********************************************************* */

extern rpObjectDescription Pgweb_page_multiple_submits;

static char Pgweb_page_multiple_submits_Item_1[] =
	C_oHTML_oHEAD_oTITLE "Demonstrates using multiple submit buttons"
	C_xTITLE_xHEAD_oBODY;

static char Pgweb_page_multiple_submits_Item_2[] =
	"\n"
	"This page demonstrates using multipel submit buttons on one form\n"
	C_oP;

static char Pgweb_page_multiple_submits_Item_4[] =
	"\n"
	"Enter your name:\n";

extern char *getTheName(void);
extern void setTheName(char *theValuePtr);
static rpTextFormItem Pgweb_page_multiple_submits_Item_5 = {
	"theName",
	(void *) getTheName,
	(void *) setTheName,
	eRpVarType_Function,
	eRpVarType_Function,
	eRpTextType_ASCII,
	64,
	128,
	(char *) 0
};

static char Pgweb_page_multiple_submits_Item_6[] =
	"\n"
	C_oP "Enter your street address:\n";

extern char *getTheStreetAddress(void);
extern void setTheStreetAddress(char *theValuePtr);
static rpTextFormItem Pgweb_page_multiple_submits_Item_7 = {
	"theStreetAddress",
	(void *) getTheStreetAddress,
	(void *) setTheStreetAddress,
	eRpVarType_Function,
	eRpVarType_Function,
	eRpTextType_ASCII,
	64,
	128,
	(char *) 0
};

static char Pgweb_page_multiple_submits_Item_8[] =
	"\n"
	C_oP "Enter your city:\n";

extern char *getTheCity(void);
extern void setTheCity(char *theValuePtr);
static rpTextFormItem Pgweb_page_multiple_submits_Item_9 = {
	"theCity",
	(void *) getTheCity,
	(void *) setTheCity,
	eRpVarType_Function,
	eRpVarType_Function,
	eRpTextType_ASCII,
	64,
	128,
	(char *) 0
};

static char Pgweb_page_multiple_submits_Item_10[] =
	"\n"
	C_oP "Enter your state:\n";

extern char *getTheState(void);
extern void setTheState(char *theValuePtr);
static rpTextFormItem Pgweb_page_multiple_submits_Item_11 = {
	"theState",
	(void *) getTheState,
	(void *) setTheState,
	eRpVarType_Function,
	eRpVarType_Function,
	eRpTextType_ASCII,
	64,
	128,
	(char *) 0
};

static char Pgweb_page_multiple_submits_Item_12[] =
	"\n"
	C_oP "Enter your zip code:\n";

extern char *getTheZipCode(void);
extern void setTheZipCode(char *theValuePtr);
static rpTextFormItem Pgweb_page_multiple_submits_Item_13 = {
	"theZipeCode",
	(void *) getTheZipCode,
	(void *) setTheZipCode,
	eRpVarType_Function,
	eRpVarType_Function,
	eRpTextType_ASCII,
	64,
	128,
	(char *) 0
};

static char Pgweb_page_multiple_submits_Item_14[] =
	"\n"
	C_oP;

static rpButtonFormItem Pgweb_page_multiple_submits_Item_15 = {
	"update",
	(char *) 0
};

static rpButtonFormItem Pgweb_page_multiple_submits_Item_16 = {
	"clearName",
	(char *) 0
};

static rpButtonFormItem Pgweb_page_multiple_submits_Item_17 = {
	"clearStreetAddress",
	(char *) 0
};

static rpButtonFormItem Pgweb_page_multiple_submits_Item_18 = {
	"clearZipCode",
	(char *) 0
};

static rpButtonFormItem Pgweb_page_multiple_submits_Item_19 = {
	"reset form",
	(char *) 0
};

static char Pgweb_page_multiple_submits_Item_20[] =
	C_xFORM;

static char Pgweb_page_multiple_submits_Item_21[] =
	C_xBODY_xHTML;



static rpItem Pgweb_page_multiple_submits_Form_1_Items[] = { 
	{ eRpItemType_FormAsciiText, (void *) &Pgweb_page_multiple_submits_Item_5 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgweb_page_multiple_submits_Item_7 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgweb_page_multiple_submits_Item_9 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgweb_page_multiple_submits_Item_11 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgweb_page_multiple_submits_Item_13 }, 
	{ eRpItemType_FormSubmit, (void *) &Pgweb_page_multiple_submits_Item_15 }, 
	{ eRpItemType_FormSubmit, (void *) &Pgweb_page_multiple_submits_Item_16 }, 
	{ eRpItemType_FormSubmit, (void *) &Pgweb_page_multiple_submits_Item_17 }, 
	{ eRpItemType_FormSubmit, (void *) &Pgweb_page_multiple_submits_Item_18 }, 
	{ eRpItemType_FormReset, (void *) &Pgweb_page_multiple_submits_Item_19 }, 
	{ eRpItemType_LastItemInList } 
};

extern void postProcessTheForm(void *theTaskDataPtr, Signed16Ptr theIndexValuesPtr);
static rpObjectExtension Pgweb_page_multiple_submits_Form_1_ObjectExtension = {
	postProcessTheForm,
	&Pgweb_page_multiple_submits,
	(rpObjectDescriptionPtr) 0,
	0,
	kRpObjFlags_None,
	(char *) 0
};

rpObjectDescription Pgweb_page_multiple_submits_Form_1 = {
	"/Forms/web_page_multiple_submits_1",
	Pgweb_page_multiple_submits_Form_1_Items,
	&Pgweb_page_multiple_submits_Form_1_ObjectExtension,
	(Unsigned32) 0,
	kRpPageAccess_Unprotected,
	eRpDataTypeForm,
	eRpObjectTypeDynamic
};

static rpItem Pgweb_page_multiple_submits_Items[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgweb_page_multiple_submits_Item_1 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgweb_page_multiple_submits_Item_2 }, 
	{ eRpItemType_FormHeader, (void *) &Pgweb_page_multiple_submits_Form_1 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgweb_page_multiple_submits_Item_4 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgweb_page_multiple_submits_Item_5 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgweb_page_multiple_submits_Item_6 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgweb_page_multiple_submits_Item_7 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgweb_page_multiple_submits_Item_8 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgweb_page_multiple_submits_Item_9 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgweb_page_multiple_submits_Item_10 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgweb_page_multiple_submits_Item_11 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgweb_page_multiple_submits_Item_12 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgweb_page_multiple_submits_Item_13 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgweb_page_multiple_submits_Item_14 }, 
	{ eRpItemType_FormSubmit, (void *) &Pgweb_page_multiple_submits_Item_15 }, 
	{ eRpItemType_FormSubmit, (void *) &Pgweb_page_multiple_submits_Item_16 }, 
	{ eRpItemType_FormSubmit, (void *) &Pgweb_page_multiple_submits_Item_17 }, 
	{ eRpItemType_FormSubmit, (void *) &Pgweb_page_multiple_submits_Item_18 }, 
	{ eRpItemType_FormReset, (void *) &Pgweb_page_multiple_submits_Item_19 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgweb_page_multiple_submits_Item_20 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgweb_page_multiple_submits_Item_21 }, 
	{ eRpItemType_LastItemInList } 
};


extern void prePageProcessing(void *theTaskDataPtr, Signed16Ptr theIndexValuesPtr);
static rpObjectExtension Pgweb_page_multiple_submits_ObjectExtension = {
	prePageProcessing,
	(rpObjectDescriptionPtr) 0,
	(rpObjectDescriptionPtr) 0,
	0,
	kRpObjFlags_None,
	(char *) 0
};

rpObjectDescription Pgweb_page_multiple_submits = {
	"/web_page_multiple_submits.htm",
	Pgweb_page_multiple_submits_Items,
	&Pgweb_page_multiple_submits_ObjectExtension,
	(Unsigned32) 0,
	kRpPageAccess_Unprotected,
	eRpDataTypeHtml,
	eRpObjectTypeDynamic
};

#endif	/* RomPagerServer */
