ANIL KUMAR PANIGRAHI 's Blog

File for ‘Smarty’ Category

Events calendar implementation in oscommerce using php code

Posted by: Anil Kumar Panigrahi in: ● May 8, 2010

Hi friends,
In this post i want to explain how to implement events calender in oscommerce. With using this we can schedule the products and we can display the which events/products are schedule in which date.
It looks like :
Call that function in any of your file like :
<?php
$year=date(‘Y’);$month=date(‘m’);
?>
<select id=”year” name=”year” onChange=”getResult();”>
<?php for($i=2000;$i<2020;$i++){ ?>
<option value=”<?php echo $i;?>” [...]

How to implement google map in smarty?

Posted by: Anil Kumar Panigrahi in: ● March 28, 2010

Hi friends ,
the following script will discuss for how to implement google map in smarty application.
1) Sign up for API key of googlemap
http://code.google.com/apis/maps/signup.html
2) Create a google map class.
3) Create a tpl file, and add below code :
{php}
$key=”Your API Key”;
$gm = & new EasyGoogleMap($key);
$gm->SetMarkerIconStyle(‘STAR’);
$gm->SetMapZoom(10);
$city =”baruva”;
$country = “india”;
$gm->SetAddress($city,$country);
$gm->SetInfoWindowText(“This is address .”);
$gm->SetInfoWindowText(“Anil Labs – http://www.anil2u.info”);
echo $gm->GmapsKey();
echo $gm->MapHolder();
echo $gm->InitJs();
echo [...]

How to integrate fckeditor in smarty application?

Posted by: Anil Kumar Panigrahi in: ● November 26, 2009

Integration of fckeditor in smarty application
1 . in libs\plugins write the foolowing file called function.fckeditor.php
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty function plugin
* Requires PHP >= 4.3.0
* ————————————————————-
* Type: function
* Name: fckeditor
* Version: 1.0
* Author: gazoot (gazoot care of gmail dot com)
* Purpose: [...]

How to add stylesheets and javascript in smarty

Posted by: Anil Kumar Panigrahi in: ● October 5, 2009

how to add styles and javascript, to smarty application, in the head section  written the styles code but when we are applying that code to the tpl file is not applied is there any separate code to written in the smarty.
for that reason go to below code
we can the simple code in the smarty [...]


About Me

  Anil Kumar Panigrahi
  Software Engineer (PHP)
  Blogger & Founder of Anil Labs
  Baruva, India

You can share with me . . .

My Own Contributions

1) First contribution for codeigniter framework ( multi language support using google translate API ). we can get files from http://github.com/nyros/codeigniter_multilanguage


2) Audio and Video Streaming using FFMpeg and PHP -complete doc file : http://www.docstoc.com/docs/8300349/Audio-and-Video-Streaming

Twitter Updates

Follow me @anil2u
  • We will always be thankful to our teacher for all the hard work and efforts they have put in, for educating us.- Happy teachers Day . . . :) - posted on 05/09/2010 05:39:13
  • Working on shipping cost functionality (UPS and USPS) for oscommerce shopping cart - posted on 01/09/2010 09:40:03
  • If your freedom hurts others, you are not free. You must not hurt others. - Vivekananda - posted on 31/08/2010 06:02:49
  • Another day starts with full of energy . Good Morning - posted on 31/08/2010 02:54:12
  • Nice explanation about php oops concept : http://youropensource.com/projects/182-OOPS-Concepts-in-PHP - posted on 30/08/2010 19:56:17