Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
ut-tex
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
redmine
2015-12-09 21:46:23 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b5b6c9b2ae50257ab23e27e8a18413e5c5ea4162
b5b6c9b2
1 parent
7c9cde5b
tiny fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
genpdf/genpdf.php
mephimemo/template/request/vacation.tex
genpdf/genpdf.php
View file @
b5b6c9b
...
...
@@ -156,8 +156,8 @@ if (isset($_GET['signer-serialized'])) {
$signer_subdivs_full
=
$appointment
->
subdivision
->
name
;
$_GET
[
'signer-fullname'
]
=
$user
->
employee
->
fullname
;
$_GET
[
'signer-appointment'
]
=
my_mb_ucfirst
(
$appointments_full
)
;
$_GET
[
'signer-appointment-wosubdiv'
]
=
my_mb_ucfirst
(
$appointments_wosubdiv
)
;
$_GET
[
'signer-appointment'
]
=
$appointments_full
;
$_GET
[
'signer-appointment-wosubdiv'
]
=
$appointments_wosubdiv
;
$_GET
[
'signer-subdivs'
]
=
$signer_subdivs
;
$_GET
[
'signer-subdivs-full'
]
=
$signer_subdivs_full
;
...
...
@@ -494,7 +494,8 @@ foreach (array('signer', 'contact', 'user') as $key) {
}
$_GET
[
$key_prefix
.
$key
.
'-appointment-w-fullsubdiv'
]
=
$appointment_w_fullsubdiv
;
//join(', ', $appointment_w_fullsubdiv);
$_GET
[
$key_prefix
.
$key
.
'-appointment-w-fullsubdiv'
]
=
$appointment_w_fullsubdiv
;
$_GET
[
$key_prefix
.
$key
.
'-appointment-w-fullsubdiv-cap'
]
=
array
(
my_mb_ucfirst
(
$appointment_w_fullsubdiv
[
0
]));
}
}
...
...
@@ -882,9 +883,9 @@ foreach ($files as $file) {
case
'request/temporary-acting'
:
$header
=
'\mmheadermemo{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}'
;
$footer
=
'
\mmfooter{'
.
$_GET
[
'signer-appointment-w-fullsubdiv'
]
.
'}{'
.
$_GET
{
'signer-name'
}
.
'}{}{}
\mmfooter{'
.
my_mb_ucfirst
(
$_GET
[
'signer-appointment-w-fullsubdiv'
])
.
'}{'
.
$_GET
{
'signer-name'
}
.
'}{}{}
\\
\mmfooter{'
.
(
empty
(
$_GET
[
'user-appointment-w-fullsubdiv'
])
||
$_GET
[
'user-appointment-w-fullsubdiv'
]
==
" "
?
'\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_'
:
$_GET
[
'user-appointment-w-fullsubdiv'
]
)
.
'}{'
.
$_GET
{
'user-name'
}
.
'}{}{}
\mmfooter{'
.
(
empty
(
$_GET
[
'user-appointment-w-fullsubdiv'
])
||
$_GET
[
'user-appointment-w-fullsubdiv'
]
==
" "
?
'\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_'
:
my_mb_ucfirst
(
$_GET
[
'user-appointment-w-fullsubdiv'
])
)
.
'}{'
.
$_GET
{
'user-name'
}
.
'}{}{}
'
;
break
;
case
'request/voip-transfer-equipment'
:
...
...
@@ -912,7 +913,7 @@ foreach ($files as $file) {
default
:
$header
=
'\mmheader{Начальнику управления информатизации}{Н. Н. Романову}'
;
$footer
=
'\mmfooter{'
.
$_GET
[
'signer-appointment'
]
.
'}{'
.
$_GET
{
'signer-name'
}
.
'}{}{}'
;
$footer
=
'\mmfooter{'
.
my_mb_ucfirst
(
$_GET
[
'signer-appointment'
])
.
'}{'
.
$_GET
{
'signer-name'
}
.
'}{}{}'
;
}
file_put_contents
(
'header.tex'
,
$header
);
file_put_contents
(
'body.tex'
,
$body
);
...
...
mephimemo/template/request/vacation.tex
View file @
b5b6c9b
Прошу предоставить мне [
{
vacation-type
}
] на [
{
days-count
}
] [
{
days-descr
}
] с [
{
days-from
}
] по [
{
days-to
}
].
\begin{flushright}
[
{
signer-appointment-w-fullsubdiv
}
]
\\
[
{
signer-appointment-w-fullsubdiv
-cap
}
]
\\
\vspace
{
0.7cm
}
\_\_\_\_\_\_\_\_\_\_\_\_\_
[
{
signer-name
}
]
\end{flushright}
...
...
Please
register
or
login
to post a comment