Skip to content

Commit

Permalink
Fix: Removed a lot of checkstyle warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 11, 2012
1 parent aea9707 commit b5fc41f
Show file tree
Hide file tree
Showing 28 changed files with 58 additions and 56 deletions.
2 changes: 1 addition & 1 deletion htdocs/comm/propal/tpl/linkedobjectblock.tpl.php
Expand Up @@ -27,7 +27,7 @@
echo '<br>';
print_titre($langs->trans('RelatedCommercialProposals'));
?>
<table class="noborder" width="100%">
<table class="noborder allwidth">
<tr class="liste_titre">
<td><?php echo $langs->trans("Ref"); ?></td>
<td><?php echo $langs->trans('RefCustomer'); ?></td>
Expand Down
2 changes: 1 addition & 1 deletion htdocs/commande/tpl/linkedobjectblock.tpl.php
Expand Up @@ -29,7 +29,7 @@
print_titre($langs->trans('RelatedOrders'));

?>
<table class="noborder" width="100%">
<table class="noborder allwidth">
<tr class="liste_titre">
<td><?php echo $langs->trans("Ref"); ?></td>
<td align="center"><?php echo $langs->trans("Date"); ?></td>
Expand Down
2 changes: 1 addition & 1 deletion htdocs/compta/facture/tpl/linkedobjectblock.tpl.php
Expand Up @@ -29,7 +29,7 @@
if ($num > 1) print_titre($langs->trans("RelatedBills"));
else print_titre($langs->trans("RelatedBill"));
?>
<table class="noborder" width="100%">
<table class="noborder allwidth">
<tr class="liste_titre">
<td><?php echo $langs->trans("Ref"); ?></td>
<td align="center"><?php echo $langs->trans("Date"); ?></td>
Expand Down
Expand Up @@ -36,7 +36,7 @@
<input type="hidden" name="socid" value="<?php echo $this->control->tpl['company_id']; ?>">
<?php } ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td width="15%" class="fieldrequired"><?php echo $langs->trans("Lastname").' / '.$langs->trans("Label"); ?></td>
Expand Down
2 changes: 1 addition & 1 deletion htdocs/contact/canvas/default/tpl/contactcard_edit.tpl.php
Expand Up @@ -44,7 +44,7 @@
<input type="hidden" name="socid" value="<?php echo $this->control->tpl['company_id']; ?>">
<?php } ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td><?php echo $langs->trans("Ref"); ?></td>
Expand Down
2 changes: 1 addition & 1 deletion htdocs/contact/canvas/default/tpl/contactcard_view.tpl.php
Expand Up @@ -29,7 +29,7 @@
<?php if ($this->control->tpl['action_create_user']) echo $this->control->tpl['action_create_user']; ?>
<?php if ($this->control->tpl['action_delete']) echo $this->control->tpl['action_delete']; ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td width="20%"><?php echo $langs->trans("Ref"); ?></td>
Expand Down
2 changes: 1 addition & 1 deletion htdocs/contrat/tpl/linkedobjectblock.tpl.php
Expand Up @@ -28,7 +28,7 @@
echo '<br>';
print_titre($langs->trans('RelatedContracts'));
?>
<table class="noborder" width="100%">
<table class="noborder allwidth">
<tr class="liste_titre">
<td><?php echo $langs->trans("Ref"); ?></td>
<td align="center"><?php echo $langs->trans("Date"); ?></td>
Expand Down
14 changes: 1 addition & 13 deletions htdocs/fourn/class/fournisseur.class.php
Expand Up @@ -89,7 +89,7 @@ function getNbOfOrders()
function nbOfProductRefs()
{
global $conf;

$sql = "SELECT count(pfp.rowid) as nb";
$sql.= " FROM ".MAIN_DB_PREFIX."product_fournisseur_price as pfp";
$sql.= " WHERE pfp.entity = ".$conf->entity;
Expand Down Expand Up @@ -213,18 +213,6 @@ function ListArray()
return $arr;
}

/**
* Return a link on thirdparty (with picto)
*
* @param int $withpicto Add picto into link (0=No picto, 1=Include picto with link, 2=Picto only)
* @param string $option Target of link ('', 'customer', 'prospect', 'supplier')
* @param int $maxlen Max length of text
* @return string String with URL
*/
function getNomUrl($withpicto=0,$option='supplier',$maxlen=0)
{
return parent::getNomUrl($withpicto,$option,$maxlen);
}
}

