<?php /* Smarty version 2.6.31, created on 2024-05-24 17:43:58
         compiled from db:d3downloads_admin_brokenmanager.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'db:d3downloads_admin_brokenmanager.html', 29, 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=d3downloads.js"></script>
<h2><?php echo @_MD_D3DOWNLOADS_H2BROKENMANAGER; ?>
 ( <?php echo $this->_tpl_vars['total_num']; ?>
 )</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; ?>
<form name="brokenmanager" id="brokenmanager" action="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=<?php echo $this->_tpl_vars['page']; ?>
" method="post">
<?php echo $this->_tpl_vars['gticket_hidden']; ?>

<table class="outer">
	<tr>
		<th style="text-align:center;">
			<?php echo @_MD_D3DOWNLOADS_TH_TITLE; ?>

		</th>
		<th style="text-align:center;vertical-align:middle;">
			<?php echo @_MD_D3DOWNLOADS_TH_REPORT; ?>

		</th>
		<th nowrap="nowrap" style="text-align:center;">
			<?php echo @_MD_D3DOWNLOADS_TH_BROKENDEL; ?>

			<input type="checkbox" onclick="col_check_on_off( this, 'col_brokendel_' )">
		</th>
		<th style="text-align:right;">
			<?php echo @_MD_D3DOWNLOADS_TH_CONTENTSACTIONS; ?>

			<input type="checkbox" onclick="col_check_on_off( this, 'col_action_' )">
		</th>
	</tr>
	<?php $_from = $this->_tpl_vars['broken']['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
		<tr class="<?php echo smarty_function_cycle(array('values' => "even,odd"), $this);?>
">
			<td style="vertical-align:middle;">
				<?php if (! $this->_tpl_vars['item']['broken_link']): ?>
					<?php echo $this->_tpl_vars['item']['filelink']; ?>
<?php echo $this->_tpl_vars['item']['title']; ?>
</a>
				<?php else: ?>
					<?php echo $this->_tpl_vars['item']['title']; ?>
<br />( <span style="font-size: small; color: #CC0000;font-weight: bold; "><?php echo @_MD_D3DOWNLOADS_BROKEN_FILE; ?>
</span> )
				<?php endif; ?>
				<br /><br />
				<?php if ($this->_tpl_vars['item']['filename_link']): ?><?php echo $this->_tpl_vars['item']['filename_link']; ?>
<br /><?php endif; ?>
				<?php if ($this->_tpl_vars['item']['filename_link2']): ?><?php echo $this->_tpl_vars['item']['filename_link2']; ?>
<br /><?php endif; ?>
			</td>
			<td width="50%" style="text-align:center;vertical-align:middle;">
				<table style="margin-top: 0.2em;margin-bottom: 0.2em;border-collapse: collapse;border: solid 1px #999;font-size: 100%;">
					<tr>
						<th style="border: solid 1px #999;padding: 4px 6px;background: #E6E6E6;text-align: center;white-space: nowrap;color: #666;">
							<?php echo @_MD_D3DOWNLOADS_TH_SENDERNAME; ?>

						</th>
						<th style="border: solid 1px #999;padding: 4px 6px;background: #E6E6E6;text-align: center;white-space: nowrap;color: #666;">
							<?php echo @_MD_D3DOWNLOADS_TH_IP; ?>

						</th>
						<th style="border: solid 1px #999;padding: 4px 6px;background: #E6E6E6;text-align: center;white-space: nowrap;color: #666;">
							<?php echo @_MD_D3DOWNLOADS_TH_REPORTDATE; ?>

						</th>
					<tr>
						<?php $_from = $this->_tpl_vars['item']['report']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['broken'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['broken']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['broken']):
        $this->_foreach['broken']['iteration']++;
?>
							<td style="text-align:center;;border: solid 1px #999;padding: 4px 6px;">
								<?php echo $this->_tpl_vars['broken']['sendername']; ?>

								<?php if ($this->_tpl_vars['broken']['mail_link']): ?><br /><?php echo $this->_tpl_vars['broken']['mail_link']; ?>
<?php endif; ?>
							</td>
							<td style="text-align:center;;border: solid 1px #999;padding: 4px 6px;">
								<?php echo $this->_tpl_vars['broken']['ip']; ?>

							</td>
							<td style="text-align:center;;border: solid 1px #999;padding: 4px 6px;">
								<?php echo $this->_tpl_vars['broken']['date']; ?>

							</td>
							<?php if ($this->_tpl_vars['broken']['message']): ?>
								</tr><tr>
									<td colspan="3" style="text-align:left;;border: solid 1px #999;padding: 4px 6px;">
										<span style="font-weight: bold;">Message :</span><br /><?php echo $this->_tpl_vars['broken']['message']; ?>

								</td>
							<?php endif; ?>
					</tr>
						<?php endforeach; endif; unset($_from); ?>
				</table>
				<span style="font-size:smaller;">( Total : <?php echo $this->_foreach['broken']['total']; ?>
 )</span>
			<td nowrap="nowrap" style="text-align:center;vertical-align:middle;">
				<input type="checkbox" name="brokendel[<?php echo $this->_tpl_vars['item']['lid']; ?>
]" id="col_brokendel_<?php echo $this->_tpl_vars['item']['lid']; ?>
" value="1" /><br />
			</td>
			<td nowrap="nowrap" style="text-align:right;vertical-align:middle;">
				<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=singlefile&amp;cid=<?php echo $this->_tpl_vars['item']['cid']; ?>
&amp;lid=<?php echo $this->_tpl_vars['item']['lid']; ?>
"><?php echo @_MD_D3DOWNLOADS_VISIBLE; ?>
</a> |
				<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=modfile&amp;cid=<?php echo $this->_tpl_vars['item']['cid']; ?>
&amp;lid=<?php echo $this->_tpl_vars['item']['lid']; ?>
"><?php echo @_EDIT; ?>
</a> |
				<input type="checkbox" name="action_selects[<?php echo $this->_tpl_vars['item']['lid']; ?>
]" id="col_action_<?php echo $this->_tpl_vars['item']['lid']; ?>
" value="1" /><br />
				<?php echo $this->_tpl_vars['item']['postname']; ?>
</a>
				<br />
				<?php echo $this->_tpl_vars['item']['updated']; ?>

			</td>
		</tr>
	<?php endforeach; endif; unset($_from); ?>
	<tr>
		<td colspan="11" align="center" class="head">
			<input type="submit" name="brokenmanager_update" id="brokenmanager_update" value="<?php echo @_SUBMIT; ?>
" tabindex="0" />
		</td>
	</tr>
	<tr>
		<th colspan="11" style="text-align:right;">
			<?php echo @_MD_D3DOWNLOADS_LABEL_FILECHECKED; ?>

			<input type="submit" name="delete" id="delete" value="<?php echo @_MD_D3DOWNLOADS_BTN_DELETE; ?>
" /> 
			<input type="submit" name="invisible" id="invisible" value="<?php echo @_MD_D3DOWNLOADS_BTN_INVISIBLE; ?>
" /> 
		</th>
	</tr>
	<tr>
		<td colspan="11" align="center" class="head">
			<input type="submit" name="brokencheck" id="brokencheck" value="<?php echo @_MD_D3DOWNLOADS_LABEL_BROKENCHECK; ?>
" />
			limit : <input name="limit" size="5" type="text" value="<?php echo $this->_tpl_vars['limit']; ?>
">&nbsp;offset : <input name="offset" size="5" type="text" value="0">
		</td>
	</tr>
	<tr>
		<th colspan="11" align="center">
			<?php echo @_MD_D3DOWNLOADS_NOLINK_CHECK; ?>
 <?php echo $this->_tpl_vars['nolinkfile']; ?>
 Files ( total <?php echo $this->_tpl_vars['totalfile']; ?>
 Files )
		</th>
	</tr>
</table>
</form>
<div style="color:inherit;border: 1px inset #CCC;padding: 6px;with: 80%;font-size: small;">
	<?php echo @_MD_D3DOWNLOADS_HELP_BROKENCHECK; ?>

</div>


<script type="text/javascript">
<!--//
jQuery( function($){
	$( '#brokenmanager_update' ).click( function(){
		infoDom_initialize() ;
		col_action_check( 'col_brokendel_' ) ;
		if( validate_checked == 0 ){
			popup_info( '<?php echo @_MD_D3DOWNLOADS_ERROR_SEL_REPORT; ?>
' )
			return false ;
		}
    });

	$( '#delete' ).click( function(){
		infoDom_initialize() ;
		col_action_check( 'col_action_' ) ;
		if( validate_checked > 0 ){
			return confirm('<?php echo @_MD_D3DOWNLOADS_CONFIRM_DELETE; ?>
') ;
		} else {
			popup_info( '<?php echo @_MD_D3DOWNLOADS_ERROR_SEL_FILSE; ?>
' )
			return false ;
		}
    });

	$( '#invisible' ).click( function(){
		infoDom_initialize() ;
		col_action_check( 'col_action_' ) ;
		if( validate_checked > 0 ){
			return confirm('<?php echo @_MD_D3DOWNLOADS_CONFIRM_INVISIBLE; ?>
') ;
		} else {
			popup_info( '<?php echo @_MD_D3DOWNLOADS_ERROR_SEL_FILSE; ?>
' )
			return false ;
		}
    });

	$( '#brokencheck' ).click( function(){
		return confirm('<?php echo @_MD_D3DOWNLOADS_CONFIRM_BROKENCHECK; ?>
') ;
    });
});
//-->
</script>