[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/includes/modules/ -> affiliate_account_details.php (source)

   1  <?php
   2  /*

   3    $Id: affiliate_account_details.php,v 2.0 2002/09/29 SDK

   4  

   5    OSC-Affiliate

   6  

   7    Contribution based on:

   8  

   9    osCMax Power E-Commerce

  10    http://oscdox.com

  11  

  12    Copyright 2006 osCMax

  13  

  14    Released under the GNU General Public License

  15  */
  16  
  17    if (!isset($is_read_only)) $is_read_only = false;
  18    if (!isset($processed)) $processed = false;
  19  ?>
  20  <table border="0" width="100%" cellspacing="0" cellpadding="2">
  21    <tr>
  22      <td class="formAreaTitle"><?php echo CATEGORY_PERSONAL; ?></td>
  23    </tr>
  24    <tr>
  25      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
  26        <tr>
  27          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
  28  <?php
  29    if (ACCOUNT_GENDER == 'true') {
  30      $male = ($affiliate['affiliate_gender'] == 'm') ? true : false;
  31      $female = ($affiliate['affiliate_gender'] == 'f') ? true : false;
  32  ?>
  33            <tr>
  34              <td class="main">&nbsp;<?php echo ENTRY_GENDER; ?></td>
  35              <td class="main">&nbsp;
  36  <?php
  37      if ($is_read_only == true) {
  38        echo ($affiliate['affiliate_gender'] == 'm') ? MALE : FEMALE;
  39      } elseif ($error == true) {
  40        if ($entry_gender_error == true) {
  41          echo tep_draw_radio_field('a_gender', 'm', $male) . '&nbsp;&nbsp;' . MALE . '&nbsp;&nbsp;' . tep_draw_radio_field('a_gender', 'f', $female) . '&nbsp;&nbsp;' . FEMALE . '&nbsp;' . ENTRY_GENDER_ERROR;
  42        } else {
  43          echo ($a_gender == 'm') ? MALE : FEMALE;
  44          echo tep_draw_hidden_field('a_gender');
  45        }
  46      } else {
  47        echo tep_draw_radio_field('a_gender', 'm', $male) . '&nbsp;&nbsp;' . MALE . '&nbsp;&nbsp;' . tep_draw_radio_field('a_gender', 'f', $female) . '&nbsp;&nbsp;' . FEMALE . '&nbsp;' . ENTRY_GENDER_TEXT;
  48      }
  49  ?>
  50              </td>
  51            </tr>
  52  <?php
  53    }
  54  ?>
  55            <tr>
  56              <td class="main">&nbsp;<?php echo ENTRY_FIRST_NAME; ?></td>
  57              <td class="main">&nbsp;
  58  <?php
  59    if ($is_read_only == true) {
  60      echo $affiliate['affiliate_firstname'];
  61    } elseif ($error == true) {
  62      if ($entry_firstname_error == true) {
  63        echo tep_draw_input_field('a_firstname') . '&nbsp;' . ENTRY_FIRST_NAME_ERROR;
  64      } else {
  65        echo $a_firstname . tep_draw_hidden_field('a_firstname');
  66      }
  67    } else {
  68      echo tep_draw_input_field('a_firstname', $affiliate['affiliate_firstname']) . '&nbsp;' . ENTRY_FIRST_NAME_TEXT;
  69    }
  70  ?>
  71              </td>
  72            </tr>
  73            <tr>
  74              <td class="main">&nbsp;<?php echo ENTRY_LAST_NAME; ?></td>
  75              <td class="main">&nbsp;
  76  <?php
  77    if ($is_read_only == true) {
  78      echo $affiliate['affiliate_lastname'];
  79    } elseif ($error == true) {
  80      if ($entry_lastname_error == true) {
  81        echo tep_draw_input_field('a_lastname') . '&nbsp;' . ENTRY_LAST_NAME_ERROR;
  82      } else {
  83        echo $a_lastname . tep_draw_hidden_field('a_lastname');
  84      }
  85    } else {
  86      echo tep_draw_input_field('a_lastname', $affiliate['affiliate_lastname']) . '&nbsp;' . ENTRY_FIRST_NAME_TEXT;
  87    }
  88  ?>
  89              </td>
  90            </tr>
  91  <?php
  92    if (ACCOUNT_DOB == 'true') {
  93  ?>
  94            <tr>
  95              <td class="main">&nbsp;<?php echo ENTRY_DATE_OF_BIRTH; ?></td>
  96              <td class="main">&nbsp;
  97  <?php
  98      if ($is_read_only == true) {
  99        echo tep_date_short($affiliate['affiliate_dob']);
 100      } elseif ($error == true) {
 101        if ($entry_date_of_birth_error == true) {
 102          echo tep_draw_input_field('a_dob') . '&nbsp;' . ENTRY_DATE_OF_BIRTH_ERROR;
 103        } else {
 104          echo $a_dob . tep_draw_hidden_field('a_dob');
 105        }
 106      } else {
 107        echo tep_draw_input_field('a_dob', tep_date_short($affiliate['affiliate_dob'])) . '&nbsp;' . ENTRY_DATE_OF_BIRTH_TEXT;
 108      }
 109  ?>
 110              </td>
 111            </tr>
 112  <?php
 113    }
 114  ?>
 115            <tr>
 116              <td class="main">&nbsp;<?php echo ENTRY_EMAIL_ADDRESS; ?></td>
 117              <td class="main">&nbsp;
 118  <?php
 119    if ($is_read_only == true) {
 120      echo $affiliate['affiliate_email_address'];
 121    } elseif ($error == true) {
 122      if ($entry_email_address_error == true) {
 123        echo tep_draw_input_field('a_email_address') . '&nbsp;' . ENTRY_EMAIL_ADDRESS_ERROR;
 124      } elseif ($entry_email_address_check_error == true) {
 125        echo tep_draw_input_field('a_email_address') . '&nbsp;' . ENTRY_EMAIL_ADDRESS_CHECK_ERROR;
 126      } elseif ($entry_email_address_exists == true) {
 127        echo tep_draw_input_field('a_email_address') . '&nbsp;' . ENTRY_EMAIL_ADDRESS_ERROR_EXISTS;
 128      } else {
 129        echo $a_email_address . tep_draw_hidden_field('a_email_address');
 130      }
 131    } else {
 132      echo tep_draw_input_field('a_email_address', $affiliate['affiliate_email_address']) . '&nbsp;' . ENTRY_EMAIL_ADDRESS_TEXT;
 133    }
 134  ?>
 135              </td>
 136            </tr>
 137          </table></td>
 138        </tr>
 139      </table></td>
 140    </tr>
 141  <?php
 142    if (ACCOUNT_COMPANY == 'true') {
 143  ?>
 144    <tr>
 145      <td class="formAreaTitle"><br><?php echo CATEGORY_COMPANY; ?></td>
 146    </tr>
 147    <tr>
 148      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 149        <tr>
 150          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 151            <tr>
 152              <td class="main">&nbsp;<?php echo ENTRY_AFFILIATE_COMPANY; ?></td>
 153              <td class="main">&nbsp;
 154  <?php
 155      if ($is_read_only == true) {
 156        echo $affiliate['affiliate_company'];
 157      } elseif ($error == true) {
 158        if ($entry_company_error == true) {
 159          echo tep_draw_input_field('a_company') . '&nbsp;' . ENTRY_AFFILIATE_COMPANY_ERROR;
 160        } else {
 161          echo $a_company . tep_draw_hidden_field('a_company');
 162        }
 163      } else {
 164        echo tep_draw_input_field('a_company', $affiliate['affiliate_company']) . '&nbsp;' . ENTRY_AFFILIATE_COMPANY_TEXT;
 165      }
 166  ?>
 167              </td>
 168            </tr>
 169            <tr>
 170              <td class="main">&nbsp;<?php echo ENTRY_AFFILIATE_COMPANY_TAXID; ?></td>
 171              <td class="main">&nbsp;
 172  <?php
 173      if ($is_read_only == true) {
 174        echo $affiliate['affiliate_company_taxid'];
 175      } elseif ($error == true) {
 176        if ($entry_company_taxid_error == true) {
 177          echo tep_draw_input_field('a_company_taxid') . '&nbsp;' . ENTRY_AFFILIATE_COMPANY_TAXID_ERROR;
 178        } else {
 179          echo $a_company_taxid . tep_draw_hidden_field('a_company_taxid');
 180        }
 181      } else {
 182        echo tep_draw_input_field('a_company_taxid', $affiliate['affiliate_company_taxid']) . '&nbsp;' . ENTRY_AFFILIATE_COMPANY_TAXID_TEXT;
 183      }
 184  ?>
 185              </td>
 186            </tr>
 187          </table></td>
 188        </tr>
 189      </table></td>
 190    </tr>
 191  <?php
 192    }
 193  ?>
 194    <tr>
 195      <td class="formAreaTitle"><br><?php echo CATEGORY_PAYMENT_DETAILS; ?></td>
 196    </tr>
 197    <tr>
 198      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 199        <tr>
 200          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 201  <?php
 202    if (AFFILIATE_USE_CHECK == 'true') {
 203  ?>
 204            <tr>
 205              <td class="main">&nbsp;<?php echo ENTRY_AFFILIATE_PAYMENT_CHECK; ?></td>
 206              <td class="main">&nbsp;
 207  <?php
 208      if ($is_read_only == true) {
 209        echo $affiliate['affiliate_payment_check'];
 210      } elseif ($error == true) {
 211        if ($entry_payment_check_error == true) {
 212          echo tep_draw_input_field('a_payment_check') . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_CHECK_ERROR;
 213        } else {
 214          echo $a_payment_check . tep_draw_hidden_field('a_payment_check');
 215        }
 216      } else {
 217        echo tep_draw_input_field('a_payment_check', $affiliate['affiliate_payment_check']) . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_CHECK_TEXT;
 218      }
 219  ?>
 220              </td>
 221            </tr>
 222  <?php
 223    }
 224    if (AFFILIATE_USE_PAYPAL == 'true') {
 225  ?>
 226            <tr>
 227              <td class="main">&nbsp;<?php echo ENTRY_AFFILIATE_PAYMENT_PAYPAL; ?></td>
 228              <td class="main">&nbsp;
 229  <?php
 230      if ($is_read_only == true) {
 231        echo $affiliate['affiliate_payment_paypal'];
 232      } elseif ($error == true) {
 233        if ($entry_payment_paypal_error == true) {
 234          echo tep_draw_input_field('a_payment_paypal') . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_PAYPAL_ERROR;
 235        } else {
 236          echo $a_payment_paypal . tep_draw_hidden_field('a_payment_paypal');
 237        }
 238      } else {
 239        echo tep_draw_input_field('a_payment_paypal', $affiliate['affiliate_payment_paypal']) . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_PAYPAL_TEXT;
 240      }
 241  ?>
 242              </td>
 243            </tr>
 244  <?php
 245    }
 246    if (AFFILIATE_USE_BANK == 'true') {
 247  ?>
 248            <tr>
 249              <td class="main">&nbsp;<?php echo ENTRY_AFFILIATE_PAYMENT_BANK_NAME; ?></td>
 250              <td class="main">&nbsp;
 251  <?php
 252      if ($is_read_only == true) {
 253        echo $affiliate['affiliate_payment_bank_name'];
 254      } elseif ($error == true) {
 255        if ($entry_payment_bank_name_error == true) {
 256          echo tep_draw_input_field('a_payment_bank_name') . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_BANK_NAME_ERROR;
 257        } else {
 258          echo $a_payment_bank_name . tep_draw_hidden_field('a_payment_bank_name');
 259        }
 260      } else {
 261        echo tep_draw_input_field('a_payment_bank_name', $affiliate['affiliate_payment_bank_name']) . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_BANK_NAME_TEXT;
 262      }
 263  ?>
 264              </td>
 265            </tr>
 266            <tr>
 267              <td class="main">&nbsp;<?php echo ENTRY_AFFILIATE_PAYMENT_BANK_BRANCH_NUMBER; ?></td>
 268              <td class="main">&nbsp;
 269  <?php
 270      if ($is_read_only == true) {
 271        echo $affiliate['affiliate_payment_bank_branch_number'];
 272      } elseif ($error == true) {
 273        if ($entry_payment_bank_branch_number_error == true) {
 274          echo tep_draw_input_field('a_payment_bank_branch_number') . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_BANK_BRANCH_NUMBER_ERROR;
 275        } else {
 276          echo $a_payment_bank_branch_number . tep_draw_hidden_field('a_payment_bank_branch_number');
 277        }
 278      } else {
 279        echo tep_draw_input_field('a_payment_bank_branch_number', $affiliate['affiliate_payment_bank_branch_number']) . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_BANK_BRANCH_NUMBER_TEXT;
 280      }
 281  ?>
 282              </td>
 283            </tr>
 284            <tr>
 285              <td class="main">&nbsp;<?php echo ENTRY_AFFILIATE_PAYMENT_BANK_SWIFT_CODE; ?></td>
 286              <td class="main">&nbsp;
 287  <?php
 288      if ($is_read_only == true) {
 289        echo $affiliate['affiliate_payment_bank_swift_code'];
 290      } elseif ($error == true) {
 291        if ($entry_payment_bank_swift_code_error == true) {
 292          echo tep_draw_input_field('a_payment_bank_swift_code') . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_BANK_SWIFT_CODE_ERROR;
 293        } else {
 294          echo $a_payment_bank_swift_code . tep_draw_hidden_field('a_payment_bank_swift_code');
 295        }
 296      } else {
 297        echo tep_draw_input_field('a_payment_bank_swift_code', $affiliate['affiliate_payment_bank_swift_code']) . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_BANK_SWIFT_CODE_TEXT;
 298      }
 299  ?>
 300              </td>
 301            </tr>
 302            <tr>
 303              <td class="main">&nbsp;<?php echo ENTRY_AFFILIATE_PAYMENT_BANK_ACCOUNT_NAME; ?></td>
 304              <td class="main">&nbsp;
 305  <?php
 306      if ($is_read_only == true) {
 307        echo $affiliate['affiliate_payment_bank_account_name'];
 308      } elseif ($error == true) {
 309        if ($entry_payment_bank_account_name_error == true) {
 310          echo tep_draw_input_field('a_payment_bank_account_name') . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_BANK_ACCOUNT_NAME_ERROR;
 311        } else {
 312          echo $a_payment_bank_account_name . tep_draw_hidden_field('a_payment_bank_account_name');
 313        }
 314      } else {
 315        echo tep_draw_input_field('a_payment_bank_account_name', $affiliate['affiliate_payment_bank_account_name']) . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_BANK_ACCOUNT_NAME_TEXT;
 316      }
 317  ?>
 318              </td>
 319            </tr>
 320            <tr>
 321              <td class="main">&nbsp;<?php echo ENTRY_AFFILIATE_PAYMENT_BANK_ACCOUNT_NUMBER; ?></td>
 322              <td class="main">&nbsp;
 323  <?php
 324      if ($is_read_only == true) {
 325        echo $affiliate['affiliate_payment_bank_account_number'];
 326      } elseif ($error == true) {
 327        if ($entry_payment_bank_account_number_error == true) {
 328          echo tep_draw_input_field('a_payment_bank_account_number') . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_BANK_ACCOUNT_NUMBER_ERROR;
 329        } else {
 330          echo $a_payment_bank_account_number . tep_draw_hidden_field('a_payment_bank_account_number');
 331        }
 332      } else {
 333        echo tep_draw_input_field('a_payment_bank_account_number', $affiliate['affiliate_payment_bank_account_number']) . '&nbsp;' . ENTRY_AFFILIATE_PAYMENT_BANK_ACCOUNT_NUMBER_TEXT;
 334      }
 335  ?>
 336              </td>
 337            </tr>
 338  <?php
 339    }
 340  ?>
 341            </table></td>
 342        </tr>
 343      </table></td>
 344    </tr>
 345    <tr>
 346      <td class="formAreaTitle"><br><?php echo CATEGORY_ADDRESS; ?></td>
 347    </tr>
 348    <tr>
 349      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 350        <tr>
 351          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 352            <tr>
 353              <td class="main">&nbsp;<?php echo ENTRY_STREET_ADDRESS; ?></td>
 354              <td class="main">&nbsp;
 355  <?php
 356    if ($is_read_only == true) {
 357      echo $affiliate['affiliate_street_address'];
 358    } elseif ($error == true) {
 359      if ($entry_street_address_error == true) {
 360        echo tep_draw_input_field('a_street_address') . '&nbsp;' . ENTRY_STREET_ADDRESS_ERROR;
 361      } else {
 362        echo $a_street_address . tep_draw_hidden_field('a_street_address');
 363      }
 364    } else {
 365      echo tep_draw_input_field('a_street_address', $affiliate['affiliate_street_address']) . '&nbsp;' . ENTRY_STREET_ADDRESS_TEXT;
 366    }
 367  ?>
 368              </td>
 369            </tr>
 370  <?php
 371    if (ACCOUNT_SUBURB == 'true') {
 372  ?>
 373            <tr>
 374              <td class="main">&nbsp;<?php echo ENTRY_SUBURB; ?></td>
 375              <td class="main">&nbsp;
 376  <?php
 377      if ($is_read_only == true) {
 378        echo $affiliate['affiliate_suburb'];
 379      } elseif ($error == true) {
 380        if ($entry_suburb_error == true) {
 381          echo tep_draw_input_field('a_suburb') . '&nbsp;' . ENTRY_SUBURB_ERROR;
 382        } else {
 383          echo $a_suburb . tep_draw_hidden_field('a_suburb');
 384        }
 385      } else {
 386        echo tep_draw_input_field('a_suburb', $affiliate['affiliate_suburb']) . '&nbsp;' . ENTRY_SUBURB_TEXT;
 387      }
 388  ?>
 389              </td>
 390            </tr>
 391  <?php
 392    }
 393  ?>
 394            <tr>
 395              <td class="main">&nbsp;<?php echo ENTRY_POST_CODE; ?></td>
 396              <td class="main">&nbsp;
 397  <?php
 398    if ($is_read_only == true) {
 399      echo $affiliate['affiliate_postcode'];
 400    } elseif ($error == true) {
 401      if ($entry_post_code_error == true) {
 402        echo tep_draw_input_field('a_postcode') . '&nbsp;' . ENTRY_POST_CODE_ERROR;
 403      } else {
 404        echo $a_postcode . tep_draw_hidden_field('a_postcode');
 405      }
 406    } else {
 407      echo tep_draw_input_field('a_postcode', $affiliate['affiliate_postcode']) . '&nbsp;' . ENTRY_POST_CODE_TEXT;
 408    }
 409  ?>
 410              </td>
 411            </tr>
 412            <tr>
 413              <td class="main">&nbsp;<?php echo ENTRY_CITY; ?></td>
 414              <td class="main">&nbsp;
 415  <?php
 416    if ($is_read_only == true) {
 417      echo $affiliate['affiliate_city'];
 418    } elseif ($error == true) {
 419      if ($entry_city_error == true) {
 420        echo tep_draw_input_field('a_city') . '&nbsp;' . ENTRY_CITY_ERROR;
 421      } else {
 422        echo $a_city . tep_draw_hidden_field('a_city');
 423      }
 424    } else {
 425      echo tep_draw_input_field('a_city', $affiliate['affiliate_city']) . '&nbsp;' . ENTRY_CITY_TEXT;
 426    }
 427  ?>
 428              </td>
 429            </tr>
 430            <tr>
 431              <td class="main">&nbsp;<?php echo ENTRY_COUNTRY; ?></td>
 432              <td class="main">&nbsp;
 433  <?php
 434    if ($is_read_only == true) {
 435      echo tep_get_country_name($affiliate['affiliate_country_id']);
 436    } elseif ($error == true) {
 437      if ($entry_country_error == true) {
 438        echo tep_get_country_list('a_country') . '&nbsp;' . ENTRY_COUNTRY_ERROR;
 439      } else {
 440        echo tep_get_country_name($a_country) . tep_draw_hidden_field('a_country');
 441      }
 442    } else {
 443      echo tep_get_country_list('a_country', $affiliate['affiliate_country_id']) . '&nbsp;' . ENTRY_COUNTRY_TEXT;
 444    }
 445  ?>
 446              </td>
 447            </tr>
 448  <?php
 449    if (ACCOUNT_STATE == 'true') {
 450  ?>
 451            <tr>
 452              <td class="main">&nbsp;<?php echo ENTRY_STATE; ?></td>
 453              <td class="main">&nbsp;
 454  <?php
 455      $state = tep_get_zone_name($a_country, $a_zone_id, $a_state);
 456      if ($is_read_only == true) {
 457        echo tep_get_zone_name($affiliate['affiliate_country_id'], $affiliate['affiliate_zone_id'], $affiliate['affiliate_state']);
 458      } elseif ($error == true) {
 459        if ($entry_state_error == true) {
 460          if ($entry_state_has_zones == true) {
 461            $zones_array = array();
 462            $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . tep_db_input($a_country) . "' order by zone_name");
 463            while ($zones_values = tep_db_fetch_array($zones_query)) {
 464              $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
 465            }
 466            echo tep_draw_pull_down_menu('a_state', $zones_array) . '&nbsp;' . ENTRY_STATE_ERROR;
 467          } else {
 468            echo tep_draw_input_field('a_state') . '&nbsp;' . ENTRY_STATE_ERROR;
 469          }
 470        } else {
 471          echo $state . tep_draw_hidden_field('a_zone_id') . tep_draw_hidden_field('a_state');
 472        }
 473      } else {
 474        echo tep_draw_input_field('a_state', tep_get_zone_name($affiliate['affiliate_country_id'], $affiliate['affiliate_zone_id'], $affiliate['affiliate_state'])) . '&nbsp;' . ENTRY_STATE_TEXT;
 475      }
 476  ?>
 477              </td>
 478            </tr>
 479  <?php
 480    }
 481  ?>
 482            <tr>
 483              <td class="main">&nbsp;<?php echo ENTRY_COUNTRY; ?></td>
 484  <?php // BOF: MOD - Country-State Selector ?>
 485              <td class="main">&nbsp;&nbsp;<?php echo tep_get_country_list('country',$a_country,'onChange="return refresh_form(affiliate_details);"') . '&nbsp;<br>' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>
 486  <?php // EOF: MOD - Country-State Selector ?>
 487            </tr>
 488          </table></td>
 489        </tr>
 490      </table></td>
 491    </tr>
 492    <tr>
 493      <td class="formAreaTitle"><br><?php echo CATEGORY_CONTACT; ?></td>
 494    </tr>
 495    <tr>
 496      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 497        <tr>
 498          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 499            <tr>
 500              <td class="main">&nbsp;<?php echo ENTRY_TELEPHONE_NUMBER; ?></td>
 501              <td class="main">&nbsp;
 502  <?php
 503    if ($is_read_only == true) {
 504      echo $affiliate['affiliate_telephone'];
 505    } elseif ($error == true) {
 506      if ($entry_telephone_error == true) {
 507        echo tep_draw_input_field('a_telephone') . '&nbsp;' . ENTRY_TELEPHONE_NUMBER_ERROR;
 508      } else {
 509        echo $a_telephone . tep_draw_hidden_field('a_telephone');
 510      }
 511    } else {
 512      echo tep_draw_input_field('a_telephone', $affiliate['affiliate_telephone']) . '&nbsp;' . ENTRY_TELEPHONE_NUMBER_TEXT;
 513    }
 514  ?>
 515              </td>
 516            </tr>
 517            <tr>
 518              <td class="main">&nbsp;<?php echo ENTRY_FAX_NUMBER; ?></td>
 519              <td class="main">&nbsp;
 520  <?php
 521    if ($is_read_only == true) {
 522      echo $affiliate['affiliate_fax'];
 523    } elseif ($error == true) {
 524      if ($entry_fax_error == true) {
 525        echo tep_draw_input_field('a_fax') . '&nbsp;' . ENTRY_FAX_NUMBER_ERROR;
 526      } else {
 527        echo $a_fax . tep_draw_hidden_field('a_fax');
 528      }
 529    } else {
 530      echo tep_draw_input_field('a_fax', $affiliate['affiliate_fax']) . '&nbsp;' . ENTRY_FAX_NUMBER_TEXT;
 531    }
 532  ?>
 533              </td>
 534            </tr>
 535            <tr>
 536              <td class="main">&nbsp;<?php echo ENTRY_AFFILIATE_HOMEPAGE; ?></td>
 537              <td class="main">&nbsp;
 538  <?php
 539    if ($is_read_only == true) {
 540      echo $affiliate['affiliate_homepage'];
 541    } elseif ($error == true) {
 542      if ($entry_homepage_error == true) {
 543        echo tep_draw_input_field('a_homepage') . '&nbsp;' . ENTRY_AFFILIATE_HOMEPAGE_ERROR;
 544      } else {
 545        echo $a_homepage . tep_draw_hidden_field('a_homepage');
 546      }
 547    } else {
 548      echo tep_draw_input_field('a_homepage', $affiliate['affiliate_homepage']) . '&nbsp;' . ENTRY_AFFILIATE_HOMEPAGE_TEXT;
 549    }
 550  ?>
 551              </td>
 552            </tr>
 553          </table></td>
 554        </tr>
 555      </table></td>
 556    </tr>
 557  <?php
 558    if ($is_read_only == false) {
 559  ?>
 560    <tr>
 561      <td class="formAreaTitle"><br><?php echo CATEGORY_PASSWORD; ?></td>
 562    </tr>
 563    <tr>
 564      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 565        <tr>
 566          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 567            <tr>
 568              <td class="main">&nbsp;<?php echo ENTRY_PASSWORD; ?></td>
 569              <td class="main">&nbsp;
 570  <?php
 571      if ($error == true) {
 572        if ($entry_password_error == true) {
 573          echo tep_draw_password_field('a_password') . '&nbsp;' . ENTRY_PASSWORD_ERROR;
 574        } else {
 575          echo PASSWORD_HIDDEN . tep_draw_hidden_field('a_password') . tep_draw_hidden_field('a_confirmation');
 576        }
 577      } else {
 578        echo tep_draw_password_field('a_password') . '&nbsp;' . ENTRY_PASSWORD_TEXT;
 579      }
 580  ?>
 581              </td>
 582            </tr>
 583  <?php
 584      if ( ($error == false) || ($entry_password_error == true) ) {
 585  ?>
 586            <tr>
 587              <td class="main">&nbsp;<?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td>
 588              <td class="main">&nbsp;
 589  <?php
 590        echo tep_draw_password_field('a_confirmation') . '&nbsp;' . ENTRY_PASSWORD_CONFIRMATION_TEXT;
 591  ?>
 592              </td>
 593            </tr>
 594  <?php
 595      }
 596  ?>
 597          </table></td>
 598        </tr>
 599      </table></td>
 600    </tr>
 601  <?php
 602    }
 603  ?>
 604  </table>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7