Elxis CMS Forum
Extensions => Components => Topic started by: dados on March 18, 2010, 02:53:10
-
Hello, I just want to know how I can put print icon on calendar event? I think it can not have options to publish this? I try to put in code but when I do it I get some error can somebody help me, and just import print icon in this component?
-
Can somebody to help me?
-
It must redeveloped the component.
-
Its just need to put print icon, I was tried to just import script code for print but its not work I get some error.... Can Apostolos Koutsoulelos help me, to just tell me where I can put script code to this work, or I can use this code from Elxis?
1453 /*********************/
1454 /* WRITES PRINT ICON */
1455 /*********************/
1456 function PrintIcon( &$row, &$params, $hide_js, $link, $status=NULL ) {
1457 if ( $params->get( 'print' ) && !$hide_js ) {
1458 if ( !$status ) {
1459 $status = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no';
1460 }
1461
1462 if ( $params->get( 'icons' ) ) {
1463 $image = mosAdminMenus::ImageCheck( 'printButton.png', '/images/M_images/', NULL, NULL, _CMN_PRINT );
1464 } else {
1465 $image = _ICON_SEP .' '. _CMN_PRINT. ' '. _ICON_SEP;
1466 }
1467
1468 if ( $params->get( 'popup' ) && !$hide_js ) {
1469 echo '<a href="javascript:void(0);" onclick="javascript:window.print(); return false" title="'._CMN_PRINT.'">'._LEND;
1470 echo $image._LEND;
1471 echo '</a> '._LEND;
1472 } else {
1473 echo '<a href="javascript:void(0);" onclick="javascript:window.open(\''.$link.'\', \'PrintWindow\', \''.$status.'\');" title="'._CMN_PRINT.'">'._LEND;
1474 echo $image._LEND;
1475 echo '</a> '._LEND;
1476 }
1477 }
1478 }
-
OK! You will find in the attached zipped file the patched eventcalndar.html.php and eventcalendar.php that add printing capabilities.
Replace the original files with these ones and now there is a print option when displaying an event.
I'm intending to develop a newer release of EventCalendar during Easter Vacations, which would include this option and some more, but since there was a request, here you are...
[attachment deleted by admin]
-
Thank you very much...
-
You're welcome :D
Feels nice to help...