Example #1
0
</li>

<?php 
if (ACCOUNT_DATE_OF_BIRTH == '1') {
    ?>

      <li><?php 
    echo osc_draw_label(OSCOM::getDef('field_customer_date_of_birth'), 'dob_days', null, true) . ' ' . osc_draw_date_pull_down_menu('dob', array('year' => $Qaccount->value('customers_dob_year'), 'month' => $Qaccount->value('customers_dob_month'), 'date' => $Qaccount->value('customers_dob_date')), false, null, null, date('Y') - 1901, -5);
    ?>
</li>

<?php 
}
?>

      <li><?php 
echo osc_draw_label(OSCOM::getDef('field_customer_email_address'), 'email_address', null, true) . ' ' . osc_draw_input_field('email_address', $Qaccount->value('customers_email_address'));
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
  <?php 
echo osc_draw_image_submit_button('button_continue.gif', OSCOM::getDef('button_continue'));
?>
</div>

</form>
Example #2
0
      <?php 
if (ACTIVATE_CAPTCHA == '1') {
    ?>
      <li class="clearfix captcha" style="height:130px !important;">
        <table width="200" border="0">
          <tr>
            <td>&nbsp;</td>
            <td><?php 
    echo osc_image(osc_href_link(FILENAME_ACCOUNT, 'create=show_captcha', 'AUTO', true, false), $osC_Language->get('captcha_image_title'), 215, 80, 'id="captcha-code"');
    ?>
</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><?php 
    echo osc_draw_label($osC_Language->get('enter_captcha_code'), 'captcha_code', null, true);
    ?>
</td>
            <td><?php 
    echo osc_draw_input_field('captcha_code', '', 'size="30" dir="ltr"');
    ?>
</td>
            <td><?php 
    echo osc_link_object(osc_href_link('#'), osc_image('ext/securimage/images/refresh.png', $osC_Language->get('refresh_captcha_image_title')), 'id="refresh-captcha-code"');
    ?>
</td>			
          </tr>
        </table>
      </li>		
      <?php 
}
Example #3
0
    echo osc_draw_label($osC_Language->get('field_share_wishlist_customer_name'), 'wishlist_customer', null, true) . ' ' . osc_draw_input_field('wishlist_customer', $osC_Customer->isLoggedOn() ? $osC_Customer->getName() : null);
    ?>
</p>
          
          <p><?php 
    echo osc_draw_label($osC_Language->get('field_share_wishlist_customer_email'), 'wishlist_from_email', null, true) . ' ' . osc_draw_input_field('wishlist_from_email', $osC_Customer->isLoggedOn() ? $osC_Customer->getEmailAddress() : null);
    ?>
</p>
          
          <p><?php 
    echo osc_draw_label($osC_Language->get('field_share_wishlist_emails'), 'wishlist_emails', null, true) . ' ' . osc_draw_textarea_field('wishlist_emails', null, 40, 5);
    ?>
</p>
           
          <p><?php 
    echo osc_draw_label($osC_Language->get('field_share_wishlist_message'), 'wishlist_message', null, true) . ' ' . osc_draw_textarea_field('wishlist_message', null, 40, 5);
    ?>
</p>                  
        </div>   
        
        <div class="submitFormButtons" style="text-align: right;">
          <?php 
    echo osc_draw_image_submit_button('button_continue.gif');
    ?>
        </div>
      
      </form>
    </div>
<?php 
}
?>
<div class="moduleBox">
  <h6><?php 
echo $osC_Language->get('password_forgotten_heading');
?>
</h6>

  <div class="content">
    <p><?php 
echo $osC_Language->get('password_forgotten');
?>
</p>

    <ol>
      <li><?php 
echo osc_draw_label($osC_Language->get('field_customer_email_address'), 'email_address') . osc_draw_input_field('email_address');
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons">
  <span style="float: right;"><?php 
echo osc_draw_image_submit_button('button_continue.gif', $osC_Language->get('button_continue'));
?>
</span>

  <?php 
echo osc_link_object(osc_href_link(FILENAME_ACCOUNT, null, 'SSL'), osc_draw_image_button('button_back.gif', $osC_Language->get('button_back')));
?>
Example #5
0
</li>

