Exemple #1
0
}

}
</style>
<?php 
if (isset($status_msg)) {
    ?>
	<div align="center" class="statusmsg"><?php 
    echo $status_msg;
    ?>
</div><br />
	<?php 
}
if (!isset($importJob)) {
    $c = new Criteria();
    $importJobs = ImportJobPeer::doSelect($c);
    if ($importJobs) {
        print_window_header("Defined Import Jobs", "100%");
        ?>
		There appears to be existing import jobs.  There should only be one running.  If there are multiple showing as running, you should cancel them or purge them.  Click on a job to 
		view it's progress and it's log.
		<table class="jobs">
		<tr>
			<td><strong>Name</strong></td>
			<td><strong>Description</strong></td>
			<td><strong>Start Time</strong></td>
			<td><strong>Status</strong></td>
			<td colspan="2"><strong>Actions</strong></td>
		</tr>
		<?php 
        foreach ($importJobs as $job) {
Exemple #2
0
 /**
  * Retrieve multiple objects by pkey.
  *
  * @param      array $pks List of primary keys
  * @param      PropelPDO $con the connection to use
  * @throws     PropelException Any exceptions caught during processing will be
  *		 rethrown wrapped into a PropelException.
  */
 public static function retrieveByPKs($pks, PropelPDO $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(ImportJobPeer::DATABASE_NAME, Propel::CONNECTION_READ);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria(ImportJobPeer::DATABASE_NAME);
         $criteria->add(ImportJobPeer::ID, $pks, Criteria::IN);
         $objs = ImportJobPeer::doSelect($criteria, $con);
     }
     return $objs;
 }