Code

Updated constant handling
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Jan 2010 07:57:25 +0000 (07:57 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Jan 2010 07:57:25 +0000 (07:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15342 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/ihtml/themes/default/msg_dialog.tpl

index 53f769a1b10526f70ea3b2ab9f449dc788fe474c..5274880fedca90ba635a767572a25bd3b917b4fe 100644 (file)
@@ -45,7 +45,7 @@
 
        {if !$JS}
 
-               {if $i_Type == INFO_DIALOG || $i_Type == CONFIRM_DIALOG || $i_Type == OK_CANCEL_DIALOG}
+               {if $i_Type == $smarty.const.INFO_DIALOG || $i_Type == $smarty.const.CONFIRM_DIALOG || $i_Type == $smarty.const.OK_CANCEL_DIALOG}
                <div id='e_layer{$i_ID}' class="infoMsgDialog" style='top:200px;left:200px;'>
     {else}
                <div id='e_layer{$i_ID}' class="errorMsgDialog" style='top:200px;left:200px;'>
 
                        <div id="e_layerTitle{$i_ID}" class="errorMsgTitle">
                        <table><tr><td>
-               {if $i_Type == ERROR_DIALOG}
+               {if $i_Type == $smarty.const.ERROR_DIALOG}
                                                <img src='images/error.png' alt='{t}Error{/t}'>
-               {elseif $i_Type == WARNING_DIALOG}
+               {elseif $i_Type == $smarty.const.WARNING_DIALOG}
                                                <img src='images/warning.png'  alt='{t}Warning{/t}'>
-               {elseif $i_Type == INFO_DIALOG || $i_Type == CONFIRM_DIALOG || $i_Type == OK_CANCEL_DIALOG}
+               {elseif $i_Type == $smarty.const.INFO_DIALOG || $i_Type == $smarty.const.CONFIRM_DIALOG || $i_Type == $smarty.const.OK_CANCEL_DIALOG}
                                                <img src='images/info.png' alt='{t}Information{/t}'>
                {/if}
                        </td><td style='font-size: 1.1em; font-weight:bold;'>{$s_Title}</td></tr>
@@ -72,9 +72,9 @@
                                </tr>
                                <tr>
                                        <td colspan='2' align='center'>
-               {if $i_Type == ERROR_DIALOG || $i_Type == WARNING_DIALOG || $i_Type == INFO_DIALOG}
+               {if $i_Type == $smarty.const.ERROR_DIALOG || $i_Type == $smarty.const.WARNING_DIALOG || $i_Type == $smarty.const.INFO_DIALOG}
                                                <input type='button' type='submit' name='MSG_OK{$i_ID}' value='{t}Ok{/t}'> 
-               {elseif $i_Type == CONFIRM_DIALOG || $i_Type == OK_CANCEL_DIALOG}
+               {elseif $i_Type == $smarty.const.CONFIRM_DIALOG || $i_Type == $smarty.const.OK_CANCEL_DIALOG}
                                                <input type='button' type='submit' name='MSG_OK{$i_ID}' value='{t}Ok{/t}'>
                                                <input type='button' type='submit' name='MSG_CANCEL{$i_ID}' value='{t}Cancel{/t}'>
                {/if}
@@ -92,7 +92,7 @@
                
                {/if}
 
-    {if $i_Type == INFO_DIALOG || $i_Type == CONFIRM_DIALOG || $i_Type == OK_CANCEL_DIALOG}
+    {if $i_Type == $smarty.const.INFO_DIALOG || $i_Type == $smarty.const.CONFIRM_DIALOG || $i_Type == $smarty.const.OK_CANCEL_DIALOG}
     <div id='e_layer{$i_ID}' class="infoMsgDialog" style='top:200px;left:200px;'>
     {else}
     <div id='e_layer{$i_ID}' class="errorMsgDialog" style='top:200px;left:200px;'>
 
                <div id="e_layerTitle{$i_ID}" class="errorMsgTitle">
                        <table><tr><td>
-               {if $i_Type == ERROR_DIALOG}
+               {if $i_Type == $smarty.const.ERROR_DIALOG}
                                                <img src='images/error.png' alt='{t}Error{/t}'>
-               {elseif $i_Type == WARNING_DIALOG}
+               {elseif $i_Type == $smarty.const.WARNING_DIALOG}
                                                <img src='images/warning.png'  alt='{t}Warning{/t}'>
-               {elseif $i_Type == INFO_DIALOG || $i_Type == CONFIRM_DIALOG || $i_Type == OK_CANCEL_DIALOG}
+               {elseif $i_Type == $smarty.const.INFO_DIALOG || $i_Type == $smarty.const.CONFIRM_DIALOG || $i_Type == $smarty.const.OK_CANCEL_DIALOG}
                                                <img src='images/info.png' alt='{t}Information{/t}'>
                {/if}
                        </td><td style='font-size: 1.1em; font-weight:bold;'>{$s_Title}</td></tr>
                                        {else}
                                        <td colspan='2' align='center' style="border-top: solid 1px #BBBBBB;">
                                        {/if}
-               {if $i_Type == ERROR_DIALOG || $i_Type == WARNING_DIALOG || $i_Type == INFO_DIALOG}
+               {if $i_Type == $smarty.const.ERROR_DIALOG || $i_Type == $smarty.const.WARNING_DIALOG || $i_Type == $smarty.const.INFO_DIALOG}
                                                <input type='button' id='MSG_OK{$i_ID}' type='button' name='MSG_OK{$i_ID}' 
               onClick='next_msg_dialog();' value='{t}Ok{/t}'>
-               {elseif $i_Type == CONFIRM_DIALOG}
+               {elseif $i_Type == $smarty.const.CONFIRM_DIALOG}
                                                <input type='button' id='MSG_OK{$i_ID}' type='submit' name='MSG_OK{$i_ID}' 
               onClick='next_msg_dialog();' value='{t}Ok{/t}'>
                                                <input type='button' type='button' name='MSG_CANCEL{$i_ID}' 
               onClick='next_msg_dialog();' value='{t}Cancel{/t}'>
-               {elseif $i_Type == OK_CANCEL_DIALOG}
+               {elseif $i_Type == $smarty.const.OK_CANCEL_DIALOG}
                                                <input type='button' id='MSG_OK{$i_ID}' type='submit' name='MSG_OK{$i_ID}' 
               onClick='next_msg_dialog();' value='{t}Ok{/t}'>
                                                <input type='button' type='submit' name='MSG_CANCEL{$i_ID}'