当前位置: 首页>>代码示例>>PHP>>正文


PHP ordersupplier_prepare_head函数代码示例

本文整理汇总了PHP中ordersupplier_prepare_head函数的典型用法代码示例。如果您正苦于以下问题:PHP ordersupplier_prepare_head函数的具体用法?PHP ordersupplier_prepare_head怎么用?PHP ordersupplier_prepare_head使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ordersupplier_prepare_head函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Societe

$id = $_GET['id'];
$ref= $_GET['ref'];
if ($id > 0 || ! empty($ref))
{
	llxHeader();

	$upload_dir = $conf->fournisseur->dir_output.'/commande/'.dol_sanitizeFileName($commande->ref);

	$soc = new Societe($db);
	$soc->fetch($commande->socid);

	$author = new User($db);
	$author->fetch($commande->user_author_id);

	$head = ordersupplier_prepare_head($commande);

	dol_fiche_head($head, 'documents', $langs->trans('SupplierOrder'), 0, 'order');


	// Construit liste des fichiers
	$filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1);
	$totalsize=0;
	foreach($filearray as $key => $file)
	{
		$totalsize+=$file['size'];
	}


	print '<table class="border"width="100%">';
开发者ID:remyyounes,项目名称:dolibarr,代码行数:29,代码来源:document.php

示例2: dol_include_once

dol_include_once('/labelprint/class/utils.class.php');
$html = new Form($db);
$form = new Form($db);
$formcompany = new FormCompany($db);
$contactstatic = new Contact($db);
$userstatic = new User($db);
/* *************************************************************************** */
/*                                                                             */
/* Mode vue et edition                                                         */
/*                                                                             */
/* *************************************************************************** */
if ($id > 0) {
    $facture = new CommandeFournisseur($db);
    if ($facture->fetch($id, $user->societe_id) > 0) {
        $facture->fetch_thirdparty();
        $head = ordersupplier_prepare_head($facture);
        // Confirmation to delete invoice
        if ($action == 'truncate') {
            $text = $langs->trans('ConfirmTruncateList');
            $formconfirm = $html->formconfirm($_SERVER['PHP_SELF'] . '?id=' . $id, $langs->trans('TruncateList'), $text, 'confirm_truncate', '', 0, 1);
        }
        print $formconfirm;
        dol_fiche_head($head, 'labelprint', $langs->trans("SupplierOrder"), 0, 'order');
        /*
         *   Facture synthese pour rappel
         */
        print '<table class="border" width="100%">';
        // Reference du facture
        print '<tr><td width="20%">' . $langs->trans("Ref") . '</td><td colspan="3">';
        print $facture->ref;
        //print $html->showrefnav($facture,'ref','',1,'rowid','ref',$morehtmlref);
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:order_supplier.php

示例3: elseif

    if (empty($reshook) && !empty($extrafields->attribute_label)) {
        print $object->showOptionals($extrafields, 'edit');
    }
    // Bouton "Create Draft"
    print "</table>\n";
    print '<br><center><input type="submit" class="button" name="bouton" value="' . $langs->trans('CreateDraft') . '"></center>';
    print "</form>\n";
} elseif (!empty($object->id)) {
    $author = new User($db);
    $author->fetch($object->user_author_id);
    $societe = new Fournisseur($db);
    $result = $societe->fetch($object->socid);
    if ($result < 0) {
        dol_print_error($db);
    }
    $head = ordersupplier_prepare_head($object);
    $title = $langs->trans("SupplierOrder");
    dol_fiche_head($head, 'card', $title, 0, 'order');
    $res = $object->fetch_optionals($object->id, $extralabels);
    /*
     * Confirmation de la suppression de la commande
     */
    if ($action == 'delete') {
        print $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('DeleteOrder'), $langs->trans('ConfirmDeleteOrder'), 'confirm_delete', '', 0, 2);
    }
    // Clone confirmation
    if ($action == 'clone') {
        // Create an array for form
        $formquestion = array();
        // Paiement incomplet. On demande si motif = escompte ou autre
        print $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('CloneOrder'), $langs->trans('ConfirmCloneOrder', $object->ref), 'confirm_clone', $formquestion, 'yes', 1);
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:fiche.php

示例4: fiche

function fiche(&$commande, &$TImport)
{
    global $langs, $db, $conf;
    llxHeader();
    $head = ordersupplier_prepare_head($commande);
    $title = $langs->trans("SupplierOrder");
    dol_fiche_head($head, 'recepasset', $title, 0, 'order');
    entetecmd($commande);
    $form = new TFormCore('auto', 'formrecept', 'post', true);
    echo $form->hidden('action', 'SAVE');
    echo $form->hidden('id', $commande->id);
    if ($commande->statut < 5 && $conf->global->DISPATCH_USE_IMPORT_FILE) {
        echo $form->fichier('Fichier à importer', 'file1', '', 80);
        echo $form->btsubmit('Envoyer', 'btsend');
    }
    tabImport($TImport, $commande);
    $form->end();
    _list_already_dispatched($commande);
    llxFooter();
}
开发者ID:ATM-Consulting,项目名称:dolibarr_module_dispatch,代码行数:20,代码来源:reception.php


注:本文中的ordersupplier_prepare_head函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。