コード例 #1
0
 public function action(Request $request)
 {
     switch ($request->get("action")) {
         case "editVenteadr":
             OrderAdmin::getInstanceByRef($request->request->get("ref"))->editVenteAdr($request->request->get("id"), $request->request->get("raison"), $request->request->get("entreprise"), $request->request->get("nom"), $request->request->get("prenom"), $request->request->get("adresse1"), $request->request->get("adresse2"), $request->request->get("adresse3"), $request->request->get("cpostal"), $request->request->get("ville"), $request->request->get("tel"), $request->request->get("pays"));
             break;
         case "createOrder":
             OrderAdmin::getInstance()->createOrder($request->request->get("facturation_raison"), $request->request->get("facturation_entreprise"), $request->request->get("facturation_nom"), $request->request->get("facturation_prenom"), $request->request->get("facturation_adresse1"), $request->request->get("facturation_adresse2"), $request->request->get("facturation_adresse3"), $request->request->get("facturation_cpostal"), $request->request->get("facturation_ville"), $request->request->get("facturation_tel"), $request->request->get("facturation_pays"), $request->request->get("livraison_raison"), $request->request->get("livraison_entreprise"), $request->request->get("livraison_nom"), $request->request->get("livraison_prenom"), $request->request->get("livraison_adresse1"), $request->request->get("livraison_adresse2"), $request->request->get("livraison_adresse3"), $request->request->get("livraison_cpostal"), $request->request->get("livraison_ville"), $request->request->get("livraison_tel"), $request->request->get("livraison_pays"), $request->request->get("type_paiement"), $request->request->get("type_transport"), $request->request->get("fraisport"), $request->request->get("remise"), $request->request->get("client_selected"), $request->request->get("ref_client"), $request->request->get("email"), $this->getPanier($request), $request->request->get("apply_client_discount") == 'on', $request->request->get("call_mail") == 'on', $request->request->get("call_payment") == 'on');
             break;
     }
 }
コード例 #2
0
                                <td><strong><?php 
echo trad('Type_transport', 'admin');
?>
*</strong></td>
                                <td>
                                    
                                    <select class="span12" name="type_transport" class="<?php 
if ($createError && empty($type_transport)) {
    ?>
error<?php 
}
?>
">
                                    
<?php 
foreach (OrderAdmin::getInstance()->getDeliveryTypesList() as $deliveryType) {
    ?>
                                        <option value="<?php 
    echo $deliveryType->id;
    ?>
">
                                            <?php 
    echo $deliveryType->nom;
    ?>
                                        </option>
<?php 
}
?>
                                    </select>
                                    
                                </td>
コード例 #3
0
<?php

// If subsites is installed
if (class_exists('Users_Account_Controller')) {
    Users_Account_Controller::add_extension('OrdersUserAccountControllerExtension');
    Member::add_extension('OrdersMemberExtension');
}
// If subsites is installed
if (class_exists('Subsite')) {
    Order::add_extension('SubsitesOrdersExtension');
    OrderAdmin::add_extension('SubsiteMenuExtension');
}
// If subsites is installed
if (class_exists('SiteConfig')) {
    SiteConfig::add_extension('OrdersSiteConfigExtension');
}
コード例 #4
0
ファイル: commande.php プロジェクト: anti-conformiste/thelia1
echo trad('Montant', 'admin');
?>
</th>
                        <th><?php 
echo trad('Statut', 'admin');
?>
</th>
                        <th><?php 
echo trad('Annuler', 'admin');
?>
</th>
                    </tr>
                </thead>
                <tbody>
                    <?php 
foreach (OrderAdmin::getInstance()->getList($critere, $order, $pagination->getStarted(), $pagination->getViewPerPage(), $search) as $commande) {
    ?>
                    <tr>
                        <td><a href="commande_details.php?ref=<?php 
    echo $commande['ref'];
    ?>
"><?php 
    echo $commande['ref'];
    ?>
</a></td>
                        <td><?php 
    echo $commande['date'];
    ?>
</td>
                        <td><?php 
    echo $commande['client']['entreprise'];
コード例 #5
0
 public static function getInstanceByRef($ref = '')
 {
     $orderAdmin = new OrderAdmin();
     $orderAdmin->charger_ref($ref);
     return $orderAdmin;
 }
コード例 #6
0
                    </tr>
<?php 
    }
    ?>
            </tbody>   
        </table>
        </div>
<?php 
}
?>
    </div>
</div>

<!--COMMANDES-->
<?php 
$orderResult = OrderAdmin::getInstance()->getSearchList($request->query->get('motcle'), $clientFoundIdList);
?>
<div class="row-fluid">
    <div class="span12">
        <h3><?php 
echo strtoupper(trad(count($orderResult) > 0 ? 'RESULTATS_COMMANDE' : 'AUCUN_RESULTATS_COMMANDES', 'admin'));
?>
</h3>
    </div>
</div>
<div class="row-fluid">
    <div class="span12">
<?php 
if (count($orderResult) > 0) {
    ?>
        <div class="bigtable">