<?php 
if (ACCOUNT_DATE_OF_BIRTH == '1') {
    ?>

      <li><?php 
    echo osc_draw_label($osC_Language->get('field_customer_date_of_birth'), 'dob_days', null, true) . ' ' . osc_draw_date_pull_down_menu('dob', array('year' => $Qaccount->value('customers_dob_year'), 'month' => $Qaccount->value('customers_dob_month'), 'date' => $Qaccount->value('customers_dob_date')), false, null, null, date('Y') - 1901, -5);
    ?>
</li>

<?php 
}
?>

      <li><?php 
echo osc_draw_label($osC_Language->get('field_customer_email_address'), 'email_address', null, true) . ' ' . osc_draw_input_field('email_address', $Qaccount->value('customers_email_address'));
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
  <?php 
echo osc_draw_image_submit_button('button_continue.gif', $osC_Language->get('button_continue'));
?>
</div>

</form>
}
echo osc_draw_pull_down_menu('manufacturers', $manufacturers_array);
?>

      </li>
      <li><?php 
echo osc_draw_label($osC_Language->get('field_search_price_from'), 'pfrom') . osc_draw_input_field('pfrom');
?>
</li>
      <li><?php 
echo osc_draw_label($osC_Language->get('field_search_price_to'), 'pto') . osc_draw_input_field('pto');
?>
</li>
      <li><?php 
echo osc_draw_label($osC_Language->get('field_search_date_from'), 'datefrom') . osc_draw_date_pull_down_menu('datefrom', null, false, null, null, date('Y') - $osC_Search->getMinYear(), 0);
?>
</li>
      <li><?php 
echo osc_draw_label($osC_Language->get('field_search_date_to'), 'dateto') . osc_draw_date_pull_down_menu('dateto', null, null, null, null, date('Y') - $osC_Search->getMaxYear(), 0);
?>
</li>
    </ol>
  </div>
</div>

<?php 
echo osc_draw_hidden_session_id_field();
?>

</form>
?>
</h6>

  <div class="content">
    <p><?php 
echo $osC_Language->get('login_returning_customer_text');
?>
</p>
  
    <ul>
      <li><?php 
echo osc_draw_label($osC_Language->get('field_customer_email_address'), 'email_address') . '<br />' . osc_draw_input_field('email_address', $email_address);
?>
</li>
      <li><?php 
echo osc_draw_label($osC_Language->get('field_customer_password'), 'password') . '<br />' . osc_draw_password_field('password');
?>
</li>
    </ul>
  
    <p><?php 
echo sprintf($osC_Language->get('login_returning_customer_password_forgotten'), osc_href_link(FILENAME_ACCOUNT, 'password_forgotten', 'SSL'));
?>
</p>

    <div class="submitFormButtons" style="text-align: right;">
      <?php 
echo osc_draw_image_submit_button('button_login.gif', null, 'id="btnLogin"');
?>
    </div>
  </div>
Example #8
0
<?php 
}
?>

      <li><?php 
echo osc_draw_label($osC_Language->get('field_customer_email_address'), 'email_address', null, true) . ' ' . osc_draw_input_field('email_address', $Qaccount->value('customers_email_address'));
?>
</li>
      
      <li><?php 
echo osc_draw_label($osC_Language->get('field_customer_group'), null, null, false) . ' ' . $Qaccount->value('customers_groups_name');
?>
</li>
      
      <li><?php 
echo osc_draw_label($osC_Language->get('field_customer_store_credit'), null, null, false) . ' ' . $osC_Currencies->format($Qaccount->value('customers_credits'));
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
  <?php 
echo osc_draw_image_submit_button('button_continue.gif', $osC_Language->get('button_continue'));
?>
</div>

</form>
Example #9
0
echo OSCOM::getLink(null, null, 'Contact&Process');
?>
" method="post">

<div class="moduleBox">
  <div class="content">
    <ol>
      <li><?php 
echo osc_draw_label(OSCOM::getDef('contact_name_title'), 'name') . osc_draw_input_field('name');
?>
</li>
      <li><?php 
echo osc_draw_label(OSCOM::getDef('contact_email_address_title'), 'email') . osc_draw_input_field('email');
?>
</li>
      <li><?php 
echo osc_draw_label(OSCOM::getDef('contact_enquiry_title'), 'enquiry') . osc_draw_textarea_field('enquiry', null, 50, 15);
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
  <?php 
