예제 #1
0
파일: fiche.php 프로젝트: nrjacker4/crm-php
 */
/**
 *  \file       htdocs/boutique/commande/fiche.php
 *  \ingroup    boutique
 *  \brief      Page fiche commande OSCommerce
 */
require "../../main.inc.php";
require_once DOL_DOCUMENT_ROOT . '/boutique/osc_master.inc.php';
include_once DOL_DOCUMENT_ROOT . '/boutique/commande/class/boutiquecommande.class.php';
$langs->load("products");
/*
 *	View
 */
llxHeader();
if ($_GET['id']) {
    $commande = new BoutiqueCommande($db);
    $result = $commande->fetch($_GET['id']);
    if ($result) {
        print '<div class="titre">' . $langs->trans("OrderCard") . ': ' . $commande->id . '</div><br>';
        print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
        print '<tr><td width="20%">Date</td><td width="80%" colspan="2">' . $commande->date . '</td></tr>';
        print '<td width="20%">Client</td><td width="80%" colspan="2"><a href="' . DOL_URL_ROOT . '/boutique/client/fiche.php?id=' . $commande->client_id . '">' . $commande->client_name . '</a></td></tr>';
        print '<td width="20%">Paiement</td><td width="80%" colspan="2">' . $commande->payment_method . '</td></tr>';
        print "<tr><td>" . $langs->trans("Address") . "</td><td>" . $langs->trans("Delivery") . "</td><td>" . $langs->trans("Invoice") . "</td></tr>";
        print "<td>&nbsp;</td><td>" . $commande->delivery_adr->name . "<br>" . $commande->delivery_adr->street . "<br>" . $commande->delivery_adr->cp . "<br>" . $commande->delivery_adr->city . "<br>" . $commande->delivery_adr->country . "</td>";
        print "<td>" . $commande->billing_adr->name . "<br>" . $commande->billing_adr->street . "<br>" . $commande->billing_adr->cp . "<br>" . $commande->billing_adr->city . "<br>" . $commande->billing_adr->country . "</td>";
        print "</tr>";
        print "</table>";
        print "<br>";
        /*
         * Produits
예제 #2
0
/**
 *  \file       htdocs/boutique/commande/fiche.php
 *  \ingroup    boutique
 *  \brief      Page fiche commande OSCommerce
 */
require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT . '/boutique/osc_master.inc.php';
include_once DOL_DOCUMENT_ROOT . '/boutique/commande/class/boutiquecommande.class.php';
$langs->load("products");
$id = GETPOST('id', 'int');
/*
 *	View
 */
llxHeader();
if ($id > 0) {
    $commande = new BoutiqueCommande($db);
    $result = $commande->fetch($id);
    if ($result) {
        print '<div class="titre">' . $langs->trans("OrderCard") . ': ' . $commande->id . '</div><br>';
        print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
        print '<tr><td width="20%">Date</td><td width="80%" colspan="2">' . $commande->date . '</td></tr>';
        print '<td width="20%">Client</td><td width="80%" colspan="2"><a href="' . DOL_URL_ROOT . '/boutique/client/fiche.php?id=' . $commande->client_id . '">' . $commande->client_name . '</a></td></tr>';
        print '<td width="20%">Paiement</td><td width="80%" colspan="2">' . $commande->payment_method . '</td></tr>';
        print "<tr><td>" . $langs->trans("Address") . "</td><td>" . $langs->trans("Delivery") . "</td><td>" . $langs->trans("Invoice") . "</td></tr>";
        print "<td>&nbsp;</td><td>" . $commande->delivery_adr->name . "<br>" . $commande->delivery_adr->street . "<br>" . $commande->delivery_adr->zip . "<br>" . $commande->delivery_adr->city . "<br>" . $commande->delivery_adr->country . "</td>";
        print "<td>" . $commande->billing_adr->name . "<br>" . $commande->billing_adr->street . "<br>" . $commande->billing_adr->zip . "<br>" . $commande->billing_adr->city . "<br>" . $commande->billing_adr->country . "</td>";
        print "</tr>";
        print "</table>";
        print "<br>";
        /*
         * Produits