<?php
/*
###################################################################################
  Bigware Shop 2.3
  Release Datum: 23.08.2015
  
  Bigware Shop
  http://www.bigware.de

  Copyright (c) 2015 Bigware LTD
  (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
  (c) 2015	Bigware LTD

  Copyrightvermerke duerfen nicht entfernt werden.
  ------------------------------------------------------------------------
  Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
  der GNU General Public License, wie von der Free Software Foundation
  veroeffentlicht, weitergeben und/oder modifizieren, entweder gemaess Version 2 
  der Lizenz oder (nach Ihrer Option) jeder spaeteren Version.
  Die Veroeffentlichung dieses Programms erfolgt in der Hoffnung, dass es Ihnen
  von Nutzen sein wird, aber OHNE IRGENDEINE GARANTIE, sogar ohne die
  implizite Garantie der MARKTREIFE oder der VERWENDBARKEIT FUER EINEN
  BESTIMMTEN ZWECK. Details finden Sie in der GNU General Public License.
  
  Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
  Programm erhalten haben. Falls nicht, schreiben Sie an die Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

  Infos:
  ------------------------------------------------------------------------
  Der Bigware Shop wurde vor vielen Jahren bereits aus dem bekannten Shopsystem osCommerce
  weiter- und neuentwickelt.
  Der Bigware Shop legt im hohen Masse Wert auf Bedienerfreundlichkeit, beinhaltet eine leichte
  Installation, viele neue professionelle Werkzeuge und zeichnet sich aus durch eine grosse 
  Community, die bei Problemen weiterhelfen kann.
  
  Der Bigware Shop ist auf jedem System lauffaehig, welches eine PHP Umgebung
  (ab PHP 4.1.3) und mySQL zur Verfuegung stellt und auf Linux basiert.
 
  Hilfe erhalten Sie im Forum auf www.bigware.de 
  
  -----------------------------------------------------------------------
  
 ##################################################################################

Captcha f�r Bigware 2.1 by Ede & Tigerstyle


*/
//Captcha by Ede & Tigerstyle
if ($captcha_enable_10 == "ja") {
//Ede uniq JPG-Name Start 4 IE Cache prob.
$rand=rand(1,1000);
$bild=CAPTCHA_LOAD;
$ausgab= "$bild?$rand";
}
//end
                
                
  
 $sql=go_db_query('SELECT * FROM erw_einstellungen');
  $row=go_db_fetch_array($sql); 
  $zusatzfeld_anmelde_name = $row['zusatzfeld_anmelde_name'];
   $default_land = $row['default_land'];
   $default_newsletter = $row['default_newsletter'];
  echo go_fetch_form('create_member', go_href_link($GLOBALS[CONFIG_NAME_FILE][main_bigware_10], '', 'SSL'), 'post', 'onSubmit="return check_form(create_member);"') . go_fetch_hidden_field('action', 'process'); 
    if ($guest_member == "true"){?><input type="hidden" name="guest_member" value="true"><?php } ?>
    <table border="0" style="width:100%" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" style="width:100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="smallText"><?php 
			if ($guest_member) {
                          echo ABOVE_TITLE_GUEST;
			} else {
			  echo ABOVE_TITLE;
			}
			?></td>
            <td class="pageGeneralsign" align="right"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo go_fetch_dividing_up('tranparentes.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td class="smallText"><br><?php echo sprintf(TEXT_ORIGIN_LOGIN, go_href_link($GLOBALS[CONFIG_NAME_FILE][main_bigware_40], go_get_all_get_parameter(), 'SSL')); ?></td>
      </tr>
      <tr>
        <td><?php echo go_fetch_dividing_up('tranparentes.gif', '100%', '10'); ?></td>
      </tr>
<?php
  if ($messageStack->size('create_member') > 0) {
?>
      <tr>
        <td><?php echo $messageStack->output('create_member'); ?></td>
      </tr>
      <tr>
        <td><?php echo go_fetch_dividing_up('tranparentes.gif', '100%', '10'); ?></td>
      </tr>
<?php
  }
?>
      <tr>
        <td><table border="0" style="width:100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><b><?php echo CATEGORY_PERSONAL; ?></b></td>
           <td class="inputRequirement" align="right"><?php echo FORM_REQUIRED_INFORMATION; ?></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" style="width:100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoFrameInsides">
            <td><table border="0" cellspacing="2" cellpadding="2">
<?php
  if (MEMBER_GENDER == 'true') {
?>
              <tr>
                <td class="main" style="width:150px"><?php echo TYPE_IN_GENDER; ?></td>
                <td class="main"><?php echo go_fetch_radio_field('gender', 'm') . '&nbsp;&nbsp;' . MALE . '&nbsp;&nbsp;' . go_fetch_radio_field('gender', 'f') . '&nbsp;&nbsp;' . FEMALE . '&nbsp;' . ((go_not_null(TYPE_IN_GENDER_TEXT)&&(MEMBER_GENDER_REQ=='true')) ? '<span class="inputRequirement">' . TYPE_IN_GENDER_TEXT . '</span>': ''); ?></td>
              </tr>
<?php
  }
?>
              <tr>
                <td class="main"><?php echo TYPE_IN_FIRST_NAME; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('firstname') . '&nbsp;' . (go_not_null(TYPE_IN_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . TYPE_IN_FIRST_NAME_TEXT . '</span>': ''); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo TYPE_IN_LAST_NAME; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('lastname') . '&nbsp;' . (go_not_null(TYPE_IN_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . TYPE_IN_LAST_NAME_TEXT . '</span>': ''); ?></td>
              </tr>
<?php
  if (MEMBER_DOB == 'true') {
?>
              <tr>
                <td class="main"><?php echo TYPE_IN_DATE_OF_BIRTH; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('dob') . '&nbsp;' . ((go_not_null(TYPE_IN_DATE_OF_BIRTH_TEXT)&&(MEMBER_DOB_REQ=='true')) ? '<span class="inputRequirement">' . TYPE_IN_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td>
              </tr>
<?php
  }
?>
              <tr>
                <td class="main"><?php echo TYPE_IN_EMAIL_ADDRESS; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('email_address') . '&nbsp;' . (go_not_null(TYPE_IN_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . TYPE_IN_EMAIL_ADDRESS_TEXT . '</span>': ''); ?></td>
              </tr>
<?php
    if (MEMBER_EMAIL_VALIDATION == 'true'){
?>
              <tr>
                <td class="main"><?php echo TYPE_IN_EMAIL_ADDRESS2; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('email_address2') . '&nbsp;' . (go_not_null(TYPE_IN_EMAIL_ADDRESS_TEXT2) ? '<span class="inputRequirement">' . TYPE_IN_EMAIL_ADDRESS_TEXT2 . '</span>': ''); ?></td>
              </tr>

<?php
  }
  if (MEMBER_COMPANY == 'true') {
?>
      <tr>
        <td colspan="2"><?php echo go_fetch_dividing_up('tranparentes.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td class="main" colspan="2"><b><?php echo CATEGORY_COMPANY; ?></b></td>
      </tr>
              <tr>
                <td class="main"><?php echo TYPE_IN_COMPANY; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('company') . '&nbsp;' . ((go_not_null(TYPE_IN_COMPANY_TEXT)&&(MEMBER_COMPANY_REQ=='true')) ? '<span class="inputRequirement">' . TYPE_IN_COMPANY_TEXT . '</span>': ''); ?></td>
              </tr>

<?php
  }
?>
      <tr>
        <td colspan="2"><?php echo go_fetch_dividing_up('tranparentes.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td class="main" colspan="2"><b><?php echo CATEGORY_ADDRESS; ?></b></td>
      </tr>
              <tr>
                <td class="main"><?php echo TYPE_IN_STREET_ADDRESS; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('street_address') . '&nbsp;' . (go_not_null(TYPE_IN_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">' . TYPE_IN_STREET_ADDRESS_TEXT . '</span>': ''); ?></td>
              </tr>
<?php
	if (MEMBER_ADRESS2 == 'true'){
?>
              <tr>
                <td class="main"><?php echo TYPE_IN_STREET_ADDRESS2; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('street_address2') . '&nbsp;' . (go_not_null(TYPE_IN_STREET_ADDRESS_TEXT2) ? '<span class="inputRequirement">' . TYPE_IN_STREET_ADDRESS_TEXT2 . '</span>': ''); ?></td>
              </tr>
<?php
	}
  if (MEMBER_SUBURB == 'true') {
?>
              <tr>
                <td class="main"><?php echo $zusatzfeld_anmelde_name; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('suburb') . '&nbsp;' . ((go_not_null(TYPE_IN_SUBURB_TEXT)&&(MEMBER_SUBURB_REQ=='true')) ? '<span class="inputRequirement">' . TYPE_IN_SUBURB_TEXT . '</span>': ''); ?></td>
              </tr>
<?php
  }
?>
              <tr>
                <td class="main"><?php echo TYPE_IN_POST_CODE; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('postcode') . '&nbsp;' . (go_not_null(TYPE_IN_POST_CODE_TEXT) ? '<span class="inputRequirement">' . TYPE_IN_POST_CODE_TEXT . '</span>': ''); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo TYPE_IN_CITY; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('city') . '&nbsp;' . (go_not_null(TYPE_IN_CITY_TEXT) ? '<span class="inputRequirement">' . TYPE_IN_CITY_TEXT . '</span>': ''); ?></td>
              </tr>
<?php
  if (MEMBER_STATE == 'true') {
?>
              <tr>
                <td class="main"><?php echo TYPE_IN_STATE; ?></td>
                <td class="main">
<?php
    if ($process == true) {
      if ($entry_state_has_zones == true) {
        $zones_array = array();
        $zones_query = go_db_query("select zone_name from " . DB_TBL_ZONES . " where zone_land_id = '" . (int)$land . "' order by zone_name");
        while ($zones_values = go_db_fetch_array($zones_query)) {
          $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
        }
        echo go_fetch_pull_down_menu('state', $zones_array);
      } else {
        echo go_fetch_inputfeld('state');
      }
    } else {
      echo go_fetch_inputfeld('state');
    }
    if ((go_not_null(TYPE_IN_STATE_TEXT))&&(MEMBER_STATE_REQ=='true')) echo '&nbsp;<span class="inputRequirement">' . TYPE_IN_STATE_TEXT;
?>
                </td>
              </tr>
<?php
  }
?>
              <tr>
                <td class="main"><?php echo TYPE_IN_LAND; ?></td>
                <td class="main"><?php echo go_get_land_list('land',$default_land) . '&nbsp;' . (go_not_null(TYPE_IN_LAND_TEXT) ? '<span class="inputRequirement">' . TYPE_IN_LAND_TEXT . '</span>': ''); ?></td>
              </tr>

      <tr>
        <td colspan="2"><?php echo go_fetch_dividing_up('tranparentes.gif', '100%', '10'); ?></td>
      </tr>
<?php    
 if (MEMBER_TELE_FAX == 'true') {  
?>   
      <tr>
        <td class="main" colspan="2"><b><?php echo CATEGORY_CONTACT; ?></b></td>
      </tr>

              <tr>
                <td class="main"><?php echo TYPE_IN_TELEPHONE_NUMBER; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('telephone') . '&nbsp;' . (MEMBER_TEL_REQ == 'true' ? '<span class="inputRequirement">' . TYPE_IN_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo TYPE_IN_FAX_NUMBER; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('fax') . '&nbsp;' . (MEMBER_FAX_REQ == 'true' ? '<span class="inputRequirement">' . TYPE_IN_FAX_NUMBER_TEXT . '</span>': ''); ?></td>
              </tr>
<?php
}
?>
      <tr>
        <td colspan="2"><?php echo go_fetch_dividing_up('tranparentes.gif', '100%', '10'); ?></td>
      </tr>
<?php
  if ($guest_member != true) { 
?>
      <tr>
        <td class="main" colspan="2"><b><?php echo CATEGORY_OPTIONS; ?></b></td>
      </tr>

              <tr>
                <td class="main"><?php echo TYPE_IN_NEWSLETTER; ?></td>
                <td class="main"><?php
                if ($default_newsletter == "ja"){$newsletter_an = "true";}else{$newsletter_an = "";}
                
                 echo go_fetch_checkbox_field('newsletter', '1',$newsletter_an) . '&nbsp;' . (go_not_null(TYPE_IN_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . TYPE_IN_NEWSLETTER_TEXT . '</span>': ''); ?></td>
              </tr>

      
      
<?php
  } 
  if ((go_not_null(go_get_sources()) || REFERRAL_REQUIRED == 'true') && (!go_session_is_registered('referral_id') || (go_session_is_registered('referral_id') && REFERRAL_REQUIRED == 'true')) ) {
?>
      <tr>
        <td colspan="2"><?php echo go_fetch_dividing_up('tranparentes.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td class="main" colspan="2"><b><?php echo CATEGORY_SOURCE; ?></b></td>
      </tr>
              <tr>
                <td class="main"><?php echo TYPE_IN_SOURCE; ?></td>
                <td class="main"><?php echo go_get_source_list('source', (REFERRAL_REQUIRED == 'true' || (go_session_is_registered('referral_id') && go_not_null($referral_id)) ? true : false), (go_session_is_registered('referral_id') && go_not_null($referral_id)) ? '9999' : '') . '&nbsp;' . (REFERRAL_REQUIRED_REQ == 'true' ? '<span class="inputRequirement">' . TYPE_IN_SOURCE_TEXT . '</span>': ''); ?></td>
              </tr>
<?php
    if (REFERRAL_REQUIRED == 'true' || (go_session_is_registered('referral_id') && go_not_null($referral_id))) {
?>
              <tr>
                <td class="main"><?php echo TYPE_IN_SOURCE_OTHER; ?></td>
                <td class="main"><?php echo go_fetch_inputfeld('source_other', (go_not_null($referral_id) ? $referral_id : '')) . '&nbsp;' . (REFERRAL_REQUIRED_REQ == 'true' ? '<span class="inputRequirement">' . TYPE_IN_SOURCE_OTHER_TEXT . '</span>': ''); ?></td>
              </tr>
<?php
}
?>

<?php
  } else if (SHOW_REFERRAL_SOURCE == 'false') {
      echo go_fetch_hidden_field('source', ((go_session_is_registered('referral_id') && go_not_null($referral_id)) ? '9999' : '')) . go_fetch_hidden_field('source_other', (go_not_null($referral_id) ? $referral_id : ''));
  }
  if ($guest_member != true) { 
?>      
      
      
      
      <tr>
        <td colspan="2"><?php echo go_fetch_dividing_up('tranparentes.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td class="main" colspan="2"><b><?php echo CATEGORY_PASSWORD; ?></b></td>
      </tr>
      <tr>
                <td class="main"><?php echo TYPE_IN_PASSWORD; ?></td>
                <td class="main"><?php echo go_fetch_password_field('password') . '&nbsp;' . (go_not_null(TYPE_IN_PASSWORD_TEXT) ? '<span class="inputRequirement">' . TYPE_IN_PASSWORD_TEXT . '</span>': ''); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo TYPE_IN_PASSWORD_CONFIRMATION; ?></td>
                <td class="main"><?php echo go_fetch_password_field('confirmation') . '&nbsp;' . (go_not_null(TYPE_IN_PASSWORD_CONFIRMATION_TEXT) ? '<span class="inputRequirement">' . TYPE_IN_PASSWORD_CONFIRMATION_TEXT . '</span>': ''); ?></td>
              </tr>
                         

<?php
  }    
//Captcha by Ede & Tigerstyle
            if ($captcha_enable_10 == "ja") {
            ?>
            <tr>
        <td colspan="2"><?php echo go_fetch_dividing_up('tranparentes.gif', '100%', '10'); ?></td>
      </tr>
              <tr>
          <td class="main"><label for="captcha_code"><?php echo CAPTCHA_TEXT1; ?>:</label><br></td>
            </tr>
            <tr>
        <td><a href="main_bigware_10.php"><img src="<?php echo $ausgab; ?>" alt="<?php echo CAPTCHA_CHANGE; ?>" border=0></a></td>   
            </tr>
        <tr>
        <td class="main"><?php echo CAPTCHA_TEXT2; ?>:</td>
          </tr>
          <tr>
        <td class="main"><?php echo go_fetch_captcha_field('captcha_code');?></td>
      </tr> 
       <?php
      }
//END
      ?>    
      <tr>
        <td colspan="2"><table border="0" style="width:100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoFrameInsides">
            <td><table border="0" style="width:100%" cellspacing="0" cellpadding="2">
              <tr>
                <td style="width:10px"><?php echo go_fetch_dividing_up('tranparentes.gif', '10', '1'); ?></td>
                <td><?php echo go_picture_submit('button_continue.gif', PICTURE_BUTTON_CONTINUE); ?></td>
                <td style="width:10px"><?php echo go_fetch_dividing_up('tranparentes.gif', '10', '1'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      
      </table></td>
          </tr>
        </table></td>
      </tr>
      
    </table></form>
