Changeset 1189
- Timestamp:
- 02/16/10 14:04:55 (2 years ago)
- Location:
- trunk/unxsISP/interfaces/customer
- Files:
-
- 1 added
- 4 modified
-
customer.c (modified) (1 diff)
-
interface.h (modified) (1 diff)
-
main.c (modified) (1 diff)
-
purchase.c (modified) (3 diffs)
-
templates-english/Purchase.Body (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/unxsISP/interfaces/customer/customer.c
r1188 r1189 1408 1408 fprintf(fp,"<select class=%s name=uExpYear %s>\n",cStyle,gcInputStatus); 1409 1409 else 1410 fprintf(fp,"<select class=%s name=uExpYear %s>\n",cStyle);1410 fprintf(fp,"<select class=%s name=uExpYear>\n",cStyle); 1411 1411 1412 1412 fprintf(fp,"<option value=0 "); -
trunk/unxsISP/interfaces/customer/interface.h
r1188 r1189 222 222 //purchase.c 223 223 void PurchaseCommands(pentry entries[], int x); 224 224 void funcPurchaseExpMonth(FILE *fp); 225 void funcPurchaseExpYear(FILE *fp); -
trunk/unxsISP/interfaces/customer/main.c
r1188 r1189 422 422 else if(!strcmp(cFunction,"funcSelectRegLang")) 423 423 funcSelectRegLang(fp); 424 else if(!strcmp(cFunction,"funcPurchaseExpMonth")) 425 funcPurchaseExpMonth(fp); 426 else if(!strcmp(cFunction,"funcPurchaseExpYear")) 427 funcPurchaseExpYear(fp); 428 424 429 425 430 }//void AppFunctions(FILE *fp,char *cFunction) -
trunk/unxsISP/interfaces/customer/purchase.c
r1188 r1189 10 10 #include "interface.h" 11 11 12 static char *cuExpMonthStyle="type_fields"; 13 static char *cuExpYearStyle="type_fields"; 14 15 static unsigned uExpMonth=0; 16 static unsigned uExpYear=0; 17 18 static char cAddr1[101]={""}; 19 static char *cAddr1Style="type_fields"; 20 21 static char cAddr2[101]={""}; 22 static char *cAddr2Style="type_fields"; 23 24 static char cCity[101]={""}; 25 static char *cCityStyle="type_fields"; 26 27 static char cState[101]={""}; 28 static char *cStateStyle="type_fields"; 29 30 static char cZip[33]={""}; 31 static char *cZipStyle="type_fields"; 32 12 33 void ShowConfirmPurchasePage(void); 13 34 void htmlPurchasePage(char *cTitle,char *cTemplateName); … … 124 145 template.cpName[12]="mProductPrice"; 125 146 template.cpValue[12]="15.95"; 126 127 template.cpName[13]=""; 147 148 template.cpName[13]="cAddr1"; 149 template.cpValue[13]=cAddr1; 150 151 template.cpName[14]="cAddr1Style"; 152 template.cpValue[14]=cAddr1Style; 153 154 template.cpName[15]="cAddr2"; 155 template.cpValue[15]=cAddr2; 156 157 template.cpName[16]="cAddr2Style"; 158 template.cpValue[16]=cAddr2Style; 159 160 template.cpName[17]="cCity"; 161 template.cpValue[17]=cCity; 162 163 template.cpName[18]="cCityStyle"; 164 template.cpValue[18]=cCityStyle; 165 166 template.cpName[19]="cState"; 167 template.cpValue[19]=cState; 168 169 template.cpName[20]="cStateStyle"; 170 template.cpValue[20]=cStateStyle; 171 172 template.cpName[21]="cZip"; 173 template.cpValue[21]=cZip; 174 175 template.cpName[22]="cZipStyle"; 176 template.cpValue[22]=cZipStyle; 177 178 template.cpName[23]=""; 128 179 129 180 printf("\n<!-- Start htmlPurchasePage(%s) -->\n",cTemplateName); … … 160 211 }//unsigned IsFirstTimeLogin(void) 161 212 213 214 void funcPurchaseExpMonth(FILE *fp) 215 { 216 sysfuncSelectExpMonth(fp,cuExpMonthStyle,uExpMonth,0); 217 218 }//void funcPurchaseExpMonth(FILE *fp) 219 220 221 void funcPurchaseExpYear(FILE *fp) 222 { 223 sysfuncSelectExpYear(fp,cuExpYearStyle,uExpYear,0); 224 225 }//void funcPurchaseExpMonth(FILE *fp) 226 227 228
