| | 409 | <table width="95%"> |
|---|
| | 410 | <tr> |
|---|
| | 411 | <td valign="top" width="50%" > |
|---|
| | 412 | <?php |
|---|
| | 413 | $callerid_table = new Table('cc_callerid','*'); |
|---|
| | 414 | $callerid_clause = "id_cc_card = ".$id; |
|---|
| | 415 | $callerid_result = $callerid_table -> Get_list($DBHandle, $callerid_clause, 0); |
|---|
| | 416 | $callerid = $callerid_result[0]; |
|---|
| | 417 | if(sizeof($callerid_result)>0 && $callerid_result[0]!=null) { |
|---|
| | 418 | ?> |
|---|
| | 419 | <table width="100%" class="editform_table1"> |
|---|
| | 420 | <tr> |
|---|
| | 421 | <th colspan="2" background="../Public/templates/default/images/background_cells.gif"> |
|---|
| | 422 | <?php echo gettext("CALLER-ID LIST ") ?> |
|---|
| | 423 | </th> |
|---|
| | 424 | </tr> |
|---|
| | 425 | <tr class="form_head"> |
|---|
| | 426 | <td class="tableBody" width="15%" align="center" style="padding: 2px;"> |
|---|
| | 427 | <?php echo gettext("CID"); ?> |
|---|
| | 428 | </td> |
|---|
| | 429 | <td class="tableBody" width="20%" align="center" style="padding: 2px;"> |
|---|
| | 430 | <?php echo gettext("ACTIVATED"); ?> |
|---|
| | 431 | </td> |
|---|
| | 432 | </tr> |
|---|
| | 433 | <?php |
|---|
| | 434 | $i=0; |
|---|
| | 435 | foreach ($callerid_result as $callerid) { |
|---|
| | 436 | if($i%2==0) $bg="#fcfbfb"; |
|---|
| | 437 | else $bg="#f2f2ee"; |
|---|
| | 438 | ?> |
|---|
| | 439 | <tr bgcolor="<?php echo $bg; ?>" > |
|---|
| | 440 | <td class="tableBodyRight" background="../Public/templates/default/images/background_cells.gif" width="70%" align="center"> |
|---|
| | 441 | <?php echo $callerid['cid']; ?> |
|---|
| | 442 | </td> |
|---|
| | 443 | |
|---|
| | 444 | <td class="tableBodyRight" background="../Public/templates/default/images/background_cells.gif" width="70%" align="center"> |
|---|
| | 445 | <?php echo ($callerid['activated']=="t"?"Active":"Inactive"); ?> |
|---|
| | 446 | </td> |
|---|
| | 447 | </tr> |
|---|
| | 448 | <?php |
|---|
| | 449 | $i++; |
|---|
| | 450 | } |
|---|
| | 451 | ?> |
|---|
| | 452 | </table> |
|---|
| | 453 | <? |
|---|
| | 454 | } |
|---|
| | 455 | ?> |
|---|
| | 456 | </td> |
|---|
| | 457 | |
|---|
| | 458 | <td valign="top" width="50%" > |
|---|
| | 459 | <?php |
|---|
| | 460 | $speeddial_table = new Table('cc_speeddial','*'); |
|---|
| | 461 | $speeddial_clause = "id_cc_card = ".$id; |
|---|
| | 462 | $speeddial_result = $speeddial_table -> Get_list($DBHandle, $speeddial_clause, 0); |
|---|
| | 463 | $speeddial = $speeddial_result[0]; |
|---|
| | 464 | if(sizeof($speeddial_result)>0 && $speeddial_result[0]!=null) { |
|---|
| | 465 | ?> |
|---|
| | 466 | <table width="100%" class="editform_table1"> |
|---|
| | 467 | <tr> |
|---|
| | 468 | <th colspan="3" background="../Public/templates/default/images/background_cells.gif"> |
|---|
| | 469 | <?php echo gettext("SPEED-DIAL LIST ") ?> |
|---|
| | 470 | </th> |
|---|
| | 471 | </tr> |
|---|
| | 472 | <tr class="form_head"> |
|---|
| | 473 | <td class="tableBody" width="15%" align="center" style="padding: 2px;"> |
|---|
| | 474 | <?php echo gettext("PHONE"); ?> |
|---|
| | 475 | </td> |
|---|
| | 476 | <td class="tableBody" width="20%" align="center" style="padding: 2px;"> |
|---|
| | 477 | <?php echo gettext("NAME"); ?> |
|---|
| | 478 | </td> |
|---|
| | 479 | <td class="tableBody" width="15%" align="center" style="padding: 2px;"> |
|---|
| | 480 | <?php echo gettext("SPEEDDIAL"); ?> |
|---|
| | 481 | </td> |
|---|
| | 482 | </tr> |
|---|
| | 483 | <?php |
|---|
| | 484 | $i=0; |
|---|
| | 485 | foreach ($speeddial_result as $speeddial) { |
|---|
| | 486 | if($i%2==0) $bg="#fcfbfb"; |
|---|
| | 487 | else $bg="#f2f2ee"; |
|---|
| | 488 | ?> |
|---|
| | 489 | <tr bgcolor="<?php echo $bg; ?>" > |
|---|
| | 490 | <td class="tableBodyRight" background="../Public/templates/default/images/background_cells.gif" width="70%" align="center"> |
|---|
| | 491 | <?php echo $speeddial['phone']; ?> |
|---|
| | 492 | </td> |
|---|
| | 493 | <td class="tableBodyRight" background="../Public/templates/default/images/background_cells.gif" width="70%" align="center"> |
|---|
| | 494 | <?php echo $speeddial['name']; ?> |
|---|
| | 495 | </td> |
|---|
| | 496 | <td class="tableBodyRight" background="../Public/templates/default/images/background_cells.gif" width="70%" align="center"> |
|---|
| | 497 | <?php echo $speeddial['speeddial']; ?> |
|---|
| | 498 | </td> |
|---|
| | 499 | </tr> |
|---|
| | 500 | <?php |
|---|
| | 501 | $i++; |
|---|
| | 502 | } |
|---|
| | 503 | ?> |
|---|
| | 504 | </table> |
|---|
| | 505 | <? |
|---|
| | 506 | } |
|---|
| | 507 | ?> |
|---|
| | 508 | </td> |
|---|
| | 509 | </tr> |
|---|
| | 510 | </table> |
|---|
| | 511 | <br/> |
|---|
| | 512 | <table width="95%"> |
|---|
| | 513 | <tr> |
|---|
| | 514 | <td valign="top" width="50%" > |
|---|
| | 515 | <?php |
|---|
| | 516 | $sip_buddies_table = new Table('cc_sip_buddies','*'); |
|---|
| | 517 | $sip_buddies_clause = "id_cc_card = ".$id; |
|---|
| | 518 | $sip_buddies_result = $sip_buddies_table -> Get_list($DBHandle, $sip_buddies_clause, 0); |
|---|
| | 519 | $sip_buddies = $sip_buddies_result[0]; |
|---|
| | 520 | if(sizeof($sip_buddies_result)>0 && $sip_buddies_result[0]!=null) { |
|---|
| | 521 | ?> |
|---|
| | 522 | <table width="100%" class="editform_table1"> |
|---|
| | 523 | <tr> |
|---|
| | 524 | <th colspan="2" background="../Public/templates/default/images/background_cells.gif"> |
|---|
| | 525 | <?php echo gettext("SIP-CONFIG") ?> |
|---|
| | 526 | </th> |
|---|
| | 527 | </tr> |
|---|
| | 528 | <tr class="form_head"> |
|---|
| | 529 | <td class="tableBody" width="15%" align="center" style="padding: 2px;"> |
|---|
| | 530 | <?php echo gettext("USERNAME"); ?> |
|---|
| | 531 | </td> |
|---|
| | 532 | <td class="tableBody" width="20%" align="center" style="padding: 2px;"> |
|---|
| | 533 | <?php echo gettext("SECRET"); ?> |
|---|
| | 534 | </td> |
|---|
| | 535 | </tr> |
|---|
| | 536 | <?php |
|---|
| | 537 | $i=0; |
|---|
| | 538 | foreach ($sip_buddies_result as $sip_buddies) { |
|---|
| | 539 | if($i%2==0) $bg="#fcfbfb"; |
|---|
| | 540 | else $bg="#f2f2ee"; |
|---|
| | 541 | ?> |
|---|
| | 542 | <tr bgcolor="<?php echo $bg; ?>" > |
|---|
| | 543 | <td class="tableBodyRight" background="../Public/templates/default/images/background_cells.gif" width="70%" align="center"> |
|---|
| | 544 | <?php echo $sip_buddies['username']; ?> |
|---|
| | 545 | </td> |
|---|
| | 546 | <td class="tableBodyRight" background="../Public/templates/default/images/background_cells.gif" width="70%" align="center"> |
|---|
| | 547 | <?php echo $sip_buddies['secret']; ?> |
|---|
| | 548 | </td> |
|---|
| | 549 | </tr> |
|---|
| | 550 | <?php |
|---|
| | 551 | $i++; |
|---|
| | 552 | } |
|---|
| | 553 | ?> |
|---|
| | 554 | </table> |
|---|
| | 555 | <? |
|---|
| | 556 | } |
|---|
| | 557 | ?> |
|---|
| | 558 | </td> |
|---|
| | 559 | |
|---|
| | 560 | <td valign="top" width="50%" > |
|---|
| | 561 | <?php |
|---|
| | 562 | $iax_buddies_table = new Table('cc_iax_buddies','*'); |
|---|
| | 563 | $iax_buddies_clause = "id_cc_card = ".$id; |
|---|
| | 564 | $iax_buddies_result = $iax_buddies_table -> Get_list($DBHandle, $iax_buddies_clause, 0); |
|---|
| | 565 | $iax_buddies = $iax_buddies_result[0]; |
|---|
| | 566 | if(sizeof($iax_buddies_result)>0 && $iax_buddies_result[0]!=null) { |
|---|
| | 567 | ?> |
|---|
| | 568 | <table width="100%" class="editform_table1"> |
|---|
| | 569 | <tr> |
|---|
| | 570 | <th colspan="2" background="../Public/templates/default/images/background_cells.gif"> |
|---|
| | 571 | <?php echo gettext("IAX-CONFIG") ?> |
|---|
| | 572 | </th> |
|---|
| | 573 | </tr> |
|---|
| | 574 | <tr class="form_head"> |
|---|
| | 575 | <td class="tableBody" width="15%" align="center" style="padding: 2px;"> |
|---|
| | 576 | <?php echo gettext("USERNAME"); ?> |
|---|
| | 577 | </td> |
|---|
| | 578 | <td class="tableBody" width="20%" align="center" style="padding: 2px;"> |
|---|
| | 579 | <?php echo gettext("SECRET"); ?> |
|---|
| | 580 | </td> |
|---|
| | 581 | </tr> |
|---|
| | 582 | <?php |
|---|
| | 583 | $i=0; |
|---|
| | 584 | foreach ($iax_buddies_result as $iax_buddies) { |
|---|
| | 585 | if($i%2==0) $bg="#fcfbfb"; |
|---|
| | 586 | else $bg="#f2f2ee"; |
|---|
| | 587 | ?> |
|---|
| | 588 | <tr bgcolor="<?php echo $bg; ?>" > |
|---|
| | 589 | <td class="tableBodyRight" background="../Public/templates/default/images/background_cells.gif" width="70%" align="center"> |
|---|
| | 590 | <?php echo $iax_buddies['username']; ?> |
|---|
| | 591 | </td> |
|---|
| | 592 | <td class="tableBodyRight" background="../Public/templates/default/images/background_cells.gif" width="70%" align="center"> |
|---|
| | 593 | <?php echo $iax_buddies['secret']; ?> |
|---|
| | 594 | </td> |
|---|
| | 595 | </tr> |
|---|
| | 596 | <?php |
|---|
| | 597 | $i++; |
|---|
| | 598 | } |
|---|
| | 599 | ?> |
|---|
| | 600 | </table> |
|---|
| | 601 | <? |
|---|
| | 602 | } |
|---|
| | 603 | ?> |
|---|
| | 604 | </td> |
|---|
| | 605 | </tr> |
|---|
| | 606 | </table> |
|---|
| | 607 | |
|---|
| | 608 | <br/> |
|---|
| | 609 | |
|---|
| 713 | | ?> |
|---|
| | 913 | } |
|---|
| | 914 | ?> |
|---|
| | 915 | </table> |
|---|
| | 916 | <?php |
|---|
| | 917 | $did_destination_table = new Table('cc_did_destination,cc_did ','*'); |
|---|
| | 918 | $did_destination_clause = " cc_did_destination.id_cc_did = cc_did.id and cc_did_destination.id_cc_card = ".$id; |
|---|
| | 919 | $did_destination_result = $did_destination_table -> Get_list($DBHandle, $did_destination_clause, 0); |
|---|
| | 920 | $did_destination = $did_destination_result[0]; |
|---|
| | 921 | if(sizeof($did_destination_result)>0 && $did_destination_result[0]!=null) { |
|---|
| | 922 | ?> |
|---|
| | 923 | <table class="toppage_maintable"> |
|---|
| | 924 | <tr> |
|---|
| | 925 | <td height="20" align="center"> |
|---|
| | 926 | <font class="toppage_maintable_text"> |
|---|
| | 927 | <?php echo gettext("DIDs & DID Destination"); ?> <br/> |
|---|
| | 928 | </font> |
|---|
| | 929 | </td> |
|---|
| | 930 | </tr> |
|---|
| | 931 | </table> |
|---|
| | 932 | |
|---|
| | 933 | <table width="95%" cellspacing="2" cellpadding="2" border="0"> |
|---|
| | 934 | |
|---|
| | 935 | <tr class="form_head"> |
|---|
| | 936 | <td class="tableBody" width="15%" align="center" style="padding: 2px;"> |
|---|
| | 937 | <?php echo gettext("DID"); ?> |
|---|
| | 938 | </td> |
|---|
| | 939 | <td class="tableBody" width="20%" align="center" style="padding: 2px;"> |
|---|
| | 940 | <?php echo gettext("DESTINATION"); ?> |
|---|
| | 941 | </td> |
|---|
| | 942 | <td class="tableBody" width="15%" align="center" style="padding: 2px;"> |
|---|
| | 943 | <?php echo gettext("ACTIVATED"); ?> |
|---|
| | 944 | </td> |
|---|
| | 945 | <td class="tableBody" width="15%" align="center" style="padding: 2px;"> |
|---|
| | 946 | <?php echo gettext("VOIP"); ?> |
|---|
| | 947 | </td> |
|---|
| | 948 | </tr> |
|---|
| | 949 | |
|---|
| | 950 | <?php |
|---|
| | 951 | $i=0; |
|---|
| | 952 | foreach ($did_destination_result as $did_destination) { |
|---|
| | 953 | if($i%2==0) $bg="#fcfbfb"; |
|---|
| | 954 | else $bg="#f2f2ee"; |
|---|
| | 955 | ?> |
|---|
| | 956 | <tr bgcolor="<?php echo $bg; ?>" > |
|---|
| | 957 | <td class="tableBody" align="center"> |
|---|
| | 958 | <?php echo $did_destination['did']; ?> |
|---|
| | 959 | </td> |
|---|
| | 960 | <td class="tableBody" align="center"> |
|---|
| | 961 | <?php echo $did_destination['destination']; ?> |
|---|
| | 962 | </td> |
|---|
| | 963 | <td class="tableBody" align="center"> |
|---|
| | 964 | <?php echo ($did_destination['activated']=="1"?"Active":"Inactive"); ?> |
|---|
| | 965 | </td> |
|---|
| | 966 | <td class="tableBody" align="center"> |
|---|
| | 967 | <?php echo ($did_destination['voip_call']=="1"?"Active":"Inactive"); ?> |
|---|
| | 968 | </td> |
|---|
| | 969 | </tr> |
|---|
| | 970 | <?php |
|---|
| | 971 | $i++; |
|---|
| | 972 | } |
|---|
| | 973 | ?> |
|---|