Permalink
Browse files

super stripes!

git-svn-id: svn://mislav.caboo.se/public/uploader@231 b38871a6-e216-0410-912a-b3827fb9e1fb
  • Loading branch information...
1 parent 250a109 commit 65dde2bf7edbdff75b6b4e7df91551f4ebebdc11 @mislav committed Jul 23, 2007
Showing with 9 additions and 5 deletions.
  1. +6 −5 index.php
  2. 0 { → scriptaculous}/prototype.js
  3. BIN stripe.png
  4. +3 −0 style.css
View
11 index.php
@@ -8,14 +8,15 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>parkour.hr - admin - slike</title>
<link href="style.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="prototype.js"></script>
+
+ <script type="text/javascript" src="scriptaculous/prototype.js"></script>
<script type="text/javascript" src="scriptaculous/effects.js"></script>
<script type="text/javascript" src="application.js"></script>
</head>
<body>
<div id="main">
- <div id="images">
+ <div id="images"<?= count($files) ? '' : ' class="empty"' ?>>
<? foreach($files as $filename_thumb):
$filename = str_replace('-thumb', '', $filename_thumb);
$name = preg_replace('/\.\w+$/', '', $filename);
@@ -24,7 +25,7 @@
</div>
<div id="sidebar">
- <form id="upload" action="upload.php" method="POST" enctype="multipart/form-data">
+ <form id="upload" action="./upload.php" method="POST" enctype="multipart/form-data">
<h2>Upload a new image</h2>
<p>Choose a file: <a href="#" onclick="addFileField(); return false">(add more fields)</a></p>
@@ -37,10 +38,10 @@
</div>
</form>
- <div id="messages">
+ <!--<div id="messages">
<div class="error">Error: upload limit exceeded</div>
<div class="notice">Successfully uploaded "Some File".</div>
- </div>
+ </div>-->
</div>
</div>
View
0 prototype.js → scriptaculous/prototype.js
File renamed without changes.
View
BIN stripe.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
3 style.css
@@ -70,6 +70,9 @@ img { border: none }
bottom: 0;
overflow: auto;
}
+#images.empty {
+ background: white url(stripe.png);
+}
form div.buttons {
margin-top: 1em;

0 comments on commit 65dde2b

Please sign in to comment.