~ubuntu-branches/ubuntu/quantal/gallery2/quantal

« back to all changes in this revision

Viewing changes to install/templates/MainPage.html

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2005-11-29 15:50:12 UTC
  • Revision ID: james.westby@ubuntu.com-20051129155012-wtophp03lu01kdgl
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
2
<html>
 
3
  <head>
 
4
    <title> <?php print _('Welcome to the Gallery Installer') ?> </title>
 
5
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
 
6
    <link rel="stylesheet" type="text/css" href="styles/style.css"/>
 
7
  </head>
 
8
 
 
9
  <body<?php if (isset($translator)
 
10
             && $translator->isRightToLeft()) print ' style="direction:rtl"' ?>>
 
11
    <table id="box" cellspacing="0">
 
12
      <tr><td id="header" colspan="2">
 
13
        <img src="images/g2Logo_install_head.png" alt="Gallery Installer"/>
 
14
      </td></tr>
 
15
      <tr><td id="navbar"><div>
 
16
        <table cellspacing="0">
 
17
          <tr><td class="heading" colspan="2">
 
18
            <?php print _('Install Steps') ?>
 
19
          </td></tr>
 
20
          <?php for ($i = 0; $i < count($steps); $i++): ?>
 
21
          <tr><td class="navnum">
 
22
            <?php if ($i <= $currentStep->getStepNumber()
 
23
                  && ($steps[$i]->isComplete() || $steps[$i]->isOptional())): ?>
 
24
              <span class="success">&radic;</span>
 
25
            <?php elseif ($steps[$i]->isInError()): ?>
 
26
              <span class="error">&#10007;</span>
 
27
            <?php else: ?>
 
28
              <?php print $i ?>
 
29
            <?php endif; ?>
 
30
          </td><td class="navtext">
 
31
            <?php $linkable = ($i == 0 ||
 
32
                    ($i <= $currentStep->getStepNumber() + 1 &&
 
33
                        ($steps[$i-1]->isComplete() || $steps[$i-1]->isOptional())));
 
34
            ?>
 
35
            <?php if ($linkable): ?>
 
36
              <a href="<?php printf('%s?step=%s', INDEX_PHP, $i) ?>">
 
37
            <?php endif; ?>
 
38
            <?php print $steps[$i]->stepName(); ?>
 
39
            <?php if ($linkable): ?>
 
40
              </a>
 
41
            <?php endif; ?>
 
42
          </td></tr>
 
43
          <?php endfor; ?>
 
44
          <tr class="help"><td>
 
45
            <span class="helpBox">?</span>
 
46
          </td><td>
 
47
            <a href="../README.html" target="_blank"><?php print _('Installer Help'); ?></a>
 
48
          </td></tr>
 
49
          <tr><td>
 
50
            <span class="helpBox">X</span>
 
51
          </td><td>
 
52
            <a href="<?php print INDEX_PHP ?>?startOver=1"><?php print _('Start Over'); ?></a>
 
53
          </td></tr>
 
54
        </table>
 
55
      </div></td>
 
56
      <td id="main">
 
57
        <?php if (!empty($templateData['errors'])): ?>
 
58
        <h2 class="error">
 
59
          <?php foreach ($templateData['errors'] as $error): ?>
 
60
          <?php print $error ?> <br/>
 
61
          <?php endforeach; ?>
 
62
        </h2>
 
63
        <?php endif; ?>
 
64
 
 
65
        <?php if (!empty($templateData['warnings'])): ?>
 
66
        <h2 class="warning">
 
67
          <?php foreach ($templateData['warnings'] as $warning): ?>
 
68
          <?php print $warning ?> <br/>
 
69
          <?php endforeach; ?>
 
70
        </h2>
 
71
        <?php endif; ?>
 
72
 
 
73
        <?php include(dirname(__FILE__) . '/' . $templateData['bodyFile']); ?>
 
74
 
 
75
        <?php if ($currentStep->isComplete() && !$currentStep->isLastStep()): ?>
 
76
        <div class="go">
 
77
          <?php if ($currentStep->isRedoable()): ?>
 
78
          <span class="goToNextL">
 
79
            <a href="<?php printf('%s?step=%s', INDEX_PHP, $stepNumber) ?>&amp;doOver=1">
 
80
              <?php print _('Redo this step'); ?>
 
81
            </a>
 
82
          </span>
 
83
          <?php endif; ?>
 
84
 
 
85
          <?php $nextStep = $stepNumber + 1 ?>
 
86
          <span class="goToNext">
 
87
            <a href="<?php printf('%s?step=%s', INDEX_PHP, $nextStep) ?>">
 
88
              <?php printf(_('Continue to Step %d&raquo;'), $nextStep); ?>
 
89
            </a>
 
90
          </span>
 
91
        </div>
 
92
        <?php endif; ?>
 
93
      </td></tr>
 
94
      <tr><td id="bottom" colspan="2">
 
95
        <h3><?php print _('Installation Status') ?></h3>
 
96
        <table id="statusTable" cellspacing="0">
 
97
          <tr>
 
98
            <?php if ($templateData['percentComplete'] != 0): ?>
 
99
            <td class="progressMade"
 
100
                style="width:<?php print $templateData['percentComplete'] ?>%"><h3>&nbsp;</h3></td>
 
101
            <?php endif; ?>
 
102
 
 
103
            <?php if ($templateData['percentComplete'] != 100): ?>
 
104
            <td class="progressToGo"
 
105
                style="width:<?php print (100 - $templateData['percentComplete']) . '%' .
 
106
                  (($templateData['percentComplete'] == 0) ? '' : ';border-left:none')
 
107
                ?>"><h3>&nbsp;</h3></td>
 
108
            <?php endif; ?>
 
109
          </tr>
 
110
        </table>
 
111
        <?php printf(_('Install %d%% complete'), $templateData['percentComplete']); ?>
 
112
      </td></tr>
 
113
    </table>
 
114
    <div id="footer">
 
115
      <?php print _('Gallery: <strong>your photos</strong> on <strong>your website</strong>') ?>
 
116
      &raquo; <a target="_blank" href="http://gallery.sourceforge.net/">gallery.sourceforge.net</a>
 
117
    </div>
 
118
  </body>
 
119
</html>