From 43de9af71f7f4ca5731b94a06d688ae8412ba427 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 6 Jul 2018 11:14:41 +0200 Subject: 2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota --- mayor-orig/www/skin/rpc/base/html/alert.phtml | 56 +++++++++++++++++++++++++++ mayor-orig/www/skin/rpc/base/html/base.phtml | 23 +++++++++++ 2 files changed, 79 insertions(+) create mode 100644 mayor-orig/www/skin/rpc/base/html/alert.phtml create mode 100644 mayor-orig/www/skin/rpc/base/html/base.phtml (limited to 'mayor-orig/www/skin/rpc/base') diff --git a/mayor-orig/www/skin/rpc/base/html/alert.phtml b/mayor-orig/www/skin/rpc/base/html/alert.phtml new file mode 100644 index 00000000..adda7354 --- /dev/null +++ b/mayor-orig/www/skin/rpc/base/html/alert.phtml @@ -0,0 +1,56 @@ +'.$aType.':'.$aCode.')'; + else $msg = $ALERT_MSG[$aCode]; + + // paraméter behelyettesítés + for($i = 0; $i < count($param); $i++) { + $_msg = $msg; + $msg = @str_replace("%$i%",''.($param[$i]).'',$msg); + if ($param[$i] != '' and $_msg == $msg) $pstr .= ''.($param[$i]).','; + } + if ($pstr != '') $msg .= ' (' . substr($pstr,0,-1) . ')'; + if (($aType == 'message') or ($aType == 'page')) { + $title = _ERROR; + $class = 'errorMsg'; + if ($aType == 'page') $showPage = false; + } else { + $title = _INFORMATION; + $class = 'infoMsg'; + } + $msg = ''.$title.': ' . $msg; + if (isset($_GET['showAlert'])) echo '
'.$msg.'
'."\n"; + } + + return $showPage; +*/ + + echo 'ERROR'; + var_dump($_SESSION['alert']); + return false; + + } + +?> diff --git a/mayor-orig/www/skin/rpc/base/html/base.phtml b/mayor-orig/www/skin/rpc/base/html/base.phtml new file mode 100644 index 00000000..49a2ce14 --- /dev/null +++ b/mayor-orig/www/skin/rpc/base/html/base.phtml @@ -0,0 +1,23 @@ +sendResponse(); + } + + //function putResponse($DATA) { + // echo json_encode($DATA); + //} + // function formBegin($SET=array('method'=>'post','action'=>''),$SET2=array('print'=>true)) { } + // function formEnd($SET2=array('print'=>true)) { } + +?> -- cgit v1.2.3