[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/includes/modules/ -> affiliate_signup_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    osCommerce, Open Source E-Commerce Solutions

  10    http://www.oscommerce.com

  11  

  12    Copyright (c) 2002 - 2003 osCommerce

  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          </table></td>
 483        </tr>
 484      </table></td>
 485    </tr>
 486    <tr>
 487      <td class="formAreaTitle"><br><?php echo CATEGORY_CONTACT; ?></td>
 488    </tr>
 489    <tr>
 490      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 491        <tr>
 492          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 493            <tr>
 494              <td class="main">&nbsp;<?php echo ENTRY_TELEPHONE_NUMBER; ?></td>
 495              <td class="main">&nbsp;
 496  <?php
 497    if ($is_read_only == true) {
 498      echo $affiliate['affiliate_telephone'];
 499    } elseif ($error == true) {
 500      if ($entry_telephone_error == true) {
 501        echo tep_draw_input_field('a_telephone') . '&nbsp;' . ENTRY_TELEPHONE_NUMBER_ERROR;
 502      } else {
 503        echo $a_telephone . tep_draw_hidden_field('a_telephone');
 504      }
 505    } else {
 506      echo tep_draw_input_field('a_telephone', $affiliate['affiliate_telephone']) . '&nbsp;' . ENTRY_TELEPHONE_NUMBER_TEXT;
 507    }
 508  ?>
 509              </td>
 510            </tr>
 511            <tr>
 512              <td class="main">&nbsp;<?php echo ENTRY_FAX_NUMBER; ?></td>
 513              <td class="main">&nbsp;
 514  <?php
 515    if ($is_read_only == true) {
 516      echo $affiliate['affiliate_fax'];
 517    } elseif ($error == true) {
 518      if ($entry_fax_error == true) {
 519        echo tep_draw_input_field('a_fax') . '&nbsp;' . ENTRY_FAX_NUMBER_ERROR;
 520      } else {
 521        echo $a_fax . tep_draw_hidden_field('a_fax');
 522      }
 523    } else {
 524      echo tep_draw_input_field('a_fax', $affiliate['affiliate_fax']) . '&nbsp;' . ENTRY_FAX_NUMBER_TEXT;
 525    }
 526  ?>
 527              </td>
 528            </tr>
 529            <tr>
 530              <td class="main">&nbsp;<?php echo ENTRY_AFFILIATE_HOMEPAGE; ?></td>
 531              <td class="main">&nbsp;
 532  <?php
 533    if ($is_read_only == true) {
 534      echo $affiliate['affiliate_homepage'];
 535    } elseif ($error == true) {
 536      if ($entry_homepage_error == true) {
 537        echo tep_draw_input_field('a_homepage') . '&nbsp;' . ENTRY_AFFILIATE_HOMEPAGE_ERROR;
 538      } else {
 539        echo $a_homepage . tep_draw_hidden_field('a_homepage');
 540      }
 541    } else {
 542      echo tep_draw_input_field('a_homepage', $affiliate['affiliate_homepage']) . '&nbsp;' . ENTRY_AFFILIATE_HOMEPAGE_TEXT;
 543    }
 544  ?>
 545              </td>
 546            </tr>
 547          </table></td>
 548        </tr>
 549      </table></td>
 550    </tr>
 551  <?php
 552    if ($is_read_only == false) {
 553  ?>
 554    <tr>
 555      <td class="formAreaTitle"><br><?php echo CATEGORY_PASSWORD; ?></td>
 556    </tr>
 557    <tr>
 558      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 559        <tr>
 560          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 561            <tr>
 562              <td class="main">&nbsp;<?php echo ENTRY_PASSWORD; ?></td>
 563              <td class="main">&nbsp;
 564  <?php
 565      if ($error == true) {
 566        if ($entry_password_error == true) {
 567          echo tep_draw_password_field('a_password') . '&nbsp;' . ENTRY_PASSWORD_ERROR;
 568        } else {
 569          echo PASSWORD_HIDDEN . tep_draw_hidden_field('a_password') . tep_draw_hidden_field('a_confirmation');
 570        }
 571      } else {
 572        echo tep_draw_password_field('a_password') . '&nbsp;' . ENTRY_PASSWORD_TEXT;
 573      }
 574  ?>
 575              </td>
 576            </tr>
 577  <?php
 578      if ( ($error == false) || ($entry_password_error == true) ) {
 579  ?>
 580            <tr>
 581              <td class="main">&nbsp;<?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td>
 582              <td class="main">&nbsp;
 583  <?php
 584        echo tep_draw_password_field('a_confirmation') . '&nbsp;' . ENTRY_PASSWORD_CONFIRMATION_TEXT;
 585  ?>
 586              </td>
 587            </tr>
 588  <?php
 589      }
 590  ?>
 591          </table></td>
 592        </tr>
 593      </table></td>
 594    </tr>
 595        <tr>
 596          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 597        </tr>
 598        <tr>
 599          <td class="main"><b><?php echo CATEGORY_OPTIONS; ?></b></td>
 600        </tr>
 601    <tr>
 602      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 603        <tr>
 604          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 605            <tr>
 606              <td class="main">&nbsp;<?php echo ENTRY_AFFILIATE_NEWSLETTER; ?></td>
 607              <td class="main">&nbsp;
 608  <?php
 609    if ($is_read_only == true) {
 610      echo $affiliate['affiliate_newsletter'];
 611    } elseif ($error == true) {
 612      if ($entry_newsletter_error == true) {
 613        echo tep_draw_checkbox_field('a_newsletter', '1') . '&nbsp;' . ENTRY_AFFILIATE_NEWSLETTER_ERROR;
 614      } else {
 615        echo $a_newsletter . tep_draw_checkbox_field('a_newsletter', '1');
 616      }
 617    } else {
 618      echo tep_draw_checkbox_field('a_newsletter', '1', $affiliate['affiliate_newsletter']) . '&nbsp;' . ENTRY_AFFILIATE_NEWSLETTER_TEXT;
 619    }
 620  ?>
 621              </td>
 622            </tr>
 623          </table></td>
 624        </tr>
 625      </table></td>
 626    </tr>
 627    <tr>
 628      <td class="formAreaTitle"><br></td>
 629    </tr>
 630    <tr>
 631      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 632        <tr>
 633          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 634            <tr>
 635              <td class="main">&nbsp;</td>
 636              <td class="main">&nbsp;
 637  <?php 
 638      echo tep_draw_checkbox_field('a_agb', $value = '1', $checked = $affiliate['affiliate_agb']) . ENTRY_AFFILIATE_ACCEPT_AGB . '<b><a href="javascript:popupWindow(\'' . tep_href_link(FILENAME_AFFILIATE_TERMS_POPUP, '', 'SSL') . '\')">' . ENTRY_AFFILIATE_ACCEPT_AGB_TEXT . '</a></b>';
 639      if ($entry_agb_error == true) {
 640        echo "<br>".ENTRY_AFFILIATE_AGB_ERROR;
 641      }
 642  ?>
 643              </td>
 644            </tr>
 645          </table></td>
 646        </tr>
 647      </table></td>
 648    </tr>
 649  <?php
 650    }
 651  ?>
 652  </table>


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