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


PHP print_date_range函数代码示例

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


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

示例1: dol_trunc

     $product_static->id = $fields['pid'];
     $product_static->ref = $fields['pref'];
     $product_static->type = $fields['ptype'];
     print $product_static->getNomUrl(1);
     if (dol_string_nohtmltag($fields['descr'])) {
         print ' - ' . dol_trunc(dol_string_nohtmltag($fields['descr']), 16);
     }
 } else {
     if ($type) {
         $text = img_object($langs->trans('Service'), 'service');
     } else {
         $text = img_object($langs->trans('Product'), 'product');
     }
     print $text . ' ' . dol_trunc(dol_string_nohtmltag($fields['descr']), 16);
     // Show range
     print_date_range($fields['ddate_start'], $fields['ddate_end']);
 }
 print '</td>';
 // Total HT
 if ($modetax == 0) {
     print '<td class="nowrap" align="right">';
     print price($fields['totalht']);
     if (price2num($fields['ftotal_ttc'])) {
         //print $fields['dtotal_ttc']."/".$fields['ftotal_ttc']." - ";
         $ratiolineinvoice = $fields['dtotal_ttc'] / $fields['ftotal_ttc'];
         //print ' ('.round($ratiolineinvoice*100,2).'%)';
     }
     print '</td>';
 }
 // Payment
 $ratiopaymentinvoice = 1;
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:quadri_detail.php

示例2: img_object

					$description=($conf->global->PRODUIT_DESC_IN_FORM?'':dol_htmlentitiesbr($delivery->lines[$i]->description));
					//print $description;
					print $html->textwithtooltip($text,$description,3,'','',$i);
					print_date_range($delivery->lines[$i]->date_start,$delivery->lines[$i]->date_end);
					if ($conf->global->PRODUIT_DESC_IN_FORM)
					{
						print ($delivery->lines[$i]->description && $delivery->lines[$i]->description!=$delivery->lines[$i]->label)?'<br>'.dol_htmlentitiesbr($delivery->lines[$i]->description):'';
					}
				}
				else
				{
					print "<td>";
					if ($delivery->lines[$i]->fk_product_type==1) $text = img_object($langs->trans('Service'),'service');
					else $text = img_object($langs->trans('Product'),'product');
					print $text.' '.nl2br($delivery->lines[$i]->description);
					print_date_range($objp->date_start,$objp->date_end);
					print "</td>\n";
				}

				print '<td align="center">'.$delivery->lines[$i]->qty_asked.'</td>';
				print '<td align="center">'.$delivery->lines[$i]->qty_shipped.'</td>';

				print "</tr>";

				$i++;
			}

			print "</table>\n";

			print "\n</div>\n";
开发者ID:remyyounes,项目名称:dolibarr,代码行数:30,代码来源:fiche.php

示例3: show_list_sending_receive


