source: extensions/gally/gally-default/template/dialogs.tpl @ 6109

Last change on this file since 6109 was 6109, checked in by grum, 14 years ago

Gally's themes compatibles with piwigo 2.1

File size: 869 bytes
Line 
1{* common file for errors/infos dialog box *}
2
3{if isset($errors) and count($errors) or isset($infos) and count($infos)}
4
5{literal}
6<script type="text/javascript">
7  $(function() {
8    $("#divMsg").dialog({
9      bgiframe: true,
10      modal: true,
11      dialogClass: '{/literal}{if isset($errors) and count($errors)}errors{elseif isset($infos) and count($infos)}infos{/if}{literal}',
12      buttons: {
13        "{/literal}{'Ok'|@translate}{literal}": function()
14        {
15          $(this).dialog("close");
16        }
17      }
18    });
19  });
20</script>
21{/literal}
22
23<div id="divMsg">
24  <ul>
25    {if isset($errors) and count($errors)}
26      {foreach from=$errors item=error}
27      <li>{$error}</li>
28      {/foreach}
29    {/if}
30    {if isset($infos) and count($infos)}
31      {foreach from=$infos item=info}
32      <li>{$info}</li>
33      {/foreach}
34    {/if}
35  </ul>
36</div>
37
38{/if}
Note: See TracBrowser for help on using the repository browser.