echo osc_draw_image_submit_button('button_continue.gif', OSCOM::getDef('button_continue'));
?>
</div>

</form>
Example #10
0
<?php 
echo osc_draw_label($osC_Language->get('field_search_manufacturers'), 'manufacturers');
$manufacturers_array = array(array('id' => '', 'text' => $osC_Language->get('filter_all_manufacturers')));
$Qmanufacturers = $osC_Database->query('select manufacturers_id, manufacturers_name from :table_manufacturers order by manufacturers_name');
$Qmanufacturers->bindTable(':table_manufacturers', TABLE_MANUFACTURERS);
$Qmanufacturers->execute();
while ($Qmanufacturers->next()) {
    $manufacturers_array[] = array('id' => $Qmanufacturers->valueInt('manufacturers_id'), 'text' => $Qmanufacturers->value('manufacturers_name'));
}
echo osc_draw_pull_down_menu('manufacturers', $manufacturers_array);
?>

      </li>
      <li><?php 
echo osc_draw_label($osC_Language->get('field_search_price_from'), 'pfrom') . osc_draw_input_field('pfrom');
?>
</li>
      <li><?php 
echo osc_draw_label($osC_Language->get('field_search_price_to'), 'pto') . osc_draw_input_field('pto');
?>
</li>
    </ol>
  </div>
</div>

<?php 
echo osc_draw_hidden_session_id_field();
?>

</form>
Example #11
0
    ?>
</li>
      <li><?php 
    echo osc_draw_label($osC_Language->get('contact_email_address_title'), 'email', null, true) . osc_draw_input_field('email', $osC_Customer->getEmailAddress(), 'size="30"');
    ?>
</li>
      <li><?php 
    echo osc_draw_label($osC_Language->get('contact_enquiry_title'), 'enquiry') . osc_draw_textarea_field('enquiry', null, 38, 5);
    ?>
</li>

    <?php 
    if (ACTIVATE_CAPTCHA == '1') {
        ?>
      <li><?php 
        echo osc_draw_label($osC_Language->get('contact_code_title'), 'concat_code') . osc_draw_input_field('concat_code', '', 'size="30"');
        ?>
 </li>
      <li><img style = "padding-left: 170px;" src="<?php 
        echo osc_href_link(FILENAME_INFO, 'contact=showImage', 'AUTO', true, false);
        ?>
" alt="Captcha" /></li>
    <?php 
    }
    ?>
    
    </ol>
  </div>
</div>

<?php 
 function countryChange()
 {
     global $toC_Json, $osC_Database, $osC_Language;
     $Qzones = $osC_Database->query('select zone_name from :table_zones where zone_country_id = :zone_country_id order by zone_name');
     $Qzones->bindTable(':table_zones', TABLE_ZONES);
     $Qzones->bindInt(':zone_country_id', $_REQUEST['country_id']);
     $Qzones->execute();
     $zones_array = array();
     while ($Qzones->next()) {
         $zones_array[] = array('id' => $Qzones->value('zone_name'), 'text' => $Qzones->value('zone_name'));
     }
     if (sizeof($zones_array) > 0) {
         $response = array('success' => true, 'html' => osc_draw_label($osC_Language->get('field_customer_state'), null, 'state', ACCOUNT_STATE > 0) . osc_draw_pull_down_menu($_REQUEST['type'] . '_state', $zones_array));
     } else {
         $response = array('success' => true, 'html' => osc_draw_label($osC_Language->get('field_customer_state'), null, 'state', ACCOUNT_STATE > 0) . osc_draw_input_field($_REQUEST['type'] . '_state'));
     }
     echo $toC_Json->encode($response);
 }
Example #13
0
echo OSCOM::getDef('my_password_title');
?>
</h6>

  <div class="content">
    <ol>
      <li><?php 
echo osc_draw_label(OSCOM::getDef('field_customer_password_current'), 'password_current', null, true) . osc_draw_password_field('password_current');
?>
</li>
      <li><?php 
echo osc_draw_label(OSCOM::getDef('field_customer_password_new'), 'password_new', null, true) . osc_draw_password_field('password_new');
?>
</li>
      <li><?php 
