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
76f708e8
Commit
76f708e8
authored
19 years ago
by
Rodolphe Quiedeville
Browse files
Options
Downloads
Patches
Plain Diff
Modif traitement
parent
6b6d4446
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/telephonie/script/tools/search-line-reject-with-traffic.php
+3
-5
3 additions, 5 deletions
...lephonie/script/tools/search-line-reject-with-traffic.php
with
3 additions
and
5 deletions
htdocs/telephonie/script/tools/search-line-reject-with-traffic.php
+
3
−
5
View file @
76f708e8
...
@@ -31,7 +31,6 @@ $datemax = $datetime - (86400 * 90);
...
@@ -31,7 +31,6 @@ $datemax = $datetime - (86400 * 90);
$sql
=
"SELECT ligne"
;
$sql
=
"SELECT ligne"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"telephonie_societe_ligne"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"telephonie_societe_ligne"
;
$sql
.
=
" WHERE statut = 7"
;
$sql
.
=
" WHERE statut = 7"
;
$sql
.
=
" AND unix_timestamp(datec) <"
.
$datemax
;
$re2sql
=
$db
->
query
(
$sql
)
;
$re2sql
=
$db
->
query
(
$sql
)
;
...
@@ -47,16 +46,15 @@ if ( $re2sql )
...
@@ -47,16 +46,15 @@ if ( $re2sql )
$sqlm
=
"SELECT unix_timestamp(max(date)) as md"
;
$sqlm
=
"SELECT unix_timestamp(max(date)) as md"
;
$sqlm
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"telephonie_communications_details"
;
$sqlm
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"telephonie_communications_details"
;
$sqlm
.
=
" WHERE ligne = '"
.
$row
[
0
]
.
"'"
;
$sqlm
.
=
" WHERE ligne = '"
.
$row
[
0
]
.
"'"
;
$sqlm
.
=
" AND date > '2006-01-01';"
;
$resqlm
=
$db
->
query
(
$sqlm
)
;
$resqlm
=
$db
->
query
(
$sqlm
)
;
if
(
$resqlm
)
if
(
$resqlm
)
{
{
$rowm
=
$db
->
fetch_row
(
$resqlm
);
$rowm
=
$db
->
fetch_row
(
$resqlm
);
if
(
$rowm
[
0
]
<
$datemax
)
{
print
$row
[
0
]
.
" "
.
strftime
(
"%d/%m/%Y"
,
$rowm
[
0
])
.
"
\n
"
;
print
$row
[
0
]
.
" "
.
strftime
(
"%d/%m/%Y"
,
$rowm
[
0
])
.
"
\n
"
;
}
}
}
$j
++
;
$j
++
;
}
}
}
}
...
...
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