|
@@ -36,12 +36,16 @@ class Route_UrlAction_UserProNetMediaZaliczka extends RouteBase {// TODO: UrlAct
|
|
|
if (!$data['idZaliczka']) {
|
|
if (!$data['idZaliczka']) {
|
|
|
$this->zaliczkaListaView($data);
|
|
$this->zaliczkaListaView($data);
|
|
|
} else {
|
|
} else {
|
|
|
- UI::startContainer();
|
|
|
|
|
- UI::tag('a', [
|
|
|
|
|
- 'href' => "index.php?_route=UrlAction_UserProNetMediaZaliczka&idUser={$data['idUser']}",
|
|
|
|
|
- 'class' => "btn btn-link"
|
|
|
|
|
- ], "<i class=\"glyphicon glyphicon-arrow-left\"></i> wróć");
|
|
|
|
|
- UI::endContainer();
|
|
|
|
|
|
|
+ echo UI::h('div', ['class' => "container", 'style' => 'margin-top:12px; margin-bottom:6px; padding-bottom:6px; border-bottom:1px solid #ddd'], [
|
|
|
|
|
+ UI::h('a', [
|
|
|
|
|
+ 'href' => "index.php?_route=UrlAction_UserProNetMediaZaliczka&idUser={$data['idUser']}",
|
|
|
|
|
+ 'class' => "btn btn-link pull-left"
|
|
|
|
|
+ ], "<i class=\"glyphicon glyphicon-arrow-left\"></i> wróć"),
|
|
|
|
|
+ UI::h('a', [
|
|
|
|
|
+ 'href' => "index.php?_route=ViewTableAjax&typeName=p5_default_db:IN7_DZIENNIK_KORESP#CREATE",
|
|
|
|
|
+ 'class' => "btn btn-sm btn-default pull-right"
|
|
|
|
|
+ ], "<span class=\"glyphicon glyphicon-plus\"></span> Dodaj dokument <i>(Korespondencję)</i>")
|
|
|
|
|
+ ]);
|
|
|
$this->zaliczkaFormView($data);
|
|
$this->zaliczkaFormView($data);
|
|
|
}
|
|
}
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
@@ -243,7 +247,7 @@ class Route_UrlAction_UserProNetMediaZaliczka extends RouteBase {// TODO: UrlAct
|
|
|
header("Location: {$redirectUrl}");
|
|
header("Location: {$redirectUrl}");
|
|
|
} else {
|
|
} else {
|
|
|
echo'<script type="text/javascript">'."
|
|
echo'<script type="text/javascript">'."
|
|
|
-window.location.href='{$redirectUrl}';
|
|
|
|
|
|
|
+ window.location.href='{$redirectUrl}';
|
|
|
".'</script>';
|
|
".'</script>';
|
|
|
echo "\n".'<noscript>';
|
|
echo "\n".'<noscript>';
|
|
|
echo "\n".'<meta http-equiv="refresh" content="0;url='.$redirectUrl.'" />';
|
|
echo "\n".'<meta http-equiv="refresh" content="0;url='.$redirectUrl.'" />';
|