Show
Ignore:
Timestamp:
02/16/10 13:29:26 (2 years ago)
Author:
Hugo
Message:

ispClient: save commit

Files:
1 modified

Legend:

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

    r1186 r1188  
    690690 
    691691                        printf("\n<!-- Start htmlCustomerPage(%s) -->\n",cTemplateName);  
    692 //                      fpTemplate(stdout,cTemplateName,&template); 
    693692                        Template(field[0], &template, stdout); 
    694693                        printf("\n<!-- End htmlCustomerPage(%s) -->\n",cTemplateName);  
     
    13091308}//void funcSelectCardType(FILE *fp) 
    13101309 
    1311  
    13121310void funcSelectExpMonth(FILE *fp) 
    13131311{ 
     1312        sysfuncSelectExpMonth(fp,cuExpMonthStyle,uExpMonth,1); 
     1313} 
     1314 
     1315void sysfuncSelectExpMonth(FILE *fp,char *cStyle,unsigned uSelector,unsigned uUseStatus) 
     1316{ 
    13141317        fprintf(fp,"<!-- funcSelectExpMonth(fp) start -->\n"); 
    1315  
    1316         fprintf(fp,"<select class=%s name=uExpMonth %s>\n",cuExpMonthStyle,gcInputStatus); 
     1318         
     1319        if(uUseStatus) 
     1320                fprintf(fp,"<select class=%s name=uExpMonth %s>\n",cStyle,gcInputStatus); 
     1321        else 
     1322                fprintf(fp,"<select class=%s name=uExpMonth>\n",cStyle); 
    13171323         
    13181324        fprintf(fp,"<option value=0 "); 
    1319         if(uExpMonth==0) 
     1325        if(uSelector==0) 
    13201326                fprintf(fp,"selected"); 
    13211327        fprintf(fp,">---</option>\n"); 
    13221328 
    13231329        fprintf(fp,"<option value=1 "); 
    1324         if(uExpMonth==1) 
     1330        if(uSelector==1) 
    13251331                fprintf(fp,"selected"); 
    13261332        fprintf(fp,">January</option>\n"); 
    13271333 
    13281334        fprintf(fp,"<option value=2 "); 
    1329         if(uExpMonth==2) 
     1335        if(uSelector==2) 
    13301336                fprintf(fp,"selected"); 
    13311337        fprintf(fp,">February</option>\n"); 
    13321338 
    13331339        fprintf(fp,"<option value=3 "); 
    1334         if(uExpMonth==3) 
     1340        if(uSelector==3) 
    13351341                fprintf(fp,"selected"); 
    13361342        fprintf(fp,">March</option>\n"); 
    13371343 
    13381344        fprintf(fp,"<option value=4 "); 
    1339         if(uExpMonth==4) 
     1345        if(uSelector==4) 
    13401346                fprintf(fp,"selected"); 
    13411347        fprintf(fp,">April</option>\n"); 
    13421348 
    13431349        fprintf(fp,"<option value=5 "); 
    1344         if(uExpMonth==5) 
     1350        if(uSelector==5) 
    13451351                fprintf(fp,"selected"); 
    13461352        fprintf(fp,">May</option>\n"); 
    13471353 
    13481354        fprintf(fp,"<option value=6 "); 
    1349         if(uExpMonth==6) 
     1355        if(uSelector==6) 
    13501356                fprintf(fp,"selected"); 
    13511357        fprintf(fp,">June</option>\n"); 
    13521358 
    13531359        fprintf(fp,"<option value=7 "); 
    1354         if(uExpMonth==7) 
     1360        if(uSelector==7) 
    13551361                fprintf(fp,"selected"); 
    13561362        fprintf(fp,">July</option>\n"); 
    13571363 
    13581364        fprintf(fp,"<option value=8 "); 
    1359         if(uExpMonth==8) 
     1365        if(uSelector==8) 
    13601366                fprintf(fp,"selected"); 
    13611367        fprintf(fp,">August</option>\n"); 
    13621368 
    13631369        fprintf(fp,"<option value=9 "); 
    1364         if(uExpMonth==9) 
     1370        if(uSelector==9) 
    13651371                fprintf(fp,"selected"); 
    13661372        fprintf(fp,">September</option>\n"); 
    13671373 
    13681374        fprintf(fp,"<option value=10 "); 
    1369         if(uExpMonth==10) 
     1375        if(uSelector==10) 
    13701376                fprintf(fp,"selected"); 
    13711377        fprintf(fp,">October</option>\n"); 
    13721378 
    13731379        fprintf(fp,"<option value=11 "); 
    1374         if(uExpMonth==11) 
     1380        if(uSelector==11) 
    13751381                fprintf(fp,"selected"); 
    13761382        fprintf(fp,">November</option>\n"); 
    13771383 
    13781384        fprintf(fp,"<option value=12 "); 
    1379         if(uExpMonth==12) 
     1385        if(uSelector==12) 
    13801386                fprintf(fp,"selected"); 
    13811387        fprintf(fp,">December</option>\n"); 
     
    13901396void funcSelectExpYear(FILE *fp) 
    13911397{ 
     1398        sysfuncSelectExpYear(fp,cuExpYearStyle,uExpYear,1); 
     1399 
     1400}//void funcSelectExpYear(FILE *fp) 
     1401 
     1402 
     1403void sysfuncSelectExpYear(FILE *fp,char *cStyle,unsigned uSelector,unsigned uUseStatus) 
     1404{ 
    13921405        fprintf(fp,"<!-- funcSelectExpYear(fp) start -->\n"); 
    13931406         
    1394         fprintf(fp,"<select class=%s name=uExpYear %s>\n",cuExpYearStyle,gcInputStatus); 
     1407        if(uUseStatus) 
     1408                fprintf(fp,"<select class=%s name=uExpYear %s>\n",cStyle,gcInputStatus); 
     1409        else 
     1410                fprintf(fp,"<select class=%s name=uExpYear %s>\n",cStyle); 
    13951411         
    13961412        fprintf(fp,"<option value=0 "); 
     
    13991415        fprintf(fp,">---</option>\n"); 
    14001416 
    1401         fprintf(fp,"<option value=2009 "); 
    1402         if(uExpYear==2009) 
    1403                 fprintf(fp,"selected"); 
    1404         fprintf(fp,">2009</option>\n"); 
    1405  
    14061417        fprintf(fp,"<option value=2010 "); 
    1407         if(uExpYear==2010) 
     1418        if(uSelector==2010) 
    14081419                fprintf(fp,"selected"); 
    14091420        fprintf(fp,">2010</option>\n"); 
    14101421 
    14111422        fprintf(fp,"<option value=2011 "); 
    1412         if(uExpYear==2011) 
     1423        if(uSelector==2011) 
    14131424                fprintf(fp,"selected"); 
    14141425        fprintf(fp,">2011</option>\n"); 
    14151426 
    14161427        fprintf(fp,"<option value=2012 "); 
    1417         if(uExpYear==2012) 
     1428        if(uSelector==2012) 
    14181429                fprintf(fp,"selected"); 
    14191430        fprintf(fp,">2012</option>\n");