From: <lor...@us...> - 2012-07-21 11:44:31
|
Revision: 9905 http://xoops.svn.sourceforge.net/xoops/?rev=9905&view=rev Author: lord_venom Date: 2012-07-21 11:44:24 +0000 (Sat, 21 Jul 2012) Log Message: ----------- news style Modified Paths: -------------- XoopsModules/TDMStats/trunk/TDMStats/admin/index.php XoopsModules/TDMStats/trunk/TDMStats/css/styles.css XoopsModules/TDMStats/trunk/TDMStats/include/stats.php XoopsModules/TDMStats/trunk/TDMStats/include/summary.php XoopsModules/TDMStats/trunk/TDMStats/language/french/admin.php XoopsModules/TDMStats/trunk/TDMStats/language/french/main.php XoopsModules/TDMStats/trunk/TDMStats/language/french/modinfo.php XoopsModules/TDMStats/trunk/TDMStats/templates/tdmstats_stats.html XoopsModules/TDMStats/trunk/TDMStats/xoops_version.php Modified: XoopsModules/TDMStats/trunk/TDMStats/admin/index.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/admin/index.php 2012-07-21 07:35:48 UTC (rev 9904) +++ XoopsModules/TDMStats/trunk/TDMStats/admin/index.php 2012-07-21 11:44:24 UTC (rev 9905) @@ -4,6 +4,13 @@ xoops_cp_header(); $indexAdmin = new ModuleAdmin(); +$langue = htmlEntities($_SERVER["HTTP_ACCEPT_LANGUAGE"]); +$langs= explode(",",$_SERVER["HTTP_ACCEPT_LANGUAGE"]); +$file = "Vous acceptez les langues suivantes: ".$langue."<br/> + mais votre langue principale est: ".$langs[0].""; +//$file_protection = $date = formatTimestamp(time(), "A d B")."Tatane, Xoopsfr<br /><br /> +//Cesag, Xoopsfr<br /><br />Grosdunord, Xoopsfr<br /><br />Phira, Xoopsfr<br />"; +$indexAdmin->addConfigBoxLine(_AM_ISTATS_TEST.": ".$langue); echo $indexAdmin->addNavigation('index.php'); echo $indexAdmin->renderIndex(); Modified: XoopsModules/TDMStats/trunk/TDMStats/css/styles.css =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/css/styles.css 2012-07-21 07:35:48 UTC (rev 9904) +++ XoopsModules/TDMStats/trunk/TDMStats/css/styles.css 2012-07-21 11:44:24 UTC (rev 9905) @@ -1,3 +1,6 @@ + + + .ui-tabs .ui-tabs-nav li.ui-state-active { cursor: text; color: #666; @@ -39,18 +42,22 @@ } ul#tree_menu li { - list-style: none; + list-style: none; float:left; width:97%; - height: 130px; - overflow:hidden; - margin: 10px; padding: 0px; + min-height:130px; + /*height: 130px;*/ + border: 2px solid white; + margin: 10px; + padding: 5px; + -webkit-border-radius: 4px; border-radius: 4px; - border: 2px solid white; - /* background: whiteSmoke url(../images/decos/downloads-bg.gif) repeat-x left top; */ + -moz-border-radius: 4px; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - overflow: auto; + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); } ul#tree_menu img { float:left; @@ -73,11 +80,14 @@ } #tdmstats_text, ul#tree_menu #tree_text { + display:block; + height:50px; font-size: 13px; font-weight: normal; color: #728DA9; -text-shadow: 0 1px 0 white; line-height: 20px; +word-wrap: break-word; +overflow:hidden; } #tdmstats_num, #tdmstats_num a, ul#tree_menu #tree_num{ Modified: XoopsModules/TDMStats/trunk/TDMStats/include/stats.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/include/stats.php 2012-07-21 07:35:48 UTC (rev 9904) +++ XoopsModules/TDMStats/trunk/TDMStats/include/stats.php 2012-07-21 11:44:24 UTC (rev 9905) @@ -26,6 +26,8 @@ redirect_header( XOOPS_URL , 1 , _AM_QUERYNOPERM); } +setlocale(LC_ALL, $xoopsModuleConfig['setlocal'], $xoopsModuleConfig['setlocal2']); + $xoopsTpl->assign('lang_by_weekday', _AM_BY_WEEKDAY); $xoopsTpl->assign('lang_by_week', _AM_BY_WEEK); $xoopsTpl->assign('lang_by_mth', _AM_BY_MTH); @@ -44,9 +46,25 @@ $mths++; } - ////day + ////info day $day= array(); global $xoopsDB; + //$mth = formatTimeStamp(time(), 'Y-m-'); + $day_info = getResult("select distinct day, count from ".$xoopsDB->prefix("TDMStats_mth_days")." order by count DESC LIMIT 3"); + + + if($day_info){ + for($i=0; $i<sizeof($day_info); $i++){ + + $day['info'][] = $day_info[$i]['count']; + $day['day'][] = $day_info[$i]['day']; + + $xoopsTpl->append('item_days', array('id' => 'day'.$i, 'day' => $day_info[$i]['day'], 'info' => $day_info[$i]['count'])); + + } } + ///day +$day= array(); + global $xoopsDB; $mth = formatTimeStamp(time(), 'Y-m-'); $day_info = getResult("select distinct day, count from ".$xoopsDB->prefix("TDMStats_mth_days")." order by day limit $mths"); $day_total = getResult("select SUM(count) AS sum from ".$xoopsDB->prefix("TDMStats_mth_days").""); @@ -68,12 +86,27 @@ $day['percent'][] = round($day_percent, '2'); if ($day_percent > 0) { - $xoopsTpl->append('days', array('id' => 'day'.$i, 'day' => $day_info[$i]['day'], 'info' => $day_info[$i]['count'], 'percent' => round($day_percent, '2'))); + //$xoopsTpl->append('days', array('id' => 'day'.$i, 'day' => $day_info[$i]['day'], 'info' => $day_info[$i]['count'], 'percent' => round($day_percent, '2'))); $xoopsTpl->append('days_map', array('id' => 'day'.$i, 'day' => $day_info[$i]['day'], 'info' => $day_info[$i]['count'], 'percent' => round($day_percent, '2'))); } } +///week info +$week= array(0 => _AM_WD_7, 1=> _AM_WD_1, 2 => _AM_WD_2, 3 => _AM_WD_3, 4 => _AM_WD_4, 5 => _AM_WD_5, 6 => _AM_WD_6); +$week_day= array(); + global $xoopsDB; + $week_info = getResult("select * from ".$xoopsDB->prefix("TDMStats_week")." order by count DESC limit 3"); + //$week_sum = getResult("select SUM(count) AS sum from ".$xoopsDB->prefix("TDMStats_week").""); +if($week_info){ + for($i=0; $i<sizeof($week_info); $i++){ + + $week_day = $week[$week_info[$i]['day']]; + + $xoopsTpl->append('item_weeks', array('id' => 'week_day'.$i, 'week_day' => $week_day, 'info' => $week_info[$i]['count'])); + + } + } ///////////WEEK//////////// $week= array(0 => _AM_WD_7, 1=> _AM_WD_1, 2 => _AM_WD_2, 3 => _AM_WD_3, 4 => _AM_WD_4, 5 => _AM_WD_5, 6 => _AM_WD_6); $week_day= array(); @@ -97,15 +130,32 @@ $week_day['percent'][] = round($week_day_percent, '2'); if ($week_day_percent > 0) { - $xoopsTpl->append('week_days', array('id' => 'week_day'.$i, 'week_day' => $week[$i], 'info' => $week_info[$i]['count'], 'percent' => round($week_day_percent, '2'))); + //$xoopsTpl->append('week_days', array('id' => 'week_day'.$i, 'week_day' => $week[$i], 'info' => $week_info[$i]['count'], 'percent' => round($week_day_percent, '2'))); $xoopsTpl->append('week_days_map', array('id' => 'week_day'.$i, 'week_day' => $week[$i], 'info' => $week_info[$i]['count'], 'percent' => round($week_day_percent, '2'))); } } } +///mont info/// + global $xoopsDB; + $year = formatTimeStamp(time(), 'Y'); + $mth_info = getResult("select distinct mth, year, count from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year' order by count DESC limit 3"); +// $mth_result = PrintStats($mth_sum[0]['sum'], $mth_max[0]['max'], $mth_info, sizeof($mth_info)); + if($mth_info){ + for($i=0; $i<sizeof($mth_info); $i++){ + + $mth = strftime("%B %Y", mktime(0, 0, 0,$mth_info[$i]['mth'] ,01 ,$mth_info[$i]['year'])); + //$mth['percent'][] = round($mth_percent, '2'); + + + $xoopsTpl->append('item_mths', array('id' => 'mth'.$i, 'mth' => $mth, 'info' => $mth_info[$i]['count'])); + + } + } ///mont/// + $mth = array(); global $xoopsDB; $year = formatTimeStamp(time(), 'Y'); @@ -126,7 +176,8 @@ $mth_percent = 0; } - + //echo "nous sommes le". strftime ("%A %d %B %Y et il est %Hh%M", 1207742661); + $week = strftime("%B %Y", mktime(0, 0, 0,$mth_info[$i]['mth'] ,01 ,$mth_info[$i]['year'])); $mth['info'][] = $mth_info[$i]['count']; //$mth['week'][] = $mth_info[$i]['week']; $mth['percent'][] = round($mth_percent, '2'); @@ -137,7 +188,24 @@ } } } +///week info + global $xoopsDB; + $last_info = getResult("select distinct week, year, count from ".$xoopsDB->prefix("TDMStats_week_count")." where year='$year' order by count desc limit 3"); + //$week_max = getResult("select max(count) as max from ".$xoopsDB->prefix("TDMStats_week_count")." where year='$year'"); + //$last_sum = getResult("select sum(count) as sum from ".$xoopsDB->prefix("TDMStats_week_count")." where year='$year'"); + //$week_result = PrintStats($week_sum[0]['sum'], $week_max[0]['max'], $week_info, sizeof($week_info)); + + if($last_info){ + for($i=0; $i<sizeof($last_info); $i++){ + + //$last['info'][] = $last_info[$i]['count']; + //$last['week'][] = $last_info[$i]['week']; + //$last['percent'][] = round($last_percent, '2'); + $xoopsTpl->append('item_lasts', array('id' => 'last'.$i, 'week' => $last_info[$i]['week'], 'year' => $last_info[$i]['year'], 'info' => $last_info[$i]['count'])); + + } + } //////WEEK///////////// $last = array(); global $xoopsDB; @@ -175,7 +243,20 @@ + /////////////ITEM HOUR + global $xoopsDB; + $hour_info = getResult("select * from ".$xoopsDB->prefix("TDMStats_hour")." order by count desc limit 3"); + //$max_hour = getResult("select max(count) as max from ".$xoopsDB->prefix("TDMStats_hour").""); + if ($hour_info) { + for ($i = 0; $i < sizeof($hour_info); $i++) { + + //$hour['info'][] = $hour_info[$i]['count']; + //$hour['week'][] = $hour_info[$i]['hour']; + //$hour['percent'][] = round($hour_percent, '2'); + $xoopsTpl->append('item_hours', array('id' => 'hour'.$i, 'hour' => $hour_info[$i]['hour'], 'info' => $hour_info[$i]['count'])); + } + } /////////////HOUR $hour = array(); global $xoopsDB; @@ -197,13 +278,29 @@ $hour['percent'][] = round($hour_percent, '2'); if ($hour_percent > 0) { - $xoopsTpl->append('hours', array('id' => 'hour'.$i, 'hour' => $hour_info[$i]['hour'], 'info' => $hour_info[$i]['count'], 'percent' => round($hour_percent, '2'))); + //$xoopsTpl->append('hours', array('id' => 'hour'.$i, 'hour' => $hour_info[$i]['hour'], 'info' => $hour_info[$i]['count'], 'percent' => round($hour_percent, '2'))); $xoopsTpl->append('hours_map', array('id' => 'hour'.$i, 'hour' => $hour_info[$i]['hour'], 'info' => $hour_info[$i]['count'], 'percent' => round($hour_percent, '2'))); } } } +//page item + global $xoopsDB; + $page_info = getResult("select distinct page, count from ".$xoopsDB->prefix("TDMStats_page")." order by count desc limit 3 "); + + if ($page_info) { + for ($i = 0; $i < sizeof($page_info); $i++) { + //$page['info'][] = $page_info[$i]['count']; + //$page['page'][] = (strlen(basename($page_info[$i]['page'])) > 50 ? substr(basename($page_info[$i]['page']),0,(50))."..." : basename($page_info[$i]['page'])); + $url = (strlen(basename($page_info[$i]['page'])) > 20 ? substr(basename($page_info[$i]['page']),0,(20))."..." : basename($page_info[$i]['page'])); + //$title = $page_info[$i]['page']; + //$page['percent'][] = round($page_percent, '2'); + + $xoopsTpl->append('item_pages', array('id' => 'page'.$i, 'page' => $url, 'info' => $page_info[$i]['count'])); +} + } + /** * @feature * Displays Top xx page requests @@ -239,6 +336,22 @@ } } + + //item module + global $xoopsDB; + + $module_info = getResult("select distinct modules, count from ".$xoopsDB->prefix("TDMStats_modules")." order by count desc limit 3 "); + + if ($module_info) { + for ($i = 0; $i < sizeof($module_info); $i++) { + + //$module['info'][] = $module_info[$i]['count']; + //$module['modules'][] = $module_info[$i]['modules']; + //$module['percent'][] = round($module_percent, '2'); + + $xoopsTpl->append('item_modules', array('id' => 'modules'.$i, 'module' => $module_info[$i]['modules'], 'info' => $module_info[$i]['count'])); + } + } /** * @feature * Displays Top module requests Modified: XoopsModules/TDMStats/trunk/TDMStats/include/summary.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/include/summary.php 2012-07-21 07:35:48 UTC (rev 9904) +++ XoopsModules/TDMStats/trunk/TDMStats/include/summary.php 2012-07-21 11:44:24 UTC (rev 9905) @@ -90,21 +90,6 @@ $text); } - global $xoopsDB; - $per_hour_info = getResult("select * from ".$xoopsDB->prefix("TDMStats_hour")." order by hour"); - $sum_hour = getResult("select sum(count) as sum from ".$xoopsDB->prefix("TDMStats_hour").""); - - for ($i = 0; $i < sizeof($per_hour_info); $i = $i + 2) { - $check_no = $i + 2; - for ($j = $i; $j < $check_no; $j++) { - if ($sum_hour[0]['sum'] > 0) { - $per_hour_percent = $per_hour_info[$j]['count'] / $sum_hour[0]['sum'] * 100; - } else { - $per_hour_percent = 0; - } - $xoopsTpl->append('hour_info', array('hour' => $per_hour_info[$j]["hour"], 'percent' => sprintf ("%.2f", $per_hour_percent))); - } - } $xoopsTpl->assign('lang_per_hour', _AM_PER_HOUR); $hour= array(); @@ -186,7 +171,7 @@ if($ref_info){ for($i=0; $i<sizeof($ref_info); $i++){ if($ref_info[$i]['count'] > 0) { - $url = (strlen($ref_info[$i]['url']) > 30 ? substr($ref_info[$i]['url'],0,(30))."..." : $ref_info[$i]['url']); + $url = (strlen($ref_info[$i]['url']) > 20 ? substr($ref_info[$i]['url'],0,(20))."..." : $ref_info[$i]['url']); $ref['info'][] = $ref_info[$i]['count']; //$hour['percent'][] = round($hour_percent, '2'); Modified: XoopsModules/TDMStats/trunk/TDMStats/language/french/admin.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/language/french/admin.php 2012-07-21 07:35:48 UTC (rev 9904) +++ XoopsModules/TDMStats/trunk/TDMStats/language/french/admin.php 2012-07-21 11:44:24 UTC (rev 9905) @@ -79,5 +79,6 @@ define("_AM_ISTATS_PERM_4","Résumé"); define("_AM_ISTATS_PERM_8","Stats du traffic"); define("_AM_ISTATS_PERM_16","Système"); +define("_AM_ISTATS_TEST","Votre système accepte les langues suivantes"); ?> \ No newline at end of file Modified: XoopsModules/TDMStats/trunk/TDMStats/language/french/main.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/language/french/main.php 2012-07-21 07:35:48 UTC (rev 9904) +++ XoopsModules/TDMStats/trunk/TDMStats/language/french/main.php 2012-07-21 11:44:24 UTC (rev 9905) @@ -132,4 +132,5 @@ //Version 1.6 define('_AM_VIEW', 'Afficher le tableau'); +define('_AM_P_LE', 'Le'); ?> \ No newline at end of file Modified: XoopsModules/TDMStats/trunk/TDMStats/language/french/modinfo.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/language/french/modinfo.php 2012-07-21 07:35:48 UTC (rev 9904) +++ XoopsModules/TDMStats/trunk/TDMStats/language/french/modinfo.php 2012-07-21 11:44:24 UTC (rev 9905) @@ -62,4 +62,6 @@ define('_MI_ISTATS_SUMMARY', 'Résumé'); define('_MI_ISTATS_SYSTEM', 'Système'); define('_MI_ISTATS_TRAFFIC', 'Stats du Trafic '); + +define("_MI_ISTATS_SETLOCAL","Choisissez votre localité"); ?> Modified: XoopsModules/TDMStats/trunk/TDMStats/templates/tdmstats_stats.html =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/templates/tdmstats_stats.html 2012-07-21 07:35:48 UTC (rev 9904) +++ XoopsModules/TDMStats/trunk/TDMStats/templates/tdmstats_stats.html 2012-07-21 11:44:24 UTC (rev 9905) @@ -8,44 +8,44 @@ <li style="width:47%;" class="even"><div><img src="<{$smarty.const.TDMSTATS_IMAGES_URL}>/day.png" title="<{$lang_forecast}>"><br/></div><div><h2><a href="javascript:;" onclick="javascript:masque('day')"><{$smarty.const._AM_BY_DAY}></h2></a> <div style="text-align:left"> - <{foreach from=$item_hours item=item}> - <span id="tree_num"><{$smarty.const._AM_P_A}> <{$item.hour}>h, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> + <{foreach from=$item_days item=item}> + <span id="tree_num"><{$item.day}>, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> <{/foreach}> </div></div> -<div id="tree_form"><a href="javascript:;" onclick="javascript:masque('hour')" ><{$smarty.const._AM_VIEW}></a></div></li> +<div id="tree_form"><a href="#masque_day" onclick="javascript:masque('day')" ><{$smarty.const._AM_VIEW}></a></div></li> <li style="width:47%;" class="odd"><div><img src="<{$smarty.const.TDMSTATS_IMAGES_URL}>/weekday.png" title="<{$lang_forecast}>"><br/></div><div><h2><a href="javascript:;" onclick="javascript:masque('weekday')"><{$smarty.const._AM_BY_WEEKDAY}></h2></a> <div style="text-align:left"> - <{foreach from=$item_hours item=item}> - <span id="tree_num"><{$smarty.const._AM_P_A}> <{$item.hour}>h, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> + <{foreach from=$item_weeks item=item}> + <span id="tree_num"><{$item.week_day}>, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> <{/foreach}> </div></div> -<div id="tree_form"><a href="javascript:;" onclick="javascript:masque('hour')" ><{$smarty.const._AM_VIEW}></a></div></li> +<div id="tree_form"><a href="javascript:;" onclick="javascript:masque('week')" ><{$smarty.const._AM_VIEW}></a></div></li> <li style="width:47%;" class="even"><div><img src="<{$smarty.const.TDMSTATS_IMAGES_URL}>/week.png" title="<{$lang_forecast}>"><br/></div><div><h2><a href="javascript:;" onclick="javascript:masque('week')"><{$smarty.const._AM_BY_WEEK}></h2></a> <div style="text-align:left"> - <{foreach from=$item_hours item=item}> - <span id="tree_num"><{$smarty.const._AM_P_A}> <{$item.hour}>h, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> + <{foreach from=$item_lasts item=item}> + <span id="tree_num"><{$item.week}>: <{$item.year}>, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> <{/foreach}> </div></div> -<div id="tree_form"><a href="javascript:;" onclick="javascript:masque('hour')" ><{$smarty.const._AM_VIEW}></a></div></li> +<div id="tree_form"><a href="javascript:;" onclick="javascript:masque('last')" ><{$smarty.const._AM_VIEW}></a></div></li> <li style="width:47%;" class="odd"><div><img src="<{$smarty.const.TDMSTATS_IMAGES_URL}>/mth.png" title="<{$lang_forecast}>"><br/></div><div><h2><a href="javascript:;" onclick="javascript:masque('mth')"><{$smarty.const._AM_BY_MTH}></h2></a> <div style="text-align:left"> - <{foreach from=$item_hours item=item}> - <span id="tree_num"><{$smarty.const._AM_P_A}> <{$item.hour}>h, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> + <{foreach from=$item_mths item=item}> + <span id="tree_num"><{$item.mth}>, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> <{/foreach}> </div></div> -<div id="tree_form"><a href="javascript:;" onclick="javascript:masque('hour')" ><{$smarty.const._AM_VIEW}></a></div></li> +<div id="tree_form"><a href="javascript:;" onclick="javascript:masque('mth')" ><{$smarty.const._AM_VIEW}></a></div></li> <li style="width:47%;" class="even"><div><img src="<{$smarty.const.TDMSTATS_IMAGES_URL}>/hour.png" title="<{$lang_forecast}>"><br/></div><div><h2><a href="javascript:;" onclick="javascript:masque('mth')"><{$smarty.const._AM_BY_HOUR}></h2></a> <div style="text-align:left"> <{foreach from=$item_hours item=item}> - <span id="tree_num"><{$smarty.const._AM_P_A}> <{$item.hour}>h, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> + <span id="tree_num"><{$item.hour}>h, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> <{/foreach}> </div></div> @@ -54,77 +54,51 @@ <li style="width:47%;" class="odd"><div><img src="<{$smarty.const.TDMSTATS_IMAGES_URL}>/page.png" title="<{$lang_forecast}>"><br/></div><div><h2><a href="javascript:;" onclick="javascript:masque('mth')"><{$smarty.const._AM_BY_PAGE}></h2></a> <div style="text-align:left"> - <{foreach from=$item_hours item=item}> - <span id="tree_num"><{$smarty.const._AM_P_A}> <{$item.hour}>h, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> + <{foreach from=$item_pages item=item}> + <span id="tree_num"><{$item.page}>h, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> <{/foreach}> </div></div> -<div id="tree_form"><a href="javascript:;" onclick="javascript:masque('hour')" ><{$smarty.const._AM_VIEW}></a></div></li> +<div id="tree_form"><a href="javascript:;" onclick="javascript:masque('page')" ><{$smarty.const._AM_VIEW}></a></div></li> <li style="width:47%;" class="even"><div><img src="<{$smarty.const.TDMSTATS_IMAGES_URL}>/module.png" title="<{$lang_forecast}>"><br/></div><div><h2><a href="javascript:;" onclick="javascript:masque('mth')"><{$smarty.const._AM_BY_MODULE}></h2></a> <div style="text-align:left"> - <{foreach from=$item_hours item=item}> - <span id="tree_num"><{$smarty.const._AM_P_A}> <{$item.hour}>h, <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> + <{foreach from=$item_modules item=item}> + <span id="tree_num"><{$item.module}> <{$item.info}> <{$smarty.const._AM_P_VISITS}></span><br /> <{/foreach}> </div></div> -<div id="tree_form"><a href="javascript:;" onclick="javascript:masque('hour')" ><{$smarty.const._AM_VIEW}></a></div></li> +<div id="tree_form"><a href="javascript:;" onclick="javascript:masque('module')" ><{$smarty.const._AM_VIEW}></a></div></li> <br style="clear: both;" /></ul></td></tr></table><br /> -<div id="tabs"> - <ul> - <li style="list-style-type: none;"><a href="#day"><{$lang_by_day}></a></li> - <li style="list-style-type: none;"><a href="#week_day"><{$lang_by_weekday}></a></li> - <li style="list-style-type: none;"><a href="#week"><{$lang_by_week}></a></li> - <li style="list-style-type: none;"><a href="#mth"><{$lang_by_mth}></a></li> - <li style="list-style-type: none;"><a href="#hour"><{$lang_by_hour}></a></li> - <li style="list-style-type: none;"><a href="#page"><{$lang_by_page}></a></li> - <li style="list-style-type: none;"><a href="#module"><{$smarty.const._AM_BY_MODULE}></a></li> - </ul> - <div id="day"> - - <table class="map" cellspacing="0" cellpadding="0"> - <caption align="top"><{$smarty.const._AM_BY_DAY}><br /><br /></caption> +<div id="masque_day" style="display: none;"> +<h2><{$smarty.const._AM_BY_DAY}></h2> + <table width="100%" class="outer map"> <tr> - <th scope="col"><{$smarty.const._AM_BY_DAY}></th> - <th scope="col"><{$smarty.const._AM_DATE_VISITS}></th> + <th style="text-align:center;"><{$smarty.const._AM_BY_DAY}></th> + <th></th> + <th style="text-align:center;"><{$smarty.const._AM_DATE_VISITS}></th> + <th style="text-align:center;"><{$smarty.const._AM_DATE_PERCENT}></th> </tr> <{foreach item=days_map from=$days_map}> <tr> - <td width="20%" class="option"><div style="margin:5px;"><{$days_map.day}></div></td> - <td width="80%" class="value"><img src="./images/bar/<{$img_bar}>" title="<{$days_map.percent}>%" alt="<{$days_map.percent}>%" width="<{$days_map.percent}>%" height="16" /><{$days_map.info}></td> - </tr> + <td class="odd" width="20%" style="text-align:center; vertical-align:middle;"><div style="margin:5px;"><{$days_map.day}></div></td> + <td class="even value" width="60%" style="vertical-align:middle;"><img src="./images/bar/<{$img_bar}>" title="<{$days_map.percent}>%" alt="<{$days_map.percent}>%" width="<{$days_map.percent}>%" height="16" /></td> + <td class="odd" width="10%" style="text-align:center; vertical-align:middle;"><div style="margin:5px;"><{$days_map.info}></div></td> + <td class="even" width="10%" style="text-align:center; vertical-align:middle;"><div style="margin:5px;"><{$days_map.percent}>%</div></td> + </tr> <{/foreach}> </table> - <span><a href="javascript:;" onclick="javascript:masque('1')" ><{$smarty.const._AM_VIEW}></a></span> <br /><br /> - <div id="masque_1" style="display: none;"> - <table class="outer" width="100%" border="0" cellspacing="1" cellpadding="4" align="center"> - <tr> - <td class="head" align="center"><{$smarty.const._AM_BY_DAY}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_VISITS}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_PERCENT}></td> - </tr> - <{foreach item=days from=$days}> - <tr class="<{cycle values="even,odd"}>" valign="center"> - <td width="33%" align="center"><{$days.day}></td> - <td width="33%" align="center"><{$days.info}></td> - <td width="33%" align="center"><{$days.percent}>%</td> - </tr> - <{/foreach}> - </table> </div> -</div> - <div id="week_day"> - - +<div id="masque_week" style="display: none;"> +<h2><{$smarty.const._AM_BY_WEEKDAY}></h2> <table class="map" cellspacing="0" cellpadding="0"> - <caption align="top"><{$smarty.const._AM_BY_WEEKDAY}><br /><br /></caption> <tr> <th scope="col"><{$smarty.const._AM_BY_WEEKDAY}></th> <th scope="col"><{$smarty.const._AM_DATE_VISITS}></th> @@ -136,32 +110,14 @@ </tr> <{/foreach}> </table> - <span><a href="javascript:;" onclick="javascript:masque('2')" ><{$smarty.const._AM_VIEW}></a></span> - <br /><br /> - <div id="masque_2" style="display: none;"> - <table class="outer" width="100%" border="0" cellspacing="1" cellpadding="4" align="center"> - <tr> - <td class="head" align="center"><{$smarty.const._AM_BY_WEEKDAY}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_VISITS}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_PERCENT}></td> - </tr> - <{foreach item=week_days from=$week_days}> - <tr class="<{cycle values="even,odd"}>" valign="center"> - <td width="33%" align="center"><{$week_days.week_day}></td> - <td width="33%" align="center"><{$week_days.info}></td> - <td width="33%" align="center"><{$week_days.percent}>%</td> - </tr> - <{/foreach}> - </table> </div> </div> -<div id="week"> +<div id="masque_last" style="display: none;"> +<h2><{$smarty.const._AM_BY_WEEK}></h2> - <table class="map" cellspacing="0" cellpadding="0"> - <caption align="top"><{$smarty.const._AM_BY_WEEK}><br /><br /></caption> <tr> <th scope="col"><{$smarty.const._AM_BY_WEEK}></th> <th scope="col"><{$smarty.const._AM_DATE_VISITS}></th> @@ -173,32 +129,13 @@ </tr> <{/foreach}> </table> - <span><a href="javascript:;" onclick="javascript:masque('3')" ><{$smarty.const._AM_VIEW}></a></span> - <br /><br /> - <div id="masque_3" style="display: none;"> - <table class="outer" width="100%" border="0" cellspacing="1" cellpadding="4" align="center"> - <tr> - <td class="head" align="center"><{$smarty.const._AM_BY_WEEK}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_VISITS}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_PERCENT}></td> - </tr> - <{foreach item=lasts from=$lasts}> - <tr class="<{cycle values="even,odd"}>" valign="center"> - <td width="33%" align="center"><{$lasts.week}> (<{$lasts.year}>)</td> - <td width="33%" align="center"><{$lasts.info}></td> - <td width="33%" align="center"><{$lasts.percent}>%</td> - </tr> - <{/foreach}> - </table> - </div> </div> - <div id="mth"> - +<div id="masque_mth" style="display: none;"> +<h2><{$smarty.const._AM_BY_MTH}></h2> <table class="map" cellspacing="0" cellpadding="0"> - <caption align="top"><{$smarty.const._AM_BY_MTH}><br /><br /></caption> <tr> <th scope="col"><{$smarty.const._AM_BY_MTH}></th> <th scope="col"><{$smarty.const._AM_DATE_VISITS}></th> @@ -210,31 +147,12 @@ </tr> <{/foreach}> </table> - <span><a href="javascript:;" onclick="javascript:masque('4')" ><{$smarty.const._AM_VIEW}></a></span> - <br /><br /> - <div id="masque_4" style="display: none;"> - <table class="outer" width="100%" border="0" cellspacing="1" cellpadding="4" align="center"> - <tr> - <td class="head" align="center"><{$smarty.const._AM_BY_MTH}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_VISITS}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_PERCENT}></td> - </tr> - <{foreach item=mths from=$mths}> - <tr class="<{cycle values="even,odd"}>" valign="center"> - <td width="33%" align="center"><{$mths.mth}> (<{$mths.year}>)</td> - <td width="33%" align="center"><{$mths.info}></td> - <td width="33%" align="center"><{$mths.percent}>%</td> - </tr> - <{/foreach}> - </table> </div> -</div> - <div id="hour"> - +<div id="masque_hour" style="display: none;"> +<h2><{$smarty.const._AM_BY_HOUR}></h2> <table class="map" cellspacing="0" cellpadding="0"> - <caption align="top"><{$smarty.const._AM_BY_HOUR}><br /><br /></caption> <tr> <th scope="col"><{$smarty.const._AM_BY_HOUR}></th> <th scope="col"><{$smarty.const._AM_DATE_VISITS}></th> @@ -246,32 +164,12 @@ </tr> <{/foreach}> </table> - <span><a href="javascript:;" onclick="javascript:masque('5')" ><{$smarty.const._AM_VIEW}></a></span> - <br /><br /> - <div id="masque_5" style="display: none;"> - <table class="outer" width="100%" border="0" cellspacing="1" cellpadding="4" align="center"> - <tr> - <td class="head" align="center"><{$smarty.const._AM_BY_HOUR}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_VISITS}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_PERCENT}></td> - <td class="head" align="center"></td> - </tr> - <{foreach item=hours from=$hours}> - <tr class="<{cycle values="even,odd"}>" valign="center"> - <td width="33%" align="center"><{$hours.hour}></td> - <td width="33%" align="center"><{$hours.info}></td> - <td width="33%" align="center"><{$hours.percent}>%</td> - </tr> - <{/foreach}> - </table> </div> -</div> - <div id="page"> - +<div id="masque_page" style="display: none;"> +<h2><{$smarty.const._AM_BY_PAGE}></h2> <table class="map" cellspacing="0" cellpadding="0"> - <caption align="top"><{$smarty.const._AM_BY_PAGE}><br /><br /></caption> <tr> <th scope="col"><{$smarty.const._AM_BY_PAGE}></th> <th scope="col"><{$smarty.const._AM_DATE_VISITS}></th> @@ -283,35 +181,13 @@ </tr> <{/foreach}> </table> - <span><a href="javascript:;" onclick="javascript:masque('6')" ><{$smarty.const._AM_VIEW}></a></span> - <br /><br /> - <div id="masque_6" style="display: none;"> - <table class="outer" width="100%" border="0" cellspacing="1" cellpadding="4" align="center"> - <tr> - <td class="head" align="center"></td> - <td class="head" align="center"><{$smarty.const._AM_BY_PAGE}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_VISITS}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_PERCENT}></td> - <td class="head" align="center"></td> - </tr> - <{foreach item=pages from=$pages}> - <tr class="<{cycle values="even,odd"}>" valign="center"> - <td width="33%" align="center"><span title="<{$pages.title}>" alt="<{$pages.title}>"><{$pages.page}></span></td> - <td width="33%" align="center"><{$pages.info}></td> - <td width="33%" align="center"><{$pages.percent}>%</td> - </tr> - <{/foreach}> - </table> - </div> </div> - - <div id="module"> - +<div id="masque_module" style="display: none;"> +<h2><{$smarty.const._AM_BY_MODULE}></h2> <table class="map" cellspacing="0" cellpadding="0"> - <caption align="top"><{$smarty.const._AM_BY_MODULE}><br /><br /></caption> <tr> <th scope="col"><{$smarty.const._AM_BY_MODULE}></th> <th scope="col"><{$smarty.const._AM_DATE_VISITS}></th> @@ -323,24 +199,6 @@ </tr> <{/foreach}> </table> - <span><a href="javascript:;" onclick="javascript:masque('7')" ><{$smarty.const._AM_VIEW}></a></span> - <br /><br /> - <div id="masque_7" style="display: none;"> - <table class="outer" width="100%" border="0" cellspacing="1" cellpadding="4" align="center"> - <tr> - <td class="head" align="center"><{$smarty.const._AM_BY_MODULE}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_VISITS}></td> - <td class="head" align="center"><{$smarty.const._AM_DATE_PERCENT}></td> - </tr> - <{foreach item=modules from=$modules}> - <tr class="<{cycle values="even,odd"}>" valign="center"> - <td width="33%" align="center"><{$modules.modules}></td> - <td width="33%" align="center"><{$modules.info}></td> - <td width="33%" align="center"><{$modules.percent}>%</td> - </tr> - <{/foreach}> - </table> - </div> </div> Modified: XoopsModules/TDMStats/trunk/TDMStats/xoops_version.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/xoops_version.php 2012-07-21 07:35:48 UTC (rev 9904) +++ XoopsModules/TDMStats/trunk/TDMStats/xoops_version.php 2012-07-21 11:44:24 UTC (rev 9905) @@ -131,35 +131,76 @@ $modversion['templates'][4]['file'] = 'tdmstats_user_info.html'; $modversion['templates'][4]['description'] = ''; +$i=1; +$modversion['config'][$i]['name'] = 'longdate'; +$modversion['config'][$i]['title'] = '_MI_ISTATS_DATE'; +$modversion['config'][$i]['description'] = '_MI_ISTATS_DATE_DESC'; +$modversion['config'][$i]['formtype'] = 'select'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; +$modversion['config'][$i]['options'] = array('_MI_ISTATS_DATE_FR' => '1','_MI_ISTATS_DATE_US' => '2'); +$i++; +$modversion['config'][$i]['name'] = 'setlocal'; +$modversion['config'][$i]['title'] = '_MI_ISTATS_SETLOCAL'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'select'; +$modversion['config'][$i]['valuetype'] = 'text'; +$modversion['config'][$i]['default'] = 'en_US.UTF-8'; +$modversion['config'][$i]['options'] = array( +'fr_FR.UTF-8' => 'fr_FR.UTF-8', +'cs_CZ.UTF-8' => 'cs_CZ.UTF-8', +'de_DE.UTF-8' => 'de_DE.UTF-8', +'en_GB.UTF-8' => 'en_GB.UTF-8', +'en_IE.UTF-8' => 'en_IE.UTF-8', +'en_US.UTF-8' => 'en_US.UTF-8', +'es_ES.UTF-8' => 'es_ES.UTF-8', +'it_IT.UTF-8' => 'it_IT.UTF-8', +'pt_PT.UTF-8' => 'pt_PT.UTF-8', +'ru_RU.UTF-8' => 'ru_RU.UTF-8' -$modversion['config'][1]['name'] = 'longdate'; -$modversion['config'][1]['title'] = '_MI_ISTATS_DATE'; -$modversion['config'][1]['description'] = '_MI_ISTATS_DATE_DESC'; -$modversion['config'][1]['formtype'] = 'select'; -$modversion['config'][1]['valuetype'] = 'int'; -$modversion['config'][1]['default'] = 1; -$modversion['config'][1]['options'] = array('_MI_ISTATS_DATE_FR' => '1','_MI_ISTATS_DATE_US' => '2'); -$modversion['config'][2]['name'] = 'maxpage'; -$modversion['config'][2]['title'] = '_MI_ISTATS_MAXPAGE'; -$modversion['config'][2]['description'] = ''; -$modversion['config'][2]['formtype'] = 'texbox'; -$modversion['config'][2]['valuetype'] = 'int'; -$modversion['config'][2]['default'] = 20; +); +$i++; +$modversion['config'][$i]['name'] = 'setlocal2'; +$modversion['config'][$i]['title'] = ''; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'select'; +$modversion['config'][$i]['valuetype'] = 'text'; +$modversion['config'][$i]['default'] = 'eng'; +$modversion['config'][$i]['options'] = array( +'fra' => 'fra', +'ces' => 'ces', +'deu' => 'deu', +'eng' => 'eng', +'esl' => 'esl', +'ita' => 'ita', +'por' => 'por', +'rus' => 'rus', -$modversion['config'][3]['name'] = 'maxsession'; -$modversion['config'][3]['title'] = '_MI_ISTATS_MAXSESSION'; -$modversion['config'][3]['description'] = '_MI_ISTATS_MAXSESSION_DESC'; -$modversion['config'][3]['formtype'] = 'texbox'; -$modversion['config'][3]['valuetype'] = 'int'; -$modversion['config'][3]['default'] = 600; -$modversion['config'][4]['name'] = 'maxuser'; -$modversion['config'][4]['title'] = '_MI_ISTATS_MAXUSER'; -$modversion['config'][4]['description'] = ''; -$modversion['config'][4]['formtype'] = 'yesno'; -$modversion['config'][4]['valuetype'] = 'int'; -$modversion['config'][4]['default'] = 0; +); +$i++; +$modversion['config'][$i]['name'] = 'maxpage'; +$modversion['config'][$i]['title'] = '_MI_ISTATS_MAXPAGE'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'texbox'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 20; +$i++; +$modversion['config'][$i]['name'] = 'maxsession'; +$modversion['config'][$i]['title'] = '_MI_ISTATS_MAXSESSION'; +$modversion['config'][$i]['description'] = '_MI_ISTATS_MAXSESSION_DESC'; +$modversion['config'][$i]['formtype'] = 'texbox'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 600; +$i++; +$modversion['config'][$i]['name'] = 'maxuser'; +$modversion['config'][$i]['title'] = '_MI_ISTATS_MAXUSER'; +$modversion['config'][$i]['description'] = ''; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 0; +$i++; //$modversion['config'][5]['name'] = 'tdmstats_style'; //$modversion['config'][5]['title'] = '_MI_ISTATS_ONGLET'; @@ -171,13 +212,13 @@ // 'dark-hive' => 'dark-hive', 'excite' => 'excite', 'vader' => 'vader', 'trontastic' => 'trontastic' ); // include_once XOOPS_ROOT_PATH . "/class/xoopslists.php"; -$modversion["config"][6]["name"] = "tdmstats_bar"; -$modversion["config"][6]["title"] = "_MI_ISTATS_BAR"; -$modversion["config"][6]["description"] = ""; -$modversion["config"][6]["formtype"] = "select"; -$modversion["config"][6]["valuetype"] = "text"; -$modversion["config"][6]["default"] = "bar0.png"; -$modversion["config"][6]["options"] = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . "/modules/".basename( dirname( __FILE__ ) )."/images/bar"); -$modversion["config"][6]["category"] = "global"; - +$modversion["config"][$i]["name"] = "tdmstats_bar"; +$modversion["config"][$i]["title"] = "_MI_ISTATS_BAR"; +$modversion["config"][$i]["description"] = ""; +$modversion["config"][$i]["formtype"] = "select"; +$modversion["config"][$i]["valuetype"] = "text"; +$modversion["config"][$i]["default"] = "bar0.png"; +$modversion["config"][$i]["options"] = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . "/modules/".basename( dirname( __FILE__ ) )."/images/bar"); +$modversion["config"][$i]["category"] = "global"; +$i++; ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |