Skip to content

Commit

Permalink
Changed vehicle list variable
Browse files Browse the repository at this point in the history
  • Loading branch information
senthilp committed Aug 23, 2011
1 parent fc7e091 commit 042a7b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
TODO
1. refactor imagewrapper
2. Documentation
6. create Utils & CSS file
22 changes: 7 additions & 15 deletions arena.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
<?php
// Vehicle List
$VEH_LIST = array("",
"",
"",
"",
"",
"",
"",
""
);
// Vehicle Count
$VEH_COUNT = 8;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>Picture Uploader</TITLE>
<link rel="shortcut icon" href="favicon.ico" />
<style type="text/css">
body {
font-family: Arial,Helvetica,sans-serif;
Expand Down Expand Up @@ -219,11 +212,11 @@
</div>
<div id="dropBox" class="dropbox">
<?php
for($i=0, $l=count($VEH_LIST); $i < $l; $i++) {
for($i=0; $i < $VEH_COUNT; $i++) {
if($i%4 == 0) {
echo '<div class="clear"></div>';
}
echo getPicTemplate($i, $VEH_LIST[$i]);
echo getPicTemplate($i);
}
?>
</div>
Expand All @@ -236,7 +229,7 @@
<script src="picmanager.js"></script>
<script>
var PicManConfig = {
MAX_LIMIT: <?php echo count($VEH_LIST); ?>,
MAX_LIMIT: <?php echo $VEH_COUNT; ?>,
uploadForm: "file_upload_form",
file: "picfile",
maskLayer: "mask",
Expand Down Expand Up @@ -271,7 +264,7 @@
</BODY>
</HTML>
<?php
function getPicTemplate($index, $vehicle) {
function getPicTemplate($index) {
$html = array();
$html[] = '<div id="picContainer'.$index.'" class="piccontainer">';
$html[] = '<div id="overlay'.$index.'" class="overlay">';
Expand Down Expand Up @@ -305,7 +298,6 @@ function getPicTemplate($index, $vehicle) {
$html[] = '</div>';
$html[] = '</div>';
$html[] = '<div id="picBottom'.$index.'" class="picbottom">';
$html[] = $vehicle;
$html[] = '</div>';
$html[] = '</div>';
Expand Down

0 comments on commit 042a7b8

Please sign in to comment.