PHP Classes
Icontem

File: currencies.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of DAKEDO, Online Shopping Mall  >  Blogger Integration  >  currencies.php  
File: currencies.php
Role: Application script
Content type: text/plain
Description: osCommerce currencies box
Class: Blogger Integration
Import a blog published in Blogger.com into a site
 

Contents

Class file image Download
<?php
/*
  BloggerIntegration v1.0 - currencies.php v1.0 2007/03/01

  designer:    DAKEDO, Online Shopping Mall  
  url:        http://www.dakedo.com
  download: http://www.dakedo.com/blogs/27/2007/02/blogger-integration.html
  email:    contact@dakedo.com
  Copyright (c) 2007 DAKEDO

  This file is largely derived from:
  $Id: currencies.php,v 1.16 2003/02/12 20:27:31 hpdl Exp $
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  
if (isset($currencies) && is_object($currencies)) {
?>
<!-- currencies //-->
          <tr>
            <td>
<?php
    $info_box_contents 
= array();
    
$info_box_contents[] = array('text' => BOX_HEADING_CURRENCIES);

    new 
infoBoxHeading($info_box_contentsfalsefalse);

    
reset($currencies->currencies);
    
$currencies_array = array();
    while (list(
$key$value) = each($currencies->currencies)) {
      
$currencies_array[] = array('id' => $key'text' => $value['title']);
    }

    
$hidden_get_variables '';
    
reset($HTTP_GET_VARS);
    while (list(
$key$value) = each($HTTP_GET_VARS)) {
      if ( (
$key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {
        
$hidden_get_variables .= tep_draw_hidden_field($key$value);
      }
    }

    
$info_box_contents = array();
//BEGIN BloggerIntegration
    
$info_box_contents[] = array('form' => tep_draw_form('currencies'HTTP_SERVER DIR_WS_BLOG basename($PHP_SELF), 'get'),
                                 
'align' => 'center',
                                 
'text' => tep_draw_pull_down_menu('currency'$currencies_array$currency'onChange="this.form.submit();" style="width: 100%"') . $hidden_get_variables tep_hide_session_id());
//END BloggerIntegration

    
new infoBox($info_box_contents);
?>
            </td>
          </tr>
<!-- currencies_eof //-->
<?php
  
}
?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products