Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
c989cb50
Verified
Commit
c989cb50
authored
7 years ago
by
Alex ORLUC
Browse files
Options
Downloads
Patches
Plain Diff
FEAT #6912 merge from 17_06_project_develop
parent
4b0943c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/attachments/show_res_id.php
+21
-31
21 additions, 31 deletions
modules/attachments/show_res_id.php
with
21 additions
and
31 deletions
modules/attachments/show_res_id.php
+
21
−
31
View file @
c989cb50
...
...
@@ -5,20 +5,9 @@
*
* This file is part of Maarch Framework.
*
* Maarch Framework is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Maarch Framework is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Maarch Framework. If not, see <http://www.gnu.org/licenses/>.
* @author dev <dev@maarch.org>
* @ingroup attachments
*/
$core
=
new
core_tools
();
$core
->
test_user
();
...
...
@@ -27,15 +16,15 @@ $core->test_user();
<script
type=
"text/javascript"
>
var
input_res
=
window
.
opener
.
$
(
'
res_id_link
'
);
<?php
if
(
_ID_TO_DISPLAY
==
'chrono_number'
)
{
?>
if
(
_ID_TO_DISPLAY
==
'chrono_number'
)
{
?>
var
input_chrono_id
=
window
.
opener
.
$
(
'
input_chrono_id
'
);
<?php
require_once
'core'
.
DIRECTORY_SEPARATOR
.
'class'
.
DIRECTORY_SEPARATOR
.
'class_request.php'
;
require_once
'core'
.
DIRECTORY_SEPARATOR
.
'class'
.
DIRECTORY_SEPARATOR
.
'class_request.php'
;
$db
=
new
Database
();
$arrayChrono
=
array
();
foreach
(
$_SESSION
[
'stockCheckbox'
]
as
$key
=>
$value
)
{
$stmt
=
$db
->
query
(
"
SELECT alt_identifier FROM mlb_coll_ext WHERE res_id = ?
"
,
array
(
$value
));
$stmt
=
$db
->
query
(
'
SELECT alt_identifier FROM mlb_coll_ext WHERE res_id = ?
'
,
array
(
$value
));
$res
=
$stmt
->
fetchObject
();
$chrono
=
$res
->
alt_identifier
;
array_push
(
$arrayChrono
,
$chrono
);
...
...
@@ -44,27 +33,28 @@ if(_ID_TO_DISPLAY == 'chrono_number'){
//VALIDATE_MAIL
if
(
input_res
)
{
input_res
.
value
=
<?php
echo
json_encode
(
$_SESSION
[
'stockCheckbox'
]);
?>
;
input_res
.
value
=
<?php
echo
json_encode
(
$_SESSION
[
'stockCheckbox'
]);
?>
;
<?php
if
(
_ID_TO_DISPLAY
==
'chrono_number'
){
?>
input_chrono_id
.
value
=
<?php
echo
json_encode
(
$arrayChrono
);
?>
;
<?php
}
?>
if
(
_ID_TO_DISPLAY
==
'chrono_number'
)
{
?>
input_chrono_id
.
value
=
<?php
echo
json_encode
(
$arrayChrono
);
?>
;
<?php
}
?>
window
.
opener
.
$
(
'
attach_link
'
).
click
();
}
else
{
//INDEX_MLB
window
.
opener
.
$
(
'
res_id
'
).
value
=
<?php
echo
json_encode
(
$_SESSION
[
'stockCheckbox'
]);
?>
;
window
.
opener
.
$
(
'
res_id
'
).
value
=
<?php
echo
json_encode
(
$_SESSION
[
'stockCheckbox'
]);
?>
;
<?php
if
(
_ID_TO_DISPLAY
==
'chrono_number'
){
?>
window
.
opener
.
$
(
'
chrono_id
'
).
value
=
<?php
echo
json_encode
(
$arrayChrono
);
?>
;
<?php
}
?>
if
(
_ID_TO_DISPLAY
==
'chrono_number'
)
{
?>
window
.
opener
.
$
(
'
chrono_id
'
).
value
=
<?php
echo
json_encode
(
$arrayChrono
);
?>
;
<?php
}
?>
}
<?php
if
(
$_SESSION
[
'current_basket'
][
'id'
]
==
"IndexingBasket"
)
{
?>
window
.
opener
.
$
(
'
attach
'
).
click
();
<?php
}
//$_SESSION['stockCheckbox'] = '';
if
(
$_SESSION
[
'current_basket'
][
'id'
]
==
'IndexingBasket'
)
{
?>
window
.
opener
.
$
(
'
attach_link
'
).
click
();
<?php
}
?>
self
.
close
();
</script>
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