Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
384e3812
Commit
384e3812
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: W3C. No form into TR.
parent
378842e0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/contrat/fiche.php
+22
-20
22 additions, 20 deletions
htdocs/contrat/fiche.php
with
22 additions
and
20 deletions
htdocs/contrat/fiche.php
+
22
−
20
View file @
384e3812
...
...
@@ -1086,18 +1086,26 @@ else
$productstatic
=
new
Product
(
$db
);
// Title line for service
print
'<table class="notopnoleft allwidth">'
;
// Array with (n*2)+1 lines
//
print '<table class="notopnoleft allwidth">'; // Array with (n*2)+1 lines
$cursorline
=
1
;
while
(
$cursorline
<=
$nbofservices
)
{
print
'<tr
height="16"
'
.
$bc
[
false
]
.
'>'
;
print
'<td
class="liste_titre"
width="90" style="border-left: 1px solid #'
.
$colorb
.
'; border-top: 1px solid #'
.
$colorb
.
'; border-bottom: 1px solid #'
.
$colorb
.
';">'
;
print
$langs
->
trans
(
"ServiceNb"
,
$cursorline
)
.
'</td>'
;
//
print '<tr '.$bc[false].'>';
//
print '<td width="90" style="border-left: 1px solid #'.$colorb.'; border-top: 1px solid #'.$colorb.'; border-bottom: 1px solid #'.$colorb.';">';
//
print $langs->trans("ServiceNb",$cursorline).'</td>';
print
'<td class="tab" style="border-right: 1px solid #'
.
$colorb
.
'; border-top: 1px solid #'
.
$colorb
.
'; border-bottom: 1px solid #'
.
$colorb
.
';" rowspan="2">'
;
// print '<td class="tab" style="border-right: 1px solid #'.$colorb.'; border-top: 1px solid #'.$colorb.'; border-bottom: 1px solid #'.$colorb.';" rowspan="2">';
print
'<form name="update" action="'
.
$_SERVER
[
'PHP_SELF'
]
.
'?id='
.
$object
->
id
.
'" method="post">'
;
print
'<input type="hidden" name="token" value="'
.
$_SESSION
[
'newtoken'
]
.
'">'
;
print
'<input type="hidden" name="action" value="updateligne">'
;
print
'<input type="hidden" name="elrowid" value="'
.
GETPOST
(
'rowid'
)
.
'">'
;
print
'<input type="hidden" name="idprod" value="'
.
(
$objp
->
fk_product
?
$objp
->
fk_product
:
'0'
)
.
'">'
;
print
'<input type="hidden" name="fournprice" value="'
.
(
$objp
->
fk_fournprice
?
$objp
->
fk_fournprice
:
'0'
)
.
'">'
;
// Area with common detail of line
print
'<table class="notopnoleft" width="100%">'
;
print
'<table class="notopnoleft
allwidth
" width="100%">'
;
$sql
=
"SELECT cd.rowid, cd.statut, cd.label as label_det, cd.fk_product, cd.description, cd.price_ht, cd.qty,"
;
$sql
.
=
" cd.tva_tx, cd.remise_percent, cd.info_bits, cd.subprice,"
;
...
...
@@ -1115,7 +1123,7 @@ else
$total
=
0
;
print
'<tr class="liste_titre">'
;
print
'<td>'
.
$langs
->
trans
(
"Service
"
)
.
'</td>'
;
print
'<td>'
.
$langs
->
trans
(
"Service
Nb"
,
$cursorline
)
.
'</td>'
;
print
'<td width="50" align="center">'
.
$langs
->
trans
(
"VAT"
)
.
'</td>'
;
print
'<td width="50" align="right">'
.
$langs
->
trans
(
"PriceUHT"
)
.
'</td>'
;
print
'<td width="30" align="center">'
.
$langs
->
trans
(
"Qty"
)
.
'</td>'
;
...
...
@@ -1230,13 +1238,7 @@ else
}
// Ligne en mode update
else
{
print
'<form name="update" action="'
.
$_SERVER
[
'PHP_SELF'
]
.
'?id='
.
$object
->
id
.
'" method="post">'
;
print
'<input type="hidden" name="token" value="'
.
$_SESSION
[
'newtoken'
]
.
'">'
;
print
'<input type="hidden" name="action" value="updateligne">'
;
print
'<input type="hidden" name="elrowid" value="'
.
GETPOST
(
'rowid'
)
.
'">'
;
print
'<input type="hidden" name="idprod" value="'
.
(
$objp
->
fk_product
?
$objp
->
fk_product
:
'0'
)
.
'">'
;
print
'<input type="hidden" name="fournprice" value="'
.
(
$objp
->
fk_fournprice
?
$objp
->
fk_fournprice
:
'0'
)
.
'">'
;
{
// Ligne carac
print
"<tr "
.
$bc
[
$var
]
.
">"
;
print
'<td>'
;
...
...
@@ -1287,14 +1289,12 @@ else
$form
->
select_date
(
$db
->
jdate
(
$objp
->
date_fin
),
"date_end_update"
,
$usehm
,
$usehm
,(
$db
->
jdate
(
$objp
->
date_fin
)
>
0
?
0
:
1
),
"update"
);
print
'</td>'
;
print
'</tr>'
;
print
"</form>
\n
"
;
}
$db
->
free
(
$result
);
}
else
{
{
dol_print_error
(
$db
);
}
...
...
@@ -1306,6 +1306,7 @@ else
}
print
"</table>"
;
print
"</form>
\n
"
;
/*
...
...
@@ -1515,13 +1516,14 @@ else
print
'</form>'
;
}
print
'</td>'
;
// End td if line is 1
/*
print '</td>'; // End td if line is 1
print '</tr>';
print
'<tr><td style="border-right: 1px solid #'
.
$colorb
.
'"> </td></tr>'
;
print '<tr><td style="border-right: 1px solid #'.$colorb.'"> </td></tr>';*/
$cursorline
++
;
}
print
'</table>'
;
//
print '</table>';
// Form to add new line
if
(
$user
->
rights
->
contrat
->
creer
&&
(
$object
->
statut
>=
0
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment