source: extensions/gally/piwigo-2.0/dialogs.tpl @ 17945

Last change on this file since 17945 was 4446, checked in by grum, 15 years ago

[Template:Gally] Add template to subversion

  • Property svn:executable set to *
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.