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
6c8d9a02
Commit
6c8d9a02
authored
13 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: view currency symbol and remove DAO code
parent
97828e44
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/admin/company.php
+11
-24
11 additions, 24 deletions
htdocs/admin/company.php
with
11 additions
and
24 deletions
htdocs/admin/company.php
+
11
−
24
View file @
6c8d9a02
<?php
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2012 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2011 Philippe Grand <philippe.grand@atoo-net.com>
*
...
...
@@ -269,8 +270,8 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
* Edition des parametres
*/
print
"
\n
"
.
'<script type="text/javascript" language="javascript">'
;
print
'
jQuery
(document).ready(function () {
jQuery
("#selectcountry_id").change(function() {
print
'
$
(document).ready(function () {
$
("#selectcountry_id").change(function() {
document.form_index.action.value="updateedit";
document.form_index.submit();
});
...
...
@@ -661,27 +662,14 @@ else
$var
=!
$var
;
print
'<tr '
.
$bc
[
$var
]
.
'><td>'
.
$langs
->
trans
(
"State"
)
.
'</td><td>'
;
if
(
$conf
->
global
->
MAIN_INFO_SOCIETE_DEPARTEMENT
)
{
$sql
=
"SELECT code_departement as code, nom as label from "
.
MAIN_DB_PREFIX
.
"c_departements where rowid = '"
.
$conf
->
global
->
MAIN_INFO_SOCIETE_DEPARTEMENT
.
"'"
;
$resql
=
$db
->
query
(
$sql
);
if
(
$resql
)
{
$obj
=
$db
->
fetch_object
(
$resql
);
}
else
{
dol_print_error
(
$db
);
}
$state
=
$obj
->
label
;
print
$state
;
}
if
(
$conf
->
global
->
MAIN_INFO_SOCIETE_DEPARTEMENT
)
print
getState
(
$conf
->
global
->
MAIN_INFO_SOCIETE_DEPARTEMENT
);
else
print
' '
;
print
'</td></tr>'
;
$var
=!
$var
;
print
'<tr '
.
$bc
[
$var
]
.
'><td width="35%">'
.
$langs
->
trans
(
"CompanyCurrency"
)
.
'</td><td>'
;
print
currency_name
(
$conf
->
currency
,
1
);
print
' ('
.
$conf
->
currency
.
')'
;
print
' ('
.
getCurrencySymbol
(
$conf
->
currency
)
.
')'
;
print
'</td></tr>'
;
$var
=!
$var
;
...
...
@@ -980,8 +968,7 @@ else
print
'<br>'
;
}
$db
->
close
();
$db
->
close
();
llxFooter
();
?>
\ No newline at end of file
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