<?php
require_once '../inc/logincheck.php';
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript">
function checkUploadPhoto(prompt)
{
  if(document.myform.imgurl.value == '')
  {
    alert(prompt);
    return false;
  }
  return true;
}
</script>
<title></title>
</head>
<body style="margin:0px; padding:0px">
  <form enctype="multipart/form-data" method="POST" name="myform"  action="uploadsave.php?action=add" target="_self">
    <input name="imgurl" type="file"  size="20" maxlength="200">
    <input type="submit"  value="<?php echo $labelCommonUploadButton ?>" onClick="return checkUploadPhoto(<?php echo '\''.$promptIncludeDirEmptyUploadPhotoPath.'\'';?>)"/>
    <input style="display:none" name="returnid" type="text" value="<?php echo $returnid; ?>" />
    <input style="display:none" name="createsamll" type="text" value="<?php echo $createsamll; ?>" />
    <input style="display:none" name="phototype" type="text" value="<?php echo $phototype; ?>" />
    <input style="display:none" name="flash" type="text" value="<?php echo $flash; ?>" />
  </form>
</body>
</html>