Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
Released version 2.0.1. Please read the changelog.txt file.
Browse files Browse the repository at this point in the history
  • Loading branch information
luis.leiva.torres committed Feb 21, 2010
1 parent d34086c commit a77768e
Show file tree
Hide file tree
Showing 240 changed files with 19,480 additions and 11,144 deletions.
Binary file removed admin/css/add.png
Binary file not shown.
19 changes: 12 additions & 7 deletions admin/css/admin.css
@@ -1,6 +1,6 @@
/** /**
* Admin interface styles. * Admin interface styles.
* On 'theme.css' you can set the colors or overrride them. * On 'theme.css' you can set more options (colors, margins, etc.) or overrride them.
*/ */


#global { padding:1em; overflow:auto; } #global { padding:1em; overflow:auto; }
Expand All @@ -23,17 +23,22 @@
#nav ul li a { padding:2px 8px; border:2px solid #000; text-decoration:none; border-bottom:none; #nav ul li a { padding:2px 8px; border:2px solid #000; text-decoration:none; border-bottom:none;
border-radius:5px 5px 0 0; -moz-border-radius:5px 5px 0 0; -webkit-border-radius:5px 5px 0 0; border-radius:5px 5px 0 0; -moz-border-radius:5px 5px 0 0; -webkit-border-radius:5px 5px 0 0;
background-color:#DDD; color:#666; } background-color:#DDD; color:#666; }
#nav ul a:hover, #nav ul a:focus { background: #EEE; } #nav ul a:hover, #nav ul a:focus { background:#F5F5F5; }


/* the 'more' link. Colors are set in theme.css */ /* the 'more' link on tracking-report. Colors are set in theme.css */
a.morebtn { width:300px; margin:1em auto; padding:.6em; display:block; text-decoration:none; } #more { width:300px; margin:1em auto; padding:.6em; display:block; text-decoration:none; }


/* login */ /* login */
#loginform { width:300px; margin:0 auto; padding:1em; } #loginform { width:300px; margin:0 auto; padding:1em; }
#loginform input.text { width:98%; display:block; font-size:150%; } #loginform input.text { width:98%; display:block; font-size:150%; }
#loginform input.button { margin-left:100px; font-size:100%; } #loginform input.button { font-size:120%; margin-right:0; }
#loginform input.recover { margin-left:0; } #loginform input.recover { margin-left:0; }


/* other */ /* other */
#bugreport { float:left; margin-top:.5em; font-family:sans-serif; } p.tag { float:left; margin-top:.5em; padding:.2em 0; font:bold 100% sans-serif; }
#bugreport a { padding:.2em; text-decoration:none; } p.tag a { padding:.2em .5em; text-decoration:none; }

