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


PHP CommandeFournisseur::getNomUrl方法代码示例

本文整理汇总了PHP中CommandeFournisseur::getNomUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP CommandeFournisseur::getNomUrl方法的具体用法?PHP CommandeFournisseur::getNomUrl怎么用?PHP CommandeFournisseur::getNomUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CommandeFournisseur的用法示例。


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

示例1: User

 $userstatic = new User($db);
 $objectstatic = new CommandeFournisseur($db);
 $projectstatic = new Project($db);
 while ($i < min($num, $conf->liste_limit)) {
     $obj = $db->fetch_object($resql);
     $var = !$var;
     $objectstatic->id = $obj->rowid;
     $objectstatic->ref = $obj->ref;
     $objectstatic->ref_supplier = $obj->ref_supplier;
     $objectstatic->total_ht = $obj->total_ht;
     $objectstatic->total_tva = $obj->total_tva;
     $objectstatic->total_ttc = $obj->total_ttc;
     print "<tr " . $bc[$var] . ">";
     // Ref
     print '<td class="nobordernopadding nowrap">';
     print $objectstatic->getNomUrl(1);
     $filename = dol_sanitizeFileName($obj->ref);
     $filedir = $conf->fournisseur->dir_output . '/commande' . '/' . dol_sanitizeFileName($obj->ref);
     print $formfile->getDocumentsLink($objectstatic->element, $filename, $filedir);
     print '</td>' . "\n";
     // Ref Supplier
     if (empty($conf->global->SUPPLIER_ORDER_HIDE_REF_SUPPLIER)) {
         print '<td>' . $obj->ref_supplier . '</td>' . "\n";
     }
     // Thirdparty
     print '<td>';
     $thirdpartytmp->id = $obj->socid;
     $thirdpartytmp->name = $obj->name;
     print $thirdpartytmp->getNomUrl(1, 'supplier');
     print '</td>' . "\n";
     // Project
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:list.php

示例2: while

 print '<tr class="liste_titre">';
 print '<td colspan="4">' . $langs->trans("LastModifiedOrders", $max) . '</td></tr>';
 $num = $db->num_rows($resql);
 if ($num) {
     $i = 0;
     $var = True;
     while ($i < $num) {
         $var = !$var;
         $obj = $db->fetch_object($resql);
         print "<tr " . $bc[$var] . ">";
         print '<td width="20%" class="nowrap">';
         $commandestatic->id = $obj->rowid;
         $commandestatic->ref = $obj->ref;
         print '<table class="nobordernopadding"><tr class="nocellnopadd">';
         print '<td width="96" class="nobordernopadding nowrap">';
         print $commandestatic->getNomUrl(1);
         print '</td>';
         print '<td width="16" class="nobordernopadding nowrap">';
         print '&nbsp;';
         print '</td>';
         print '<td width="16" align="right" class="nobordernopadding hideonsmartphone">';
         $filename = dol_sanitizeFileName($obj->ref);
         $filedir = $conf->commande->dir_output . '/' . dol_sanitizeFileName($obj->ref);
         $urlsource = $_SERVER['PHP_SELF'] . '?id=' . $obj->rowid;
         print $formfile->getDocumentsLink($commandestatic->element, $filename, $filedir);
         print '</td></tr></table>';
         print '</td>';
         print '<td><a href="' . DOL_URL_ROOT . '/fourn/card.php?socid=' . $obj->socid . '">' . img_object($langs->trans("ShowCompany"), "company") . ' ' . $obj->name . '</a></td>';
         print '<td>' . dol_print_date($db->jdate($obj->tms), 'day') . '</td>';
         print '<td align="right">' . $commandestatic->LibStatut($obj->fk_statut, 5) . '</td>';
         print '</tr>';
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:index.php

示例3: while

 if ($resql) {
     $total = 0;
     $num = $db->num_rows($resql);
     if ($num) {
         print '<table class="noborder" width="100%">';
         print '<tr class="liste_titre">';
         print '<td colspan="3">' . $langs->trans("DraftOrders") . ' <span class="badge">' . $num . '</span></td></tr>';
         $i = 0;
         $var = true;
         while ($i < $num) {
             $var = !$var;
             $obj = $db->fetch_object($resql);
             print '<tr ' . $bc[$var] . '><td  class="nowrap">';
             $commandestatic->id = $obj->rowid;
             $commandestatic->ref = $obj->ref;
             print $commandestatic->getNomUrl(1, '', 16);
             print '</td>';
             print '<td  class="nowrap">';
             $companystatic->id = $obj->socid;
             $companystatic->name = $obj->name;
             $companystatic->client = 0;
             print $companystatic->getNomUrl(1, '', 16);
             print '</td>';
             print '<td align="right" class="nowrap">' . price($obj->total_ttc) . '</td></tr>';
             $i++;
             $total += $obj->total_ttc;
         }
         if ($total > 0) {
             $var = !$var;
             print '<tr class="liste_total"><td>' . $langs->trans("Total") . '</td><td colspan="2" align="right">' . price($total) . "</td></tr>";
         }
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:index.php

示例4: CommandeFournisseur

     print_liste_field_titre($langs->trans("OrderDate"), $_SERVER["PHP_SELF"], "c.date_commande", "", "&amp;id=" . $product->id, 'align="center"', $sortfield, $sortorder);
     print_liste_field_titre($langs->trans("Qty"), $_SERVER["PHP_SELF"], "d.qty", "", "&amp;id=" . $product->id, 'align="center"', $sortfield, $sortorder);
     print_liste_field_titre($langs->trans("AmountHT"), $_SERVER["PHP_SELF"], "c.total_ht", "", "&amp;id=" . $product->id, 'align="right"', $sortfield, $sortorder);
     print_liste_field_titre($langs->trans("Status"), $_SERVER["PHP_SELF"], "c.fk_statut", "", "&amp;id=" . $product->id, 'align="right"', $sortfield, $sortorder);
     print "</tr>\n";
     $commandestatic = new CommandeFournisseur($db);
     if ($num > 0) {
         $var = True;
         while ($i < $num && $i < $conf->liste_limit) {
             $objp = $db->fetch_object($result);
             $var = !$var;
             $commandestatic->id = $objp->commandeid;
             $commandestatic->ref = $objp->ref;
             $commandestatic->statut = $objp->statut;
             print "<tr " . $bc[$var] . ">";
             print '<td>' . $commandestatic->getNomUrl(1) . "</td>\n";
             print "</a></td>\n";
             print '<td><a href="' . DOL_URL_ROOT . '/fourn/card.php?socid=' . $objp->socid . '">' . img_object($langs->trans("ShowCompany"), "company") . ' ' . dol_trunc($objp->name, 44) . '</a></td>';
             print "<td>" . $objp->code_client . "</td>\n";
             print '<td align="center">' . dol_print_date($db->jdate($objp->date_commande)) . "</td>";
             print "<td align=\"center\">" . $objp->qty . "</td>\n";
             print '<td align="right">' . price($objp->total_ht) . "</td>\n";
             print '<td align="right">' . $commandestatic->getLibStatut(4) . '</td>';
             print "</tr>\n";
             $i++;
         }
     }
 } else {
     dol_print_error($db);
 }
 print "</table>";
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:commande_fournisseur.php

示例5: while

 print '<tr class="liste_titre">';
 print '<td colspan="3">' . $langs->trans("DraftSuppliersOrders") . ($num ? ' <span class="badge">' . $num . '</span>' : '') . '</td></tr>';
 if ($num) {
     $i = 0;
     $var = true;
     while ($i < $num) {
         $var = !$var;
         $obj = $db->fetch_object($resql);
         print '<tr ' . $bc[$var] . '><td class="nowrap">';
         $supplierorderstatic->id = $obj->rowid;
         $supplierorderstatic->ref = $obj->ref;
         $supplierorderstatic->ref_supplier = $obj->ref_suppliert;
         $supplierorderstatic->total_ht = $obj->total_ht;
         $supplierorderstatic->total_tva = $obj->total_tva;
         $supplierorderstatic->total_ttc = $obj->total_ttc;
         print $supplierorderstatic->getNomUrl(1);
         print '</td>';
         print '<td class="nowrap">';
         $companystatic->id = $obj->socid;
         $companystatic->name = $obj->name;
         $companystatic->client = $obj->client;
         $companystatic->code_client = $obj->code_client;
         $companystatic->code_fournisseur = $obj->code_fournisseur;
         $companystatic->canvas = $obj->canvas;
         print $companystatic->getNomUrl(1, 'customer', 16);
         print '</td>';
         print '<td align="right" class="nowrap">' . price($obj->total_ttc) . '</td></tr>';
         $i++;
         $total += $obj->total_ttc;
     }
     if ($total > 0) {
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:31,代码来源:index.php

示例6: while

     print '<td width="20px" align="right"><a href="' . DOL_URL_ROOT . '/commande/stats/index.php?mode=supplier&socid=' . $object->id . '">' . img_picto($langs->trans("Statistics"), 'stats') . '</a></td>';
     print '</tr></table>';
     print '</td></tr>';
 }
 $var = True;
 while ($i < $num && $i <= $MAXLIST) {
     $obj = $db->fetch_object($resql);
     $var = !$var;
     print "<tr " . $bc[$var] . ">";
     print '<td class="nowrap">';
     $orderstatic->id = $obj->rowid;
     $orderstatic->ref = $obj->ref;
     $orderstatic->total_ht = $obj->total_ht;
     $orderstatic->total_tva = $obj->total_tva;
     $orderstatic->total_ttc = $obj->total_ttc;
     print $orderstatic->getNomUrl(1);
     print '</td>';
     print '<td align="center" width="80">';
     if ($obj->dc) {
         print dol_print_date($db->jdate($obj->dc), 'day');
     } else {
         print "-";
     }
     print '</td>';
     print '<td align="right" class="nowrap">' . $orderstatic->LibStatut($obj->fk_statut, 5) . '</td>';
     print '</tr>';
     $i++;
 }
 $db->free($resql);
 if ($num > 0) {
     print "</table>";
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:31,代码来源:card.php

示例7: CommandeFournisseur

 }
 print '</td>';
 print '</td></tr>';
 print '<form name="orders2invoice" action="orderstoinvoice.php" method="GET">';
 $var = True;
 $generic_commande = new CommandeFournisseur($db);
 while ($i < $num) {
     $objp = $db->fetch_object($resql);
     $var = !$var;
     print '<tr ' . $bc[$var] . '>';
     print '<td class="nowrap">';
     $generic_commande->id = $objp->rowid;
     $generic_commande->ref = $objp->ref;
     print '<table class="nobordernopadding"><tr class="nocellnopadd">';
     print '<td class="nobordernopadding nowrap">';
     print $generic_commande->getNomUrl(1, $objp->fk_statut);
     print '</td>';
     print '<td width="16" align="right" class="nobordernopadding hideonsmartphone">';
     $filename = dol_sanitizeFileName($objp->ref);
     $filedir = $conf->fournisseur->commande->dir_output . '/' . dol_sanitizeFileName($objp->ref);
     $urlsource = $_SERVER['PHP_SELF'] . '?id=' . $objp->rowid;
     print $formfile->getDocumentsLink($generic_commande->element, $filename, $filedir);
     print '</td></tr></table>';
     print '</td>';
     print '<td>' . $objp->ref_supplier . '</td>';
     // Order date
     print '<td align="center" nowrap>';
     print dol_print_date($db->jdate($objp->date_commande), 'day');
     print '</td>';
     // Delivery date
     print '<td align="center" nowrap>';
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:31,代码来源:orderstoinvoice.php

示例8: while

print '<input type="image" class="liste_titre" name="button_search" src="' . img_picto($langs->trans("Search"), 'search.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '">';
print '<input type="image" class="liste_titre" name="button_removefilter" src="' . img_picto($langs->trans("Search"), 'searchclear.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("resetFilters")) . '" title="' . dol_escape_htmltag($langs->trans("resetFilters")) . '">';
print '</td>';
print '</tr>';
if ($sql_select) {
    $var = true;
    $num = $db->num_rows($resql);
    $i = 0;
    while (($objp = $db->fetch_object($resql)) && $i < $conf->liste_limit) {
        $var = !$var;
        print "<tr " . $bc[$var] . ">";
        print '<td class="nobordernopadding nowrap" width="100">';
        $documentstatic->id = $objp->doc_id;
        $documentstatic->ref = $objp->doc_number;
        $documentstatic->type = $objp->type;
        print $documentstatic->getNomUrl(1);
        print '</td>';
        print '<td align="center" width="80">' . dol_print_date($db->jdate($objp->dateprint), 'day') . '</td>';
        print '<td>';
        // Define text, description and type
        $text = '';
        $description = '';
        $type = 0;
        // Code to show product duplicated from commonobject->printObjectLine
        if ($objp->fk_product > 0) {
            $product_static = new Product($db);
            $product_static->type = $objp->fk_product_type;
            $product_static->id = $objp->fk_product;
            $product_static->ref = $objp->ref;
            $text = $product_static->getNomUrl(1);
        }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:consumption.php

示例9: _fiche

function _fiche(&$PDOdb, &$assetOf, $mode = 'edit', $fk_product_to_add = 0, $fk_nomenclature = 0)
{
    global $langs, $db, $conf, $user, $hookmanager;
    /***************************************************
     * PAGE
     *
     * Put here all code to build page
     ****************************************************/
    $parameters = array('id' => $assetOf->getId());
    $reshook = $hookmanager->executeHooks('doActions', $parameters, $assetOf, $mode);
    // Note that $action and $object may have been modified by hook
    //pre($assetOf,true);
    llxHeader('', $langs->trans('OFAsset'), '', '');
    print dol_get_fiche_head(ofPrepareHead($assetOf, 'assetOF'), 'fiche', $langs->trans('OFAsset'));
    ?>
<style type="text/css">
		#assetChildContener .OFMaster {
			
			background:#fff;
			-webkit-box-shadow: 4px 4px 5px 0px rgba(50, 50, 50, 0.52);
			-moz-box-shadow:    4px 4px 5px 0px rgba(50, 50, 50, 0.52);
			box-shadow:         4px 4px 5px 0px rgba(50, 50, 50, 0.52);
			
			margin-bottom:20px;
		}
		
	</style>
		<div class="OFContent" rel="<?php 
    echo $assetOf->getId();
    ?>
">	<?php 
    $TPrixFournisseurs = array();
    //$form=new TFormCore($_SERVER['PHP_SELF'],'formeq'.$assetOf->getId(),'POST');
    //Affichage des erreurs
    if (!empty($assetOf->errors)) {
        ?>
		<br><div class="error">
		<?php 
        foreach ($assetOf->errors as $error) {
            echo $error . "<br>";
            setEventMessage($error, 'errors');
        }
        $assetOf->errors = array();
        ?>
		</div><br>
		<?php 
    }
    $form = new TFormCore();
    $form->Set_typeaff($mode);
    $doliform = new Form($db);
    if (!empty($_REQUEST['fk_product'])) {
        echo $form->hidden('fk_product', $_REQUEST['fk_product']);
    }
    $TBS = new TTemplateTBS();
    $liste = new TListviewTBS('asset');
    $TBS->TBS->protect = false;
    $TBS->TBS->noerr = true;
    $PDOdb = new TPDOdb();
    $TNeeded = array();
    $TToMake = array();
    $TNeeded = _fiche_ligne($form, $assetOf, "NEEDED");
    $TToMake = _fiche_ligne($form, $assetOf, "TO_MAKE");
    $TIdCommandeFourn = $assetOf->getElementElement($PDOdb);
    $HtmlCmdFourn = '';
    if (count($TIdCommandeFourn)) {
        foreach ($TIdCommandeFourn as $idcommandeFourn) {
            $cmd = new CommandeFournisseur($db);
            $cmd->fetch($idcommandeFourn);
            $HtmlCmdFourn .= $cmd->getNomUrl(1) . " - " . $cmd->getLibStatut(0);
        }
    }
    ob_start();
    $doliform->select_produits('', 'fk_product', '', $conf->product->limit_size, 0, -1, 2, '', 3, array());
    $select_product = ob_get_clean();
    $Tid = array();
    //$Tid[] = $assetOf->rowid;
    if ($assetOf->getId() > 0) {
        $assetOf->getListeOFEnfants($PDOdb, $Tid);
    }
    $TWorkstation = array();
    foreach ($assetOf->TAssetWorkstationOF as $k => &$TAssetWorkstationOF) {
        $ws =& $TAssetWorkstationOF->ws;
        $TWorkstation[] = array('libelle' => '<a href="' . dol_buildpath('workstation/workstation.php?id=' . $ws->rowid . '&action=view', 2) . '">' . $ws->name . '</a>', 'fk_user' => visu_checkbox_user($PDOdb, $form, $ws->fk_usergroup, $TAssetWorkstationOF->users, 'TAssetWorkstationOF[' . $k . '][fk_user][]', $assetOf->status), 'fk_project_task' => visu_project_task($db, $TAssetWorkstationOF->fk_project_task, $form->type_aff, 'TAssetWorkstationOF[' . $k . '][progress]'), 'fk_task' => visu_checkbox_task($PDOdb, $form, $TAssetWorkstationOF->fk_asset_workstation, $TAssetWorkstationOF->tasks, 'TAssetWorkstationOF[' . $k . '][fk_task][]', $assetOf->status), 'nb_hour' => $assetOf->status == 'DRAFT' && $mode == "edit" ? $form->texte('', 'TAssetWorkstationOF[' . $k . '][nb_hour]', $TAssetWorkstationOF->nb_hour, 3, 10) : ($conf->global->ASSET_USE_CONVERT_TO_TIME ? convertSecondToTime($TAssetWorkstationOF->nb_hour * 3600) : price($TAssetWorkstationOF->nb_hour)), 'nb_hour_real' => $assetOf->status == 'OPEN' && $mode == "edit" ? $form->texte('', 'TAssetWorkstationOF[' . $k . '][nb_hour_real]', $TAssetWorkstationOF->nb_hour_real, 3, 10) : ($conf->global->ASSET_USE_CONVERT_TO_TIME ? convertSecondToTime($TAssetWorkstationOF->nb_hour_real * 3600) : price($TAssetWorkstationOF->nb_hour_real)), 'nb_days_before_beginning' => $assetOf->status == 'DRAFT' && $mode == "edit" ? $form->texte('', 'TAssetWorkstationOF[' . $k . '][nb_days_before_beginning]', $TAssetWorkstationOF->nb_days_before_beginning, 3, 10) : $TAssetWorkstationOF->nb_days_before_beginning, 'delete' => $mode == 'edit' && $assetOf->status == 'DRAFT' ? '<a href="javascript:deleteWS(' . $assetOf->getId() . ',' . $TAssetWorkstationOF->getId() . ');">' . img_picto('Supprimer', 'delete.png') . '</a>' : '', 'note_private' => $assetOf->status == 'DRAFT' && $mode == 'edit' ? $form->zonetexte('', 'TAssetWorkstationOF[' . $k . '][note_private]', $TAssetWorkstationOF->note_private, 50, 1) : $TAssetWorkstationOF->note_private, 'rang' => $assetOf->status == 'DRAFT' && $mode == "edit" ? $form->texte('', 'TAssetWorkstationOF[' . $k . '][rang]', $TAssetWorkstationOF->rang, 3, 10) : $TAssetWorkstationOF->rang, 'id' => $ws->getId());
    }
    $client = new Societe($db);
    if ($assetOf->fk_soc > 0) {
        $client->fetch($assetOf->fk_soc);
    }
    $commande = new Commande($db);
    if ($assetOf->fk_commande > 0) {
        $commande->fetch($assetOf->fk_commande);
    }
    $TOFParent = array_merge(array(0 => ''), $assetOf->getCanBeParent($PDOdb));
    $hasParent = false;
    if (!empty($assetOf->fk_assetOf_parent)) {
        $TAssetOFParent = new TAssetOF();
        $TAssetOFParent->load($PDOdb, $assetOf->fk_assetOf_parent);
        $hasParent = true;
    }
    $parameters = array('id' => $assetOf->getId());
//.........这里部分代码省略.........
开发者ID:ATM-Consulting,项目名称:dolibarr_module_of,代码行数:101,代码来源:fiche_of.php


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