function get_standard_header($title = null) { $header = '<!doctype html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'; if (!is_null($title)) { $header .= "<title>{$title}</title>"; } else { $header .= "<title>GOCDB</title>"; } $header .= ' <link rel="SHORTCUT ICON" href="' . GocContextPath::getPath() . 'img/Logo-1.4-FavIcon-32x32.regional.ico" /> <script type="text/javascript" src="' . GocContextPath::getPath() . 'javascript/jquery/jquery-1.10.min.js"></script> <script type="text/javascript" src="' . GocContextPath::getPath() . 'javascript/moment/moment.min.js"></script> <script type="text/javascript" src="' . GocContextPath::getPath() . 'javascript/bootstrap/js/bootstrap-3.1.min.js"></script> <script type="text/javascript" src="' . GocContextPath::getPath() . 'javascript/datetimepicker/js/bootstrap-datetimepicker.min.js"></script> <script type="text/javascript" src="' . GocContextPath::getPath() . 'javascript/jquery-validation/jquery.validate.min.js"></script> <script type="text/javascript" src="' . GocContextPath::getPath() . 'javascript/jquery-validation/additional-methods.min.js"></script> <link rel="stylesheet" href="' . GocContextPath::getPath() . 'javascript/bootstrap/css/bootstrap.css" /> <link rel="stylesheet" href="' . GocContextPath::getPath() . 'javascript/datetimepicker/css/bootstrap-datetimepicker.min.css" /> <link rel="stylesheet" type="text/css" href="' . GocContextPath::getPath() . 'css/web_portal.css" /> </head> <body>'; return $header; }
if ($service->getMonitored() == true) { echo " selected=\"selected\""; } ?> >Y</option> </select> <!-- Scope --> <span class="input_name">Scope(s) <span class="input_syntax">(Select at least <?php echo $params['numberOfScopesRequired']; ?> )</span> </span> <script type="text/javascript" src="<?php echo \GocContextPath::getPath(); ?> javascript/confirmScope.js"></script> <div style="margin-left: 2em"> <?php foreach ($params['scopes'] as $scopeArray) { ?> <?php $scopeName = $scopeArray['scope']->getName(); $scopeId = $scopeArray['scope']->getId(); $checkedParamater = ''; if ($scopeArray['applied']) { $checkedParamater = ' checked="checked"'; } $onClick = ''; if (!in_array($scopeId, $params["parentScopeIds"])) {
public static function setPath($path) { self::$path = $path; }
function Get_bottom_logos_Box_HTML() { $HTML = ""; $HTML .= '<div class="Left_Logo_Box left_box_menu">'; $HTML .= '<div align="center"><a href="http://www.stfc.ac.uk" target="_blank"><img src="' . \GocContextPath::getPath() . 'img/STFC.jpg" height="25"/></a> '; $HTML .= '<a href="http://europa.eu" target="_blank"><img src="' . \GocContextPath::getPath() . 'img/eu.jpg" height="25"/></a> '; //$HTML .= '<a href="http://www.egi.eu" target="_blank"><img src="img/egi.gif" height="25"/></a></div>'; $HTML .= '<a href="http://www.egi.eu" target="_blank"><img src="' . \GocContextPath::getPath() . 'img/egi_logo.jpg" height="25"/></a>'; $HTML .= '</div>'; $HTML .= '<br>'; $HTML .= 'GOCDB is an EGI service provided by <a href="http://stfc.ac.uk">STFC</a> co-funded by <a href="http://egi.eu">EGI.eu</a> and <a href="http://go.egi.eu/eng">EGI-Engage</a>'; $HTML .= '</div>'; return $HTML; }