echo osc_draw_label(OSCOM::getDef('field_customer_password_confirmation'), 'password_confirmation', null, true) . osc_draw_password_field('password_confirmation');
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons">
  <span style="float: right;"><?php 
echo osc_draw_image_submit_button('button_continue.gif', OSCOM::getDef('button_continue'));
?>
</span>

  <?php 
echo osc_link_object(OSCOM::getLink(null, null, null, 'SSL'), osc_draw_image_button('button_back.gif', OSCOM::getDef('button_back')));
?>
<div class="moduleBox">
  <h6><?php 
echo $osC_Language->get('newsletter_subscriptions_heading');
?>
</h6>

  <div class="content">
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td width="30"><?php 
echo osc_draw_checkbox_field('newsletter_general', '1', $Qnewsletter->value('customers_newsletter'));
?>
</td>
        <td><b><?php 
echo osc_draw_label($osC_Language->get('newsletter_general'), 'newsletter_general');
?>
</b></td>
      </tr>
      <tr>
        <td width="30">&nbsp;</td>
        <td><?php 
echo $osC_Language->get('newsletter_general_description');
?>
</td>
      </tr>
    </table>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
    <?php 
if (ACCOUNT_TELEPHONE > -1) {
    ?>
      <li><?php 
    echo osc_draw_label($osC_Language->get('field_customer_telephone_number'), null, 'billing_telephone', ACCOUNT_TELEPHONE > 0) . osc_draw_input_field('billing_telephone', $telephone);
    ?>
</li>
    <?php 
}
?>

    <?php 
if (ACCOUNT_FAX > -1) {
    ?>
      <li><?php 
    echo osc_draw_label($osC_Language->get('field_customer_fax_number'), null, 'billing_fax', ACCOUNT_FAX > 0) . osc_draw_input_field('billing_fax', $fax);
    ?>
</li>
    <?php 
}
?>
    </div>
    
      <li style="height:10px;line-height:10px">&nbsp;</li>
    <?php 
if ($osC_Customer->isLoggedOn()) {
    ?>
       <li>  
      <?php 
    echo osc_draw_checkbox_field('create_billing_address', array(array('id' => '1', 'text' => $osC_Language->get('create_new_billing_address'))), $create_billing_address);
    ?>
" value="<?php 
            echo $Qproducts->valueInt('products_id');
            ?>
" checked="checked" /><?php 
            echo $Qproducts->value('products_name');
            ?>
                </label>
            </div>
            
                <tr>
                    <td width="30"><?php 
            echo osc_draw_checkbox_field('products[' . $counter . ']', $Qproducts->valueInt('products_id'), true);
            ?>
</td>
                    <td><b><?php 
            echo osc_draw_label($Qproducts->value('products_name'), 'products[' . $counter . ']');
            ?>
</b></td>
                </tr>
    
    <?php 
        }
        ?>
    
    <?php 
    } else {
        echo $osC_Language->get('newsletter_product_notifications_products_none');
    }
    ?>
    
		</div>
                $Qvalues->bindTable(':table_products_attributes', TABLE_PRODUCTS_ATTRIBUTES);
                $Qvalues->bindInt(':products_attributes_values_id', $Qentries->value('products_attributes_values_id'));
                $Qvalues->bindInt(':language_id', $osC_Language->getID());
                $Qvalues->execute();
                while ($Qvalues->next()) {
                    $fields_value = $Qvalues->value('value');
                    if (!empty($fields_value)) {
                        $data[] = array('id' => $fields_value, 'text' => $fields_value);
                    }
                }
                $Qvalues->freeResult();
            } else {
                $values = explode(',', $Qentries->value('value'));
                for ($i = 1; $i <= sizeof($values); $i++) {
                    $data[] = array('id' => $i, 'text' => $values[$i - 1]);
                }
            }
            $default = '';
            $products_attributes_values_id = $Qentries->value('products_attributes_values_id');
            if (isset($_GET['products_attributes']) && is_array($_GET['products_attributes']) && isset($_GET['products_attributes'][$products_attributes_values_id])) {
                $default = $_GET['products_attributes'][$products_attributes_values_id];
            }
            echo '<div>' . osc_draw_label($Qentries->value('name') . ' :', 'products_attributes[' . $products_attributes_values_id . ']') . '&nbsp;' . osc_draw_pull_down_menu('products_attributes[' . $products_attributes_values_id . ']', $data, $default, 'onchange="this.form.submit()"') . '</div>';
        }
    }
    $Qgroups->freeResult();
    echo '        </div>' . "\n" . '    </div>' . "\n" . '</form>';
}
?>