?>
2 changes: 1 addition & 1 deletion htdocs/fourn/commande/tpl/linkedobjectblock.tpl.php
Expand Up @@ -28,7 +28,7 @@
echo '<br>';
print_titre($langs->trans('RelatedOrders'));
?>
<table class="noborder" width="100%">
<table class="noborder allwidth">
<tr class="liste_titre">
<td><?php echo $langs->trans("Ref"); ?></td>
<td align="center"><?php echo $langs->trans("Date"); ?></td>
Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php
Expand Up @@ -29,7 +29,7 @@
if ($num > 1) print_titre($langs->trans("RelatedBills"));
else print_titre($langs->trans("RelatedBill"));
?>
<table class="noborder" width="100%">
<table class="noborder allwidth">
<tr class="liste_titre">
<td><?php echo $langs->trans("Ref"); ?></td>
<td align="center"><?php echo $langs->trans("Date"); ?></td>
Expand Down
4 changes: 2 additions & 2 deletions htdocs/product/canvas/product/tpl/card_create.tpl.php
Expand Up @@ -29,7 +29,7 @@
<input type="hidden" name="type" value="0">
<input type="hidden" name="canvas" value="<?php echo $canvas; ?>">

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td class="fieldrequired" width="20%"><?php echo $langs->trans("Ref"); ?></td>
Expand Down Expand Up @@ -100,7 +100,7 @@

<?php if (! $conf->global->PRODUIT_MULTIPRICES) { ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr><td><?php echo $langs->trans("SellingPrice"); ?></td>
<td><input name="price" size="10" value="<?php echo $this->control->tpl['price']; ?>">
Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/canvas/product/tpl/card_edit.tpl.php
Expand Up @@ -32,7 +32,7 @@
<input type="hidden" name="canvas" value="<?php echo $this->control->tpl['canvas']; ?>">


<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td class="fieldrequired" width="20%"><?php echo $langs->trans("Ref"); ?></td>
Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/canvas/product/tpl/card_view.tpl.php
Expand Up @@ -22,7 +22,7 @@

<?php dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']); ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td width="15%"><?php echo $langs->trans("Ref"); ?></td>
Expand Down
10 changes: 5 additions & 5 deletions htdocs/product/canvas/product/tpl/list.tpl.php
Expand Up @@ -19,7 +19,7 @@

<!-- BEGIN PHP TEMPLATE -->

<table width="100%" border="0" class="notopnoleftnoright" style="margin-bottom: 2px;">
<table class="notopnoleftnoright allwidth" style="margin-bottom: 2px;">
<tr>
<td class="nobordernopadding" width="40" align="left" valign="middle">
<?php echo $title_picto; ?>
Expand All @@ -38,7 +38,7 @@
<input type="hidden" name="canvas" value="default">
<input type="hidden" name="type" value="0">

<table class="liste" width="100%">
<table class="liste allwidth">

<!-- FIELDS TITLE -->

Expand All @@ -59,9 +59,9 @@
<td class="liste_titre" align="<?php echo $field['align']; ?>"><?php echo $field['title']; ?></td>
<?php } } } ?>
</tr>

<!-- FIELDS SEARCH -->

<tr class="liste_titre">
<?php
$num = count($fieldlist);
Expand All @@ -83,7 +83,7 @@

<?php
$var=true;
foreach($datas as $line) {
foreach($datas as $line) {
$var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
<?php
Expand Down
4 changes: 2 additions & 2 deletions htdocs/product/canvas/service/tpl/card_create.tpl.php
Expand Up @@ -29,7 +29,7 @@
<input type="hidden" name="type" value="1">
<input type="hidden" name="canvas" value="<?php echo $canvas; ?>">

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td class="fieldrequired" width="20%"><?php echo $langs->trans("Ref"); ?></td>
Expand Down Expand Up @@ -73,7 +73,7 @@

<?php if (! $conf->global->PRODUIT_MULTIPRICES) { ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr><td><?php echo $langs->trans("SellingPrice"); ?></td>
<td><input name="price" size="10" value="<?php echo $this->object->tpl['price']; ?>">
Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/canvas/service/tpl/card_edit.tpl.php
Expand Up @@ -32,7 +32,7 @@
<input type="hidden" name="canvas" value="<?php echo $this->object->tpl['canvas']; ?>">


<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td class="fieldrequired" width="20%"><?php echo $langs->trans("Ref"); ?></td>
Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/canvas/service/tpl/card_view.tpl.php
Expand Up @@ -22,7 +22,7 @@

<?php dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']); ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td width="15%"><?php echo $langs->trans("Ref"); ?></td>
Expand Down
10 changes: 5 additions & 5 deletions htdocs/product/canvas/service/tpl/list.tpl.php
Expand Up @@ -19,7 +19,7 @@

<!-- BEGIN PHP TEMPLATE -->

<table width="100%" border="0" class="notopnoleftnoright" style="margin-bottom: 2px;">
<table class="notopnoleftnoright allwidth" style="margin-bottom: 2px;">
<tr>
<td class="nobordernopadding" width="40" align="left" valign="middle">
<?php echo $title_picto; ?>
Expand All @@ -38,7 +38,7 @@
<input type="hidden" name="canvas" value="service">
<input type="hidden" name="type" value="1">

<table class="liste" width="100%">
<table class="liste allwidth">

<!-- FIELDS TITLE -->

Expand All @@ -59,9 +59,9 @@
<td class="liste_titre" align="<?php echo $field['align']; ?>"><?php echo $field['title']; ?></td>
<?php } } } ?>
</tr>

