Showing
2 changed files
with
8 additions
and
7 deletions
@@ -156,8 +156,8 @@ if (isset($_GET['signer-serialized'])) { | @@ -156,8 +156,8 @@ if (isset($_GET['signer-serialized'])) { | ||
156 | $signer_subdivs_full = $appointment->subdivision->name; | 156 | $signer_subdivs_full = $appointment->subdivision->name; |
157 | 157 | ||
158 | $_GET['signer-fullname'] = $user->employee->fullname; | 158 | $_GET['signer-fullname'] = $user->employee->fullname; |
159 | - $_GET['signer-appointment'] = my_mb_ucfirst($appointments_full); | 159 | + $_GET['signer-appointment'] = $appointments_full; |
160 | - $_GET['signer-appointment-wosubdiv'] = my_mb_ucfirst($appointments_wosubdiv); | 160 | + $_GET['signer-appointment-wosubdiv'] = $appointments_wosubdiv; |
161 | $_GET['signer-subdivs'] = $signer_subdivs; | 161 | $_GET['signer-subdivs'] = $signer_subdivs; |
162 | $_GET['signer-subdivs-full'] = $signer_subdivs_full; | 162 | $_GET['signer-subdivs-full'] = $signer_subdivs_full; |
163 | 163 | ||
@@ -494,7 +494,8 @@ foreach (array('signer', 'contact', 'user') as $key) { | @@ -494,7 +494,8 @@ foreach (array('signer', 'contact', 'user') as $key) { | ||
494 | 494 | ||
495 | } | 495 | } |
496 | 496 | ||
497 | - $_GET[$key_prefix.$key.'-appointment-w-fullsubdiv'] = $appointment_w_fullsubdiv;//join(', ', $appointment_w_fullsubdiv); | 497 | + $_GET[$key_prefix.$key.'-appointment-w-fullsubdiv'] = $appointment_w_fullsubdiv; |
498 | + $_GET[$key_prefix.$key.'-appointment-w-fullsubdiv-cap'] = array(my_mb_ucfirst($appointment_w_fullsubdiv[0])); | ||
498 | 499 | ||
499 | } | 500 | } |
500 | } | 501 | } |
@@ -882,9 +883,9 @@ foreach ($files as $file) { | @@ -882,9 +883,9 @@ foreach ($files as $file) { | ||
882 | case 'request/temporary-acting': | 883 | case 'request/temporary-acting': |
883 | $header = '\mmheadermemo{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}'; | 884 | $header = '\mmheadermemo{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}'; |
884 | $footer = ' | 885 | $footer = ' |
885 | -\mmfooter{'.$_GET['signer-appointment-w-fullsubdiv'].'}{'.$_GET{'signer-name'}.'}{}{} | 886 | +\mmfooter{'.my_mb_ucfirst($_GET['signer-appointment-w-fullsubdiv']).'}{'.$_GET{'signer-name'}.'}{}{} |
886 | \\ | 887 | \\ |
887 | -\mmfooter{'.(empty($_GET['user-appointment-w-fullsubdiv'])||$_GET['user-appointment-w-fullsubdiv']==" "?'\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_':$_GET['user-appointment-w-fullsubdiv']).'}{'.$_GET{'user-name'}.'}{}{} | 888 | +\mmfooter{'.(empty($_GET['user-appointment-w-fullsubdiv'])||$_GET['user-appointment-w-fullsubdiv']==" "?'\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_':my_mb_ucfirst($_GET['user-appointment-w-fullsubdiv'])).'}{'.$_GET{'user-name'}.'}{}{} |
888 | '; | 889 | '; |
889 | break; | 890 | break; |
890 | case 'request/voip-transfer-equipment': | 891 | case 'request/voip-transfer-equipment': |
@@ -912,7 +913,7 @@ foreach ($files as $file) { | @@ -912,7 +913,7 @@ foreach ($files as $file) { | ||
912 | 913 | ||
913 | default: | 914 | default: |
914 | $header = '\mmheader{Начальнику управления информатизации}{Н. Н. Романову}'; | 915 | $header = '\mmheader{Начальнику управления информатизации}{Н. Н. Романову}'; |
915 | - $footer = '\mmfooter{'.$_GET['signer-appointment'].'}{'.$_GET{'signer-name'}.'}{}{}'; | 916 | + $footer = '\mmfooter{'.my_mb_ucfirst($_GET['signer-appointment']).'}{'.$_GET{'signer-name'}.'}{}{}'; |
916 | } | 917 | } |
917 | file_put_contents('header.tex', $header); | 918 | file_put_contents('header.tex', $header); |
918 | file_put_contents('body.tex', $body); | 919 | file_put_contents('body.tex', $body); |
1 | Прошу предоставить мне [{vacation-type}] на [{days-count}] [{days-descr}] с [{days-from}] по [{days-to}]. | 1 | Прошу предоставить мне [{vacation-type}] на [{days-count}] [{days-descr}] с [{days-from}] по [{days-to}]. |
2 | 2 | ||
3 | \begin{flushright} | 3 | \begin{flushright} |
4 | -[{signer-appointment-w-fullsubdiv}]\\ | 4 | +[{signer-appointment-w-fullsubdiv-cap}]\\ |
5 | \vspace{0.7cm} | 5 | \vspace{0.7cm} |
6 | \_\_\_\_\_\_\_\_\_\_\_\_\_ [{signer-name}] | 6 | \_\_\_\_\_\_\_\_\_\_\_\_\_ [{signer-name}] |
7 | \end{flushright} | 7 | \end{flushright} |
-
Please register or login to post a comment