[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

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

   1  <?php
   2  /*

   3  $Id: Order_Info_Check.php 3 2006-05-27 04:59:07Z user $

   4      by Cheng

   5  

   6          OSCommerce v2.2 CVS (09/17/02)

   7  

   8     Modified versions of create_account.php and related

   9    files.  Allowing 'purchase without account'.

  10  

  11  

  12    osCMax Power E-Commerce

  13    http://oscdox.com

  14  

  15    Copyright 2006 osCMax2005 osCMax, 2002 osCommerce

  16  

  17    Released under the GNU General Public License

  18  */
  19  
  20  ?>
  21  <table border="0" width="100%" cellspacing="0" cellpadding="2">
  22    <tr>
  23      <td class="formAreaTitle"><?php echo CATEGORY_PERSONAL; ?></td>
  24    </tr>
  25    <tr>
  26      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
  27        <tr>
  28          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
  29  <?php
  30    if (ACCOUNT_GENDER == 'true') {
  31      $male = ($account['customers_gender'] == 'm') ? true : false;
  32      $female = ($account['customers_gender'] == 'f') ? true : false;
  33  ?>
  34            <tr>
  35              <td class="main">&nbsp;<?php echo ENTRY_GENDER; ?></td>
  36              <td class="main">&nbsp;
  37  <?php
  38      if ($is_read_only) {
  39        echo ($account['customers_gender'] == 'm') ? MALE : FEMALE;
  40      } elseif ($error) {
  41        if ($entry_gender_error) {
  42          echo tep_draw_radio_field('gender', 'm', $male) . '&nbsp;&nbsp;' . MALE . '&nbsp;&nbsp;' . tep_draw_radio_field('gender', 'f', $female) . '&nbsp;&nbsp' . FEMALE . '&nbsp;' . ENTRY_GENDER_ERROR;
  43        } else {
  44          echo ($gender == 'm') ? MALE : FEMALE;
  45          echo tep_draw_hidden_field('gender');
  46        }
  47      } else {
  48        echo tep_draw_radio_field('gender', 'm', $male) . '&nbsp;&nbsp;' . MALE . '&nbsp;&nbsp;' . tep_draw_radio_field('gender', 'f', $female) . '&nbsp;&nbsp;' . FEMALE . '&nbsp;' . ENTRY_GENDER_TEXT;
  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) {
  60      echo $account['customers_firstname'];
  61    } elseif ($error) {
  62      if ($entry_firstname_error) {
  63        echo tep_draw_input_field('firstname') . '&nbsp;' . ENTRY_FIRST_NAME_ERROR;
  64      } else {
  65        echo $firstname . tep_draw_hidden_field('firstname');
  66      }
  67    } else {
  68      echo tep_draw_input_field('firstname', $account['customers_firstname']) . '&nbsp;' . ENTRY_FIRST_NAME_TEXT;
  69    }
  70  ?></td>
  71            </tr>
  72            <tr>
  73              <td class="main">&nbsp;<?php echo ENTRY_LAST_NAME; ?></td>
  74              <td class="main">&nbsp;
  75  <?php
  76    if ($is_read_only) {
  77      echo $account['customers_lastname'];
  78    } elseif ($error) {
  79      if ($entry_lastname_error) {
  80        echo tep_draw_input_field('lastname') . '&nbsp;' . ENTRY_LAST_NAME_ERROR;
  81      } else {
  82        echo $lastname . tep_draw_hidden_field('lastname');
  83      }
  84    } else {
  85      echo tep_draw_input_field('lastname', $account['customers_lastname']) . '&nbsp;' . ENTRY_LAST_NAME_TEXT;
  86    }
  87  ?></td>
  88            </tr>
  89  <?php
  90    if (ACCOUNT_DOB == 'true') {
  91  ?>
  92            <tr>
  93              <td class="main">&nbsp;<?php echo ENTRY_DATE_OF_BIRTH; ?></td>
  94              <td class="main">&nbsp;
  95  <?php
  96      if ($is_read_only) {
  97        echo tep_date_short($account['customers_dob']);
  98      } elseif ($error) {
  99        if ($entry_date_of_birth_error) {
 100          echo tep_draw_input_field('dob') . '&nbsp;' . ENTRY_DATE_OF_BIRTH_ERROR;
 101        } else {
 102          echo $dob . tep_draw_hidden_field('dob');
 103        }
 104      } else {
 105        echo tep_draw_input_field('dob', tep_date_short($account['customers_dob'])) . '&nbsp;' . ENTRY_DATE_OF_BIRTH_TEXT;
 106      }
 107  ?></td>
 108            </tr>
 109  <?php
 110    }
 111  ?>
 112            <tr>
 113              <td class="main">&nbsp;<?php echo ENTRY_EMAIL_ADDRESS; ?></td>
 114              <td class="main">&nbsp;
 115  <?php
 116    if ($is_read_only) {
 117      echo $account['customers_email_address'];
 118    } elseif ($error) {
 119      if ($entry_email_address_error) {
 120        echo tep_draw_input_field('email_address') . '&nbsp;' . ENTRY_EMAIL_ADDRESS_ERROR;
 121      } elseif ($entry_email_address_check_error) {
 122        echo tep_draw_input_field('email_address') . '&nbsp;' . ENTRY_EMAIL_ADDRESS_CHECK_ERROR;
 123      } elseif ($entry_email_address_exists) {
 124        echo tep_draw_input_field('email_address') . '&nbsp;' . ENTRY_EMAIL_ADDRESS_ERROR_EXISTS;
 125      } else {
 126        echo $email_address . tep_draw_hidden_field('email_address');
 127      }
 128    } else {
 129      echo tep_draw_input_field('email_address', $account['customers_email_address']) . '&nbsp;' . ENTRY_EMAIL_ADDRESS_TEXT;
 130    }
 131  ?></td>
 132            </tr>
 133          </table></td>
 134        </tr>
 135      </table></td>
 136    </tr>
 137  <?php
 138    if (ACCOUNT_COMPANY == 'true') {
 139  ?>
 140    <tr>
 141      <td class="formAreaTitle"><br><?php echo CATEGORY_COMPANY; ?></td>
 142    </tr>
 143    <tr>
 144      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 145        <tr>
 146          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 147            <tr>
 148              <td class="main">&nbsp;<?php echo ENTRY_COMPANY; ?></td>
 149              <td class="main">&nbsp;
 150  <?php
 151      if ($is_read_only) {
 152        echo $account['entry_company'];
 153      } elseif ($error) {
 154        if ($entry_company_error) {
 155          echo tep_draw_input_field('company') . '&nbsp;' . ENTRY_COMPANY_ERROR;
 156        } else {
 157          echo $company . tep_draw_hidden_field('company');
 158        }
 159      } else {
 160        echo tep_draw_input_field('company', $account['entry_company']) . '&nbsp;' . ENTRY_COMPANY_TEXT;
 161      }
 162  ?></td>
 163            </tr>
 164          </table></td>
 165        </tr>
 166      </table></td>
 167    </tr>
 168  <?php
 169    }
 170  ?>
 171    <tr>
 172      <td class="formAreaTitle"><br><?php echo CATEGORY_ADDRESS; ?></td>
 173    </tr>
 174    <tr>
 175      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 176        <tr>
 177          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 178            <tr>
 179              <td class="main">&nbsp;<?php echo ENTRY_STREET_ADDRESS; ?></td>
 180              <td class="main">&nbsp;
 181  <?php
 182    if ($is_read_only) {
 183      echo $account['entry_street_address'];
 184    } elseif ($error) {
 185      if ($entry_street_address_error) {
 186        echo tep_draw_input_field('street_address') . '&nbsp;' . ENTRY_STREET_ADDRESS_ERROR;
 187      } else {
 188        echo $street_address . tep_draw_hidden_field('street_address');
 189      }
 190    } else {
 191      echo tep_draw_input_field('street_address', $account['entry_street_address']) . '&nbsp;' . ENTRY_STREET_ADDRESS_TEXT;
 192    }
 193  ?></td>
 194            </tr>
 195  <?php
 196    if (ACCOUNT_SUBURB == 'true') {
 197  ?>
 198            <tr>
 199              <td class="main">&nbsp;<?php echo ENTRY_SUBURB; ?></td>
 200              <td class="main">&nbsp;
 201  <?php
 202      if ($is_read_only) {
 203        echo $account['entry_suburb'];
 204      } elseif ($error) {
 205        if ($entry_suburb_error) {
 206          echo tep_draw_input_field('suburb') . '&nbsp;' . ENTRY_SUBURB_ERROR;
 207        } else {
 208          echo $suburb . tep_draw_hidden_field('suburb');
 209        }
 210      } else {
 211        echo tep_draw_input_field('suburb', $account['entry_suburb']) . '&nbsp;' . ENTRY_SUBURB_TEXT;
 212      }
 213  ?></td>
 214            </tr>
 215  <?php
 216    }
 217  ?>
 218            <tr>
 219              <td class="main">&nbsp;<?php echo ENTRY_CITY; ?></td>
 220              <td class="main">&nbsp;
 221  <?php
 222    if ($is_read_only) {
 223      echo $account['entry_city'];
 224    } elseif ($error) {
 225      if ($entry_city_error) {
 226        echo tep_draw_input_field('city') . '&nbsp;' . ENTRY_CITY_ERROR;
 227      } else {
 228        echo $city . tep_draw_hidden_field('city');
 229      }
 230    } else {
 231      echo tep_draw_input_field('city', $account['entry_city']) . '&nbsp;' . ENTRY_CITY_TEXT;
 232    }
 233  ?></td>
 234            </tr>
 235  <?php
 236    if (ACCOUNT_STATE == 'true') {
 237  ?>
 238            <tr>
 239              <td class="main">&nbsp;<?php echo ENTRY_STATE; ?></td>
 240              <td class="main">&nbsp;
 241  <?php
 242  // BOF: MOD - Country-State Selector

 243          $zones_array = array();
 244          $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = " . $country . " order by zone_name");
 245          while ($zones_values = tep_db_fetch_array($zones_query)) {
 246            $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
 247          }
 248          if (count($zones_array) > 0) {
 249            echo tep_draw_pull_down_menu('state', $zones_array) . '<span class="inputRequirement"><br>' . ENTRY_STATE_TEXT . '</span>';
 250          } else {
 251            echo tep_draw_input_field('state') ;
 252          }
 253  // EOF: MOD - Country-State Selector

 254  ?>
 255  </td>
 256            </tr>
 257  <?php
 258    }
 259  ?>
 260            <tr>
 261              <td class="main">&nbsp;<?php echo ENTRY_POST_CODE; ?></td>
 262              <td class="main">&nbsp;
 263  <?php
 264    if ($is_read_only) {
 265      echo $account['entry_postcode'];
 266    } elseif ($error) {
 267      if ($entry_post_code_error) {
 268        echo tep_draw_input_field('postcode') . '&nbsp;' . ENTRY_POST_CODE_ERROR;
 269      } else {
 270        echo $postcode . tep_draw_hidden_field('postcode');
 271      }
 272    } else {
 273      echo tep_draw_input_field('postcode', $account['entry_postcode']) . '&nbsp;' . ENTRY_POST_CODE_TEXT;
 274    }
 275  ?></td>
 276            </tr>
 277  
 278            <tr>
 279              <td class="main">&nbsp;<?php echo ENTRY_COUNTRY; ?></td>
 280              <td class="main">&nbsp;
 281  <?php
 282    echo tep_get_country_list('country',$country,'onChange="return refresh_form(account_edit);"') . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement"><br>' . ENTRY_COUNTRY_TEXT . '</span>': '');
 283  ?>
 284  </td>
 285            </tr>
 286  
 287          </table></td>
 288        </tr>
 289      </table></td>
 290    </tr>
 291    <tr>
 292      <td class="formAreaTitle"><br><?php echo CATEGORY_CONTACT; ?></td>
 293    </tr>
 294    <tr>
 295      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 296        <tr>
 297          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 298            <tr>
 299              <td class="main">&nbsp;<?php echo ENTRY_TELEPHONE_NUMBER; ?></td>
 300              <td class="main">&nbsp;
 301  <?php
 302    if ($is_read_only) {
 303      echo $account['customers_telephone'];
 304    } elseif ($error) {
 305      if ($entry_telephone_error) {
 306        echo tep_draw_input_field('telephone') . '&nbsp;' . ENTRY_TELEPHONE_NUMBER_ERROR;
 307      } else {
 308        echo $telephone . tep_draw_hidden_field('telephone');
 309      }
 310    } else {
 311      echo tep_draw_input_field('telephone', $account['customers_telephone']) . '&nbsp;' . ENTRY_TELEPHONE_NUMBER_TEXT;
 312    }
 313  ?></td>
 314            </tr>
 315            <tr>
 316              <td class="main">&nbsp;<?php echo ENTRY_FAX_NUMBER; ?></td>
 317              <td class="main">&nbsp;
 318  <?php
 319    if ($is_read_only) {
 320      echo $account['customers_fax'];
 321    } elseif ($processed) {
 322      echo $fax . tep_draw_hidden_field('fax');
 323    } else {
 324      echo tep_draw_input_field('fax', $account['customers_fax']) . '&nbsp;' . ENTRY_FAX_NUMBER_TEXT;
 325    }
 326  ?></td>
 327            </tr>
 328          </table></td>
 329        </tr>
 330      </table></td>
 331    </tr>
 332    <tr>
 333      <td class="formAreaTitle"><br><?php //echo CATEGORY_OPTIONS; ?></td>
 334    </tr>
 335    <tr>
 336      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 337        <tr>
 338          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 339            <tr>
 340              <td class="main">&nbsp;<?php //echo ENTRY_NEWSLETTER; ?></td>
 341              <td class="main">&nbsp;
 342  <?php /*

 343    if ($is_read_only) {

 344      if ($account['customers_newsletter'] == '1') {

 345        echo ENTRY_NEWSLETTER_YES;

 346      } else {

 347        echo ENTRY_NEWSLETTER_NO;

 348      }

 349    } elseif ($processed) {

 350      if ($newsletter == '1') {

 351        echo ENTRY_NEWSLETTER_YES;

 352      } else {

 353        echo ENTRY_NEWSLETTER_NO;

 354      }

 355      echo tep_draw_hidden_field('newsletter');

 356    } else {

 357      echo tep_draw_pull_down_menu('newsletter', $newsletter_array, $account['customers_newsletter']) . '&nbsp;' . ENTRY_NEWSLETTER_TEXT;

 358    }*/
 359  ?></td>
 360            </tr>
 361          </table></td>
 362        </tr>
 363      </table></td>
 364    </tr>
 365  <?php
 366    if (!$is_read_only) {
 367  ?>
 368    <!--tr>
 369      <td class="formAreaTitle"><br><?php echo CATEGORY_PASSWORD; ?></td>
 370    </tr>
 371    <tr>
 372      <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
 373        <tr>
 374          <td class="main"><table border="0" cellspacing="0" cellpadding="2">
 375            <tr>
 376              <td class="main">&nbsp;<?php echo ENTRY_PASSWORD; ?></td>
 377              <td class="main">&nbsp;
 378  <?php
 379      if ($error) {
 380        if ($entry_password_error) {
 381          echo tep_draw_password_field('password') . '&nbsp;' . ENTRY_PASSWORD_ERROR;
 382        } else {
 383          echo PASSWORD_HIDDEN . tep_draw_hidden_field('password') . tep_draw_hidden_field('confirmation');
 384        }
 385      } else {
 386        echo tep_draw_password_field('password') . '&nbsp;' . ENTRY_PASSWORD_TEXT;
 387      }
 388  ?></td>
 389           </tr>
 390  <?php
 391      if ( (!$error) || ($entry_password_error) ) {
 392  ?>
 393            <tr>
 394              <td class="main">&nbsp;<?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td>
 395              <td class="main">&nbsp;
 396  <?php
 397        echo tep_draw_password_field('confirmation') . '&nbsp;' . ENTRY_PASSWORD_CONFIRMATION_TEXT;
 398  ?></td>
 399            </tr>
 400  <?php
 401      }
 402  ?>
 403          </table></td>
 404        </tr>
 405      </table></td>
 406    </tr//-->
 407  <?php
 408    }
 409  ?>
 410  </table>


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