blank.gif
triangle.gif http://www.hvepseeksperten.dk
Http://www.hvepseeksperten.dk

Søg efter ...
Søg

Kontakt os via email
Kontakt os

Klik her for at planlægge din rejse
Klik her

blank.gif
blank.gif
triangle.gif Du er her: /  Forsiden  /  Dibs  /  Enginebasket   Login nu   Login
blank.gif
blank.gif
 
arrow-headline.gif Navigation
blank.gif
home.gif
Forsiden

doc.gif  Foto Album
doc.gif  Curriculum Vita (da)
doc.gif  Tutorial
doc.gif  Design
minus.gif  Dibs
doc.gif  Firma profil
doc.gif  Her bor vi
doc.gif  Lej konsulenter
doc.gif  License
doc.gif  Mit PHP CMS
doc.gif  Javascript
doc.gif  Vores prisliste
doc.gif  Rejseplanen
doc.gif  Søg i google
doc.gif  Kildekoden
http://www.hvepseeksperten.dk (25)
arrow-headline.gif Artikler
 
  <?
/**
* @package db-basket
* @see HTML_DB_BASKET_CONTROLLER_PATH.'/EngineBasket.php'
* @copyright (c) http://Finn-Rasmussen.com
* @license http://Finn-Rasmussen.com/license/ myPHP License conditions
* @author http://Finn-Rasmussen.com
* @version 1.9
* @since 21-oct-2005
*/

/**
* The required files
*/
require_once(HTML_MVC_CONTROLLER_PATH.'/Engine.php');
require_once(
HTML_DB_BASKET_QUERY_PATH.'/QueryBasket.php');

/**
* The Engine Basket parsing engine
* This is the controller for a Basket
* <code>
* Usage:
*   $engine = new EngineBasket($table,$sql,$name);
*   print $engine->getHtml();
* Or
*   EngineBasket::display($table,$sql,$name);
* </code>
* @package basket
*/

class EngineBasket extends Engine {
    
/**
     * Constructor
     * @param String $table The table to use
     * @param String $sql   The SQL to excute
     * @param String $name  The Engine Name to use
     */
    
function EngineBasket($table='',$sql='',$name='') {
        
$id  = Decrypt::it(Request::get(REQUEST_ID));
        
$sid = Request::get(REQUEST_SID);
        if (
$sid=='') {
            if (
defined('LOGIN_SID') && LOGIN_SID!=='') {
                
$sid = LOGIN_SID;
            } else {
                
$sid = Session::getId('',__FILE__,__LINE__);
            }
        } else {
            
// Already defined
        
}
        
$translate = $id!=''?false:true;
        
$theTable = $table!=''?$table:DATABASE_PREFIX.TABLE_NAME_BASKET;
        
$theSql   = $sql  !=''?$sql  :QueryBasket::get($theTable, $id, $sid, $translate);
        
$theName  = $name !=''?$name :ENGINE_NAME_BASKET;
        
$this->Engine($theTable,$theSql,$theName);
    }

    
/**
     * Display html
     * <code>
     * Usage:
     *    EngineBasket::display($table,$sql,$name);
     * </code>
     * @static
     * @param String $table The table to use
     * @param String $sql   The SQL to excute
     * @param String $name  The Engine Name to use
     */
    
function display($table='',$sql='',$name='') {
       
$html = new EngineBasket($table,$sql,$name);
       
$html->addHtml();
    }
}
?>
 

triangle.gif

danmark

Germany

England

France

Italy

Norge

Sverige

USA


Opdater information
Opdatér Meta data

Opdater information
Opdatér Indhold

Login nu
Login


 
blank.gif
blank.gif
blank.gif
triangle.gif Copyright @ 1999-2008 Web Expert Finn Rasmussen Powered by myPHP Version1.10
blank.gif