source: extensions/EStat/admin/estat_install_page.tpl @ 17737

Last change on this file since 17737 was 17737, checked in by grum, 12 years ago

First commit for EStat files

  • Property svn:executable set to *
File size: 2.7 KB
Line 
1<h2 style="float:right;top:-24px;position:relative;height:auto;font-size:12px;font-weight:normal;">{$plugin.ESTAT_VERSION}</h2>
2
3{footer_script}
4{literal}
5var translatedString={
6{/literal}
7      ciDialogTitle:"{'estat_work_in_progress'|@translate}",
8      ciDialogText:"{'estat_prepare_db_ip'|@translate}",
9      ciDialogFinished:"{'estat_work_finished'|@translate}",
10      liDialogText:"{'estat_log_import_in_progress'|@translate}<br>",
11      liDialogImportInProgressText:"{$plugin.l10n_logImportInProgress}",
12      liDialogFinished:"{'estat_log_import_finished'|@translate}",
13      liDialogConsolidate:"{'estat_consolidate'|@translate}",
14      liDialogImportStep1:"{'estat_import_step1'|@translate}",
15      liDialogImportStep2:"{'estat_import_step2'|@translate}",
16      liDialogImportStep3:"{'estat_import_step3'|@translate}"
17{literal}
18    };
19
20$(window).load(
21  function()
22  {
23    $('#iImportLogsChoice')
24      .inputCheckbox(
25          {
26            values:
27              {
28                forced:true,
29                checked:true,
30                unchecked:false
31              },
32            returnMode:'checked'
33          }
34        )
35      .inputCheckbox('value', ':all', true);
36
37    $('#iBtImport').bind('click',
38      function (event)
39      {
40        $('#iImportBt').css('display', 'none');
41        $.EStatImportLogs({/literal}'{$plugin.urlRequest}', '{$token}'{literal});
42      }
43    );
44    $('#iBtDontImport').bind('click',
45      function (event)
46      {
47        $('#iImportBt').css('display', 'none');
48        $.EStatInstall(2,
49          {
50            {/literal}
51            url:'{$plugin.urlRequest}',
52            token:'{$token}'
53            {literal}
54          }
55        );
56      }
57    );
58
59    $.EStatInstall(0,
60      {
61        {/literal}
62        url:'{$plugin.urlRequest}',
63        token:'{$token}',
64        ipNbRecords:{$plugin.ipNbRecords},
65        importLog:{$plugin.importLog}
66        {literal}
67      }
68    );
69  }
70);
71
72{/literal}
73{/footer_script}
74
75<div id='iImportLogs' style='display:none;'>
76  <p>{$plugin.l10n_piwigoHistory}</p>
77  <p>{'estat_import_following_periods'|@translate}</p>
78  <div id='iImportLogsChoice'>
79    <table>
80    {foreach from=$plugin.piwigoHistoryPeriods key=periodId item=period}
81      <tr>
82        <td><label><input type='checkbox' id='i{$periodId}' nbEvents='{$period.nbEvents}'><span id='iText{$periodId}'>{$period.label}</span></label></td>
83        <td class='nbEvents'>{$period.nbEvents} {'estat_events'|@translate}</td>
84      </tr>
85    {/foreach}
86    </table>
87  </div>
88  <div id='iImportBt'>
89    <input type='button' id='iBtImport' value='{"estat_import"|@translate}'>
90    <input type='button' id='iBtDontImport' value='{"estat_dont_import"|@translate}'>
91  </div>
92</div>
Note: See TracBrowser for help on using the repository browser.