Changeset 1189

Show
Ignore:
Timestamp:
02/16/10 14:04:55 (2 years ago)
Author:
Hugo
Message:

ispClient: save commit

Location:
trunk/unxsISP/interfaces/customer
Files:
1 added
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/unxsISP/interfaces/customer/customer.c

    r1188 r1189  
    14081408                fprintf(fp,"<select class=%s name=uExpYear %s>\n",cStyle,gcInputStatus); 
    14091409        else 
    1410                 fprintf(fp,"<select class=%s name=uExpYear %s>\n",cStyle); 
     1410                fprintf(fp,"<select class=%s name=uExpYear>\n",cStyle); 
    14111411         
    14121412        fprintf(fp,"<option value=0 "); 
  • trunk/unxsISP/interfaces/customer/interface.h

    r1188 r1189  
    222222//purchase.c 
    223223void PurchaseCommands(pentry entries[], int x); 
    224  
     224void funcPurchaseExpMonth(FILE *fp); 
     225void funcPurchaseExpYear(FILE *fp); 
  • trunk/unxsISP/interfaces/customer/main.c

    r1188 r1189  
    422422        else if(!strcmp(cFunction,"funcSelectRegLang")) 
    423423                funcSelectRegLang(fp); 
     424        else if(!strcmp(cFunction,"funcPurchaseExpMonth")) 
     425                funcPurchaseExpMonth(fp); 
     426        else if(!strcmp(cFunction,"funcPurchaseExpYear")) 
     427                funcPurchaseExpYear(fp); 
     428 
    424429         
    425430}//void AppFunctions(FILE *fp,char *cFunction) 
  • trunk/unxsISP/interfaces/customer/purchase.c

    r1188 r1189  
    1010#include "interface.h" 
    1111 
     12static char *cuExpMonthStyle="type_fields"; 
     13static char *cuExpYearStyle="type_fields"; 
     14 
     15static unsigned uExpMonth=0; 
     16static unsigned uExpYear=0; 
     17 
     18static char cAddr1[101]={""}; 
     19static char *cAddr1Style="type_fields"; 
     20 
     21static char cAddr2[101]={""}; 
     22static char *cAddr2Style="type_fields"; 
     23 
     24static char cCity[101]={""}; 
     25static char *cCityStyle="type_fields"; 
     26 
     27static char cState[101]={""}; 
     28static char *cStateStyle="type_fields"; 
     29 
     30static char cZip[33]={""}; 
     31static char *cZipStyle="type_fields"; 
     32 
    1233void ShowConfirmPurchasePage(void); 
    1334void htmlPurchasePage(char *cTitle,char *cTemplateName); 
     
    124145                        template.cpName[12]="mProductPrice"; 
    125146                        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]=""; 
    128179                         
    129180                        printf("\n<!-- Start htmlPurchasePage(%s) -->\n",cTemplateName);  
     
    160211}//unsigned IsFirstTimeLogin(void) 
    161212 
     213 
     214void funcPurchaseExpMonth(FILE *fp) 
     215{ 
     216        sysfuncSelectExpMonth(fp,cuExpMonthStyle,uExpMonth,0); 
     217 
     218}//void funcPurchaseExpMonth(FILE *fp) 
     219 
     220 
     221void funcPurchaseExpYear(FILE *fp) 
     222{ 
     223        sysfuncSelectExpYear(fp,cuExpYearStyle,uExpYear,0); 
     224 
     225}//void funcPurchaseExpMonth(FILE *fp) 
     226 
     227 
     228