~spirit55555/pluck-cms/message-system

« back to all changes in this revision

Viewing changes to data/inc/images.php

  • Committer: Anders Jørgensen
  • Date: 2010-03-21 14:16:08 UTC
  • Revision ID: spirit55555@gmail.com-20100321141608-bze1bkivu3i6ri6s
Even more cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
<p>
21
21
        <strong><?php echo $lang['images']['message']; ?></strong>
22
22
</p>
23
 
<div class="menudiv">
 
23
<div class="menudiv" style="display: inline-block; margin-top: 0;">
24
24
        <span>
25
25
                <img src="data/image/image.png" alt="" />
26
26
        </span>
27
 
        <div style="display: inline-block;">
28
 
                <form name="form1" method="post" action="" enctype="multipart/form-data">
29
 
                        <input type="file" name="imagefile" />
30
 
                        <input type="submit" name="submit" value="<?php echo $lang['general']['upload']; ?>" />
31
 
                </form>
32
 
        </div>
 
27
        <form name="form1" method="post" action="" enctype="multipart/form-data" style="display: inline-block;">
 
28
                <input type="file" name="imagefile" />
 
29
                <input type="submit" name="submit" value="<?php echo $lang['general']['upload']; ?>" />
 
30
        </form>
33
31
</div>
34
32
<?php
35
33
if (isset($_POST['submit'])) {
48
46
                                        <br />
49
47
                                        <strong><?php echo $lang['images']['type']; ?></strong> <?php echo $_FILES['imagefile']['type']; ?>
50
48
                                        <br />
51
 
                                        <strong><?php echo $lang['images']['success']; ?></strong>
 
49
                                        <strong><?php echo $lang['images']['success']; //TODO: Need to show this message another place, and with show_error(). ?></strong>
52
50
                                </div>
53
51
                        <?php
54
52
                }
58
56
//Display list of uploaded pictures.
59
57
?>
60
58
<span class="kop2"><?php echo $lang['images']['uploaded']; ?></span>
61
 
<br />
62
59
<?php
63
60
//Show the uploaded images
64
61
$images = read_dir_contents('images', 'files');
89
86
        else
90
87
                echo '<span class="kop4">'.$lang['general']['nothing_yet'].'</span>';
91
88
?>
92
 
<p>
 
89
<p style="margin-top: 10px;">
93
90
        <a href="?action=page">&lt;&lt;&lt; <?php echo $lang['general']['back']; ?></a>
94
91
</p>
 
 
b'\\ No newline at end of file'