Fix: Removed a lot of checkstyle warnings

This commit is contained in:
Laurent Destailleur 2012-03-11 22:08:46 +01:00
parent aea97075f1
commit b5fc41fadc
28 changed files with 58 additions and 56 deletions

View File

@ -27,7 +27,7 @@ $linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
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>

View File

@ -29,7 +29,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>

View File

@ -29,7 +29,7 @@ echo '<br>';
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>

View File

@ -36,7 +36,7 @@ echo $this->control->tpl['ajax_selectcountry']; ?>
<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>

View File

@ -44,7 +44,7 @@ echo $this->control->tpl['ajax_selectcountry'];
<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>

View File

@ -29,7 +29,7 @@ dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']
<?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>

View File

@ -28,7 +28,7 @@ $langs->load("contracts");
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>

View File

@ -89,7 +89,7 @@ class Fournisseur extends Societe
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;
@ -213,18 +213,6 @@ class Fournisseur extends Societe
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);
}
}
?>

View File

@ -28,7 +28,7 @@ $langs->load("orders");
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>

View File

@ -29,7 +29,7 @@ echo '<br>';
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>

View File

@ -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>
@ -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']; ?>">

View File

@ -32,7 +32,7 @@ dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']
<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>

View File

@ -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>

View File

@ -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; ?>
@ -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 -->
@ -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);
@ -83,7 +83,7 @@
<?php
$var=true;
foreach($datas as $line) {
foreach($datas as $line) {
$var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
<?php

View File

@ -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>
@ -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']; ?>">

View File

@ -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>

View File

@ -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>

View File

@ -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; ?>
@ -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 -->
@ -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);
@ -83,7 +83,7 @@
<?php
$var=True;
foreach($datas as $line) {
foreach($datas as $line) {
$var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
<?php

View File

@ -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>

View File

@ -40,7 +40,7 @@ dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']
<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>

View File

@ -33,7 +33,7 @@ dol_fiche_head($head, 'card', $langs->trans("ThirdParty"),0,'company');
<?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>
@ -173,7 +173,7 @@ for ($i=1; $i<=4; $i++) {
<tr>
<td>
<table width="100%" class="nobordernopadding">
<table class="nobordernopadding allwidth">
<tr>
<td><?php echo $langs->trans('RIB'); ?></td>
<td align="right">
@ -191,7 +191,7 @@ for ($i=1; $i<=4; $i++) {
<tr>
<td>
<table width="100%" class="nobordernopadding">
<table class="nobordernopadding allwidth">
<tr>
<td><?php echo $langs->trans('ParentCompany'); ?></td>
<td align="right">
@ -209,7 +209,7 @@ for ($i=1; $i<=4; $i++) {
<tr>
<td>
<table width="100%" class="nobordernopadding">
<table class="nobordernopadding allwidth">
<tr>
<td><?php echo $langs->trans('SalesRepresentatives'); ?></td>
<td align="right">
@ -256,8 +256,8 @@ for ($i=1; $i<=4; $i++) {
<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
/*

View File

@ -47,7 +47,7 @@ dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']
<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>

View File

@ -37,7 +37,7 @@ dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']
<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>

View File

@ -32,7 +32,7 @@ dol_fiche_head($head, 'card', $langs->trans("ThirdParty"),0,'company');
<?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>
@ -132,7 +132,7 @@ dol_fiche_head($head, 'card', $langs->trans("ThirdParty"),0,'company');
<tr>
<td>
<table width="100%" class="nobordernopadding">
<table class="nobordernopadding allwidth">
<tr>
<td><?php echo $langs->trans('RIB'); ?></td>
<td align="right">
@ -150,7 +150,7 @@ dol_fiche_head($head, 'card', $langs->trans("ThirdParty"),0,'company');
<tr>
<td>
<table width="100%" class="nobordernopadding">
<table class="nobordernopadding allwidth">
<tr>
<td><?php echo $langs->trans('SalesRepresentatives'); ?></td>
<td align="right">
@ -197,9 +197,8 @@ dol_fiche_head($head, 'card', $langs->trans("ThirdParty"),0,'company');
<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

View File

@ -1065,6 +1065,10 @@ span.butAction, span.butActionDelete {
/* Tables */
/* ============================================================================== */
.allwidth {
width: 100%;
}
#undertopmenu {
margin-top: 4px;
}

View File

@ -1239,6 +1239,10 @@ span.butAction, span.butActionDelete {
/* Tables */
/* ============================================================================== */
.allwidth {
width: 100%;
}
/*
#undertopmenu {
background-image: url("<?php echo DOL_URL_ROOT.'/theme/bureau2crea/img/gradient.gif' ?>");

View File

@ -1195,6 +1195,10 @@ span.butAction, span.butActionDelete {
/* Tables */
/* ============================================================================== */
.allwidth {
width: 100%;
}
/*
#undertopmenu {
background-image: url("<?php echo DOL_URL_ROOT.'/theme/cameleo/img/gradient.gif' ?>");

View File

@ -1306,6 +1306,9 @@ span.butAction, span.butActionDelete {
/* Tables */
/* ============================================================================== */
.allwidth {
width: 100%;
}
#undertopmenu {
/* background-image: url("<?php echo dol_buildpath($path.'/theme/eldy/img/gradient.gif',1) ?>"); */