<?php 
if (ACCOUNT_TELEPHONE > -1) {
    ?>

  <li><?php 
    echo osc_draw_label($osC_Language->get('field_customer_telephone_number'), null, 'telephone', ACCOUNT_TELEPHONE > 0) . osc_draw_input_field('telephone', isset($Qentry) ? $Qentry->value('entry_telephone') : null);
    ?>
</li>

<?php 
}
if (ACCOUNT_FAX > -1) {
    ?>

  <li><?php 
    echo osc_draw_label($osC_Language->get('field_customer_fax_number'), null, 'fax', ACCOUNT_FAX > 0) . osc_draw_input_field('fax', isset($Qentry) ? $Qentry->value('entry_fax') : null);
    ?>
</li>

<?php 
}
if ($osC_Customer->hasDefaultAddress() && (isset($_GET['edit']) && $osC_Customer->getDefaultAddressID() != $_GET['address_book'] || isset($_GET['new']))) {
    ?>

  <li><?php 
    echo osc_draw_checkbox_field('primary', array(array('id' => 'on', 'text' => $osC_Language->get('set_as_primary'))), false);
    ?>
</li>

<?php 
}
Example #19
0
<div class="moduleBox">
  <h6><?php 
echo OSCOM::getDef('newsletter_subscriptions_heading');
?>
</h6>

  <div class="content">
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td width="30"><?php 
echo osc_draw_checkbox_field('newsletter_general', '1', $Qnewsletter->value('customers_newsletter'));
?>
</td>
        <td><b><?php 
echo osc_draw_label(OSCOM::getDef('newsletter_general'), 'newsletter_general');
?>
</b></td>
      </tr>
      <tr>
        <td width="30">&nbsp;</td>
        <td><?php 
echo OSCOM::getDef('newsletter_general_description');
?>
</td>
      </tr>
    </table>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
Example #20
0
    ?>
" method="post">

<div class="moduleBox">
  <div class="content">
    <ol>
      <li><?php 
    echo osc_draw_label($osC_Language->get('contact_name_title'), 'name') . osc_draw_input_field('name');
    ?>
</li>
      <li><?php 
    echo osc_draw_label($osC_Language->get('contact_email_address_title'), 'email') . osc_draw_input_field('email');
    ?>
</li>
      <li><?php 
    echo osc_draw_label($osC_Language->get('contact_enquiry_title'), 'enquiry') . osc_draw_textarea_field('enquiry', null, 50, 15);
    ?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
  <?php 
    echo osc_draw_image_submit_button('button_continue.gif', $osC_Language->get('button_continue'));
    ?>
</div>

</form>

<?php 
Example #21
0
</li>
          <li><?php 
echo osc_draw_label($osC_Language->get('field_email'), 'email', null, true) . osc_draw_input_field('email');
?>
</li>  
          <li><?php 
echo osc_draw_label($osC_Language->get('field_url'), 'url') . osc_draw_input_field('url');
?>
</li>  
          <li><?php 
echo osc_draw_label($osC_Language->get('field_content'), 'content', null, true) . osc_draw_textarea_field('content', '', 29);
?>
</li>
          <li>
            <?php 
echo osc_draw_label($osC_Language->get('field_image_verification'), 'verify_code') . osc_draw_input_field('verify_code') . '&nbsp;&nbsp;' . $osC_Language->get('verification_info_note') . '<br/> <img style="margin-top: 5px;" src="' . osc_href_link(FILENAME_INFO, 'guestbook&captcha') . '" alt="Captcha" />';
?>
          </li>
        </ol>
        
        <div class="submitFormButtons">
          <span style="float: right"><?php 
echo osc_draw_image_submit_button('button_continue.gif', $osC_Language->get('button_continue'));
?>
</span>
          
            <?php 
echo osc_link_object(osc_href_link(FILENAME_INFO, 'guestbook'), osc_draw_image_button('button_back.gif', $osC_Language->get('button_back')));
?>
        </div>
      </form>
