| 406 | | |
| 407 | | if(!strcmp(cRRType,"SRV")) |
| 408 | | { |
| 409 | | fprintf(fp,"<tr><td><a class=inputLink href=\"#\" onClick=\"javascript:window.open('" |
| 410 | | "?gcPage=Glossary&cLabel=%s','Glossary','height=600,width=500,status=yes,toolbar=no," |
| 411 | | "menubar=no,location=no,scrollbars=1')\"><strong>%s</strong></a>\n</td>" |
| 412 | | "<td><input title='%s' type=text name=cParam2 value='%s' size=40 maxlength=255 class=%s></td>" |
| 413 | | "</tr>\n" |
| 414 | | "<tr><td><a class=inputLink href=\"#\" onClick=\"javascript:window.open('?gcPage=Glossary&cLabel=%s'," |
| 415 | | "'Glossary','height=600,width=500,status=yes,toolbar=no,menubar=no,location=no,scrollbars=1')\">" |
| 416 | | "<strong>%s</strong></a>\n</td>" |
| 417 | | "<td><input title='%s' type=text name=cParam3 value='%s' size=40 maxlength=255 class=%s></td>" |
| 418 | | "</tr>\n" |
| 419 | | "<tr><td><a class=inputLink href=\"#\" onClick=\"javascript:window.open('?gcPage=Glossary&cLabel=%s'," |
| 420 | | "'Glossary','height=600,width=500,status=yes,toolbar=no,menubar=no,location=no,scrollbars=1')\">" |
| 421 | | "<strong>%s</strong></a>\n</td>" |
| 422 | | "<td><input title='%s' type=text name=cParam4 value='%s' size=40 maxlength=255 class=%s></td>" |
| 423 | | "</tr>\n", |
| 424 | | cParam2Label |
| 425 | | ,cParam2Label |
| 426 | | ,cParam2Tip |
| 427 | | ,cParam2 |
| 428 | | ,cParam2Style |
| 429 | | ,cParam3Label |
| 430 | | ,cParam3Label |
| 431 | | ,cParam3Tip |
| 432 | | ,cParam3 |
| 433 | | ,cParam3Style |
| 434 | | ,cParam4Label |
| 435 | | ,cParam4Label |
| 436 | | ,cParam4Tip |
| 437 | | ,cParam4 |
| 438 | | ,cParam4Style |
| 439 | | ); |
| 440 | | } |
| 441 | | else if(strcmp(cRRType,"SRV") && strcmp(cParam2Label,"Not Used")) |
| 442 | | { |
| 443 | | fprintf(fp,"<tr><td><a class=inputLink href=\"#\" onClick=\"javascript:window.open('?gcPage=Glossary&cLabel=%s'," |
| 444 | | "'Glossary','height=600,width=500,status=yes,toolbar=no,menubar=no,location=no,scrollbars=1')\">" |
| 445 | | "<strong>%s</strong></a>\n</td><td><input title='%s' type=text name=cParam2 value='%s' size=40 maxlength=255 " |
| 446 | | "class=%s></td></tr>\n", |
| 447 | | cParam2Label |
| 448 | | ,cParam2Label |
| 449 | | ,cParam2Tip |
| 450 | | ,cParam2 |
| 451 | | ,cParam2Style |
| 452 | | ); |
| 453 | | } |
| | 406 | MYSQL_RES *res; |
| | 407 | MYSQL_ROW field; |
| | 408 | |
| | 409 | struct t_template template; |
| | 410 | unsigned uParam2=0; |
| | 411 | unsigned uParam3=0; |
| | 412 | unsigned uParam4=0; |
| | 413 | |
| | 414 | sprintf(gcQuery,"SELECT uParam2,uParam3,uParam4 FROM tRRType WHERE cLabel='%s'",TextAreaSave(cRRType)); |
| | 415 | mysql_query(&gMysql,gcQuery); |
| | 416 | if(mysql_errno(&gMysql)) |
| | 417 | htmlPlainTextError(mysql_error(&gMysql)); |
| | 418 | res=mysql_store_result(&gMysql); |
| | 419 | if((field=mysql_fetch_row(res))) |
| | 420 | { |
| | 421 | sscanf(field[0],"%u",&uParam2); |
| | 422 | sscanf(field[1],"%u",&uParam3); |
| | 423 | sscanf(field[2],"%u",&uParam4); |
| | 424 | } |
| | 425 | mysql_free_result(res); |
| | 426 | |
| | 427 | template.cpName[0]="cParam2Label"; |
| | 428 | template.cpValue[0]=cParam2Label; |
| | 429 | |
| | 430 | template.cpName[1]="cParam2Tip"; |
| | 431 | template.cpValue[1]=cParam2Tip; |
| | 432 | |
| | 433 | template.cpName[2]="cParam2"; |
| | 434 | template.cpValue[2]=cParam2; |
| | 435 | |
| | 436 | template.cpName[3]="cParam2Style"; |
| | 437 | template.cpValue[3]=cParam2Style; |
| | 438 | |
| | 439 | template.cpName[4]="cParam3Label"; |
| | 440 | template.cpValue[4]=cParam3Label; |
| | 441 | |
| | 442 | template.cpName[5]="cParam3Tip"; |
| | 443 | template.cpValue[5]=cParam3Tip; |
| | 444 | |
| | 445 | template.cpName[6]="cParam3"; |
| | 446 | template.cpValue[6]=cParam3; |
| | 447 | |
| | 448 | template.cpName[7]="cParam3Style"; |
| | 449 | template.cpValue[7]=cParam3Style; |
| | 450 | |
| | 451 | template.cpName[8]="cParam4Label"; |
| | 452 | template.cpValue[8]=cParam4Label; |
| | 453 | |
| | 454 | template.cpName[9]="cParam4Tip"; |
| | 455 | template.cpValue[9]=cParam4Tip; |
| | 456 | |
| | 457 | template.cpName[10]="cParam4"; |
| | 458 | template.cpValue[10]=cParam4; |
| | 459 | |
| | 460 | template.cpName[11]="cParam4Style"; |
| | 461 | template.cpValue[11]=cParam4Style; |
| | 462 | |
| | 463 | template.cpName[12]="gcInputStatus"; |
| | 464 | template.cpValue[12]=gcInputStatus; |
| | 465 | |
| | 466 | template.cpName[13]=""; |
| | 467 | |
| | 468 | if(uParam2) |
| | 469 | fpTemplate(fp,"InputParam2",&template); |
| | 470 | |
| | 471 | if(uParam3) |
| | 472 | fpTemplate(fp,"InputParam3",&template); |
| | 473 | |
| | 474 | if(uParam4) |
| | 475 | fpTemplate(fp,"InputParam4",&template); |
| | 476 | |