Skip to content

Commit

Permalink
change banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit committed Jun 11, 2014
1 parent e503421 commit 17cdab6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<html data-cmc-id="skel"><head><meta charset="UTF-8" /><title>CMC Skeleton</title><!-- minimal for ajax (not used in skeleton): jquery+xpath+cmc --><script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <script src="js/javascript-xpath.min.js"></script><script type="text/javascript" src="//code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script> <script src="js/cmc.js"></script></head><body> <h1>Welcome to the CMC skeleton</h1> <div id="hellostat">html hello stat</div> <div id="helloworld">html hello</div> <div id="hellodyn">html hello dyn</div> <input id="testbutton" type="button" value="Test button"></input></body></html>
<html data-cmc-id="skel"><head><meta charset="UTF-8" /><title>CMC Skeleton</title><!-- minimal for ajax (not used in skeleton): jquery+xpath+cmc --><script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <script src="js/javascript-xpath.min.js"></script><script type="text/javascript" src="//code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script> <script src="js/cmc.js"></script></head><body> <h1>Welcome to the CMC skeleton</h1> <div id="hellostat">html hello stat</div> <div id="helloworld">html hello</div> <div id="hellodyn">html hello dyn</div> <div id="helloclick"></div> <input id="testbutton" type="button" value="Test button" /></body></html>
Expand Down
10 changes: 10 additions & 0 deletions php/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ static function MAT_valid($path) {
const CACHE_path = 'cache/'; // application cache location
const APP_guid = 'c614b303e2a468dce9122e2a864700d6'; // application guid (important if different application share the same cache directory)

static function PoweredBy_Banner($path) {
$servinfo = '<br>PHP '.phpversion() . '<br>' .php_uname();
return <<<EOT
<style>.cmc-poweredby{float:right;margin-right:20px;margin-top:20px;font-size:small;text-align:right}</style>
<div class="cmc-poweredby">Powered by CMC (c) <a href="http://cmc.calmarsoft.com/">CMC Components</a> $servinfo</div>
EOT
;
}


static function TIME_Banner($path) { global $config; if ($config=='prod') return false; else return true;}
}

Expand Down
3 changes: 2 additions & 1 deletion php/skelFrame.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class skelFrame extends dynframe {
'div_hello' => array(label::factory, 'helloworld'),
'div_hellostat' => array(label::factory, 'hellostat'),
'div_hellodyn' => array(label::factory, 'hellodyn'),
'div_helloclick' => array(label::factory, 'helloclick'),
'bt_test' => array(button::factory, 'testbutton'),
);

Expand Down Expand Up @@ -41,7 +42,7 @@ public function viewUpdate($view, $sess) {
}
/******* EVENTS ******/
public function click() {
$this->w('div_hellostat')->setHtml('Click on server '. $this->count.'; </b>date is: ' . date(DATE_RFC2822));
$this->w('div_helloclick')->setHtml('Click on server '. $this->count.'; </b>date is: ' . date(DATE_RFC2822));
$this->count++;
}

Expand Down

0 comments on commit 17cdab6

Please sign in to comment.