| @@ 651-664 (lines=14) @@ | ||
| 648 | * @param int $dtypeid |
|
| 649 | * @return array |
|
| 650 | */ |
|
| 651 | function getPostedValue_text($dtypeid = 0) |
|
| 652 | { |
|
| 653 | global $_POST; |
|
| 654 | $postedvalues = array(); |
|
| 655 | if (isset($_POST["$dtypeid"])) { |
|
| 656 | if (isset($_POST['' . $dtypeid . 'constr'])) { |
|
| 657 | $constrvalue = $_POST['' . $dtypeid . 'constr']; |
|
| 658 | } else { |
|
| 659 | $constrvalue = ''; |
|
| 660 | } |
|
| 661 | $postvalue = $_POST["$dtypeid"]; |
|
| 662 | $postedvalues = array('dtypeid' => $dtypeid, 'constr' => $constrvalue, 'postvalue' => $postvalue, 'selectfields' => 0, 'addressfields' => 0); |
|
| 663 | } |
|
| 664 | ||
| 665 | return $postedvalues; |
|
| 666 | } |
|
| 667 | ||
| @@ 693-716 (lines=24) @@ | ||
| 690 | * @param int $dtypeid |
|
| 691 | * @return array |
|
| 692 | */ |
|
| 693 | function getPostedValue_array($dtypeid = 0) |
|
| 694 | { |
|
| 695 | global $_POST; |
|
| 696 | $postvalues_arr = array(); |
|
| 697 | if (isset($_POST["$dtypeid"])) { |
|
| 698 | if (isset($_POST['' . $dtypeid . 'constr'])) { |
|
| 699 | $constrvalue = $_POST['' . $dtypeid . 'constr']; |
|
| 700 | } else { |
|
| 701 | $constrvalue = ''; |
|
| 702 | } |
|
| 703 | $postvalue = $_POST["$dtypeid"]; |
|
| 704 | $postedvalues = array('dtypeid' => $dtypeid, 'constr' => $constrvalue, 'postvalue' => $postvalue, 'selectfields' => 0, 'addressfields' => 0); |
|
| 705 | } |
|
| 706 | ||
| 707 | //print_r($postedvalues); |
|
| 708 | return $postedvalues; |
|
| 709 | ||
| 710 | /* if ( isset($_POST["$dtypeid"]) ) { |
|
| 711 | $postvalues_arr[] = $_POST["$dtypeid"]; |
|
| 712 | } else { |
|
| 713 | $postvalues_arr[] = ""; |
|
| 714 | } |
|
| 715 | ||
| 716 | return $postvalues_arr; */ |
|
| 717 | } |
|
| 718 | ||
| 719 | /** |
|