|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/irtiweb/CATS/modules/import/ |
Upload File : |
<?php /* $Id: ImportRecent.tpl 3548 2007-11-09 23:54:52Z andrew $ */ ?>
<?php TemplateUtility::printHeader('Import', array('modules/import/import.js')); ?>
<?php TemplateUtility::printHeaderBlock(); ?>
<?php TemplateUtility::printTabs($this->active); ?>
<div id="main">
<?php TemplateUtility::printQuickSearch(); ?>
<div id="contents">
<table>
<tr>
<td width="3%">
<img src="images/reports.gif" width="24" height="24" border="0" alt="Import" style="margin-top: 3px;" />
</td>
<td><h2>Import Data</h2></td>
</tr>
</table>
<?php if (isset($this->successMessage)): ?>
<p class="note">Success</p>
<table class="searchTable">
<tr>
<td>
<?php echo($this->successMessage); ?>
</td>
</tr>
</table>
<br />
<?php endif; ?>
<p class="note">Recent Commits</p>
<table class="searchTable">
<tr>
<td>
<?php foreach ($this->data as $data): ?>
Import #<?php echo($data['importID']); ?> <?php echo($data['dateCreated']); ?> - <?php echo($data['addedLines']); ?> entries added to database.<br />
<input type="button" onclick="document.location.href='<?php echo(CATSUtility::getIndexName()); ?>?m=import&a=revert&importID=<?php echo($data['importID']) ?>';" value="Revert Import" class="button">
<input type="button" onclick="document.location.href='<?php echo(CATSUtility::getIndexName()); ?>?m=import&a=viewerrors&importID=<?php echo($data['importID']) ?>';" value="View Errors" class="button">
<br /><br />
<?php endforeach; ?>
</td>
</tr>
</table>
<br />
<?php if (isset($this->importErrors)): ?>
<p class="note">Errors Reported by Import</p>
<table class="searchTable" width="740">
<tr>
<td>
<?php echo($this->importErrors) ?>
</td>
</tr>
</table>
<input type="button" onclick="document.location.href='<?php echo(CATSUtility::getIndexName()); ?>?m=import&a=revert&importID=<?php echo($this->importID); ?>';" value="Revert Import" class="button">
<?php endif; ?>
</div>
</div>
<?php TemplateUtility::printFooter(); ?>