Changeset 1188 for trunk/unxsISP/interfaces/customer/customer.c
- Timestamp:
- 02/16/10 13:29:26 (2 years ago)
- Files:
-
- 1 modified
-
trunk/unxsISP/interfaces/customer/customer.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/unxsISP/interfaces/customer/customer.c
r1186 r1188 690 690 691 691 printf("\n<!-- Start htmlCustomerPage(%s) -->\n",cTemplateName); 692 // fpTemplate(stdout,cTemplateName,&template);693 692 Template(field[0], &template, stdout); 694 693 printf("\n<!-- End htmlCustomerPage(%s) -->\n",cTemplateName); … … 1309 1308 }//void funcSelectCardType(FILE *fp) 1310 1309 1311 1312 1310 void funcSelectExpMonth(FILE *fp) 1313 1311 { 1312 sysfuncSelectExpMonth(fp,cuExpMonthStyle,uExpMonth,1); 1313 } 1314 1315 void sysfuncSelectExpMonth(FILE *fp,char *cStyle,unsigned uSelector,unsigned uUseStatus) 1316 { 1314 1317 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); 1317 1323 1318 1324 fprintf(fp,"<option value=0 "); 1319 if(u ExpMonth==0)1325 if(uSelector==0) 1320 1326 fprintf(fp,"selected"); 1321 1327 fprintf(fp,">---</option>\n"); 1322 1328 1323 1329 fprintf(fp,"<option value=1 "); 1324 if(u ExpMonth==1)1330 if(uSelector==1) 1325 1331 fprintf(fp,"selected"); 1326 1332 fprintf(fp,">January</option>\n"); 1327 1333 1328 1334 fprintf(fp,"<option value=2 "); 1329 if(u ExpMonth==2)1335 if(uSelector==2) 1330 1336 fprintf(fp,"selected"); 1331 1337 fprintf(fp,">February</option>\n"); 1332 1338 1333 1339 fprintf(fp,"<option value=3 "); 1334 if(u ExpMonth==3)1340 if(uSelector==3) 1335 1341 fprintf(fp,"selected"); 1336 1342 fprintf(fp,">March</option>\n"); 1337 1343 1338 1344 fprintf(fp,"<option value=4 "); 1339 if(u ExpMonth==4)1345 if(uSelector==4) 1340 1346 fprintf(fp,"selected"); 1341 1347 fprintf(fp,">April</option>\n"); 1342 1348 1343 1349 fprintf(fp,"<option value=5 "); 1344 if(u ExpMonth==5)1350 if(uSelector==5) 1345 1351 fprintf(fp,"selected"); 1346 1352 fprintf(fp,">May</option>\n"); 1347 1353 1348 1354 fprintf(fp,"<option value=6 "); 1349 if(u ExpMonth==6)1355 if(uSelector==6) 1350 1356 fprintf(fp,"selected"); 1351 1357 fprintf(fp,">June</option>\n"); 1352 1358 1353 1359 fprintf(fp,"<option value=7 "); 1354 if(u ExpMonth==7)1360 if(uSelector==7) 1355 1361 fprintf(fp,"selected"); 1356 1362 fprintf(fp,">July</option>\n"); 1357 1363 1358 1364 fprintf(fp,"<option value=8 "); 1359 if(u ExpMonth==8)1365 if(uSelector==8) 1360 1366 fprintf(fp,"selected"); 1361 1367 fprintf(fp,">August</option>\n"); 1362 1368 1363 1369 fprintf(fp,"<option value=9 "); 1364 if(u ExpMonth==9)1370 if(uSelector==9) 1365 1371 fprintf(fp,"selected"); 1366 1372 fprintf(fp,">September</option>\n"); 1367 1373 1368 1374 fprintf(fp,"<option value=10 "); 1369 if(u ExpMonth==10)1375 if(uSelector==10) 1370 1376 fprintf(fp,"selected"); 1371 1377 fprintf(fp,">October</option>\n"); 1372 1378 1373 1379 fprintf(fp,"<option value=11 "); 1374 if(u ExpMonth==11)1380 if(uSelector==11) 1375 1381 fprintf(fp,"selected"); 1376 1382 fprintf(fp,">November</option>\n"); 1377 1383 1378 1384 fprintf(fp,"<option value=12 "); 1379 if(u ExpMonth==12)1385 if(uSelector==12) 1380 1386 fprintf(fp,"selected"); 1381 1387 fprintf(fp,">December</option>\n"); … … 1390 1396 void funcSelectExpYear(FILE *fp) 1391 1397 { 1398 sysfuncSelectExpYear(fp,cuExpYearStyle,uExpYear,1); 1399 1400 }//void funcSelectExpYear(FILE *fp) 1401 1402 1403 void sysfuncSelectExpYear(FILE *fp,char *cStyle,unsigned uSelector,unsigned uUseStatus) 1404 { 1392 1405 fprintf(fp,"<!-- funcSelectExpYear(fp) start -->\n"); 1393 1406 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); 1395 1411 1396 1412 fprintf(fp,"<option value=0 "); … … 1399 1415 fprintf(fp,">---</option>\n"); 1400 1416 1401 fprintf(fp,"<option value=2009 ");1402 if(uExpYear==2009)1403 fprintf(fp,"selected");1404 fprintf(fp,">2009</option>\n");1405 1406 1417 fprintf(fp,"<option value=2010 "); 1407 if(u ExpYear==2010)1418 if(uSelector==2010) 1408 1419 fprintf(fp,"selected"); 1409 1420 fprintf(fp,">2010</option>\n"); 1410 1421 1411 1422 fprintf(fp,"<option value=2011 "); 1412 if(u ExpYear==2011)1423 if(uSelector==2011) 1413 1424 fprintf(fp,"selected"); 1414 1425 fprintf(fp,">2011</option>\n"); 1415 1426 1416 1427 fprintf(fp,"<option value=2012 "); 1417 if(u ExpYear==2012)1428 if(uSelector==2012) 1418 1429 fprintf(fp,"selected"); 1419 1430 fprintf(fp,">2012</option>\n");
