<?php /* Smarty version 2.6.31, created on 2024-05-24 17:43:58
         compiled from db:d3downloads_main_submit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'db:d3downloads_main_submit.html', 113, false),array('function', 'html_select_date', 'db:d3downloads_main_submit.html', 232, false),array('function', 'html_select_time', 'db:d3downloads_main_submit.html', 233, false),)), $this); ?>
<?php if ($this->_tpl_vars['mod_config']['show_breadcrumbs']): ?>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "db:".($this->_tpl_vars['mydirname'])."_inc_breadcrumbs.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php endif; ?>
<h2 id="form_title"><?php if (! $this->_tpl_vars['preview_title'] && ! $this->_tpl_vars['preview_body']): ?><?php echo $this->_tpl_vars['formtitle']; ?>
<?php else: ?><?php echo @_PREVIEW; ?>
<?php endif; ?> <?php if ($this->_tpl_vars['download']['title']): ?>: <?php echo $this->_tpl_vars['download']['title']; ?>
<?php endif; ?></h2>
<?php if ($this->_tpl_vars['iserror']): ?>
	<div class="d3downloads_error_message">
		<?php echo $this->_tpl_vars['error_message']; ?>

	</div>
<?php endif; ?>
<?php if ($this->_tpl_vars['preview_title'] || $this->_tpl_vars['preview_body']): ?>
	<dl id="post_preview" class="d3downloads_outer">
		<?php if ($this->_tpl_vars['preview_title']): ?>
			<dt class="d3downloads_head"><?php echo $this->_tpl_vars['preview_title']; ?>
</dt>
		<?php endif; ?>
		<?php if ($this->_tpl_vars['preview_body']): ?>
			<dd class="d3downloads_odd"><?php echo $this->_tpl_vars['preview_body']; ?>
</dd>
		<?php endif; ?>
	</dl>
<?php endif; ?>
<form name="makedownloadform" id="makedownloadform" action="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=<?php echo $this->_tpl_vars['page']; ?>
&amp;cid=<?php echo $this->_tpl_vars['download']['cid']; ?>
&amp;lid=<?php echo $this->_tpl_vars['download']['lid']; ?>
" method="post" enctype="multipart/form-data">
	<?php echo $this->_tpl_vars['gticket_hidden']; ?>

	<input type="hidden" name="lid" value="<?php echo $this->_tpl_vars['download']['lid']; ?>
" />
	<input type="hidden" name="submitter" value="<?php echo $this->_tpl_vars['download']['submitter']; ?>
" />
	<input type="hidden" name="filename" value="<?php echo $this->_tpl_vars['download']['filename']; ?>
" />
	<input type="hidden" name="ext" value="<?php echo $this->_tpl_vars['download']['ext']; ?>
" />
	<input type="hidden" name="logourl" value="<?php echo $this->_tpl_vars['download']['logourl']; ?>
" />
	<input type="hidden" name="visible" value="<?php echo $this->_tpl_vars['download']['visible']; ?>
" />
	<input type="hidden" name="comment" value="<?php echo $this->_tpl_vars['download']['cancomment']; ?>
" />
	<input type="hidden" name="file2" value="<?php echo $this->_tpl_vars['download']['file2']; ?>
" />
	<input type="hidden" name="filename2" value="<?php echo $this->_tpl_vars['download']['filename2']; ?>
" />
	<input type="hidden" name="ext2" value="<?php echo $this->_tpl_vars['download']['ext2']; ?>
" />
	<input type="hidden" name="myencode" value="<?php echo @_MD_D3DOWNLOADS_CHARSET; ?>
" />
	<input type="hidden" name="ajax_url" id="ajax_url" value="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=ajax_load" />
	<table class="d3downloads_outer">
	<?php if (! $this->_tpl_vars['preview_title'] && ! $this->_tpl_vars['preview_body']): ?>
		<tr valign="top" align="left">
			<td colspan="2">
				<?php if ($this->_tpl_vars['message']): ?>
					<?php echo $this->_tpl_vars['message']; ?>

				<?php else: ?>
					<ul>
						<li><?php echo @_MD_D3DOWNLOADS_DONTABUSE; ?>
</li>
						<?php if ($this->_tpl_vars['check_url'] && ! $this->_tpl_vars['download']['lid']): ?>
							<li><?php echo @_MD_D3DOWNLOADS_SUBMITONCE; ?>
</li>
						<?php endif; ?>
						<?php if (! $this->_tpl_vars['auto_approved']): ?>
							<li><?php echo @_MD_D3DOWNLOADS_ALLPENDING; ?>
</li>
							<li><?php echo @_MD_D3DOWNLOADS_TAKEDAYS; ?>
</li>
						<?php endif; ?>
					</ul>
				<?php endif; ?>
				<br />
			</td>
		</tr>
	<?php endif; ?>
		<tr valign="top" align="left">
			<td class="d3downloads_head"><label for="title"><?php echo @_MD_D3DOWNLOADS_SUBMIT_TITLE; ?>
</label></td>
			<td class="d3downloads_even">
				<input type="text" name="title" id="title" size="50" maxlength="105" value="<?php echo $this->_tpl_vars['download']['title']; ?>
" />
			</td>
		</tr>
		<tr valign="top" align="left" id="file_url_line">
			<td class="d3downloads_head">
				<label for="url"><?php echo @_MD_D3DOWNLOADS_SUBMIT_URL; ?>
</label></td>
			<td class="d3downloads_even">
				<div id="post_url">
					<input type="text" name="url" id="url" size="90" maxlength="255" value="<?php if ($this->_tpl_vars['download']['url']): ?><?php echo $this->_tpl_vars['download']['url']; ?>
<?php else: ?>http://<?php endif; ?>" />
					<?php if ($this->_tpl_vars['download']['url']): ?>
						&nbsp;<?php echo $this->_tpl_vars['download']['filelink']; ?>

					<?php endif; ?>
				</div>
				<?php if (! $this->_tpl_vars['config_error'] && $this->_tpl_vars['canupload']): ?>
					<div id="upload">
						<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $this->_tpl_vars['upload_max_filesize']; ?>
" />
						<input disabled="disabled" type="hidden" name="url" id="url_hidden" value="<?php if ($this->_tpl_vars['download']['url']): ?><?php echo $this->_tpl_vars['download']['url']; ?>
<?php else: ?>http://<?php endif; ?>" />
						<?php echo @_MD_D3DOWNLOADS_SUBMIT_FILE1; ?>
<input type="file" name="file_upload[]" id="file_upload_1" size="25" maxlength="255"}>
						<br />
						<?php echo @_MD_D3DOWNLOADS_SUBMIT_FILE2; ?>
<input type="file" name="file_upload[]" id="file_upload_2" size="25" maxlength="255"}>
						<br />
						<div id="max_submit_size">
							<div class="d3downloads_submit_help">
								<?php echo $this->_tpl_vars['max_submit_size']; ?>
<br />
								<?php echo $this->_tpl_vars['submit_extension']; ?>

							</div>
						</div>
					</div>
					<div>
						<input type="checkbox" id="file_url_onoff"">&nbsp;<label for="file_url_onoff"><?php echo @_MD_D3DOWNLOADS_LABEL_INPUT_URL; ?>
</label>
					</div>
				<?php endif; ?>
			</td>
		</tr>
		<?php if ($this->_tpl_vars['download']['filename']): ?>
			<tr valign="top" align="left">
				<td class="d3downloads_head"><label for="filename"><?php echo @_MD_D3DOWNLOADS_SUBMIT_FILENAME; ?>
</label></td>
				<td class="d3downloads_even">
					<?php echo $this->_tpl_vars['download']['filenamelink']; ?>
<br />
				</td>
			</tr>
		<?php endif; ?>
		<?php if ($this->_tpl_vars['download']['filename2']): ?>
			<tr valign="top" align="left">
				<td class="d3downloads_head"><label for="filename2"><?php echo @_MD_D3DOWNLOADS_SUBMIT_FILENAME2; ?>
</label></td>
				<td class="d3downloads_even">
					<?php echo $this->_tpl_vars['download']['filenamelink2']; ?>
&nbsp;&nbsp;<input type="checkbox" name="file2_del" id="file2_del" value="1" <?php if ($this->_tpl_vars['download']['file2_del']): ?>checked="checked"<?php endif; ?> />&nbsp;&nbsp;<label for="file2_del"><?php echo @_DELETE; ?>
</label><br />
				</td>
			</tr>
		<?php endif; ?>
		<tr valign="top" align="left">
			<td class="d3downloads_head"><label for="cid"><?php echo @_MD_D3DOWNLOADS_SUBMIT_CATEGORY; ?>
</label></td>
			<td class="d3downloads_even">
				<select name="cid" id="cid"><br />
					<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['download']['category'],'selected' => $this->_tpl_vars['download']['cid']), $this);?>
<br />
				</select>
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="d3downloads_head"><label for="homepagetitle"><?php echo @_MD_D3DOWNLOADS_SUBMIT_HOMEPAGETITLE; ?>
</label></td>
			<td class="d3downloads_even">
				<input type="text" name="homepagetitle" id="homepagetitle" size="90" maxlength="260" value="<?php echo $this->_tpl_vars['download']['homepagetitle']; ?>
" />
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="d3downloads_head"><label for="homepage"><?php echo @_MD_D3DOWNLOADS_SUBMIT_HOMEPAGE; ?>
</label></td>
			<td class="d3downloads_even">
				<input type="text" name="homepage" id="homepage" size="90" maxlength="100" value="<?php if ($this->_tpl_vars['download']['homepage']): ?><?php echo $this->_tpl_vars['download']['homepage']; ?>
<?php else: ?>http://<?php endif; ?>" />
				<?php if ($this->_tpl_vars['download']['homepage'] && $this->_tpl_vars['download']['homepage'] != "http://"): ?>
					&nbsp;[<a href="<?php echo $this->_tpl_vars['download']['homepage']; ?>
" target="_blank"><?php echo @_MD_D3DOWNLOADS_SUBMIT_ACCESS_URL; ?>
</a>]
				<?php endif; ?>
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="d3downloads_head"><label for="version"><?php echo @_MD_D3DOWNLOADS_SUBMIT_VERSION; ?>
</label></td>
			<td class="d3downloads_even">
				<input type="text" name="version" id="version" size="10" maxlength="15" value="<?php echo $this->_tpl_vars['download']['version']; ?>
" />
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="d3downloads_head"><label for="size"><?php echo @_MD_D3DOWNLOADS_SUBMIT_SIZE; ?>
</label></td>
			<td class="d3downloads_even">
				<input type="text" name="size" id="size" size="10" maxlength="12" value="<?php echo $this->_tpl_vars['download']['size']; ?>
" />&nbsp;<?php echo @_MD_D3DOWNLOADS_SUBMIT_BYTE; ?>

				<?php if (! $this->_tpl_vars['config_error'] && $this->_tpl_vars['canupload']): ?>
					<div id="submit_size_desc" class="d3downloads_submit_help">
						&nbsp;<?php echo @_MD_D3DOWNLOADS_SUBMIT_SIZE_DESC; ?>

					</div>
				<?php endif; ?>
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="d3downloads_head"><label for="platform"><?php echo @_MD_D3DOWNLOADS_SUBMIT_PLATFORM; ?>
</label></td>
			<td class="d3downloads_even">
				<input type="text" name="platform" id="platform" size="50" maxlength="55" value="<?php echo $this->_tpl_vars['download']['platform']; ?>
" /><br />
				<select name="select_platform" id="select_platform">
					<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['select_platform']), $this);?>

				</select>
				<select name="delimiter" id="delimiter">
					<option value=" | "><?php echo @_MD_D3DOWNLOADS_SUBMIT_DELIMITER; ?>
 ( | )</option>
					<option value=" , "><?php echo @_MD_D3DOWNLOADS_SUBMIT_DELIMITER; ?>
 ( , )</option>
					<option value=" / "><?php echo @_MD_D3DOWNLOADS_SUBMIT_DELIMITER; ?>
 ( / )</option>
					<option value="  "><?php echo @_MD_D3DOWNLOADS_SUBMIT_DELIMITER; ?>
 ( <?php echo @_MD_D3DOWNLOADS_SUBMIT_SPASE; ?>
 )</option>
				</select>
			</td>
		</tr>
		<?php if ($this->_tpl_vars['mod_config']['use_license']): ?>
			<tr valign="top" align="left">
				<td class="d3downloads_head"><label for="license"><?php echo @_MD_D3DOWNLOADS_SUBMIT_LICENSE; ?>
</label></td>
				<td class="d3downloads_even">
					<input type="text" name="license" id="license" size="50" maxlength="260" value="<?php echo $this->_tpl_vars['download']['license']; ?>
" /><br />
					<select name="select_license" id="select_license">
						<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['select_license']), $this);?>

					</select>
				</td>
			</tr>
		<?php endif; ?>
		<tr valign="top" align="left">
			<td class="d3downloads_head"><label for="description"><?php echo @_MD_D3DOWNLOADS_SUBMIT_DESCRIPTION; ?>
</label>

			</td>
			<td class="d3downloads_even">
				<?php echo $this->_tpl_vars['body_wysiwyg']; ?>
<br />
				<div class="d3downloads_submit_help">
					<?php echo @_MD_D3DOWNLOADS_SUBMIT_DESCRIPTION_DESC; ?>

				</div>
				<select name="current_data_list" id="current_data_list">
					<option value="[title]"><?php echo @_MD_D3DOWNLOADS_SUBMIT_TITLE_INSERT; ?>
</option>
					<option value="[filename]"><?php echo @_MD_D3DOWNLOADS_SUBMIT_FILENAME_INSERT; ?>
</option>
					<option value="[filename2]"><?php echo @_MD_D3DOWNLOADS_SUBMIT_FILENAME2_INSERT; ?>
</option>
					<option value="[expired]"><?php echo @_MD_D3DOWNLOADS_SUBMIT_EXPIRED_INSERT; ?>
</option>
					<option value="[pagebreak]"><?php echo @_MD_D3DOWNLOADS_SUBMIT_PAGEBREAK_INSERT; ?>
</option>
				</select>
				<input type="button" name="current_data" id="current_data" class="d3downloads_submit" value="<?php echo @_MD_D3DOWNLOADS_SUBMIT_INSERT; ?>
" >
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="d3downloads_head"><label for="option"><?php echo @_MD_D3DOWNLOADS_SUBMIT_OPTION; ?>
</label></td>
			<td class="d3downloads_even">
				<?php if ($this->_tpl_vars['canhtml']): ?>
					<label for="html"><?php echo @_MD_D3DOWNLOADS_SUBMIT_HTML; ?>
</label>
					<input type="checkbox" name="html" id="html" value="1" <?php if ($this->_tpl_vars['download']['html']): ?>checked="checked"<?php endif; ?> /><br />
				<?php endif; ?>
				<label for="smiley"><?php echo @_MD_D3DOWNLOADS_SUBMIT_SMILEY; ?>
</label>
				<input type="checkbox" name="smiley" id="smiley" value="1" <?php if ($this->_tpl_vars['download']['smiley']): ?>checked="checked"<?php endif; ?> /><br />
				<label for="br"><?php echo @_MD_D3DOWNLOADS_SUBMIT_BR; ?>
</label>
				<input type="checkbox" name="br" id="br" value="1" <?php if ($this->_tpl_vars['download']['br']): ?>checked="checked"<?php endif; ?> /><br />
				<label for="xcode"><?php echo @_MD_D3DOWNLOADS_SUBMIT_XCODE; ?>
</label>
				<input type="checkbox" name="xcode" id="br" value="1" <?php if ($this->_tpl_vars['download']['xcode']): ?>checked="checked"<?php endif; ?> /><br />
				<?php if ($this->_tpl_vars['xoops_isuser'] && ! $this->_tpl_vars['auto_approved']): ?>
					<label for="notify"><?php echo @_MD_D3DOWNLOADS_SUBMIT_NOTIFY; ?>
</label>
					<input type="checkbox" name="notify" id="notify" value="1" checked="checked" />
				<?php endif; ?>
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="d3downloads_head">
				<label for="extra"><?php echo @_MD_D3DOWNLOADS_SUBMIT_EXTRA; ?>
</label><br /><br />
				<?php echo @_MD_D3DOWNLOADS_SUBMIT_EXTRA_SAMPLE; ?>

			</td>
			<td class="d3downloads_even">
				<textarea name="extra" id="extra" cols="60" rows="6"><?php echo $this->_tpl_vars['download']['extra']; ?>
</textarea>
				<div class="d3downloads_submit_help">
					<?php echo @_MD_D3DOWNLOADS_SUBMIT_EXTRA_DESC; ?>

				</div>
				<?php echo @_MD_D3DOWNLOADS_EXTRA_TITLE; ?>
<input id="extra_add_title" size="20" type="text">&nbsp;
				<?php echo @_MD_D3DOWNLOADS_EXTRA_DESC; ?>
<input id="extra_add_desc" size="40" type="text">&nbsp;
				<input type="button" name="extra_InsertText" id="extra_InsertText" class="d3downloads_submit" value="<?php echo @_MD_D3DOWNLOADS_SUBMIT_INSERT; ?>
" >
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="d3downloads_head"><label for="created"><?php echo @_MD_D3DOWNLOADS_CREATED; ?>
</label></td>
			<td class="d3downloads_even">
				<input type="checkbox" name="createable" id="createable" value="1" <?php if ($this->_tpl_vars['download']['createable']): ?> checked="checked"<?php endif; ?> /><label for="createable"><?php echo @_MD_D3DOWNLOADS_LABEL_SPECIFY_DATETIME; ?>
</label><br />
				<?php echo smarty_function_html_select_date(array('time' => $this->_tpl_vars['download']['date'],'start_year' => "-10",'end_year' => "+10",'month_format' => "%m",'day_format' => "%d",'field_order' => 'YMD','field_array' => 'created'), $this);?>

				<?php echo smarty_function_html_select_time(array('time' => $this->_tpl_vars['download']['date'],'minute_interval' => '10','display_seconds' => false,'field_array' => 'created'), $this);?>
<br />
			</td>
		</tr>

		<tr valign="top" align="left">
			<td class="d3downloads_head"><label for="expired"><?php echo @_MD_D3DOWNLOADS_EXPIRED; ?>
</label></td>
			<td class="d3downloads_even">
				<input type="checkbox" name="expiredable" id="expiredable" value="1" <?php if ($this->_tpl_vars['download']['expiredable']): ?> checked="checked"<?php endif; ?> /><label for="expiredable"><?php echo @_MD_D3DOWNLOADS_LABEL_SPECIFY_DATETIME; ?>
</label><br />
				<?php echo smarty_function_html_select_date(array('time' => $this->_tpl_vars['download']['expired'],'start_year' => "-10",'end_year' => "+10",'month_format' => "%m",'day_format' => "%d",'field_order' => 'YMD','field_array' => 'expired'), $this);?>

				<?php echo smarty_function_html_select_time(array('time' => $this->_tpl_vars['download']['expired'],'minute_interval' => '10','display_seconds' => false,'field_array' => 'expired'), $this);?>
<br />
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="d3downloads_head"></td>
			<td class="d3downloads_even">
				<input type="submit" class="formButton" name="makedownload_post" id="makedownload_post" value="<?php echo @_MD_D3DOWNLOADS_BTN_SUBMITEDITING; ?>
" />
				<input type="submit" class="formButton" name="makedownload_preview"  id="makedownload_preview" value="<?php echo @_PREVIEW; ?>
" />
				<?php if ($this->_tpl_vars['candelete']): ?>
					<input type="submit" name="makedownloadform_delete" id="makedownloadform_delete" value="<?php echo @_DELETE; ?>
" />
				<?php endif; ?>
				<input name="back" id="back" type="button" value="<?php echo @_MD_D3DOWNLOADS_BTN_CANSEL; ?>
" />
			</td>
		</tr>
	</table>
</form>
<?php if (! $this->_tpl_vars['config_error'] && $this->_tpl_vars['canupload']): ?>
<script type="text/javascript">
<!--//
file_url_line_initialize() ;
//-->
</script>
<?php endif; ?>


<script type="text/javascript">

jQuery( function($){
    $( '#makedownloadform_delete' ).click( function(){
		return confirm('<?php echo @_MD_D3DOWNLOADS_MSG_CONFIRMDELETECONTENT; ?>
') ;
    });

    $( '#back' ).click( function(){
		location.href="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php" ;
    });
});
//-->
</script>