Example #1
0
width:15em;
display: inline;
float: none;
}

.checks p {
padding: 2px;
}

}
</style>
<?php 
if (!isset($exportJob)) {
    $c = new Criteria();
    //$c->add(ExportJobPeer::END_TIME, null);
    $exportJobs = ExportJobPeer::doSelect($c);
    if ($exportJobs) {
        print_window_header("Existing Export Jobs", "100%");
        ?>
		There appears to be existing export 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 ($exportJobs as $job) {
Example #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(ExportJobPeer::DATABASE_NAME, Propel::CONNECTION_READ);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria(ExportJobPeer::DATABASE_NAME);
         $criteria->add(ExportJobPeer::ID, $pks, Criteria::IN);
         $objs = ExportJobPeer::doSelect($criteria, $con);
     }
     return $objs;
 }