Created
July 28, 2010 15:47
-
-
Save kodi/494962 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo ' | |
<form class="cmxform" id="form1" name="form1" method="post" action="photoUploadedDatabase"> | |
<ol> | |
<li> | |
<img class="uploadedImage" src="' . SMALL_IMAGE . $imageName . '" alt="Uploaded photo" /> | |
</li> | |
<li> | |
<label for="pictureTitle">Picture title</label> | |
<input type="text" name="pictureTitle" id="pictureTitle" value="" /> | |
</li> | |
<li> | |
<label for="pictureCaption">Picture caption</label> | |
<input type="text" name="pictureCaption" id="pictureCaption" value="" /> | |
</li> | |
<li> | |
<label for="pictureKeywords">Keywords</label> | |
<input type="text" name="pictureKeywords" id="pictureKeywords" value="" /> | |
</li> | |
<li> | |
<label for="albumName">Album name</label> | |
<select id="albumName" name="albumName">' . "\n"; | |
foreach ($albumName as $album) { | |
echo '<option value="' . $album['albumID'] . '">' . $album['albumTitle'] . '</option>' . "\n"; | |
} | |
echo ' | |
</select> | |
</li> | |
<li> | |
<input type="hidden" name="pictureName" id="pictureName" size="10" value="'.$imageName.'" /> | |
</li> | |
</ol> | |
<p><input type="submit" name="submit" id="submit" value="Submit" /> | |
</p> | |
</form>'; | |
?> | |
// | |
//ovako treba | |
// | |
<form class="cmxform" id="form1" name="form1" method="post" action="photoUploadedDatabase"> | |
<ol> | |
<li> | |
<img class="uploadedImage" src="' . SMALL_IMAGE . $imageName . '" alt="Uploaded photo" /> | |
</li> | |
<li> | |
<label for="pictureTitle">Picture title</label> | |
<input type="text" name="pictureTitle" id="pictureTitle" value="" /> | |
</li> | |
<li> | |
<label for="pictureCaption">Picture caption</label> | |
<input type="text" name="pictureCaption" id="pictureCaption" value="" /> | |
</li> | |
<li> | |
<label for="pictureKeywords">Keywords</label> | |
<input type="text" name="pictureKeywords" id="pictureKeywords" value="" /> | |
</li> | |
<li> | |
<label for="albumName">Album name</label> | |
<select id="albumName" name="albumName"> | |
<?php | |
foreach ($albumName as $album) { | |
echo '<option value="' . $album['albumID'] . '">' . $album['albumTitle'] . '</option>' . "\n"; | |
}//end php block ?> | |
</select> | |
</li> | |
<li> | |
<input type="hidden" name="pictureName" id="pictureName" size="10" value="'.$imageName.'" /> | |
</li> | |
</ol> | |
<p><input type="submit" name="submit" id="submit" value="Submit" /> | |
</p> | |
</form>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment