/htdocs/core/tpl/predefinedproductline_view.tpl.php
PHP | 97 lines | 66 code | 12 blank | 19 comment | 25 complexity | 528c702f171548fc0475453ddddd6718 MD5 | raw file
Possible License(s): LGPL-2.0
- <?php
- /* Copyright (C) 2010-2011 Regis Houssin <regis@dolibarr.fr>
- * Copyright (C) 2010-2011 Laurent Destailleur <eldy@users.sourceforge.net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
- ?>
- <!-- BEGIN PHP TEMPLATE predefinedproductline_view.tpl.php -->
- <tr <?php echo 'id="row-'.$line->id.'" '.$bcdd[$var]; ?>>
- <td>
- <a name="<?php echo $line->id; ?>"></a>
- <?php
- echo $form->textwithtooltip($text,$description,3,'','',$i,0,($line->fk_parent_line?img_picto('', 'rightarrow'):''));
- // Show range
- print_date_range($line->date_start, $line->date_end);
- // Add description in form
- if ($conf->global->PRODUIT_DESC_IN_FORM)
- {
- print ($line->description && $line->description!=$line->product_label)?'<br>'.dol_htmlentitiesbr($line->description):'';
- }
- ?>
- </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">
- <?php if ((($line->info_bits & 2) != 2) && $line->special_code != 3) echo $line->qty;
- else echo ' '; ?>
- </td>
- <?php if (!empty($line->remise_percent) && $line->special_code != 3) { ?>
- <td align="right"><?php echo dol_print_reduction($line->remise_percent,$langs); ?></td>
- <?php } else { ?>
- <td> </td>
- <?php } ?>
- <?php if ($line->special_code == 3) { ?>
- <td align="right" nowrap="nowrap"><?php echo $langs->trans('Option'); ?></td>
- <?php } else { ?>
- <td align="right" nowrap="nowrap"><?php echo price($line->total_ht); ?></td>
- <?php } ?>
- <?php if ($this->statut == 0 && $user->rights->$element->creer) { ?>
- <td align="center">
- <?php if (($line->info_bits & 2) == 2) { ?>
- <?php } else { ?>
- <a href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id.'&action=editline&lineid='.$line->id.'#'.$line->id; ?>">
- <?php echo img_edit(); ?>
- </a>
- <?php } ?>
- </td>
- <td align="center">
- <a href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id.'&action=ask_deleteline&lineid='.$line->id; ?>">
- <?php echo img_delete(); ?>
- </a>
- </td>
- <?php if ($num > 1) { ?>
- <td align="center" class="tdlineupdown">
- <?php if ($i > 0) { ?>
- <a class="lineupdown" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id.'&action=up&rowid='.$line->id; ?>">
- <?php echo img_up(); ?>
- </a>
- <?php } ?>
- <?php if ($i < $num-1) { ?>
- <a class="lineupdown" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id.'&action=down&rowid='.$line->id; ?>">
- <?php echo img_down(); ?>
- </a>
- <?php } ?>
- </td>
- <?php } else { ?>
- <td align="center" class="tdlineupdown"> </td>
- <?php } ?>
- <?php } else { ?>
- <td colspan="3"> </td>
- <?php } ?>
- </tr>
- <!-- END PHP TEMPLATE predefinedproductline_view.tpl.php -->