Beispiel #1
0
 /**
  * Display all scripts
  */
 public static function displayFooter()
 {
     print "\n\t";
     print "<!-- JavaScript -->\n\t";
     print "<script type='text/javascript' ><!--" . "\n\t\tvar URL_APP = '" . base_url() . "';" . "\n\t\tvar URL_MODULE = '" . url() . "';" . "\n\t\tvar CONTROLLER = '" . APP::getControllerName() . "';" . "\n\t\tvar ACTION = '" . APP::getAction() . "';" . "\n\t\tvar MODULE = '" . APP::getCurrentModule() . "';" . "\n\t\tvar MODULE_DEFAULT = '" . APP::getDefaultModule() . "';" . "\n\t--></script>\n\t";
     if (count(self::$JS) > 0) {
         foreach (self::$JS as $src) {
             if (!preg_match('/^<script/i', $src)) {
                 print "<script type=\"text/javascript\" language=\"javascript\" src=\"{$src}\" charset=\"" . self::$Charset . "\" ></script>\n\t";
             } else {
                 print "{$src}\n\t";
             }
         }
     }
     print "<!-- Tempo de execução: " . calc_execution_time(2) . " milesegundos -->\n\n\t";
 }