Beispiel #1
0
 function getEContentAttachNotes()
 {
     $id = $_REQUEST['id'];
     require_once ROOT_DIR . '/sys/eContent/EContentAttachmentLogEntry.php';
     $logEntry = new EContentAttachmentLogEntry();
     $logEntry->id = $id;
     if ($logEntry->find(true)) {
         if (strlen($logEntry->notes) == 0) {
             return "No notes have been entered for this process";
         } else {
             return $logEntry->notes;
         }
     } else {
         return "We could not find a process with that id.  No notes available.";
     }
 }
 function launch()
 {
     global $interface;
     global $interface;
     $interface->setPageTitle('eContent Attachment History');
     $logEntries = array();
     $eContentAttachmentLog = new EContentAttachmentLogEntry();
     $eContentAttachmentLog->orderBy('dateStarted DESC');
     $eContentAttachmentLog->find();
     while ($eContentAttachmentLog->fetch()) {
         $logEntries[] = clone $eContentAttachmentLog;
     }
     $interface->assign('logEntries', $logEntries);
     $interface->setTemplate('eContentAttachLog.tpl');
     $interface->display('layout.tpl');
 }