| | 35 | if(!strcmp(gcFunction,"Skip")) |
| | 36 | { |
| | 37 | sprintf(gcNewStep,"Confirm "); |
| | 38 | } |
| | 39 | else if(!strcmp(gcFunction,"Confirm Skip")) |
| | 40 | { |
| | 41 | Logout(); |
| | 42 | } |
| | 43 | else if(!strcmp(gcFunction,"Proceed")) |
| | 44 | { |
| | 45 | sprintf(gcModStep,"Confirm "); |
| | 46 | } |
| | 47 | else if(!strcmp(gcFunction,"Confirm Proceed")) |
| | 48 | { |
| | 49 | ShowConfirmPurchasePage(); |
| | 50 | } |
| | 51 | |
| | 52 | |
| | 64 | |
| | 65 | |
| | 66 | void ShowConfirmPurchasePage(void) |
| | 67 | { |
| | 68 | htmlHeader("unxsISP Client Interface","Header"); |
| | 69 | htmlPurchasePage("","Purchase.Body"); |
| | 70 | htmlFooter("Footer"); |
| | 71 | |
| | 72 | }//void ShowConfirmPurchasePage(void) |
| | 73 | |
| | 74 | |
| | 75 | void htmlPurchasePage(char *cTitle,char *cTemplateName) |
| | 76 | { |
| | 77 | if(cTemplateName[0]) |
| | 78 | { |
| | 79 | MYSQL_RES *res; |
| | 80 | MYSQL_ROW field; |
| | 81 | |
| | 82 | TemplateSelect(cTemplateName,guTemplateSet); |
| | 83 | res=mysql_store_result(&gMysql); |
| | 84 | if((field=mysql_fetch_row(res))) |
| | 85 | { |
| | 86 | struct t_template template; |
| | 87 | |
| | 88 | template.cpName[0]="cTitle"; |
| | 89 | template.cpValue[0]=cTitle; |
| | 90 | |
| | 91 | template.cpName[1]="cCGI"; |
| | 92 | template.cpValue[1]="ispClient.cgi"; |
| | 93 | |
| | 94 | template.cpName[2]="gcLogin"; |
| | 95 | template.cpValue[2]=gcLogin; |
| | 96 | |
| | 97 | template.cpName[3]="gcName"; |
| | 98 | template.cpValue[3]=gcName; |
| | 99 | |
| | 100 | template.cpName[4]="gcOrgName"; |
| | 101 | template.cpValue[4]=gcOrgName; |
| | 102 | |
| | 103 | template.cpName[5]="cUserLevel"; |
| | 104 | template.cpValue[5]=(char *)cUserLevel(guPermLevel); |
| | 105 | |
| | 106 | template.cpName[6]="gcHost"; |
| | 107 | template.cpValue[6]=gcHost; |
| | 108 | |
| | 109 | template.cpName[7]="gcMessage"; |
| | 110 | template.cpValue[7]=gcMessage; |
| | 111 | |
| | 112 | template.cpName[8]="gcInputStatus"; |
| | 113 | template.cpValue[8]=gcInputStatus; |
| | 114 | |
| | 115 | template.cpName[9]="gcNewStep"; |
| | 116 | template.cpValue[9]=gcNewStep; |
| | 117 | |
| | 118 | template.cpName[10]="gcModStep"; |
| | 119 | template.cpValue[10]=gcModStep; |
| | 120 | |
| | 121 | template.cpName[11]="cISPName"; |
| | 122 | template.cpValue[11]="AstraQom"; |
| | 123 | |
| | 124 | template.cpName[12]="mProductPrice"; |
| | 125 | template.cpValue[12]="15.95"; |
| | 126 | |
| | 127 | template.cpName[13]=""; |
| | 128 | |
| | 129 | printf("\n<!-- Start htmlPurchasePage(%s) -->\n",cTemplateName); |
| | 130 | Template(field[0], &template, stdout); |
| | 131 | printf("\n<!-- End htmlPurchasePage(%s) -->\n",cTemplateName); |
| | 132 | } |
| | 133 | else |
| | 134 | { |
| | 135 | printf("<hr>"); |
| | 136 | printf("<center><font size=1>%s</font>\n",cTemplateName); |
| | 137 | } |
| | 138 | mysql_free_result(res); |
| | 139 | } |
| | 140 | |
| | 141 | }//void htmlPurchasePage(char *cTemplateName) |