Location: PHPKode > projects > Quick.Cart - free and simple to use shopping cart script > templates/default/order-step-2.php
<?php 
// More about design modifications - www.opensolution.org/Quick.Cart/docs/?id=en-design
if( !defined( 'CUSTOMER_PAGE' ) )
  exit;

$bOrderPage = true;

if( isset( $aData['sName'] ) && !empty( $config['order_page'] ) && $config['order_page'] == $iContent ){
  $oOrder->generateBasket( );
  $iOrderProducts = isset( $_SESSION['iOrderQuantity'.LANGUAGE] ) ? $_SESSION['iOrderQuantity'.LANGUAGE] : 0;
}

require_once DIR_SKIN.'_header.php'; // include design of header
?>
<div id="page">
<?php
if( isset( $aData['sName'] ) ){ // displaying pages and subpages content
  echo '<h1>'.$aData['sName'].'</h1>'; // displaying page name

  if( isset( $aData['sDescriptionFull'] ) )
    echo '<div class="content" id="pageDescription">'.$aData['sDescriptionFull'].'</div>'; // full description

  if( isset( $aData['sPages'] ) )
    echo '<div class="pages">'.$lang['Pages'].': <ul>'.$aData['sPages'].'</ul></div>'; // full description pagination

  // display order form
  $sOrderProducts = $oOrder->listProducts( true );
  $sShippingPaymentSelect = $oOrder->throwShippingPaymentsSelect( );
  if( !empty( $sOrderProducts ) && !empty( $config['order_page'] ) && $config['order_page'] == $iContent && !empty( $config['order_print'] ) && isset( $oPage->aPages[$config['order_print']] ) ){
    ?>
    <script type="text/javascript" src="<?php echo $config['dir_core']; ?>check-form.js"></script>
    <div id="order">
      <form action="<?php echo $oPage->aPages[$config['order_print']]['sLinkName']; ?>" method="post" onsubmit="return checkForm( this )" id="orderForm">
        <fieldset id="personalDataBlock">
          <legend><?php echo $lang['Your_personal_data']; ?></legend>
          <fieldset id="personalData">
            <fieldset id="setBasic">
              <div id="firstName">
                <label for="oFirstName"><?php echo $lang['First_name']; ?></label>
                <input type="text" name="sFirstName" value="" maxlength="30" class="input" onblur="saveUserData( this.name, this.value )" id="oFirstName" alt="simple" />
              </div>
              <div id="lastName">
                <label for="oLastName"><?php echo $lang['Last_name']; ?></label>
                <input type="text" name="sLastName" value="" maxlength="40" class="input" onblur="saveUserData( this.name, this.value )" id="oLastName" alt="simple" />
              </div>
              <div id="company">
                <label for="oCompany"><?php echo $lang['Company']; ?></label>
                <input type="text" name="sCompanyName" value="" maxlength="100" class="input" onblur="saveUserData( this.name, this.value )" id="oCompany" />
              </div>
              <div id="street">
                <label for="oStreet"><?php echo $lang['Street']; ?></label>
                <input type="text" name="sStreet" value="" maxlength="40" class="input" onblur="saveUserData( this.name, this.value )" id="oStreet" alt="simple" />
              </div>
              <div id="zipCode">
                <label for="oZipCode"><?php echo $lang['Zip_code']; ?></label>
                <input type="text" name="sZipCode" value="" maxlength="20" class="input" onblur="saveUserData( this.name, this.value )" id="oZipCode" alt="simple" />
              </div>
              <div id="city">
                <label for="oCity"><?php echo $lang['City']; ?></label>
                <input type="text" name="sCity" value="" maxlength="40" class="input" onblur="saveUserData( this.name, this.value )" id="oCity" alt="simple" />
              </div>
            </fieldset>
            <fieldset id="setExtend">
              <div id="phone">
                <label for="oPhone"><?php echo $lang['Telephone']; ?></label>
                <input type="text" name="sPhone" value="" maxlength="40" class="input" onblur="saveUserData( this.name, this.value )" id="oPhone" alt="simple" />
              </div>
              <div id="email">
                <label for="oEmail"><?php echo $lang['Email']; ?></label>
                <input type="text" name="sEmail" value="" maxlength="40" class="input" onblur="saveUserData( this.name, this.value )" id="oEmail" alt="email" />
              </div>
              <div id="comment">
                <label for="oComment"><?php echo $lang['Comment']; ?></label>
                <textarea name="sComment" cols="50" rows="9" id="oComment"></textarea>
              </div>
            </fieldset>
          </fieldset>
        </fieldset>
        <?php if( isset( $sShippingPaymentSelect ) ){ ?>
          <fieldset id="shippingAndPayments">
            <legend><label for="oShippingPayment"><?php echo $lang['Shipping_and_payment']; ?></label></legend>
            <fieldset>
              <select name="sShippingPayment" title="simple;<?php echo $lang['Select_shipping_and_payment']; ?>" onchange="countShippingPrice( this )" id="oShippingPayment">
                <option value=""><?php echo $lang['Select']; ?></option>
                <?php echo $sShippingPaymentSelect; ?>
              </select>
            </fieldset>
          </fieldset>
        <?php } ?>
        <fieldset id="orderedProducts">
          <legend><?php echo $lang['Products']; ?></legend>
          <script type="text/javascript">
          <!--
          var fOrderSummary = "<?php echo $oOrder->fProductsSummary; ?>";
          AddOnload( checkSavedUserData );
          //-->
          </script>
          <div>
            <table cellspacing="0">
              <thead>
                <tr>
                  <td class="name">
                    <?php echo $lang['Name']; ?>
                  </td>
                  <td class="price">
                    <em><?php echo $lang['Price']; ?></em><span>[<?php echo $config['currency_symbol']; ?>]</span>
                  </td>
                  <td class="quantity">
                    <?php echo $lang['Quantity']; ?>
                  </td>
                  <td class="summary">
                    <em><?php echo $lang['Summary']; ?></em><span>[<?php echo $config['currency_symbol']; ?>]</span>
                  </td>
                </tr>
              </thead>
              <tfoot>
                <?php if( isset( $sShippingPaymentSelect ) ){ ?>
                  <tr class="summaryProducts">
                    <th colspan="3">
                      <?php echo $lang['Summary']; ?>
                    </th>
                    <td>
                      <?php echo displayPrice( $_SESSION['fOrderSummary'.LANGUAGE] ); ?>
                    </td>
                  </tr>
                  <tr class="summaryShippingPayment">
                    <th colspan="3">
                      <?php echo $lang['Shipping_and_payment']; ?>
                    </th>
                    <td id="shippingPaymentCost">
                      0.00
                    </td>
                  </tr>
                <?php } ?>
                <tr class="summaryOrder">
                  <th colspan="3">
                    <?php echo $lang['Summary_cost']; ?>
                  </th>
                  <td id="orderSummary">
                    <?php echo displayPrice( $_SESSION['fOrderSummary'.LANGUAGE] ); ?>
                  </td>
                </tr>
                <tr id="rulesAccept">
                  <th colspan="4"><?php
                    if( !empty( $config['rules_page'] ) && isset( $oPage->aPages[$config['rules_page']] ) ){ ?>
                    <input type="hidden" name="iRules" value="1" />
                    <em><input type="checkbox" name="iRulesAccept" id="iRulesAccept" value="1" alt="box;<?php echo $lang['Require_rules_accept']; ?>" /></em>
                    <span><label for="iRulesAccept"><?php echo $lang['Rules_accept']; ?></label> (<a href="<?php echo $oPage->aPages[$config['rules_page']]['sLinkName']; ?>" onclick="window.open( this.href );return false;"><?php echo $lang['rules_read']; ?> &raquo;</a>).</span>
                  <?php } ?>
                  </th>
                </tr>
                <tr id="nextStep">
                  <th colspan="4" class="nextStep">
                    <input type="submit" value="<?php echo $lang['Send_order']; ?> &raquo;" name="sOrderSend" class="submit" />
                  </th>
                </tr>
              </tfoot>
              <tbody>
                <?php echo $sOrderProducts; // displaying products in basket ?>
              </tbody>
            </table>
          </div>
        </fieldset>
      </form>
    </div>
    <?php
  }
  else{
    echo '<div class="message" id="error"><h3>'.$lang['Basket_empty'].'</h3></div>';
  }
}
else{
  echo '<div class="message" id="error"><h3>'.$lang['Data_not_found'].'</h3></div>'; // displaying 404 error
}
?>
</div>
<?php
require_once DIR_SKIN.'_footer.php'; // include design of footer
?>
Return current item: Quick.Cart - free and simple to use shopping cart script