From: <be...@us...> - 2012-02-01 12:36:00
|
Revision: 8868 http://xoops.svn.sourceforge.net/xoops/?rev=8868&view=rev Author: beckmi Date: 2012-02-01 12:35:49 +0000 (Wed, 01 Feb 2012) Log Message: ----------- Updating to 2.36 Beta 2 (JJDai) Modified Paths: -------------- XoopsModules/extcal/branches/jjdai/extcal/class/event.php XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt XoopsModules/extcal/branches/jjdai/extcal/edit_event.php XoopsModules/extcal/branches/jjdai/extcal/header.php XoopsModules/extcal/branches/jjdai/extcal/include/functions.php XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_event_list1.html XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-day.html XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-week.html XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-month.html XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-week.html XoopsModules/extcal/branches/jjdai/extcal/view_year.php XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php Added Paths: ----------- XoopsModules/extcal/branches/jjdai/extcal/class/colorTools.php XoopsModules/extcal/branches/jjdai/extcal/css/images/ XoopsModules/extcal/branches/jjdai/extcal/css/images/Critical.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Help.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Info.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Warning.png XoopsModules/extcal/branches/jjdai/extcal/css/infobulle.css Added: XoopsModules/extcal/branches/jjdai/extcal/class/colorTools.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/class/colorTools.php (rev 0) +++ XoopsModules/extcal/branches/jjdai/extcal/class/colorTools.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -0,0 +1,223 @@ +<?PHP + +class ColorTools{ + + function __construct(){ + } + + +/************************************************************** +Ajoute ou rtir un icrement sur chaque compsante RGB d'une couleur +Les valeur sont limiter au bornes inf\xE9rieure et sup\xE9rieure 0 et 255 +***************************************************************/ +Function modifierCouleur($colorHexa, + $incrementRouge, $incrementVert, $incrementBleu, + $plancherRouge = 0, $plafondRouge = 255, + $plancherVert = 0, $plafondVert = 255, + $plancherBleu = 0, $plafondBleu = 255 + ) { + + + $t10 = $this->hexa2rgbA($colorHexa); + + $t10[1] = $this->bornerValeur($t10[1] + $incrementRouge, $plancherRouge, $plafondRouge); + $t10[2] = $this->bornerValeur($t10[2] + $incrementVert, $plancherVert, $plafondVert); + $t10[3] = $this->bornerValeur($t10[3] + $incrementBleu, $plancherBleu, $plafondBleu); + + $newColorHexa = $this->getHexaColorFromA($t10); + + return $newColorHexa; + + } + + +/************************************************************** +Eclairci une couleur +elle born\xE9 pa un plancher et un plafond pur \xE9vite le tout blanc ou tout blanc +ou les blocage sur une couleur pur (ex #FF0000) +***************************************************************/ +Function eclaircir($colorHexa, $plancher = 0, $plafond = 255){ + + $tMin = Array('', $plancher, $plancher, $plancher); + $tMax = Array('', $plafond, $plafond, $plafond); + + $t10 = $this->hexa2rgbA($colorHexa); +// echo "<hr>"; +// ext_echoArray($t10); + $max = $plancher; + For ($h = 1 ; $h <= 3 ; $h++){ + If ($max < $t10[$h]) { + $max = $t10[$h]; + } + } + + + $increment = $plafond - $max; + +// $t10[1] = $t10[1] + $increment; +// $t10[2] = $t10[2] + $increment; +// $t10[3] = $t10[3] + $increment; + + $min = 0; + For ($h = 1 ; $h <= 3 ; $h++){ + $t10[$h] = $t10[$h] + $increment; + If ($t10[$h] < $tMin[$h] && $min < ($tMin[$h] - $t10[$h])) { + $min = ($tMin[$h] - $t10[$h]); + } + } + +// echo "{$colorHexa}-{$plancher}-{$plafond}<br>"; +// echo "{$min}-{$max}-{$increment}<br>"; + + $t10[1] = $this->bornerValeur($t10[1] + $min, $plancher, $plafond); + $t10[2] = $this->bornerValeur($t10[2] + $min, $plancher, $plafond); + $t10[3] = $this->bornerValeur($t10[3] + $min, $plancher, $plafond); + +// ext_echoArray($t10); + + $newColorHexa = $this->getHexaColorFromA($t10); +// echo "colorHexa = {$newColorHexa}-{$colorHexa}<br>"; + return $newColorHexa; +} + +/************************************************************** +Fonce une couleur +elle born\xE9 pa un plancher et un plafond pur \xE9vite le tout blanc ou tout blanc +ou les blocage sur une couleur pur (ex #FFFF00) +***************************************************************/ +Function foncer($colorHexa, $plancher = 0, $plafond = 255){ + + $tMin = Array('', $plancher, $plancher, $plancher); + $tMax = Array('', $plafond, $plafond, $plafond); + + + $t10 = $this->hexa2rgbA($colorHexa); + $max = 255; + + For ($h = 1 ; $h <= 3 ; $h++){ + If ($max > $t10[$h]) { + $max = $t10[$h]; + } + } + + $increment = -$max; + +// $t10[1] = $t10[1] + $increment; +// $t10[2] = $t10[2] + $increment; +// $t10[3] = $t10[3] + $increment; + + $min = 0; + For ($h = 1 ; $h <= 3 ; $h++){ + $t10[$h] = $t10[$h] + $increment; + If ($t10[$h] > $tMax[$h] && $min < ($t10[$h] - $tMax[$h])) { + $min = ($t10[$h] - $tMax[$h]); + } + } + + $t10[1] = $this->bornerValeur($t10[1] - $min, $plancher, $plafond); + $t10[2] = $this->bornerValeur($t10[2] - $min, $plancher, $plafond); + $t10[2] = $this->bornerValeur($t10[3] - $min, $plancher, $plafond); + + $colorHexa = $this->getHexaColorFromA($t10); + + return $colorHexa; + +} + + +/************************************************************** +Renvoi une couleur RGB en hexa a partir du tableau passe en parametr +Description du tableau +0 = doit contenir '#' ou '' +1 = int red +2 = int vert +3 = int bleu +***************************************************************/ +Function getHexaColorFromA($aColors) { + + $tHex = array("","","",""); + + $tHex[0] = $aColors[0]; + $tHex[1] = substr('00' . dechex($aColors[1]), -2); + $tHex[2] = substr('00' . dechex($aColors[2]), -2); + $tHex[3] = substr('00' . dechex($aColors[3]), -2); + + $colorHexa = implode('', $tHex); + return $colorHexa; +} + +/************************************************************** +Transforme les composante d'une couleur en valeu hexa +prefixe doit contenir '#' ou '' +***************************************************************/ +Function rgb2hexa($r, $g, $b, $prefixe = ''){ + + $colorHexa = $this->getHexaColorFromA(Array($prefixe, $r, $g, $b)); + + return $colorHexa; + +} + +/************************************************************** +renvoi un tableau d'entier des valeur rgbd d'une couleur a partir d'un hexa +Description du tableau renvoy\xE9 +0 = contient '#' ou '' (selon premier cactere de la couleur hexa) +1 = int red +2 = int vert +3 = int bleu +***************************************************************/ +Function hexa2rgbA($colorHexa){ + + $t = array("","","",""); + + If (substr($colorHexa, 0, 1) == '#'){ + $t[0] = '#'; + $offsetCar = 1; + }else{ + $t[0] = ''; + $offsetCar = 0; + } + + $t[1] = hexdec(substr($colorHexa, $offsetCar + 0, 2)); + $t[2] = hexdec(substr($colorHexa, $offsetCar + 2, 2)); + $t[3] = hexdec(substr($colorHexa, $offsetCar + 4, 2)); + + return $t; +} + +/************************************************************** +Renvoi les composante rgb d'une couleur par r\xE9f\xE9rence +***************************************************************/ +Function hexa2rgb($colorHexa, &$r, &$v, &$b, &$diese){ + + $t = $this->hexa2rgbA($colorHexa); + $r = $t[1]; + $v = $t[2]; + $v = $t[3]; + $diese = $t[0]; + + return true; +} + + +/************************************************************** +Borne les valeurs max et min d'une valeur +***************************************************************/ +Function bornerValeur($val, $min, $max){ + + If ($val < $min){ + $val = $min; + } else if($val > $max){ + $val = $max; + } + + return $val; + +} + +//-------------------------------------------------------- +} // --- fin de la classe colors +//-------------------------------------------------------- + + +?> Modified: XoopsModules/extcal/branches/jjdai/extcal/class/event.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/class/event.php 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/class/event.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -303,6 +303,8 @@ while(list($k,$v)=each($events)){ $ordre[] = intval($v['event_start']); $this->formatEventDate($v, $extcalConfig['event_date_week']); + //$v['cat']['cat_light_color'] = $v['cat']['cat_color']; + $v['cat']['cat_light_color'] = eclaircirCouleur($v['cat']['cat_color'],180,250); $eventArray[]= $v; } array_multisort($eventArray, SORT_ASC, SORT_NUMERIC, $ordre, SORT_ASC, SORT_NUMERIC); @@ -1993,6 +1995,8 @@ while ($myrow = $xoopsDB->fetchArray($result)) { $myrow['cat']['cat_name'] = $myrow['cat_name']; $myrow['cat']['cat_color'] = $myrow['cat_color']; + $myrow['cat']['cat_light_color'] = eclaircirCouleur($myrow['cat']['cat_color'],180,250); + $ret[] = $myrow; } return $ret; Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Critical.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Critical.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Help.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Help.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Info.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Info.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Warning.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Warning.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/infobulle.css =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/css/infobulle.css (rev 0) +++ XoopsModules/extcal/branches/jjdai/extcal/css/infobulle.css 2012-02-01 12:35:49 UTC (rev 8868) @@ -0,0 +1,80 @@ + +.tooltip { + border-bottom: 1px dotted #000000; color: #000000; outline: none; + cursor: help; text-decoration: none; + position: relative; +} +.tooltip span { + margin-left: -999em; + position: absolute; +} +.tooltip:hover span { + border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); + font-family: Calibri, Tahoma, Geneva, sans-serif; + position: absolute; left: 1em; top: 2em; z-index: 99; + margin-left: 0; width: 300px; +} + + + +.tooltip:hover span[width50] { + width: 50px; +} +.tooltip:hover span[width100] { + width: 100px; +} +.tooltip:hover span[width150] { + width: 150px; +} +.tooltip:hover span[width200] { + width: 200px; +} +.tooltip:hover span[width250] { + width: 250px; +} +.tooltip:hover span[width300] { + width: 300px; +} +.tooltip:hover span[width350] { + width: 350px; +} +.tooltip:hover span[width400] { + width: 400px; +} + + +.tooltip:hover img:first-child { + border: 0; margin: -10px 0 0 -55px; + float: left; position: absolute; +} +.tooltip:hover em { + font-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold; + display: block; padding: 0.2em 0 0.6em 0; +} +.classic { padding: 0.8em 1em; } +.custom { padding: 0.5em 0.8em 0.8em 2em; } +* html a:hover { background: transparent; } +.classic {background: #FFFFAA; border: 1px solid #FFAD33; } +.critical { background: #FFCCAA; border: 1px solid #FF3334; } +.help { background: #9FDAEE; border: 1px solid #2BB0D7; } +.info { background: #9FDAEE; border: 1px solid #2BB0D7; } +.warning { background: #FFFFAA; border: 1px solid #FFAD33; } + +.custom img:first-child { +src:url(images/Critical.png); + height:48px; + width:48px; +} + + +.tooltip:hover img[alinea] { +margin-bottom: 5px; +margin-right: 5px; +position: relative; +width:120px; +align:left; +float:left; + background-repeat: no-repeat; +} + Modified: XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt 2012-02-01 12:35:49 UTC (rev 8868) @@ -1,3 +1,8 @@ +2012/01/31: Version 2.36 (JJD.fr) +=================================== +- Fixed display +- Replacement of infobulle by another model more pro + 2012/01/21: Version 2.35 (JJD.fr) =================================== - Réintrégation file update extcal_2_34.php omitted in the previous version Modified: XoopsModules/extcal/branches/jjdai/extcal/edit_event.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/edit_event.php 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/edit_event.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -24,7 +24,7 @@ // Tooltips include $xoTheme->addScript('modules/extcal/include/ToolTips.js'); -$xoTheme->addStylesheet('modules/extcal/include/style.css'); +$xoTheme->addStylesheet('modules/extcal/css/infobulle.css'); Modified: XoopsModules/extcal/branches/jjdai/extcal/header.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/header.php 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/header.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -28,7 +28,7 @@ //------------------------------------------------------ // Tooltips include $xoTheme->addScript('modules/extcal/include/ToolTips.js'); -$xoTheme->addStylesheet('modules/extcal/include/style.css'); +$xoTheme->addStylesheet('modules/extcal/css/infobulle.css'); ////////////////////////////////////////////////////////////// Modified: XoopsModules/extcal/branches/jjdai/extcal/include/functions.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/include/functions.php 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/include/functions.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -368,7 +368,81 @@ /**************************************************************************/ +function eclaircirCouleur($color, $plancher, $plafond){ +include_once(XOOPS_ROOT_PATH . '/modules/extcal/class/colorTools.php'); + + $ct = new ColorTools(); + return $ct->eclaircir($color,$plancher,$plafond); +// if (substr($color,0,1) == "#"){ +// $color = substr($color,1); +// $diese = "#"; +// }else{ +// $diese = ""; +// } +// +// $r16 = hexdec(substr($color,0,2)); //conversion du canal rouge +// $v16 = hexdec(substr($color,2,4)); //conversion du canal vert +// $b16 = hexdec(substr($color,4,6)); //conversion du canal bleu +// +// +// +// // Initialisation +// $gain = 0.2; // 0.2 = 20% +// $gain = 0.1; +// +// // Affichage +// // echo "<div style='background-color:#",$r16,$v16,$b16,"'>"; +// // echo "composante 1 : ".$r16."<br />"; +// // echo "composante 2 : ".$v16."<br />"; +// // echo "composante 3 : ".$b16."<br />"; +// // echo "</div><br />"; +// +// // Conversion HEX -> DEC +// $r10 = hexdec($r16); +// $v10 = hexdec($v16); +// $b10 = hexdec($b16); +// +// // Eclaircissement +// $r10 = floor($r10 * (0.5)); +// $v10 = floor($v10 * (0.5)); +// $b10 = floor($b10 * (0.5)); +// // $r10 = floor($r10 * (1 + $gain)); +// // $v10 = floor($v10 * (1 + $gain)); +// // $b10 = floor($b10 * (1 + $gain)); +// +// // Limitations +// if ($r10>255) $r10=255; +// if ($v10>255) $v10=255; +// if ($b10>255) $b10=255; +// +// if ($r10<0) $r10=0; +// if ($v10<0) $v10=0; +// if ($b10<0) $b10=0; +// +// // Conversion DEC -> HEX +// // $r16 = dechex($r10); +// // $v16 = dechex($v10); +// // $b16 = dechex($b10); +// $r16 = substr('00' . dechex($r10),-2); +// $v16 = substr('00' . dechex($v10),-2); +// $b16 = substr('00' . dechex($b10),-2); +// +// $newColor = strtoupper($diese.$r16.$v16.$b16); +// +// // Affichage +// // echo "<div style='background-color:#",$r16,$v16,$b16,"'>"; +// // echo "<div>"; +// // echo "composante 1 : ".$r16."<br />"; +// // echo "composante 2 : ".$v16."<br />"; +// // echo "composante 3 : ".$b16."<br />"; +// // echo "</div>"; +// // echo "{$color} : {$newColor}<br>"; +// +// //$newColor = strtoupper($diese.'220000'); +// +// return $newColor; +} +/**************************************************************************/ - ?> Modified: XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt 2012-02-01 12:35:49 UTC (rev 8868) @@ -1,3 +1,8 @@ +2012/01/31: Version 2.36 (JJD.fr) +=================================== +- Correction d'affichage +- Remplacement des infobulle par une autre modèle plus pro + 2012/01/21: Version 2.35 (JJD.fr) =================================== - Réintrégation du fichier de mise à jour extcal_2_34.php omis dans la version précédente Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_event_list1.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_event_list1.html 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_event_list1.html 2012-02-01 12:35:49 UTC (rev 8868) @@ -12,12 +12,7 @@ </td> <td class="odd" style="vertical-align:middle;"> - <a href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>" - class="extcalTips infobulle" - title=""> <{include file="db:extcal_info_bulle.html"}> - <{$event.event_title}> - </a> </td> Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html 2012-02-01 12:35:49 UTC (rev 8868) @@ -3,7 +3,7 @@ <div style="height:12px; width:12px; background-color:#<{$event.cat.cat_color}>; border:1px solid black; float:left; margin-right:5px;" > </div> - +<!-- <{if $event.event_picture1!=""}> <span infoBulle_zone1> <img align=left style="border:1px solid #333333;margin-right:6px" src="<{$xoops_url}>/uploads/extcal/<{$event.event_picture1}>" width="150px" height="150px" /> @@ -16,12 +16,31 @@ <{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}><br /> <b><{$smarty.const._MD_EXTCAL_START}></b> <{$event.formated_event_start}><br /> <b><{$smarty.const._MD_EXTCAL_END}></b> <{$event.formated_event_end}><br /> - <{$event.event_desc}> </span> +--> + + <a class="tooltip" href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>"> + <{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}><br /> + <span class="custom info" width350 style="background: #<{$event.cat.cat_light_color}>;"> + <img src="css/images/Info.png" alt="Information" /> + <em><{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}></em> + <{if $event.event_picture1!=""}> + <img src="<{$xoops_url}>/uploads/extcal/<{$event.event_picture1}>" alinea/> + <{/if}> + <{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}><br /> + <b><{$smarty.const._MD_EXTCAL_START}></b> <{$event.formated_event_start}><br /> + <b><{$smarty.const._MD_EXTCAL_END}></b> <{$event.formated_event_end}><br /> + + </span> + </a> + + + <{else}> <div style="height:12px; width:12px; background-color:#<{$event.cat.cat_color}>; border:1px solid black; float:left; margin-right:5px;" title='<{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.formated_event_start}> - <{$event.formated_event_end}> : <{$event.event_title}>'> </div> <{/if}> + Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-day.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-day.html 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-day.html 2012-02-01 12:35:49 UTC (rev 8868) @@ -42,13 +42,8 @@ <td class='<{$trancheHeure.class}>' style="border: 1px solid #808080;"> <{foreach item=event from=$jour.events}> - <a href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>" - class="extcalTips infobulle" - title=""> <{include file="db:extcal_info_bulle.html"}> - <{$event.event_title}> - </a> - <br /> + <br /> <{/foreach}> </td> <{/foreach}> Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-week.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-week.html 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-week.html 2012-02-01 12:35:49 UTC (rev 8868) @@ -50,11 +50,7 @@ <{foreach item=jour from=$trancheHeure.jours}> <td class='<{$trancheHeure.class}>' style="border: 1px solid #808080;" width='<{$params.colJourWidth}>%' <{$jour.bg}>> <{foreach item=event from=$jour.events}> - <a class='extcalTips infobulle' - href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>" - title=""> <{include file="db:extcal_info_bulle.html"}> - </a> <{/foreach}> </td> Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-month.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-month.html 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-month.html 2012-02-01 12:35:49 UTC (rev 8868) @@ -26,22 +26,20 @@ <{foreachq item=cell from=$row.week}> <td class="<{if $cell.isEmpty}>even<{else}>odd<{/if}>" style="width:14%; height:80px; vertical-align:top;<{if $cell.isSelected}> background-color:#B6CDE4;<{/if}>"> - <{if $cell.isEmpty}> <{else}><a - href="<{$xoops_url}>/modules/extcal/view_day.php?year=<{$year}>&month=<{$month}>&day=<{$cell.number}>"><{$cell.number}></a><{/if}><br/> - <{foreach item=event from=$cell.events}> - <{if $event}> - - <a href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>" - class="extcalTips infobulle" - title=""> - - <{include file="db:extcal_info_bulle.html"}> - <{$event.event_title}> - </a> - - <div style="background-color:#<{$event.cat.cat_color}>; height:2px; font-size:2px;"> - </div> + <{if $cell.isEmpty}> + <{else}> + <a href="<{$xoops_url}>/modules/extcal/view_day.php?year=<{$year}>&month=<{$month}>&day=<{$cell.number}>"><{$cell.number}></a> + <br/> <{/if}> + + <{foreach item=event from=$cell.events}> + <{if $event}> + + <{include file="db:extcal_info_bulle.html"}> + + <div style="background-color:#<{$event.cat.cat_color}>; height:2px; font-size:2px;"> + </div> + <{/if}> <{/foreach}> </td> <{/foreach}> Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-week.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-week.html 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-week.html 2012-02-01 12:35:49 UTC (rev 8868) @@ -26,12 +26,7 @@ <{foreach item=event from=$day.events}> <{if $event}> - <a href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>" - class="extcalTips infobulle" - title=""> <{include file="db:extcal_info_bulle.html"}> - <{$event.event_title}> - </a> <div style="background-color:#<{$event.cat.cat_color}>; height:2px; font-size:2px;"> </div> Modified: XoopsModules/extcal/branches/jjdai/extcal/view_year.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/view_year.php 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/view_year.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -16,9 +16,8 @@ // Tooltips include $xoTheme->addScript('modules/extcal/include/ToolTips.js'); -$xoTheme->addStylesheet('modules/extcal/include/style.css'); +$xoTheme->addStylesheet('modules/extcal/css/infobulle.css'); - $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get'); $form->addElement(getListYears($year,$xoopsModuleConfig['agenda_nb_years_before'],$xoopsModuleConfig['agenda_nb_years_after'])); @@ -62,6 +61,9 @@ // // Sort event array by event start // usort($eventsArray, "orderEvents"); +// $t=print_r($eventsArray,true); +// echo "<pre>{$t}</pre>"; + // Assigning events to the template $xoopsTpl->assign('events', $eventsArray); Modified: XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -16,7 +16,7 @@ // @author Gregory Mage (Aka Mage) //*************************************************************************************** $modversion['name'] = _MI_EXTCAL_NAME; -$modversion['version'] = '2.35'; +$modversion['version'] = '2.36'; $modversion['description'] = _MI_EXTCAL_DESC; $modversion['credits'] = 'Zoullou'; $modversion['author'] = 'Zoullou, Mage, Mamba, JJ Delalandre(JJDai)'; @@ -41,7 +41,7 @@ //about $modversion["module_website_url"] = "http://www.xoops.org/"; $modversion["module_website_name"] = "XOOPS"; -$modversion["release_date"] = "2012/01/22"; +$modversion["release_date"] = "2012/01/31"; $modversion['module_status'] = "Beta 2"; $modversion['min_php'] = '5.2'; $modversion['min_xoops'] = "2.5.0"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <JJ...@us...> - 2012-02-05 21:44:04
|
Revision: 8885 http://xoops.svn.sourceforge.net/xoops/?rev=8885&view=rev Author: JJDai Date: 2012-02-05 21:43:56 +0000 (Sun, 05 Feb 2012) Log Message: ----------- 05-02-2012 JJDai(fr) Correction Css infobulle en conflit avec le natif de xoops_module_update_extcal Ajout de la s?\195?\169lection de l'ic?\195?\180ne des infobulles Modified Paths: -------------- XoopsModules/extcal/branches/jjdai/extcal/admin/cat.php XoopsModules/extcal/branches/jjdai/extcal/admin/event.php XoopsModules/extcal/branches/jjdai/extcal/admin/index.php XoopsModules/extcal/branches/jjdai/extcal/class/cat.php XoopsModules/extcal/branches/jjdai/extcal/class/colorTools.php XoopsModules/extcal/branches/jjdai/extcal/class/event.php XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/docs/examples/index.html XoopsModules/extcal/branches/jjdai/extcal/css/infobulle.css XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt XoopsModules/extcal/branches/jjdai/extcal/include/constantes.php XoopsModules/extcal/branches/jjdai/extcal/include/functions.php XoopsModules/extcal/branches/jjdai/extcal/include/update_function.php XoopsModules/extcal/branches/jjdai/extcal/language/english/admin.php XoopsModules/extcal/branches/jjdai/extcal/language/french/admin.php XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt XoopsModules/extcal/branches/jjdai/extcal/language/spanish/admin.php XoopsModules/extcal/branches/jjdai/extcal/post.php XoopsModules/extcal/branches/jjdai/extcal/sql/mysql.sql XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php Added Paths: ----------- XoopsModules/extcal/branches/jjdai/extcal/css/images/Award.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Bow tie.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Cinema.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Coffee.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Dating.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Dollar.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Game_strategy.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Hamburger.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Hint.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Home.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Kids.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Music.png XoopsModules/extcal/branches/jjdai/extcal/css/images/View.png XoopsModules/extcal/branches/jjdai/extcal/css/images/index.html XoopsModules/extcal/branches/jjdai/extcal/versions/extcal_2_37.php Modified: XoopsModules/extcal/branches/jjdai/extcal/admin/cat.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/admin/cat.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/admin/cat.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -27,7 +27,8 @@ 'cat_name'=>$cat_name, 'cat_desc'=>$cat_desc, 'cat_weight'=>$cat_weight, - 'cat_color'=>substr($cat_color,1) + 'cat_color'=>substr($cat_color,1), + 'cat_icone'=>$cat_icone ); @@ -40,7 +41,8 @@ 'cat_name'=>$cat_name, 'cat_desc'=>$cat_desc, 'cat_weight'=>$cat_weight, - 'cat_color'=>substr($cat_color,1) + 'cat_color'=>substr($cat_color,1), + 'cat_icone'=>$cat_icone ); $catHandler->createCat($varArr); redirect_header("cat.php", 3, _AM_EXTCAL_CAT_CREATED, false); @@ -57,8 +59,17 @@ $form->addElement(new XoopsFormDhtmlTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', ''), false); $form->addElement(new XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, 0), false); $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color',"#FF0000")); + + $file_path = XOOPS_ROOT_PATH . '/modules/extcal/css/images'; + $tf= XoopsLists::getImgListAsArray($file_path); + array_unshift ($tf,"--- aucun ---"); + $xfIcones = new XoopsFormSelect(_AM_EXTCAL_ICONE, "cat_icone", $cat->getVar('cat_icone'), '') ; + $xfIcones->addOptionArray($tf); + $form->addElement($xfIcones, false); + $form->addElement(new XoopsFormButton("", "form_submit", _SEND, "submit"), false); $form->display(); + @@ -86,6 +97,14 @@ new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#' . $cat->getVar('cat_color')) ); + + $file_path = XOOPS_ROOT_PATH . '/modules/extcal/css/images'; + $tf = XoopsLists::getImgListAsArray($file_path); + array_unshift ($tf,"--- aucun ---"); + $xfIcones = new XoopsFormSelect(_AM_EXTCAL_ICONE, "cat_icone", $cat->getVar('cat_icone'), '') ; + $xfIcones->addOptionArray($tf); + $form->addElement($xfIcones, false); + $form->addElement(new XoopsFormHidden('cat_id', $cat->getVar('cat_id')), false); $form->addElement(new XoopsFormButton("", "form_submit", _SEND, "submit"), false); $form->display(); Modified: XoopsModules/extcal/branches/jjdai/extcal/admin/event.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/admin/event.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/admin/event.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -87,7 +87,8 @@ 'event_picture2'=>@$event_picture2, 'event_price'=>@$_POST['event_price'], 'event_etablissement'=>$_POST['event_etablissement'], - 'dohtml' => $extcalConfig['allow_html'] + 'dohtml' => $extcalConfig['allow_html'], + 'event_icone'=>$_POST['event_icone'] ); // Event edited @@ -399,7 +400,7 @@ echo '</td>'; echo '</tr>'; } else { - echo '<tr><td colspan="5">' . _AM_NO_PENDING_EVENT . '</td></tr>'; + echo '<tr><td colspan="5">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>'; } echo '</table>'; echo '</form>'; Modified: XoopsModules/extcal/branches/jjdai/extcal/admin/index.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/admin/index.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/admin/index.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -210,7 +210,7 @@ echo '</tr>'; } } else { - echo '<tr><td colspan="4">' . _AM_NO_PENDING_EVENT . '</td></tr>'; + echo '<tr><td colspan="4">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>'; } echo '</table></fieldset><br />'; Modified: XoopsModules/extcal/branches/jjdai/extcal/class/cat.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/class/cat.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/class/cat.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -21,6 +21,7 @@ $this->initVar('cat_desc', XOBJ_DTYPE_TXTAREA, null, false); $this->initVar('cat_color', XOBJ_DTYPE_TXTBOX, '000000', false, 255); $this->initVar('cat_weight', XOBJ_DTYPE_INT, 0, false); + $this->initVar('cat_icone', XOBJ_DTYPE_TXTBOX, '', false, 50); } } Modified: XoopsModules/extcal/branches/jjdai/extcal/class/colorTools.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/class/colorTools.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/class/colorTools.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -18,13 +18,13 @@ ) { - $t10 = $this->hexa2rgbA($colorHexa); + $t10 = ColorTools::hexa2rgbA($colorHexa); - $t10[1] = $this->bornerValeur($t10[1] + $incrementRouge, $plancherRouge, $plafondRouge); - $t10[2] = $this->bornerValeur($t10[2] + $incrementVert, $plancherVert, $plafondVert); - $t10[3] = $this->bornerValeur($t10[3] + $incrementBleu, $plancherBleu, $plafondBleu); + $t10[1] = ColorTools::bornerValeur($t10[1] + $incrementRouge, $plancherRouge, $plafondRouge); + $t10[2] = ColorTools::bornerValeur($t10[2] + $incrementVert, $plancherVert, $plafondVert); + $t10[3] = ColorTools::bornerValeur($t10[3] + $incrementBleu, $plancherBleu, $plafondBleu); - $newColorHexa = $this->getHexaColorFromA($t10); + $newColorHexa = ColorTools::getHexaColorFromA($t10); return $newColorHexa; @@ -41,7 +41,7 @@ $tMin = Array('', $plancher, $plancher, $plancher); $tMax = Array('', $plafond, $plafond, $plafond); - $t10 = $this->hexa2rgbA($colorHexa); + $t10 = ColorTools::hexa2rgbA($colorHexa); // echo "<hr>"; // ext_echoArray($t10); $max = $plancher; @@ -69,13 +69,13 @@ // echo "{$colorHexa}-{$plancher}-{$plafond}<br>"; // echo "{$min}-{$max}-{$increment}<br>"; - $t10[1] = $this->bornerValeur($t10[1] + $min, $plancher, $plafond); - $t10[2] = $this->bornerValeur($t10[2] + $min, $plancher, $plafond); - $t10[3] = $this->bornerValeur($t10[3] + $min, $plancher, $plafond); + $t10[1] = ColorTools::bornerValeur($t10[1] + $min, $plancher, $plafond); + $t10[2] = ColorTools::bornerValeur($t10[2] + $min, $plancher, $plafond); + $t10[3] = ColorTools::bornerValeur($t10[3] + $min, $plancher, $plafond); // ext_echoArray($t10); - $newColorHexa = $this->getHexaColorFromA($t10); + $newColorHexa = ColorTools::getHexaColorFromA($t10); // echo "colorHexa = {$newColorHexa}-{$colorHexa}<br>"; return $newColorHexa; } @@ -91,7 +91,7 @@ $tMax = Array('', $plafond, $plafond, $plafond); - $t10 = $this->hexa2rgbA($colorHexa); + $t10 = ColorTools::hexa2rgbA($colorHexa); $max = 255; For ($h = 1 ; $h <= 3 ; $h++){ @@ -114,11 +114,11 @@ } } - $t10[1] = $this->bornerValeur($t10[1] - $min, $plancher, $plafond); - $t10[2] = $this->bornerValeur($t10[2] - $min, $plancher, $plafond); - $t10[2] = $this->bornerValeur($t10[3] - $min, $plancher, $plafond); + $t10[1] = ColorTools::bornerValeur($t10[1] - $min, $plancher, $plafond); + $t10[2] = ColorTools::bornerValeur($t10[2] - $min, $plancher, $plafond); + $t10[2] = ColorTools::bornerValeur($t10[3] - $min, $plancher, $plafond); - $colorHexa = $this->getHexaColorFromA($t10); + $colorHexa = ColorTools::getHexaColorFromA($t10); return $colorHexa; @@ -152,7 +152,7 @@ ***************************************************************/ Function rgb2hexa($r, $g, $b, $prefixe = ''){ - $colorHexa = $this->getHexaColorFromA(Array($prefixe, $r, $g, $b)); + $colorHexa = ColorTools::getHexaColorFromA(Array($prefixe, $r, $g, $b)); return $colorHexa; @@ -190,7 +190,7 @@ ***************************************************************/ Function hexa2rgb($colorHexa, &$r, &$v, &$b, &$diese){ - $t = $this->hexa2rgbA($colorHexa); + $t = ColorTools::hexa2rgbA($colorHexa); $r = $t[1]; $v = $t[2]; $v = $t[3]; Modified: XoopsModules/extcal/branches/jjdai/extcal/class/event.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/class/event.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/class/event.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -46,6 +46,7 @@ //$this->initVar("event_price",XOBJ_DTYPE_OTHER,null,false,10); $this->initVar('event_price', XOBJ_DTYPE_TXTBOX, '', false); $this->initVar('event_etablissement', XOBJ_DTYPE_INT, 5, false); + $this->initVar('event_icone', XOBJ_DTYPE_TXTBOX, '', false); $this->externalKey['cat_id'] = array('className' => 'cat', 'getMethodeName' => 'getCat', 'keyName' => 'cat', 'core' => false); $this->externalKey['event_submitter'] = array('className' => 'user', 'getMethodeName' => 'get', 'keyName' => 'user', 'core' => true); @@ -304,7 +305,8 @@ $ordre[] = intval($v['event_start']); $this->formatEventDate($v, $extcalConfig['event_date_week']); //$v['cat']['cat_light_color'] = $v['cat']['cat_color']; - $v['cat']['cat_light_color'] = eclaircirCouleur($v['cat']['cat_color'],180,250); + $v['cat']['cat_light_color'] = eclaircirCouleur($v['cat']['cat_color'],_EXTCAL_INFOBULLE_RGB_MIN,_EXTCAL_INFOBULLE_RGB_MAX); +if ($v['event_icone'] == '') $v['event_icone'] = $v['cat']['cat_icone']; $eventArray[]= $v; } array_multisort($eventArray, SORT_ASC, SORT_NUMERIC, $ordre, SORT_ASC, SORT_NUMERIC); @@ -782,6 +784,7 @@ $event_picture2 = $event->getVar('event_picture2'); $event_price = $event->getVar('event_price'); $event_etablissement = $event->getVar('event_etablissement'); + $event_icone = $event->getVar('event_icone'); // Configuring recurring form $eventOptions = explode('|', $event->getVar('event_recur_rules')); @@ -854,6 +857,7 @@ $event_picture2 = $data['event_picture2']; $event_price = $data['event_price']; $event_etablissement = $data['event_etablissement']; + $event_icone = $data['event_icone']; // Configuring recurring form $eventOptions = explode('|', $this->getRecurRules($_POST)); @@ -926,6 +930,7 @@ $event_price = ''; $event_etablissement = ''; $files = array(); + $event_icone = ''; } @@ -948,6 +953,14 @@ } $form->addElement($catSelect, true); //----------------------------------------------------------- + + $file_path = XOOPS_ROOT_PATH . '/modules/extcal/css/images'; + $tf = XoopsLists::getImgListAsArray($file_path); + array_unshift ($tf,"--- aucun ---"); + $xfIcones = new XoopsFormSelect(_AM_EXTCAL_ICONE, "event_icone", $event_icone, '') ; + $xfIcones->addOptionArray($tf); + $form->addElement($xfIcones, false); + //----------------------------------------------------------- //etablissement $etablissementHandler = xoops_getmodulehandler(_EXTCAL_CLS_ETABLISSEMENT, _EXTCAL_MODULE); $etablissement_select = new XoopsFormSelect(_MD_EXTCAL_ETABLISSEMENT, 'event_etablissement', $event_etablissement); @@ -965,7 +978,7 @@ //$tEts[$etablissement_arr[$i]->getVar('id')] = $etablissement_arr[$i]->getVar('nom'); $tEts[$etablissement_arr[$i]['id']] = $etablissement_arr[$i]['nom']; } - //array_unshift($tEts, _MD_EXTCAL_NONE); + //array_unshift($tEts, _MD_EXTCAL_NONE); $etablissement_select->addOptionArray($tEts); $form->addElement($etablissement_select, true); @@ -1992,11 +2005,11 @@ $userId,$xoopsUser); $ret = array(); - while ($myrow = $xoopsDB->fetchArray($result)) { + while ($myrow = $xoopsDB->fetchArray($result)) { $myrow['cat']['cat_name'] = $myrow['cat_name']; $myrow['cat']['cat_color'] = $myrow['cat_color']; - $myrow['cat']['cat_light_color'] = eclaircirCouleur($myrow['cat']['cat_color'],180,250); - + $myrow['cat']['cat_light_color'] = eclaircirCouleur($myrow['cat']['cat_color'],_EXTCAL_INFOBULLE_RGB_MIN,_EXTCAL_INFOBULLE_RGB_MAX); +if ($myrow['event_icone'] == '') $myrow['event_icone'] = $myrow['cat']['cat_icone']; $ret[] = $myrow; } return $ret; Modified: XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/docs/examples/index.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/docs/examples/index.html 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/docs/examples/index.html 2012-02-05 21:43:56 UTC (rev 8885) @@ -19,7 +19,7 @@ <body> <h1>PEAR::Calendar Examples</h1> -<p>$Id: index.html 1500 2011-08-05 09:36:20Z kris_fr $</p> +<p>$Id: index.html 166574 2004-08-17 09:10:53Z hfuecks $</p> <ul> <li><a href="1.php">1.php</a> [<a href="1.phps">src</a>] - shows basic usage, passing all the way down from <code>Calendar_Year</code> to <code>Calendar_Second</code> - more of a quick test it's working</li> <li><a href="2.php">2.php</a> [<a href="2.phps">src</a>] - shows how to build a tabular month using <code>Calendar_Month_Weeks</code>, <code>Calendar_Week</code>, <code>Calendar_Day</code> as well as selecting some dates.</li> Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Award.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Award.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Bow tie.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Bow tie.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Cinema.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Cinema.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Coffee.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Coffee.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Dating.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Dating.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Dollar.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Dollar.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Game_strategy.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Game_strategy.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Hamburger.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Hamburger.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Hint.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Hint.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Home.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Home.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Kids.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Kids.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Music.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Music.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/View.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/View.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/index.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/css/images/index.html (rev 0) +++ XoopsModules/extcal/branches/jjdai/extcal/css/images/index.html 2012-02-05 21:43:56 UTC (rev 8885) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Modified: XoopsModules/extcal/branches/jjdai/extcal/css/infobulle.css =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/css/infobulle.css 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/css/infobulle.css 2012-02-05 21:43:56 UTC (rev 8885) @@ -1,55 +1,74 @@ -.tooltip { - border-bottom: 1px dotted #000000; color: #000000; outline: none; - cursor: help; text-decoration: none; +.tooltip54 { + border-bottom: 1px dotted #000000; + color: #000000; + outline: none; + cursor: help; + text-decoration: none; position: relative; } -.tooltip span { +.tooltip54 span { margin-left: -999em; position: absolute; } -.tooltip:hover span { - border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; - box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); + +.tooltip54:hover span { + border-radius: 5px 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); + -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); + -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); font-family: Calibri, Tahoma, Geneva, sans-serif; - position: absolute; left: 1em; top: 2em; z-index: 99; - margin-left: 0; width: 300px; + position: absolute; + left: 1em; + top: 2em; + z-index: 99; + margin-left: 0; + width: 300px; } +.tooltip54:hover span[top_contact] { + top: 1em; +} - -.tooltip:hover span[width50] { +.tooltip54:hover span[width50] { width: 50px; } -.tooltip:hover span[width100] { +.tooltip54:hover span[width100] { width: 100px; } -.tooltip:hover span[width150] { +.tooltip54:hover span[width150] { width: 150px; } -.tooltip:hover span[width200] { +.tooltip54:hover span[width200] { width: 200px; } -.tooltip:hover span[width250] { +.tooltip54:hover span[width250] { width: 250px; } -.tooltip:hover span[width300] { +.tooltip54:hover span[width300] { width: 300px; } -.tooltip:hover span[width350] { +.tooltip54:hover span[width350] { width: 350px; } -.tooltip:hover span[width400] { +.tooltip54:hover span[width400] { width: 400px; } -.tooltip:hover img:first-child { - border: 0; margin: -10px 0 0 -55px; - float: left; position: absolute; +.tooltip54:hover img[iconinfo] { + border: 0; + margin: -10px 0 0 -55px; + float: left; + position: absolute; } -.tooltip:hover em { - font-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold; + +.tooltip54:hover em { + font-family: Candara, Tahoma, Geneva, sans-serif; + font-size: 1.2em; + font-weight: bold; display: block; padding: 0.2em 0 0.6em 0; } .classic { padding: 0.8em 1em; } @@ -68,7 +87,7 @@ } -.tooltip:hover img[alinea] { +.tooltip54:hover img[alinea] { margin-bottom: 5px; margin-right: 5px; position: relative; @@ -78,3 +97,7 @@ background-repeat: no-repeat; } +.tooltip54:hover img[imglien] { +top:5em; +left:5em; +} Modified: XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt 2012-02-05 21:43:56 UTC (rev 8885) @@ -1,3 +1,11 @@ +2012/02/02: Version 2.37 (JJD.fr) +=================================== +- Ajout du champ icone dans la table event_event +- Ajout du chmp icone dans la table event_cat +- Affichage de l'icone de event/cat dans l'infobulle +- Mis à jour des constantes de langue +- Patch de mise à jour des tables + 2012/01/31: Version 2.36 (JJD.fr) =================================== - Fixed display Modified: XoopsModules/extcal/branches/jjdai/extcal/include/constantes.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/include/constantes.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/include/constantes.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -183,11 +183,8 @@ define ("_EXTCAL_MOTIF_DATE", "#(19|20)\d{2}-(0?[1-9]|1[0-2])-(?x)(0?[1-9]|[12][0-9]|3[01])#"); - - +define ("_EXTCAL_INFOBULLE_RGB_MIN", 220); +define ("_EXTCAL_INFOBULLE_RGB_MAX", 250); - - - ?> Modified: XoopsModules/extcal/branches/jjdai/extcal/include/functions.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/include/functions.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/include/functions.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -371,76 +371,10 @@ function eclaircirCouleur($color, $plancher, $plafond){ include_once(XOOPS_ROOT_PATH . '/modules/extcal/class/colorTools.php'); - $ct = new ColorTools(); - return $ct->eclaircir($color,$plancher,$plafond); -// if (substr($color,0,1) == "#"){ -// $color = substr($color,1); -// $diese = "#"; -// }else{ -// $diese = ""; -// } -// -// $r16 = hexdec(substr($color,0,2)); //conversion du canal rouge -// $v16 = hexdec(substr($color,2,4)); //conversion du canal vert -// $b16 = hexdec(substr($color,4,6)); //conversion du canal bleu -// -// -// -// // Initialisation -// $gain = 0.2; // 0.2 = 20% -// $gain = 0.1; -// -// // Affichage -// // echo "<div style='background-color:#",$r16,$v16,$b16,"'>"; -// // echo "composante 1 : ".$r16."<br />"; -// // echo "composante 2 : ".$v16."<br />"; -// // echo "composante 3 : ".$b16."<br />"; -// // echo "</div><br />"; -// -// // Conversion HEX -> DEC -// $r10 = hexdec($r16); -// $v10 = hexdec($v16); -// $b10 = hexdec($b16); -// -// // Eclaircissement -// $r10 = floor($r10 * (0.5)); -// $v10 = floor($v10 * (0.5)); -// $b10 = floor($b10 * (0.5)); -// // $r10 = floor($r10 * (1 + $gain)); -// // $v10 = floor($v10 * (1 + $gain)); -// // $b10 = floor($b10 * (1 + $gain)); -// -// // Limitations -// if ($r10>255) $r10=255; -// if ($v10>255) $v10=255; -// if ($b10>255) $b10=255; -// -// if ($r10<0) $r10=0; -// if ($v10<0) $v10=0; -// if ($b10<0) $b10=0; -// -// // Conversion DEC -> HEX -// // $r16 = dechex($r10); -// // $v16 = dechex($v10); -// // $b16 = dechex($b10); -// $r16 = substr('00' . dechex($r10),-2); -// $v16 = substr('00' . dechex($v10),-2); -// $b16 = substr('00' . dechex($b10),-2); -// -// $newColor = strtoupper($diese.$r16.$v16.$b16); -// -// // Affichage -// // echo "<div style='background-color:#",$r16,$v16,$b16,"'>"; -// // echo "<div>"; -// // echo "composante 1 : ".$r16."<br />"; -// // echo "composante 2 : ".$v16."<br />"; -// // echo "composante 3 : ".$b16."<br />"; -// // echo "</div>"; -// // echo "{$color} : {$newColor}<br>"; -// -// //$newColor = strtoupper($diese.'220000'); -// -// return $newColor; + //$ct = new ColorTools(); + //return $ct->eclaircir($color,$plancher,$plafond); + return ColorTools::eclaircir($color,$plancher,$plafond); + } /**************************************************************************/ Modified: XoopsModules/extcal/branches/jjdai/extcal/include/update_function.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/include/update_function.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/include/update_function.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -34,7 +34,8 @@ '2_29' => 229, '2_33' => 233, '2_34' => 234, - '2_35' => 235 + '2_35' => 235, + '2_37' => 237 ); while(list($key,$val) = each($version)){ Modified: XoopsModules/extcal/branches/jjdai/extcal/language/english/admin.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/language/english/admin.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/language/english/admin.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -115,6 +115,7 @@ define('_AM_EXTCAL_UPDATE_UPGRADE', 'Click here to upgrade module to the newer version'); define('_AM_EXTCAL_VIEW_PERMISSION', 'View permission'); define('_AM_EXTCAL_VIEW_PERMISSION_DESC', 'Select categories that each group is allowed to view'); -define('_AM_NO_PENDING_EVENT', 'No pending Event'); +define('_AM_EXTCAL_NO_PENDING_EVENT', 'No pending Event'); +define('_AM_EXTCAL_ICONE', 'Icône'); ?> Modified: XoopsModules/extcal/branches/jjdai/extcal/language/french/admin.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/language/french/admin.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/language/french/admin.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -86,7 +86,7 @@ define('_AM_EXTCAL_VIEW_PERMISSION', "Permission d'accés"); define('_AM_EXTCAL_VIEW_PERMISSION_DESC', "Sélectionner les catégories accessibles par groupe"); define('_AM_EXTCAL_WEIGHT', "Poids"); -define('_AM_NO_PENDING_EVENT', "Pas d'évènement en attente"); +define('_AM_EXTCAL_NO_PENDING_EVENT', "Pas d'évènement en attente"); define('_AM_EXTCAL_MANAGER_CATS', "Gestion des La cétogories"); define('_AM_EXTCAL_CLONE_OF', "Copie de l'événement #"); define('_AM_EXTCAL_EDIT_EVENT', "Editer l'évennement"); @@ -116,6 +116,6 @@ define('_AM_EXTCAL_MULTIUPLOADS_NOT_OK', "Le composant multiuploads n'est pas installé.<br /><br /><a href='http://xoops.kiolo.com/modules/mydownloads/'>Télécharger le composant multiuploads ici</a><br /><br />et installer le dans le dossier 'class/xoopsform/'"); define('_AM_EXTCAL_NOPERMSSET', 'Permission cannot be set: There are no Categories created yet! Please create a Category first.'); define('_AM_EXTCAL_REDIRECT_DELOK', 'Supprimé avec succes'); +define('_AM_EXTCAL_ICONE', 'Icône'); - ?> \ No newline at end of file Modified: XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt 2012-02-05 21:43:56 UTC (rev 8885) @@ -1,3 +1,11 @@ +2012/02/02: Version 2.37 (JJD.fr) +=================================== +- Ajout du champ icone dans la table event_event +- Ajout du chmp icone dans la table event_cat +- Affichage de l'icone de event/cat dans l'infobulle +- Mis à jour des constantes de langue +- Patch de mise à jour des tables + 2012/01/31: Version 2.36 (JJD.fr) =================================== - Correction d'affichage Modified: XoopsModules/extcal/branches/jjdai/extcal/language/spanish/admin.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/language/spanish/admin.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/language/spanish/admin.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -115,6 +115,7 @@ define('_AM_EXTCAL_UPDATE_UPGRADE', 'Haga clic aquí para actualizar el módulo a la versión más reciente'); define('_AM_EXTCAL_VIEW_PERMISSION', 'Permisos de Ver'); define('_AM_EXTCAL_VIEW_PERMISSION_DESC', 'Seleccione las categorías que a cada grupo se les permite ver'); -define('_AM_NO_PENDING_EVENT', 'No hay eventos pendientes'); +define('_AM_EXTCAL_NO_PENDING_EVENT', 'No hay eventos pendientes'); +define('_AM_EXTCAL_ICONE', 'Icone'); ?> \ No newline at end of file Modified: XoopsModules/extcal/branches/jjdai/extcal/post.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/post.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/post.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -43,7 +43,8 @@ 'event_end' => $_POST['event_end'], 'dohtml' => intval($xoopsModuleConfig['allow_html']), 'event_price' => $_POST['event_price'], - 'event_organisateur' => $_POST['event_organisateur'] + 'event_organisateur' => $_POST['event_organisateur'], + 'event_icone' => $_POST['event_icone'] ); if (isset($_POST['event_id'])) { @@ -122,7 +123,8 @@ 'event_picture2'=>@$event_picture2, 'event_price'=>@$_POST['event_price'], 'event_etablissement'=>$_POST['event_etablissement'], - 'dohtml' => $xoopsModuleConfig['allow_html'] + 'dohtml' => $xoopsModuleConfig['allow_html'], + 'event_icone'=>$_POST['event_icone'] ); Modified: XoopsModules/extcal/branches/jjdai/extcal/sql/mysql.sql =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/sql/mysql.sql 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/sql/mysql.sql 2012-02-05 21:43:56 UTC (rev 8885) @@ -4,6 +4,7 @@ `cat_desc` text NOT NULL, `cat_color` varchar(6) NOT NULL, `cat_weight` INT NOT NULL DEFAULT '0', + `cat_icone` VARCHAR( 50 ) NOT NULL, PRIMARY KEY (`cat_id`) ) COMMENT='eXtCal By Zoullou' ; @@ -32,6 +33,7 @@ `event_price` varchar(255) NOT NULL default '', `event_etablissement` int(5) NOT NULL DEFAULT '0', `dohtml` tinyint(1) NOT NULL default '0', + `event_icone` VARCHAR( 50 ) NOT NULL, PRIMARY KEY (`event_id`) ) COMMENT='eXtCal By Zoullou' ; Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html 2012-02-05 21:43:56 UTC (rev 8885) @@ -3,41 +3,23 @@ <div style="height:12px; width:12px; background-color:#<{$event.cat.cat_color}>; border:1px solid black; float:left; margin-right:5px;" > </div> -<!-- - <{if $event.event_picture1!=""}> - <span infoBulle_zone1> - <img align=left style="border:1px solid #333333;margin-right:6px" src="<{$xoops_url}>/uploads/extcal/<{$event.event_picture1}>" width="150px" height="150px" /> - </span> - <span infoBulle_zone1 infoBulle_zone2> - <{else}> - <span infoBulle_zone1> - <{/if}> - - <{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}><br /> - <b><{$smarty.const._MD_EXTCAL_START}></b> <{$event.formated_event_start}><br /> - <b><{$smarty.const._MD_EXTCAL_END}></b> <{$event.formated_event_end}><br /> - </span> ---> + <a class="tooltip54" href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>"> + <{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}><br /> + <span class="custom info" width350 style="background: #<{$event.cat.cat_light_color}>;"> + <img src="css/images/<{$event.event_icone}>" alt="" iconinfo/> + <em><{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}></em> + <{if $event.event_picture1!=""}> + <img src="<{$xoops_url}>/uploads/extcal/<{$event.event_picture1}>" alinea/> + <{/if}> + <{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}><br /> + <b><{$smarty.const._MD_EXTCAL_START}></b> <{$event.formated_event_start}><br /> + <b><{$smarty.const._MD_EXTCAL_END}></b> <{$event.formated_event_end}><br /> + </span> + </a> - <a class="tooltip" href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>"> - <{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}><br /> - <span class="custom info" width350 style="background: #<{$event.cat.cat_light_color}>;"> - <img src="css/images/Info.png" alt="Information" /> - <em><{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}></em> - <{if $event.event_picture1!=""}> - <img src="<{$xoops_url}>/uploads/extcal/<{$event.event_picture1}>" alinea/> - <{/if}> - <{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}><br /> - <b><{$smarty.const._MD_EXTCAL_START}></b> <{$event.formated_event_start}><br /> - <b><{$smarty.const._MD_EXTCAL_END}></b> <{$event.formated_event_end}><br /> - </span> - </a> - - - <{else}> <div style="height:12px; width:12px; background-color:#<{$event.cat.cat_color}>; border:1px solid black; float:left; margin-right:5px;" title='<{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.formated_event_start}> - <{$event.formated_event_end}> : <{$event.event_title}>'> Added: XoopsModules/extcal/branches/jjdai/extcal/versions/extcal_2_37.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/versions/extcal_2_37.php (rev 0) +++ XoopsModules/extcal/branches/jjdai/extcal/versions/extcal_2_37.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -0,0 +1,61 @@ +<?php +/** + * extcal module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package extcal + * @since 2.2 + * @author JJDai <http://xoops.kiolo.com> + * @version $Id$ +**/ + +//---------------------------------------------------- +class extcal_2_37{ +//---------------------------------------------------- + +function __construct(& $module, $options){ +global $xoopsDB; + + $this->alterTable_event(); + $this->alterTable_cat(); + + + +} +//---------------------------------------------------- +function alterTable_event(){ +global $xoopsDB; + $tbl = $xoopsDB->prefix('extcal_event'); + +$sql = <<<__sql__ +ALTER TABLE `{$tbl}` ADD `event_icone` VARCHAR(50) NOT NULL; +__sql__; + + $xoopsDB->queryF($sql); +} + +//----------------------------------------------------------------- + +function alterTable_cat(){ +global $xoopsDB; + $tbl = $xoopsDB->prefix('extcal_cat'); + +$sql = <<<__sql__ +ALTER TABLE `{$tbl}` ADD `cat_icone` VARCHAR(50) NOT NULL ; +__sql__; + + $xoopsDB->queryF($sql); + +} + +//----------------------------------------------------------------- +} // fin de la classe +?> Modified: XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php 2012-02-05 19:31:41 UTC (rev 8884) +++ XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php 2012-02-05 21:43:56 UTC (rev 8885) @@ -16,7 +16,7 @@ // @author Gregory Mage (Aka Mage) //*************************************************************************************** $modversion['name'] = _MI_EXTCAL_NAME; -$modversion['version'] = '2.36'; +$modversion['version'] = '2.37'; $modversion['description'] = _MI_EXTCAL_DESC; $modversion['credits'] = 'Zoullou'; $modversion['author'] = 'Zoullou, Mage, Mamba, JJ Delalandre(JJDai)'; @@ -27,7 +27,7 @@ $modversion['official'] = 0; $modversion['image'] = 'images/extcal_logo.png'; $modversion['dirname'] = $moduleDirName; -$modversion['status_version'] = 'Beta 2'; +$modversion['status_version'] = 'Beta'; $modversion['sqlfile']['mysql'] = 'sql/mysql.sql'; $modversion['onInstall'] = 'include/install_function.php'; $modversion['onUpdate'] = 'include/update_function.php'; @@ -42,7 +42,7 @@ $modversion["module_website_url"] = "http://www.xoops.org/"; $modversion["module_website_name"] = "XOOPS"; $modversion["release_date"] = "2012/01/31"; -$modversion['module_status'] = "Beta 2"; +$modversion['module_status'] = "Beta"; $modversion['min_php'] = '5.2'; $modversion['min_xoops'] = "2.5.0"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-02-06 11:09:36
|
Revision: 8890 http://xoops.svn.sourceforge.net/xoops/?rev=8890&view=rev Author: beckmi Date: 2012-02-06 11:09:25 +0000 (Mon, 06 Feb 2012) Log Message: ----------- Making Category Tab "look & feel" compatible with other Tabs Modified Paths: -------------- XoopsModules/extcal/branches/jjdai/extcal/admin/cat.php XoopsModules/extcal/branches/jjdai/extcal/templates/admin/extcal_admin_cat_list.html Modified: XoopsModules/extcal/branches/jjdai/extcal/admin/cat.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/admin/cat.php 2012-02-06 06:49:23 UTC (rev 8889) +++ XoopsModules/extcal/branches/jjdai/extcal/admin/cat.php 2012-02-06 11:09:25 UTC (rev 8890) @@ -54,6 +54,9 @@ xoops_cp_header(); + $catHandler = xoops_getmodulehandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE); + $cat = $catHandler->getCat($cat_id, true); + $form = new XoopsThemeForm(_AM_EXTCAL_ADD_CATEGORY, 'add_cat', 'cat.php?op=enreg', 'post', true); $form->addElement(new XoopsFormText(_AM_EXTCAL_NAME, 'cat_name', 30, 255), true); $form->addElement(new XoopsFormDhtmlTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', ''), false); @@ -238,6 +241,11 @@ case 'list': default: xoops_cp_header(); + $categoryAdmin = new ModuleAdmin(); + echo $categoryAdmin->addNavigation('cat.php'); + + $categoryAdmin->addItemButton('Add Category', 'cat.php?op=new&id=0', 'add' , ''); + echo $categoryAdmin->renderButton('right', ''); $catHandler = xoops_getmodulehandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE); $cats =$catHandler->getAllCatById($xoopsUser); Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/admin/extcal_admin_cat_list.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/admin/extcal_admin_cat_list.html 2012-02-06 06:49:23 UTC (rev 8889) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/admin/extcal_admin_cat_list.html 2012-02-06 11:09:25 UTC (rev 8890) @@ -1,23 +1,30 @@ -<div id="photowalls_Title" class="bold shadowlight alignmiddle"> - <div id="photowalls_WaterMarks"><{$smarty.const._AM_EXTCAL_MANAGER_CATS}></div> - <div class="photowalls_Action"></div> -</div> -<table class="width90 floatcenter0" summary="<{$smarty.const._MI_EXTCAL_MANAGER_CATS}>"> + +<table class="width90 outer floatcenter0" summary="<{$smarty.const._MI_EXTCAL_MANAGER_CATS}>"> <thead> <tr> <th>#</th> <th><{$smarty.const._AM_EXTCAL_NAME}></th> <th ><{$smarty.const._AM_EXTCAL_WEIGHT}></th> - <th class="txtcenter"><{$smarty.const._EDIT}></th> - <th class="txtcenter"><{$smarty.const._DELETE}></th> + <th class="txtcenter"><{$smarty.const._AM_EXTCAL_ACTION}></th> + </tr> </thead> <tbody> + <{foreach item=cat from=$cats}> - <tr> + + <{if $i++ is odd by 1}> + <{assign var='colour' value=even}> + <{else}> + <{assign var='colour' value=odd}> + <{/if}> + + + <tr class="<{$colour}>"> + <td align='center'> <{$cat.cat_id}> </td> @@ -36,14 +43,13 @@ <a class="tooltip" href="<{$smarty.const._EXTCAL_PATH_BO}>cat.php?op=edit&cat_id=<{$cat.cat_id}>" title="<{$smarty.const._EDIT}>"> <img src="<{$smarty.const._EXTCAL_PATH_ICONS16}>edit.png" alt=""> </a> - </td> - <td class="txtcenter"> + <a class="tooltip" class="tooltip" href="<{$smarty.const._EXTCAL_PATH_BO}>cat.php?op=delete&cat_id=<{$cat.cat_id}>" title="<{$smarty.const._AM_WAL_DELETE_WALL}>"> <img src="<{$smarty.const._EXTCAL_PATH_ICONS16}>delete.png" alt=""> </a> </td> - + </tr> <{/foreach}> @@ -52,10 +58,10 @@ </tbody> </table> - +<!-- <form name="frmCatNew" id="frmCatNew" action="cat.php?op=new&id=0" method="post"> <fieldset> <div class="txtcenter"><input type="submit" value="<{$smarty.const._ADD}>" name="B1" title="<{$smarty.const._ADD}>"></div> - </fieldset> + </fieldset>--> </form> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |