<?php /* Smarty version 2.6.31, created on 2024-05-24 17:43:58
         compiled from db:d3downloads_admin_approval.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'db:d3downloads_admin_approval.html', 76, false),array('function', 'xoopsdhtmltarea', 'db:d3downloads_admin_approval.html', 135, false),array('function', 'html_select_date', 'db:d3downloads_admin_approval.html', 185, false),array('function', 'html_select_time', 'db:d3downloads_admin_approval.html', 186, false),)), $this); ?>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=module_header&src=jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=module_header&src=jquery.textarearesizer.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=module_header&src=seekAttention.jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=module_header&src=d3downloads.js"></script>
<h2 id="form_title"><?php echo $this->_tpl_vars['formtitle']; ?>
: <?php if ($this->_tpl_vars['unapproval']['title']): ?><?php echo $this->_tpl_vars['unapproval']['title']; ?>
<?php endif; ?></h2>
<?php if ($this->_tpl_vars['iserror']): ?>
	<div style="color: #CC0000;font-size:100%;font-weight:bold;margin:5px;padding:5px;border-width:1px;border-style:solid;border-color:#808080;">
		<?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="outer">
		<?php if ($this->_tpl_vars['preview_title']): ?>
			<dt class="head"><?php echo $this->_tpl_vars['preview_title']; ?>
</dt>
		<?php endif; ?>
		<?php if ($this->_tpl_vars['preview_body']): ?>
			<dd class="odd"><?php echo $this->_tpl_vars['preview_body']; ?>
</dd>
		<?php endif; ?>
	</dl>
<?php endif; ?>
<form name="approvalform" id="approvalform" action="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=<?php echo $this->_tpl_vars['page']; ?>
&amp;requestid=<?php echo $this->_tpl_vars['unapproval']['requestid']; ?>
" method="post">
	<?php echo $this->_tpl_vars['gticket_hidden']; ?>

	<input type="hidden" name="requestid" value="<?php echo $this->_tpl_vars['unapproval']['requestid']; ?>
" />
	<input type="hidden" name="submitter" value="<?php echo $this->_tpl_vars['unapproval']['submitter']; ?>
" />
	<input type="hidden" name="modify" value="<?php echo $this->_tpl_vars['unapproval']['modify']; ?>
" />
	<input type="hidden" name="notify" value="<?php echo $this->_tpl_vars['unapproval']['notify']; ?>
" />
	<input type="hidden" name="filename" value="<?php echo $this->_tpl_vars['unapproval']['filename']; ?>
" />
	<input type="hidden" name="ext" value="<?php echo $this->_tpl_vars['unapproval']['ext']; ?>
" />
	<input type="hidden" name="file2" value="<?php echo $this->_tpl_vars['unapproval']['file2']; ?>
" />
	<input type="hidden" name="filename2" value="<?php echo $this->_tpl_vars['unapproval']['filename2']; ?>
" />
	<input type="hidden" name="ext2" value="<?php echo $this->_tpl_vars['unapproval']['ext2']; ?>
" />
		<?php if ($this->_tpl_vars['unapproval']['lid']): ?>
		<input type="hidden" name="lid" value="<?php echo $this->_tpl_vars['unapproval']['lid']; ?>
" />
	<?php endif; ?>
	<input type="hidden" name="ajax_url" id="ajax_url" value="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=ajax_load" />
	<table class="outer">
		<tr valign="top" align="left">
			<td class="head"><label for="title"><?php echo @_MD_D3DOWNLOADS_SUBMIT_TITLE; ?>
</label></td>
			<td class="even">
				<input type="text" name="title" id="title" size="50" maxlength="199" value="<?php echo $this->_tpl_vars['unapproval']['title']; ?>
" />
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="head"><label for="postname"><?php echo @_MD_D3DOWNLOADS_SUBMIT_POSTNAME; ?>
</label></td>
			<td class="even">
				<?php echo $this->_tpl_vars['unapproval']['postname']; ?>

			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="head"><label for="url"><?php echo @_MD_D3DOWNLOADS_SUBMIT_URL; ?>
</label></td>
			<td class="even">
				<input type="text" name="url" id="url" size="90" maxlength="250" value="<?php echo $this->_tpl_vars['unapproval']['url']; ?>
" />&nbsp;<?php echo $this->_tpl_vars['unapproval']['filelink']; ?>

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

			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="head"><label for="platform"><?php echo @_MD_D3DOWNLOADS_SUBMIT_PLATFORM; ?>
</label></td>
			<td class="even">
				<input type="text" name="platform" id="platform" size="50" maxlength="50" value="<?php echo $this->_tpl_vars['unapproval']['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="head"><label for="license"><?php echo @_MD_D3DOWNLOADS_SUBMIT_LICENSE; ?>
</label></td>
				<td class="even">
					<input type="text" name="license" id="license" size="50" maxlength="260" value="<?php echo $this->_tpl_vars['unapproval']['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="head"><label for="description"><?php echo @_MD_D3DOWNLOADS_SUBMIT_DESCRIPTION; ?>
</label>
				<br /><div id="editor_selector" style="display:none;"></div>
			</td>
			<td class="even">
				<?php echo smarty_function_xoopsdhtmltarea(array('name' => 'description','cols' => '60','rows' => '15','value' => $this->_tpl_vars['unapproval']['description']), $this);?>

				<div style="font-size:  90%;background: #EFEFEF;color:inherit;border: 1px inset #CCC;padding: 2px;width: 90%;">
					<?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="formButton" value="<?php echo @_MD_D3DOWNLOADS_SUBMIT_INSERT; ?>
" >
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="head"><label for="option"><?php echo @_MD_D3DOWNLOADS_SUBMIT_OPTION; ?>
</label></td>
			<td class="even">
				<label for="html"><?php echo @_MD_D3DOWNLOADS_SUBMIT_HTML; ?>
</label>
				<input type="checkbox" name="html" id="html" value="1" <?php if ($this->_tpl_vars['unapproval']['html']): ?>checked="checked"<?php endif; ?> /><br />
				<label for="smiley"><?php echo @_MD_D3DOWNLOADS_SUBMIT_SMILEY; ?>
</label>
				<input type="checkbox" name="smiley" id="smiley" value="1" <?php if ($this->_tpl_vars['unapproval']['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['unapproval']['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['unapproval']['xcode']): ?>checked="checked"<?php endif; ?> /><br />
				<label for="visible"><?php echo @_MD_D3DOWNLOADS_SUBMIT_VISIBLE; ?>
</label>
				<input type="checkbox" name="visible" id="visible" value="1" <?php if ($this->_tpl_vars['unapproval']['visible']): ?>checked="checked"<?php endif; ?> /><br />
				<label for="comment"><?php echo @_MD_D3DOWNLOADS_SUBMIT_COMMENT; ?>
</label>
				<input type="checkbox" name="comment" id="comment" value="1" <?php if ($this->_tpl_vars['unapproval']['cancomment']): ?>checked="checked"<?php endif; ?> />
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="head">
				<label for="extra"><?php echo @_MD_D3DOWNLOADS_SUBMIT_EXTRA; ?>
</label><br /><br />
				<?php echo @_MD_D3DOWNLOADS_SUBMIT_EXTRA_SAMPLE; ?>

			</td>
			<td class="even">
				<textarea name="extra" id="extra" cols="60" rows="6"><?php echo $this->_tpl_vars['unapproval']['extra']; ?>
</textarea>
				<div style="font-size:  90%;background: #EFEFEF;color:inherit;border: 1px inset #CCC;padding: 2px;width: 90%;">
					<?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="head"><label for="created"><?php echo @_MD_D3DOWNLOADS_CREATED; ?>
</label></td>
			<td class="even">
				<input type="checkbox" name="createable" id="createable" value="1" <?php if ($this->_tpl_vars['unapproval']['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['unapproval']['date'],'start_year' => "-1",'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['unapproval']['date'],'minute_interval' => '10','display_seconds' => false,'field_array' => 'created'), $this);?>
<br />
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="head"><label for="expired"><?php echo @_MD_D3DOWNLOADS_EXPIRED; ?>
</label></td>
			<td class="even">
				<input type="checkbox" name="expiredable" id="expiredable" value="1" <?php if ($this->_tpl_vars['unapproval']['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['unapproval']['expired'],'start_year' => "-1",'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['unapproval']['expired'],'minute_interval' => '10','display_seconds' => false,'field_array' => 'expired'), $this);?>
<br />
			</td>
		</tr>
		<tr valign="top" align="left">
			<td class="head"></td>
			<td class="even">
				<input type="submit" class="formButton" name="makedownload_post" id="makedownload_post" value="<?php echo @_MD_D3DOWNLOADS_APPROVAL; ?>
" />
				<input type="submit" class="formButton" name="makedownload_preview"  id="makedownload_preview" value="<?php echo @_PREVIEW; ?>
" />
				<?php if ($this->_tpl_vars['unapproval']['requestid']): ?>
					<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['down']): ?>
	<br />
	<h2><?php echo @_MD_D3DOWNLOADS_NOWDATA; ?>
</h2>
	<table width='100%' cellspacing='0' class='outer'>
		<tr>
			<td class="head" colspan='2' align='left' height="18">
				<?php echo @_MD_D3DOWNLOADS_CATEGORY; ?>
 <?php echo $this->_tpl_vars['down']['category']; ?>

			</td>
		</tr>
		<tr>
			<td class='even' width='65%' style='text-align:left;vertical-align:top;'>
				<?php if (! $this->_tpl_vars['down']['broken_link']): ?>
					<?php echo $this->_tpl_vars['down']['filelink']; ?>
<b><?php echo $this->_tpl_vars['down']['title']; ?>
</b></a>
				<?php else: ?>
					<b><?php echo $this->_tpl_vars['down']['title']; ?>
</b>
					&nbsp;(&nbsp;<font color="#CC0000"><b>broken file !!</b></font>&nbsp;)
				<?php endif; ?>
			</td>
			<td class='even' style='text-align:right;vertical-align:bottom;' width='35%'>
			<b><?php echo @_MD_D3DOWNLOADS_VERSION; ?>
:</b>&nbsp;<?php echo $this->_tpl_vars['down']['version']; ?>
<br /><b><?php echo @_MD_D3DOWNLOADS_DATE; ?>
:</b>&nbsp;&nbsp;<?php echo $this->_tpl_vars['down']['updated']; ?>

			</td>
		</tr>
		<tr>
			<td colspan='2' class='odd' align='left'>
    				<b><?php echo @_MD_D3DOWNLOADS_DESCRIPTION; ?>
</b>
			    	<br />
				<?php if ($this->_tpl_vars['down']['shots']): ?>
					<?php echo $this->_tpl_vars['down']['shots']; ?>

				<?php endif; ?>
				<?php echo $this->_tpl_vars['down']['description']; ?>

				<br />
			</td>
		</tr>
		<tr>
			<td colspan='2' class='even' align='left'>
			<b>[<?php echo @_MD_D3DOWNLOADS_SIZE; ?>
]</b>&nbsp;<?php echo $this->_tpl_vars['down']['size']; ?>
<br />
			<?php if ($this->_tpl_vars['down']['platform']): ?>
				<b>[<?php echo @_MD_D3DOWNLOADS_PLATFORM; ?>
]</b>&nbsp;<?php echo $this->_tpl_vars['down']['platform']; ?>
<br />
			<?php endif; ?>
			<?php if ($this->_tpl_vars['mod_config']['use_license'] && $this->_tpl_vars['down']['license']): ?>
				<b>[<?php echo @_MD_D3DOWNLOADS_LICENSE; ?>
]</b>&nbsp;<?php echo $this->_tpl_vars['down']['license']; ?>
<br />
			<?php endif; ?>
			<?php if ($this->_tpl_vars['down']['homepage']): ?>
				<b>[<?php echo @_MD_D3DOWNLOADS_HOMEPAGE; ?>
]</b>&nbsp;<?php echo $this->_tpl_vars['down']['homepage']; ?>

			<?php endif; ?>
			</td>
		</tr>
	</table>
	<?php if ($this->_tpl_vars['down']['extra']): ?>
		<br />
		<table style="margin-top: 0.2em;margin-bottom: 1em;border-collapse: collapse;border: solid 1px #999;font-size: 100%;" width="90%">
			<?php $_from = $this->_tpl_vars['down']['extra']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['info']):
?>
				<tbody><tr>
					<td style="text-align: center;vertical-align:middle;border: solid 1px #999;font-size: 110%;font-weight: bolder;" width="20%">
						<?php echo $this->_tpl_vars['info']['title']; ?>

					</td>
					<td style="text-align: left;border: solid 1px #999;padding: 4px 6px;vertical-align:middle;" width="80%">
						<?php echo $this->_tpl_vars['info']['desc']; ?>

					</td>
				</tr>
			<?php endforeach; endif; unset($_from); ?>
		</tbody></table>
	<?php endif; ?>
<?php endif; ?>

<?php if ($this->_tpl_vars['downimg']['showlogourlselected']): ?>
<?php echo $this->_tpl_vars['downimg']['showlogourlselected']; ?>

<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']; ?>
/admin/index.php?page=approvalmanager" ;
    });
});

showlogourlSelected( 'show_description_image' , 'description_image', 'show_description_image_line' , '<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=ajax_load' ) ;
showlogourlSelected( 'showlogourl' , 'logourl', 'showlogourl_line' , '<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=ajax_load' ) ;
//--></script>
<?php endif; ?>

<style type="text/css">
div.grippie {
	background:#EEEEEE url(<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=module_header&src=grippie.png) no-repeat scroll center 2px;
	border-color:#DDDDDD;
	border-style:solid;
	border-width:0pt 1px 1px;
	cursor:s-resize;
	height:9px;
	overflow:hidden;
}
.resizable-textarea textarea {
	display:block;
	margin-bottom:0pt;
}
.d3downloads_editor_selector {
	float: left;
	width: auto;
	color: #000000;
	font-weight: normal;
	background: #ffffff;
	font-size: 11px;
	margin-top: 10px;
	margin-right: 1px;
	padding: 2px 10px;
	border: 1px solid gray;
	cursor: pointer;
}
.d3downloads_focus {
	border: 1px solid #CC0000;
}
</style>