//.........这里部分代码省略.........
                    if (!empty($conf->global->MAIN_MULTILANGS) && !empty($conf->global->PRODUIT_TEXTS_IN_THIRDPARTY_LANGUAGE)) {
                        $object = new $origin($db);
                        $object->fetch($origin_id);
                        $object->fetch_thirdparty();
                        $prod = new Product($db);
                        $prod->id = $objp->fk_product;
                        $prod->getMultiLangs();
                        $outputlangs = $langs;
                        $newlang = '';
                        if (empty($newlang) && !empty($_REQUEST['lang_id'])) {
                            $newlang = $_REQUEST['lang_id'];
                        }
                        if (empty($newlang)) {
                            $newlang = $object->client->default_lang;
                        }
                        if (!empty($newlang)) {
                            $outputlangs = new Translate("", $conf);
                            $outputlangs->setDefaultLang($newlang);
                        }
                        $label = !empty($prod->multilangs[$outputlangs->defaultlang]["label"]) ? $prod->multilangs[$outputlangs->defaultlang]["label"] : $objp->product_label;
                    } else {
                        $label = !empty($objp->label) ? $objp->label : $objp->product_label;
                    }
                    print '<td>';
                    // Show product and description
                    $product_static->type = $objp->fk_product_type;
                    $product_static->id = $objp->fk_product;
                    $product_static->ref = $objp->ref;
                    $text = $product_static->getNomUrl(1);
                    $text .= ' - ' . $label;
                    $description = !empty($conf->global->PRODUIT_DESC_IN_FORM) ? '' : dol_htmlentitiesbr($objp->description);
                    print $form->textwithtooltip($text, $description, 3, '', '', $i);
                    // Show range
                    print_date_range($objp->date_start, $objp->date_end);
                    // Add description in form
                    if (!empty($conf->global->PRODUIT_DESC_IN_FORM)) {
                        print !empty($objp->description) && $objp->description != $objp->product ? '<br>' . dol_htmlentitiesbr($objp->description) : '';
                    }
                    print '</td>';
                } else {
                    print "<td>";
                    if ($objp->fk_product_type == 1) {
                        $text = img_object($langs->trans('Service'), 'service');
                    } else {
                        $text = img_object($langs->trans('Product'), 'product');
                    }
                    if (!empty($objp->label)) {
                        $text .= ' <strong>' . $objp->label . '</strong>';
                        print $form->textwithtooltip($text, $objp->description, 3, '', '', $i);
                    } else {
                        print $text . ' ' . nl2br($objp->description);
                    }
                    // Show range
                    print_date_range($objp->date_start, $objp->date_end);
                    print "</td>\n";
                }
                //print '<td align="center">'.$objp->qty_asked.'</td>';
                // Date creation
                print '<td align="center" class="nowrap">' . dol_print_date($db->jdate($objp->date_creation), 'day') . '</td>';
                // Date shipping creation
                print '<td align="center" class="nowrap">' . dol_print_date($db->jdate($objp->date_delivery), 'day') . '</td>';
                // Qty shipped
                print '<td align="center">' . $objp->qty_shipped . '</td>';
                // Informations on receipt
                if (!empty($conf->livraison_bon->enabled)) {
                    include_once DOL_DOCUMENT_ROOT . '/livraison/class/livraison.class.php';
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:67,代码来源:sendings.lib.php

示例4: img_object

     }
     print "</td>\n";
 } else {
     print "<td>";
     if ($lines[$i]->fk_product_type == 1) {
         $text = img_object($langs->trans('Service'), 'service');
     } else {
         $text = img_object($langs->trans('Product'), 'product');
     }
     if (!empty($lines[$i]->label)) {
         $text .= ' <strong>' . $lines[$i]->label . '</strong>';
         print $form->textwithtooltip($text, $lines[$i]->description, 3, '', '', $i);
     } else {
         print $text . ' ' . nl2br($lines[$i]->description);
     }
     print_date_range($lines[$i]->date_start, $lines[$i]->date_end);
     print "</td>\n";
 }
 // Qte commande
 print '<td align="center">' . $lines[$i]->qty_asked . '</td>';
 // Qte a expedier ou expedier
 print '<td align="center">' . $lines[$i]->qty_shipped . '</td>';
 // Weight
 print '<td align="center">';
 if ($lines[$i]->fk_product_type == 0) {
     print $lines[$i]->weight * $lines[$i]->qty_shipped . ' ' . measuring_units_string($lines[$i]->weight_units, "weight");
 } else {
     print '&nbsp;';
 }
 print '</td>';
 // Volume
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:31,代码来源:card.php

示例5: img_object

         print '</td>';
     } else {
         print '<td>';
         if ($type == 1) {
             $text = img_object($langs->trans('Service'), 'service');
         } else {
             $text = img_object($langs->trans('Product'), 'product');
         }
         if (!empty($object->lines[$i]->label)) {
             $text .= ' <strong>' . $object->lines[$i]->label . '</strong>';
             print $form->textwithtooltip($text, dol_htmlentitiesbr($object->lines[$i]->desc), 3, '', '', $i);
         } else {
             print $text . ' ' . nl2br($object->lines[$i]->desc);
         }
         // Show range
         print_date_range($object->lines[$i]->date_start, $object->lines[$i]->date_end);
         print '</td>';
     }
     print '<td align="right">' . price($object->lines[$i]->price) . '</td>';
     print '<td align="center">' . $object->lines[$i]->remise_percent . ' %</td>';
     print '<td align="center">' . $object->lines[$i]->qty . '</td>';
     if ($conf->global->PRODUCT_USE_UNITS) {
         print "<td align=\"left\">" . $object->lines[$i]->getLabelOfUnit() . "</td>";
     }
     print "</tr>\n";
     $i++;
 }
 print '</table>';
 /**
  * Barre d'actions
  */
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:fiche-rec.php

示例6: img_object

					if ($conf->global->PRODUIT_DESC_IN_FORM)
					{
						print ($objp->description && $objp->description!=$objp->product_label)?'<br>'.dol_htmlentitiesbr($objp->description):'';
					}

					print '</td>';
				}
				else
				{
					print "<td>";
					if ($type==1) $text = img_object($langs->trans('Service'),'service');
					else $text = img_object($langs->trans('Product'),'product');
					print $text.' '.nl2br($objp->description);

					// Show range
					print_date_range($db->jdate($objp->date_start),$db->jdate($objp->date_end));
					print "</td>\n";
				}

				// Qty ordered
				print '<td align="center">'.$objp->qty.'</td>';

				// Qty already shipped
				$qtyProdCom=$objp->qty;
				print '<td align="center">';
				// Nb of sending products for this line of order
				$quantite_livree = $commande->expeditions[$objp->rowid];
				print $quantite_livree;
				print '</td>';

				// Qty remains to ship