Example #22
0
}
echo osc_draw_pull_down_menu('manufacturer', $manufacturers_array);
?>

      </li>
      <li><?php 
echo osc_draw_label(OSCOM::getDef('field_search_price_from'), 'pfrom') . osc_draw_input_field('pfrom');
?>
</li>
      <li><?php 
echo osc_draw_label(OSCOM::getDef('field_search_price_to'), 'pto') . osc_draw_input_field('pto');
?>
</li>
      <li><?php 
echo osc_draw_label(OSCOM::getDef('field_search_date_from'), 'datefrom') . osc_draw_date_pull_down_menu('datefrom', null, false, null, null, date('Y') - $OSCOM_Search->getMinYear(), 0);
?>
</li>
      <li><?php 
echo osc_draw_label(OSCOM::getDef('field_search_date_to'), 'dateto') . osc_draw_date_pull_down_menu('dateto', null, null, null, null, date('Y') - $OSCOM_Search->getMaxYear(), 0);
?>
</li>
    </ol>
  </div>
</div>

<?php 
echo osc_draw_hidden_session_id_field();
?>

</form>
Example #23
0
      <li><?php 
    echo osc_draw_label($osC_Language->get('field_customer_newsletter'), 'newsletter') . osc_draw_checkbox_field('newsletter', '1');
    ?>
</li>

<?php 
}
?>

      <li><?php 
echo osc_draw_label($osC_Language->get('field_customer_password'), 'password', null, true) . osc_draw_password_field('password');
?>
</li>
      <li><?php 
echo osc_draw_label($osC_Language->get('field_customer_password_confirmation'), 'confirmation', null, true) . osc_draw_password_field('confirmation');
?>
</li>
    </ol>
  </div>
</div>

<?php 
if (DISPLAY_PRIVACY_CONDITIONS == '1') {
    ?>

<div class="moduleBox">
  <h6><?php 
    echo $osC_Language->get('create_account_terms_heading');
    ?>
</h6>
Example #24
0
if ($messageStack->size('maintenance') > 0) {
    echo $messageStack->output('maintenance');
}
?>
        
        <form name="login" action="<?php 
echo osc_href_link(FILENAME_DEFAULT, 'maintenance=login', 'SSL');
?>
" method="post">
        
          <ol>
            <li><?php 
echo osc_draw_label($osC_Language->get('field_username'), 'user_name') . osc_draw_input_field('user_name');
?>
</li>
            <li><?php 
echo osc_draw_label($osC_Language->get('field_password'), 'user_password') . osc_draw_password_field('user_password');
?>
</li>
          </ol>
          
          <p align="center"><?php 
echo osc_draw_image_submit_button('button_login.gif', $osC_Language->get('button_sign_in'));
?>
</p>
          
        </form>
      </div>
    </div>
  </body>
</html>
</div>

<div class="moduleBox">
  <h6><?php 
echo $osC_Language->get('friend_details_title');
?>
</h6>

  <div class="content">
    <ol>
      <li><?php 
echo osc_draw_label($osC_Language->get('field_tell_a_friend_friends_name'), null, 'to_name', true) . osc_draw_input_field('to_name');
?>
</li>
      <li><?php 
echo osc_draw_label($osC_Language->get('field_tell_a_friend_friends_email_address'), null, 'to_email_address', true) . osc_draw_input_field('to_email_address');
?>
</li>
    </ol>
  </div>
</div>

<div class="moduleBox">
  <h6><?php 
echo $osC_Language->get('tell_a_friend_message');
?>
</h6>

  <div class="content">
    <ol>
      <li><?php 
Example #26
0
                    while ($Qvalues->next()) {
                        $fields_value = $Qvalues->value('value');
                        if (!empty($fields_value)) {
                            $data[] = array('id' => $fields_value, 'text' => $fields_value);
                        }
                    }
                    $Qvalues->freeResult();
                } else {
                    $values = explode(',', $Qentries->value('value'));
                    for ($i = 1; $i <= sizeof($values); $i++) {
                        $data[] = array('id' => $i, 'text' => $values[$i - 1]);
                    }
                }
                $default = '';
                $products_attributes_values_id = $Qentries->value('products_attributes_values_id');
                if (isset($_GET['products_attributes']) && is_array($_GET['products_attributes']) && isset($_GET['products_attributes'][$products_attributes_values_id])) {
                    $default = $_GET['products_attributes'][$products_attributes_values_id];
                }
                echo '<span style="float: left; width: 49%">' . osc_draw_label($Qentries->value('name') . ' :', 'products_attributes[' . $products_attributes_values_id . ']') . '&nbsp;' . osc_draw_pull_down_menu('products_attributes[' . $products_attributes_values_id . ']', $data, $default, 'onchange="this.form.submit()"') . '</span>';
            }
        }
        $Qgroups->freeResult();
        echo '    <div style="clear: both"></div>';
        echo '    </form>' . "\n";
        echo '  </div>
            </div>';
    }
}
?>

Example #27
0
 function renderCustomizationFieldsList()
 {
     global $toC_Customization_Fields;
     $output = '<ul>';
     foreach ($this->getCustomizations() as $field) {
         $tmp = $toC_Customization_Fields->getCustomizationField($this->getID(), $field['customization_fields_id']);
         $value = $tmp === false ? null : $tmp['customization_value'];
         if ($field['type'] == 0) {
             $output .= '<li>' . osc_draw_label($field['name'], 'customizations_' . $field['customization_fields_id'], $value, $field['is_required'] == '1' ? true : false) . osc_draw_file_field('customizations_' . $field['customization_fields_id'], true) . '<br /><span>' . $value . '</span></li>';
         } else {
             $output .= '<li>' . osc_draw_label($field['name'], 'customizations[' . $field['customization_fields_id'] . ']', null, $field['is_required'] == '1' ? true : false) . osc_draw_input_field('customizations[' . $field['customization_fields_id'] . ']', $value, 'size="30"') . '</li>';
         }
     }
     $output .= '</ul>';
     return $output;
 }
        echo osc_draw_pull_down_menu('quantity[' . $product['orders_products_id'] . ']', $selections);
        ?>
        </td>
      </tr>
<?php 
        $rows++;
    }
}
if ($rows > 1) {
    ?>
    <tr class="<?php 
    echo $rows / 2 == floor($rows / 2) ? 'productListing-even' : 'productListing-odd';
    ?>
">
      <td colspan="4"><?php 
    echo osc_draw_label($osC_Language->get('field_return_comments'), 'comments', null, true) . osc_draw_textarea_field('comments', null, 45);
    ?>
</td>
    </tr>    
<?php 
} else {
    ?>
    <tr>
      <td colspan="4"><?php 
    echo $osC_Language->get('no_products_available_for_return');
    ?>
</td>
    </tr>
<?php 
}
?>
?>
</b>
    
      <div>
        <p><?php 
echo $osC_Language->get('login_returning_customer_text');
?>
</p>
    
        <ol>
          <li><?php 
echo osc_draw_label($osC_Language->get('field_customer_email_address'), 'email_address', null, true) . osc_draw_input_field('email_address');
?>
</li>
          <li><?php 
echo osc_draw_label($osC_Language->get('field_customer_password'), 'password', null, true) . osc_draw_password_field('password');
?>
</li>
        </ol>
    
        <p><?php 
echo sprintf($osC_Language->get('login_returning_customer_password_forgotten'), osc_href_link(FILENAME_ACCOUNT, 'password_forgotten', 'SSL'));
?>
</p>
    
        <p align="right"><?php 
echo osc_draw_image_submit_button('button_login.gif', $osC_Language->get('button_sign_in'));
?>
</p>
      </div>
    
Example #30
0
?>
</h6>

  <div class="content">
    <p><?php 
echo OSCOM::getDef('login_returning_customer_text');
?>
</p>

    <ol>
      <li><?php 
echo osc_draw_label(OSCOM::getDef('field_customer_email_address'), 'email_address') . osc_draw_input_field('email_address');
?>
</li>
      <li><?php 
echo osc_draw_label(OSCOM::getDef('field_customer_password'), 'password') . osc_draw_password_field('password');
?>
</li>
    </ol>

    <p><?php 
echo sprintf(OSCOM::getDef('login_returning_customer_password_forgotten'), OSCOM::getLink(null, null, 'PasswordForgotten', 'SSL'));
?>
</p>

    <p align="right"><?php 
echo osc_draw_image_submit_button('button_login.gif', OSCOM::getDef('button_sign_in'));
?>
</p>
  </div>