/* filter options */
form#filter fieldset { border:1px solid #CCC; padding:1em; }
form#filter fieldset legend { background:#69C; color:#FFF; padding:0 1em; font:bold 80% sans-serif;}
hr { border:1px solid #CCC; }
36 changes: 20 additions & 16 deletions admin/css/base.css
Expand Up @@ -7,11 +7,11 @@
body { font:90% Georgia,serif; } body { font:90% Georgia,serif; }


/* headings */ /* headings */
h1,h2 { font:lighter 150% sans-serif; letter-spacing:-0.02em; } h1,h2 { font:normal 150% sans-serif; letter-spacing:-0.02em; }
h1 { font-size:200%; } h1 { font-size:200%; }
h2 { margin:.3em auto; } h2 { margin:.3em auto; }


/* links marked as external (rel attribute) will open in a new browser tab */ /* links marked as external (rel attribute) will open in a new browser tab, so mark'em */
a[rel~="external"] { background:url(external.png) center right no-repeat; padding-right:13px; } a[rel~="external"] { background:url(external.png) center right no-repeat; padding-right:13px; }


/* useful, common styles */ /* useful, common styles */
Expand All @@ -22,7 +22,8 @@ a[rel~="external"] { background:url(external.png) center right no-repeat; paddin
.heading { margin:.5em auto; } .heading { margin:.5em auto; }
.block { display:block; } .block { display:block; }
.valign { vertical-align:middle; } .valign { vertical-align:middle; }
.mini { font-size:55%; } .small { font-size:75% !important; }
.mini { font-size:55% !important; }


.clear { clear:both; } .clear { clear:both; }
.fl { float:left; } .fl { float:left; }
Expand All @@ -39,35 +40,38 @@ a[rel~="external"] { background:url(external.png) center right no-repeat; paddin
.pl { padding-left:1em; } .pl { padding-left:1em; }


/* tables */ /* tables */
table { width:100%; margin:auto; table-layout:fixed; } table.cms { width:100%; margin:auto; table-layout:fixed; /*border-collapse:collapse;*/ }
caption { font-size:100%; padding:.5em; margin:0 auto; } table.cms caption { font-size:100%; padding:.5em; margin:0 auto; }
th { text-align:center; font:80% sans-serif; font-weight:bold; padding:.3em; } table.cms th { text-align:center; font:80% sans-serif; font-weight:bold; padding:.3em; }
tr { text-align:center; } table.cms tr { text-align:center; }
td { padding:0 1em; /*vertical-align:top;*/ } table.cms td { /*vertical-align:top;*/ }


/* forms */ /* forms */
fieldset { margin:.7em auto; display:block; } fieldset { margin:.7em auto; display:block; }
legend { font-size:75%; } legend { font-size:75%; text-align:left; }
label { font-weight:bold; font-size:75%; } label { font-weight:bold; font-size:75%; color:#036; }
input,select { vertical-align:middle; } input,select { vertical-align:middle; }
.text { border:1px solid #555; padding:2px; } select, .text { border:1px solid #555; padding:2px; }
.radio { margin-left:.5em; } .radio { margin-left:.5em; }
.button { margin:auto 1em; padding:.3em 1em; cursor:pointer; font:bold italic 90% Georgia,serif; } /*.button { margin:auto 1em; padding:.3em 1em; cursor:pointer; font:bold italic 90% Georgia,serif; }*/
.button { margin:auto 1em; padding:.3em .7em; cursor:pointer; font:bold 100% sans-serif; }

.readonly { background-color:#AAA; } .readonly { background-color:#AAA; }


/* system messages */ /* system messages */
.error, .success, .warning { display:block; clear:both; color:#000; text-align:left; padding:.5em .5em .5em 30px; margin-bottom:1em; .error, .success, .warning { display:block; clear:both; color:#000; text-align:left; padding:.5em .5em .5em 30px; margin-bottom:1em;
border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; } border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; }
.error { border:1px solid #C00; background:#FCC url(icon-error.png) no-repeat 5px center; } .error { border:1px solid #C00; background:#FCC url(icon-error.png) no-repeat 5px 5px; }
.success { border:1px solid #393; background:#CFF url(icon-success.png) no-repeat 5px center; } .success { border:1px solid #393; background:#CFF url(icon-success.png) no-repeat 5px 5px; }
.warning { border:1px solid #FC6; background:#FFC url(icon-warning.png) no-repeat 5px center; } .warning { border:1px solid #FC6; background:#FFC url(icon-warning.png) no-repeat 5px 5px; }


/* first time users will be starred on tracking report section */ /* first time users will be starred on tracking report section */
.ftu { background:transparent url(icon-star.png) no-repeat center left; } .ftu { background:transparent url(icon-star.png) no-repeat center left; }


/* round corners */ /* round corners */
.round { border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px; } .round { border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px; }
.smallround { border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; }


/* other elements */ /* other elements */
acronym { cursor:help; border-bottom: 1px dotted #000; } abbr { cursor:help !important; border-bottom:1px dotted #000; }
p { margin-bottom:.5em; } p { margin-bottom:.5em; }
Binary file added admin/css/button-default-off.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added admin/css/button-default-on.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added admin/css/button-delete-off.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added admin/css/button-delete-on.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion admin/css/install.css
@@ -1,5 +1,5 @@
body { font:100% Georgia,Times,serif; background-color:#888; } body { font:100% Georgia,Times,serif; background-color:#888; }
#global { width:80%; margin:0 auto; padding:1em; background-color:#FFF; border:1px solid #000; } #global { width:80%; margin:0 auto; margin-top:5%; padding:1em; background-color:#FFF; border:1px solid #000; }
fieldset { border:none; } fieldset { border:none; }
h1 { margin-top:.3em; } h1 { margin-top:.3em; }
.ok { color:green; } .ok { color:green; }
Expand Down
Binary file removed admin/css/remove.png
Binary file not shown.
47 changes: 29 additions & 18 deletions admin/css/theme.css
Expand Up @@ -7,49 +7,60 @@ body { background-color:#888; }
#global { background-color:#FFF; padding:2em; } #global { background-color:#FFF; padding:2em; }


/* table row visuals */ /* table row visuals */
table { border-bottom:1px solid #000; } table.cms { background-color:#FFF; }
th { background-color:#888; color:#FFF; }
/* table styles can be overriden when using the jquery.stripy plugin */ /* table styles can be overriden when using the jquery.stripy plugin */
table.cms tr:hover { background-color:#FFC; }
th { background-color:#888; color:#FFF; }
tr { background-color:#FFF; }
tr.even { background-color:#DDD; } tr.even { background-color:#DDD; }
tr.odd { background-color:#EEE; } tr.odd { background-color:#EEE; }
tr:hover { background-color:#FFC; }
.deleted { background-color:#F66 !important; } .deleted { background-color:#F66 !important; }
.dummy { background-color:#FFF; } .dummy { background-color:#FFF; }
/* deprecated: used to alternate rows by client ID */ /* deprecated:used to alternate rows by client ID */
.row0 { background-color:#EEE; } .row0 { background-color:#EEE; }
.row1 { background-color:#DDD; } .row1 { background-color:#DDD; }


/* the 'more' link */ /* 'mine results' section */
a.morebtn { background-color:#EEE; border:1px solid #CCC; } #filter fieldset { background-color:#FFF; }
a.morebtn:hover { background-color:#DDD; } #filter fieldset:hover { background-color:#FFC; }
#filter fieldset legend:hover { background-color:#06C; }
/* defeat IE bug (http://www.mattheerema.com/web-design/2006/04/getting-fieldset-backgrounds-and-legends-to-behave-in-ie/) */
#filter fieldset { position:relative; }
#filter legend { position:absolute; top:-0.5em; left:.5em; }
#filter fieldset { position:relative; margin-top:1em; padding-top:.75em; }


/* logout button */ /* logout button */
a#logout { color:#FFF; background-color:#C33; text-decoration:none; padding:.2em .4em; font:bold 100% sans-serif; } a#logout { color:#FFF; background-color:#C33; text-decoration:none; padding:.2em .4em; font:bold 100% sans-serif; }
a#logout:hover { background-color:#F33; } a#logout:hover { background-color:#F33; }


/* forms */ /* forms */
input.button { color:#FFF; background-color:#000; } .button { color:#36F; border:1px solid #CCC; background:#EEE url('button-default-off') repeat-x left top; }
input.button:hover, input.button:focus { color:#FFF; background-color:#444; } .button:hover, .button:focus { color:#000; border:1px solid #36F; background:#F5F5F5 url('button-default-on') repeat-x left bottom; }
.wrapper { border:1px solid #CCC; overflow:auto; margin-bottom:.5em; }
.wrapper:hover { border:1px solid #000; background-color:#EEE; } .wrapper { border:1px solid #CCC; overflow:hidden; padding-bottom:0.5em; margin-bottom:1em; }
.wrapper:hover { border:1px solid #036; background-color:#FFC; }


/* login */ /* login */
.loginwrap { margin-top:10%; } .loginwrap { margin-top:10%; }
.title { font-size:300%; color:#FFF; font-weight:lighter; } .title { font-size:300%; color:#FFF; font-weight:normal; margin-bottom:0; }
.loginwrap h2 { color:#CCC; } .loginwrap h2 { color:#CCC; margin-top:0; }
#loginform { border:1px solid #000; background-color:#FFF; font:90% sans-serif; } #loginform { border:1px solid #000; background-color:#FFF; font:90% sans-serif; }
#loginform label { color:#888; font:90% Georgia,serif; } #loginform label { color:#888; font:90% Georgia,serif; }
#loginform input.text { border:1px solid #CCC; background-color:#FBFBFB; } #loginform input.text { border:1px solid #CCC; background-color:#FBFBFB; }


/* footer and header */ /* footer and header */
.foothead { color:#FFF; font-size:85%; } .foothead { color:#FFF; font-size:85%; }
.foothead a { color:#BBB; } .foothead a { color:#DDD; }
.foothead a:hover { color:#FFF; } .foothead a:hover { color:#FFF; }
#footer { border-top:2px solid #000; font-size:80%; } #footer { border-top:2px solid #000; font-size:80%; }
#bugreport a { background-color:#000; padding:.2em .4em; font:bold 100% sans-serif; }
#bugreport a:hover { background-color:#333; }


a#wishlist { background-color:#06C; }
a#wishlist:hover { background-color:#09C; }
a#bugreport { background-color:#036; }
a#bugreport:hover { background-color:#03C; }

/* other */ /* other */
.notfound { font-family:Georgia,serif; font-style:italic; color:#AAA; } .notfound { font-family:Georgia,serif; font-style:italic; color:#AAA; }
.delete { background-color:#C00 !important; } .del { color:#C00; }
.delete:hover, .delete:focus { background-color:#D00 !important; } .delete { color:#FFF; background:#C00 url('button-delete-off') repeat-x left top; }
.delete:hover, .delete:focus { color:#FFF; border:1px solid red !important; background:#F66 url('button-delete-on') repeat-x left bottom; }
23 changes: 14 additions & 9 deletions admin/ext/customize/index.php
Expand Up @@ -2,19 +2,20 @@
// server settings are required - relative path to smt2 root dir // server settings are required - relative path to smt2 root dir
require '../../../config.php'; require '../../../config.php';
// protect extension from being browsed by anyone // protect extension from being browsed by anyone
require INC_PATH.'sys/logincheck.php'; require SYS_DIR.'logincheck.php';
// now you have access to all (smt) API functions and constants // now you have access to all CMS API


// insert custom css and JS files // insert custom css and JS files
add_head('<link rel="stylesheet" type="text/css" href="custom.css" />'); add_head('<link rel="stylesheet" type="text/css" href="custom.css" />');
add_head('<script type="text/javascript" src="interface.js"></script>'); add_head('<script type="text/javascript" src="interface.js"></script>');
add_head('<script type="text/javascript" src="sort.js"></script>'); add_head('<script type="text/javascript" src="sort.js"></script>');


include INC_PATH.'inc/header.php'; include INC_DIR.'header.php';


// helper function // helper function
function display_options($arrOptions) function display_options($arrOptions)
{ {
$list = "";
foreach ($arrOptions as $o) { foreach ($arrOptions as $o) {
$list .= '<p>'.$o['description'].'</p>'.PHP_EOL; $list .= '<p>'.$o['description'].'</p>'.PHP_EOL;
$list .= '<div class="customize-wrap">'.PHP_EOL; $list .= '<div class="customize-wrap">'.PHP_EOL;
Expand All @@ -25,7 +26,7 @@ function display_options($arrOptions)
$checked = ($o['value']) ? 'checked="checked" ' : null; $checked = ($o['value']) ? 'checked="checked" ' : null;
$list .= ' <input id="'.$o['name'].'" type="checkbox" name="'.$o['name'].'" '.$checked.'/>'.PHP_EOL; $list .= ' <input id="'.$o['name'].'" type="checkbox" name="'.$o['name'].'" '.$checked.'/>'.PHP_EOL;
} elseif ($o['type'] == CMS_TYPE) { } elseif ($o['type'] == CMS_TYPE) {
$list .= ' <input id="'.$o['name'].'" type="text" name="'.$o['name'].'" class="text center" value="'.$o['value'].'" size="10" maxlength="7" />'.PHP_EOL; $list .= ' <input id="'.$o['name'].'" type="text" name="'.$o['name'].'" class="text center" value="'.$o['value'].'" size="10" maxlength="6" />'.PHP_EOL;
} }
$list .= ' </div>'.PHP_EOL; $list .= ' </div>'.PHP_EOL;
$list .= ' </div>'.PHP_EOL; $list .= ' </div>'.PHP_EOL;
Expand Down Expand Up @@ -76,19 +77,23 @@ function display_options($arrOptions)


<h2>Flash API</h2> <h2>Flash API</h2>
<p>When using the Flash (SWF) visualization API, all options are customized at runtime. <p>When using the Flash (SWF) visualization API, all options are customized at runtime.
These options are stored on a local Shared Object (aka <em>Flash cookie</em>).</p> These options are stored on a <a href="http://en.wikipedia.org/wiki/Local_Shared_Object">Local Shared Object</a> (aka <em>Flash cookie</em>).</p>
<p>You should use this API to visualize the mouse tracking data, since it is dramatically more advanced that the JavaScript one. <p>You should use this API to visualize the mouse tracking data, since it is dramatically more advanced than the JavaScript one.
However, it relies on the <em>wmode</em> parameter of Flash, However, it relies on the <em>wmode</em> parameter of Flash,
so if you cannot see the HTML page behind the tracking layer, please use the old (but revised) JavaScript API.</p> so if you cannot see the HTML page behind the tracking layer, please use the old (but revised) JavaScript API.</p>




<h2 id="<?=TBL_JSOPT?>" class="vspace">JavaScript API</h2> <h2 id="<?=TBL_JSOPT?>" class="vspace">JavaScript API <small class="del">deprecated!</small></h2>


<?php check_notified_request(TBL_JSOPT); ?> <?php check_notified_request(TBL_JSOPT); ?>


<p>If you wish to use the JavaScript (JS) visualization API, you can customize it here. <p>
If you wish to use the JavaScript (JS) visualization API, you can customize it here.
These options are stored on your MySQL database. <em>Leave fields blank for default values</em>. These options are stored on your MySQL database. <em>Leave fields blank for default values</em>.
</p> </p>
<p>This API will be not supported in a future, and maybe it will be removed definitely in next smt2 releases.</p>

<br />


<form action="savesettings.php" method="post"> <form action="savesettings.php" method="post">
<?php <?php
Expand All @@ -101,4 +106,4 @@ function display_options($arrOptions)
</fieldset> </fieldset>
</form> </form>


<?php include INC_PATH.'inc/footer.php'; ?> <?php include INC_DIR.'footer.php'; ?>
4 changes: 2 additions & 2 deletions admin/ext/customize/reset.php
@@ -1,12 +1,12 @@
<?php <?php
// load base functions // load base functions
define('REL_URL', "../../../"); require_once '../../../config.php';
require_once REL_URL.'config.php';


// get prioritized sections // get prioritized sections
$prioritized = get_exts_order(); $prioritized = get_exts_order();
// and availabe sections too // and availabe sections too
$exts = ext_available(); $exts = ext_available();
$div = "";
foreach ($prioritized as $dirname => $priority) foreach ($prioritized as $dirname => $priority)
{ {
// skip deleted sections (do not remove from DB) // skip deleted sections (do not remove from DB)
Expand Down
5 changes: 2 additions & 3 deletions admin/ext/customize/savesettings.php
Expand Up @@ -3,8 +3,7 @@
// check data first // check data first
if (empty($_POST)) { exit; } if (empty($_POST)) { exit; }


define('REL_URL', "../../../"); require '../../../config.php';
require REL_URL.'config.php';




// check DB table // check DB table
Expand All @@ -14,7 +13,7 @@
foreach ($options as $row => $arrValue) foreach ($options as $row => $arrValue)
{ {
$name = $arrValue['name']; $name = $arrValue['name'];
$value = $_POST[$name]; if (isset($_POST[$name])) { $value = $_POST[$name]; }


if ($arrValue['type'] == CMS_CHOICE) { if ($arrValue['type'] == CMS_CHOICE) {
// store int numbers instead of "on" string from checkboxes // store int numbers instead of "on" string from checkboxes
Expand Down
2 changes: 1 addition & 1 deletion admin/ext/customize/sort.js
Expand Up @@ -35,7 +35,7 @@ $(function(){
function delayCallback() function delayCallback()
{ {
setTimeout(function(){ setTimeout(function(){
infoDiv.fadeOut("slow", resetInfoDiv); infoDiv.slideUp("slow", resetInfoDiv);
}, 1000); }, 1000);
}; };


Expand Down
4 changes: 2 additions & 2 deletions admin/ext/customize/sort.php
@@ -1,7 +1,7 @@
<?php <?php
session_start(); session_start();
define('REL_URL', "../../../");
require REL_URL.'config.php'; require '../../../config.php';


// check root user // check root user
if (!is_root()) { exit; } if (!is_root()) { exit; }
Expand Down
17 changes: 7 additions & 10 deletions admin/ext/documentation/index.php
Expand Up @@ -2,27 +2,24 @@
// server settings are required - relative path to smt2 root dir // server settings are required - relative path to smt2 root dir
require '../../../config.php'; require '../../../config.php';
// protect extension from being browsed by anyone // protect extension from being browsed by anyone
require INC_PATH.'sys/logincheck.php'; require SYS_DIR.'logincheck.php';
// now you have access to all (smt) API functions and constants // now you have access to all CMS API
include INC_PATH.'inc/header.php'; include INC_DIR.'header.php';

// shorcut to CSS styles
define ('CSS_PATH', ADMIN_PATH."css/");
?> ?>




<p> <p>
Developers may read the <a href="./php/">PHP</a> and <a href="./js/">JS</a> APIs for writing their own scripts. Developers may read the <a href="./php/">PHP</a> and <a href="./js/">JS</a> APIs for writing their own scripts.
Designers may have a look at the CSS files on <?=CSS_PATH?>: Designers may have a look at the CSS files on <?=CSS_PATH?> dir:
<a href="<?=CSS_PATH?>base.css">base</a>, <a href="<?=CSS_PATH?>admin.css">admin</a>, <a href="<?=CSS_PATH?>theme.css">theme</a>. <a href="<?=CSS_PATH?>base.css">base</a>, <a href="<?=CSS_PATH?>admin.css">admin</a>, <a href="<?=CSS_PATH?>theme.css">theme</a>.
</p> </p>


<p>More information about (smt)<sup>2.0</sup> can be found on <a rel="external" href="http://code.google.com/p/smt2/w/list">(smt) Google code wiki</a> pages:</p> <p>More information about (smt)<sup>2</sup> can be found on <a rel="external" href="http://code.google.com/p/smt2/w/list">smt2 Google code wiki</a> pages:</p>
<ul> <ul class="pl">
<li><a rel="external" href="http://code.google.com/p/smt2/wiki/readme">the basics</a></li> <li><a rel="external" href="http://code.google.com/p/smt2/wiki/readme">the basics</a></li>
<li><a rel="external" href="http://code.google.com/p/smt2/wiki/CMS">about this CMS</a></li> <li><a rel="external" href="http://code.google.com/p/smt2/wiki/CMS">about this CMS</a></li>
<li><a rel="external" href="http://code.google.com/p/smt2/wiki/roles">understanding roles</a></li> <li><a rel="external" href="http://code.google.com/p/smt2/wiki/roles">understanding roles</a></li>
</ul> </ul>




<?php include INC_PATH.'inc/footer.php'; ?> <?php include INC_DIR.'footer.php'; ?>

0 comments on commit a77768e

Please sign in to comment.