<?php if (empty($this->_vars['isModule'])): ?>
					<form name="upload" method="post" enctype="multipart/form-data" action="<?php e($this->_vars['action']['url']); ?>"><?php HTML::requires(); ?>
					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="__" align="absbottom" />
						<div class="listrow"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/attach.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Upload'); ?></h2></div>
<?php if (!empty($this->_vars['name'])): ?>
						<div class="listrow">
							<label class="column"><?php _e('Uploaded'); ?>:</label>
							<div class="fdata">
								<img src="<?php e(BASE_URL.$this->_vars['name']); ?>" width="<?php e($this->_vars['width']); ?>" height="<?php e($this->_vars['height']); ?>" alt="attach" />
							</div>
						</div>
<?php endif; ?>
						<div class="listrow">
							<label class="column"><?php _e('Album'); ?>:</label>
							<div class="fdata">
								<select name="ref_album"><option value="0"><?php _e('- Select One -'); ?></option><?php HTML::options($this->_vars['act_album']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('File'); ?>:</label>
							<div class="fdata">
								<input type="file" name="attach" size="40" style="width:280px;" /><br />
								<ul>
									<li><?php _e('400 KB: JPEG, GIF, PNG only uploaded.'); ?></li>
									<li><?php _e('Copyright violation of the right to hit portrait photography, violent, obscene photos, and the other is the general feel uncomfortable photo distribution is banned.'); ?>
									<li><?php _e("Running the user's own responsibility."); ?></li>
								</ul>
							</div>
						</div>
						<div class="listplain"><input type="submit" name="manip" value="<?php _e('To upload photo'); ?>" style="width:140px;" /></div>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="__" align="top" /></form>
<?php else : ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="content-type" content='text/html; charset="utf-8"' />
</head>
<body style="margin: 0; padding: 0;">
	<form name="upload" method="post" enctype="multipart/form-data" action="<?php e(HTTP_ACTION); ?>private/attach/upload/module/"><?php HTML::requires(); ?>
		<input type="file" name="attach" size="60" style="width:364px;"/>
		<input type="submit" name="manip" value="<?php _e('Upload'); ?>" style="width:100px;" />
	</form>
<?php if (!empty($this->_vars['name'])): ?>
	<script language="javascript" type="text/javascript">
		parent.myAttach.insImg(<?php e($this->_vars['id']); ?>, '<?php e($this->_vars['name']); ?>');
	</script>
<?php endif; ?>
</body>
<html>
<?php endif; ?>