<!-- FIELDS SEARCH -->

<tr class="liste_titre">
<?php
$num = count($fieldlist);
Expand All @@ -83,7 +83,7 @@

<?php
$var=True;
foreach($datas as $line) {
foreach($datas as $line) {
$var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
<?php
Expand Down
2 changes: 1 addition & 1 deletion htdocs/societe/canvas/company/tpl/card_create.tpl.php
Expand Up @@ -47,7 +47,7 @@
<input type="hidden" name="code_auto" value="1">
<?php } ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td><span class="fieldrequired"><?php echo $langs->trans('ThirdPartyName'); ?></span></td>
Expand Down
2 changes: 1 addition & 1 deletion htdocs/societe/canvas/company/tpl/card_edit.tpl.php
Expand Up @@ -40,7 +40,7 @@
<input type="hidden" name="code_auto" value="1">
<?php } ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td><span class="fieldrequired"><?php echo $langs->trans('ThirdPartyName'); ?></span></td>
Expand Down
12 changes: 6 additions & 6 deletions htdocs/societe/canvas/company/tpl/card_view.tpl.php
Expand Up @@ -33,7 +33,7 @@
<?php if ($this->control->tpl['action_delete']) echo $this->control->tpl['action_delete']; ?>
<?php if ($this->control->tpl['js_checkVatPopup']) echo $this->control->tpl['js_checkVatPopup']; ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td width="20%"><?php echo $langs->trans('ThirdPartyName'); ?></td>
Expand Down Expand Up @@ -173,7 +173,7 @@

<tr>
<td>
<table width="100%" class="nobordernopadding">
<table class="nobordernopadding allwidth">
<tr>
<td><?php echo $langs->trans('RIB'); ?></td>
<td align="right">
Expand All @@ -191,7 +191,7 @@

<tr>
<td>
<table width="100%" class="nobordernopadding">
<table class="nobordernopadding allwidth">
<tr>
<td><?php echo $langs->trans('ParentCompany'); ?></td>
<td align="right">
Expand All @@ -209,7 +209,7 @@

<tr>
<td>
<table width="100%" class="nobordernopadding">
<table class="nobordernopadding allwidth">
<tr>
<td><?php echo $langs->trans('SalesRepresentatives'); ?></td>
<td align="right">
Expand Down Expand Up @@ -256,8 +256,8 @@

<br>

<table width="100%"><tr><td valign="top" width="50%">
<a name="builddoc"></a>
<table class="allwidth"><tr><td valign="top" width="50%">
<div id="builddoc"></div>

<?php
/*
Expand Down
2 changes: 1 addition & 1 deletion htdocs/societe/canvas/individual/tpl/card_create.tpl.php
Expand Up @@ -47,7 +47,7 @@
<input type="hidden" name="code_auto" value="1">
<?php } ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td><span class="fieldrequired"><?php echo $langs->trans('LastName'); ?></span></td>
Expand Down
2 changes: 1 addition & 1 deletion htdocs/societe/canvas/individual/tpl/card_edit.tpl.php
Expand Up @@ -37,7 +37,7 @@
<input type="hidden" name="code_auto" value="1">
<?php } ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td><span class="fieldrequired"><?php echo $langs->trans('Name'); ?></span></td>
Expand Down
11 changes: 5 additions & 6 deletions htdocs/societe/canvas/individual/tpl/card_view.tpl.php
Expand Up @@ -32,7 +32,7 @@
<?php if ($this->control->tpl['error']) echo $this->control->tpl['error']; ?>
<?php if ($this->control->tpl['action_delete']) echo $this->control->tpl['action_delete']; ?>

<table class="border" width="100%">
<table class="border allwidth">

<tr>
<td width="20%"><?php echo $langs->trans('Name'); ?></td>
Expand Down Expand Up @@ -132,7 +132,7 @@

<tr>
<td>
<table width="100%" class="nobordernopadding">
<table class="nobordernopadding allwidth">
<tr>
<td><?php echo $langs->trans('RIB'); ?></td>
<td align="right">
Expand All @@ -150,7 +150,7 @@

<tr>
<td>
<table width="100%" class="nobordernopadding">
<table class="nobordernopadding allwidth">
<tr>
<td><?php echo $langs->trans('SalesRepresentatives'); ?></td>
<td align="right">
Expand Down Expand Up @@ -197,9 +197,8 @@

<br>

<table width="100%"><tr><td valign="top" width="50%">
<a name="builddoc"></a>

<table class="allwidth"><tr><td valign="top" width="50%">
<div id="builddoc"></div>
<?php
/*
* Documents generes
Expand Down
4 changes: 4 additions & 0 deletions htdocs/theme/auguria/style.css.php
Expand Up @@ -1065,6 +1065,10 @@
/* Tables */
/* ============================================================================== */

.allwidth {
width: 100%;
}

#undertopmenu {
margin-top: 4px;
}
Expand Down

0 comments on commit b5fc41f

Please sign in to comment.