开发者ID:remyyounes,项目名称:dolibarr,代码行数:31,代码来源:shipment.php

示例7: echo

        } else {
            echo ($txt ? ' - ' : '') . dol_htmlentitiesbr($line->description);
        }
    }
} else {
    if (!empty($line->fk_parent_line)) {
        echo img_picto('', 'rightarrow');
    }
    if ($type == 1) {
        $text = img_object($langs->trans('Service'), 'service');
    } else {
        $text = img_object($langs->trans('Product'), 'product');
    }
    echo $text . ' ' . dol_htmlentitiesbr($line->description);
    // Show range
    print_date_range($line->date_start, $line->date_end);
}
?>
	</td>

	<td align="right" nowrap="nowrap"><?php 
echo vatrate($line->tva_tx, '%', $line->info_bits);
?>
</td>

	<td align="right" nowrap="nowrap"><?php 
echo price($line->subprice);
?>
</td>

	<td align="right" nowrap="nowrap">
开发者ID:netors,项目名称:dolibarr,代码行数:31,代码来源:freeproductline_view.tpl.php

示例8: ProductFournisseur

 if ($action == 'edit_line' && $user->rights->fournisseur->commande->creer && $_GET["rowid"] == $line->id) {
     print "\n";
     print '<tr ' . $bc[$var] . '>';
     print '<td>';
     print '<input type="hidden" name="elrowid" value="' . $_GET['rowid'] . '">';
     print '<a name="' . $line->id . '"></a>';
     // ancre pour retourner sur la ligne
     if ((!empty($conf->product->enabled) || !empty($conf->service->enabled)) && $line->fk_product > 0) {
         $product_static = new ProductFournisseur($db);
         $product_static->fetch_opt($line->fk_product);
         $text = $product_static->getNomUrl(1, 'supplier');
         $text .= ' - ' . $product_static->libelle;
         $description = $conf->global->PRODUIT_DESC_IN_FORM ? '' : dol_htmlentitiesbr($line->description);
         print $form->textwithtooltip($text, $description, 3, '', '', $i);
         // Show range
         print_date_range($date_start, $date_end);
         print '<br>';
     } else {
         $forceall = 1;
         // For suppliers, we always show all types
         print $form->select_type_of_lines($line->product_type, 'type', 1, 0, $forceall);
         if ($forceall || !empty($conf->product->enabled) && !empty($conf->service->enabled) || empty($conf->product->enabled) && empty($conf->service->enabled)) {
             print '<br>';
         }
     }
     if (is_object($hookmanager)) {
         $parameters = array('fk_parent_line' => $line->fk_parent_line, 'line' => $line, 'var' => $var, 'num' => $num, 'i' => $i);
         $reshook = $hookmanager->executeHooks('formEditProductOptions', $parameters, $object, $action);
     }
     $nbrows = ROWS_2;
     if (!empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) {
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:fiche.php

示例9: print_date_range

         print_date_range($fac->lines[$i]->date_start, $fac->lines[$i]->date_end);
         // Add description in form
         if ($conf->global->PRODUIT_DESC_IN_FORM) {
             print $fac->lines[$i]->desc && $fac->lines[$i]->desc != $fac->lines[$i]->libelle ? '<br>' . dol_htmlentitiesbr($fac->lines[$i]->desc) : '';
         }
         print '</td>';
     } else {
         print '<td>';
         if ($type == 1) {
             $text = img_object($langs->trans('Service'), 'service');
         } else {
             $text = img_object($langs->trans('Product'), 'product');
         }
         print $text . ' ' . nl2br($fac->lines[$i]->desc);
         // Show range
         print_date_range($fac->lines[$i]->date_start, $fac->lines[$i]->date_end);
         print '</td>';
     }
     print "<td align=\"right\">" . price($fac->lines[$i]->price) . "</td>";
     print '<td align="center">' . $fac->lines[$i]->remise_percent . ' %</td>';
     print "<td align=\"center\">" . $fac->lines[$i]->qty . "</td></tr>\n";
     $i++;
 }
 print '</table>';
 /**
  * Barre d'actions
  */
 print '<div class="tabsAction">';
 if ($fac->statut == 0 && $user->rights->facture->supprimer) {
     print '<a class="butActionDelete" href="' . $_SERVER['PHP_SELF'] . '?action=delete&facid=' . $fac->id . '">' . $langs->trans('Delete') . '</a>';
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:fiche-rec.php


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