public static function mail2secretary($data, $action) { global $mailClass; $owner = auth::getGecos($data["owneruid"], 0); $pp = self::getFullPpNumber($data["year"], $data["ppn"]); return self::sendMail(PP_MAIL_SECRETARY, $pp . " " . $action . " for " . $owner, self::mail_preprint_prettyprinted($data, $owner, $pp, $action), auth::isAdmin()); }
public function getPendingPreprints($where = "") { $outRecord = array(); $authorUid = auth::getUid(); //TODO@@@ debug: //$authorUid = -1180; // Axel Brandenburg //$authorUid = 127105; // Paolo Di Vecchia if (empty($authorUid) && !auth::isAdmin()) { return array(); } // ---------------------- $sql = "SELECT " . " `RowId`," . " `Id`," . " `Tm`," . " `Year`," . " `Report`," . " `Status`," . " `Field`," . " `Location`," . " `Authors`," . " `Title`," . " `PublIn`," . " `publ_year`," . " `label` " . "FROM " . " " . $this->dbprefix . PP_DATATABLE . " " . "WHERE " . "(Status!='ok') " . "AND (Status!='free') " . (!empty($authorUid) ? " AND (Id = '" . $authorUid . "') " : "") . (!empty($where) ? " AND " . $where . " " : "") . "ORDER BY " . " Year,Report DESC"; // ---------------------- $res = $this->query($sql); // includes a call to connect if ($this->num_rows($res)) { while ($row = $this->next_record_assoc($res)) { $outRecord[] = $this->translatePrpFieldsToStandard($row); } // end while } // end if // ---------------------- return $outRecord; }
request = null; } }; } ajax(jsonURL,null,drawChart ); window.onload = function() { //ieCanvasInit('includes/iecanvas.htc'); // draw(); }; </script> <?php if ($CONF_airspaceChecks && auth::isAdmin($userID)) { ?> <script language="javascript"> function toggleAirspace(radioObj) { if(!radioObj) return ""; if(radioObj.checked) { showAirspace=1; for (var i=0; i<polys.length; i++) { map.addOverlay(polys[i]); } } else { showAirspace=0; for (var i=0; i<polys.length; i++) { map.removeOverlay(polys[i]); }