<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>smarty &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/smarty/</link>
	<description>Feed of posts on WordPress.com tagged "smarty"</description>
	<pubDate>Fri, 25 Dec 2009 04:59:26 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Urgent Opening for PHP Programmer]]></title>
<link>http://fossjobs.wordpress.com/2009/12/18/urgent-opening-for-php-programmer/</link>
<pubDate>Fri, 18 Dec 2009 20:07:14 +0000</pubDate>
<dc:creator>tshrinivasan</dc:creator>
<guid>http://fossjobs.wordpress.com/2009/12/18/urgent-opening-for-php-programmer/</guid>
<description><![CDATA[* Should have atleast 2 to 4 years of work experience in PHP.* Should be responsible for developing,]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>* Should have atleast 2 to 4 years of work experience in PHP.<br />* Should be  responsible for developing, coding and implementation of complex web                         based applications..<br />* Should be Willing to handle a team.<br />* Should have experience in team handling.<br />* Should be good in using the tools like Dreameaver, Ajax, Joomla, Smarty, Wamp.<br />* Should be a good team player and possess good communication skills.</p>
<p>Candidates who&#8217;re interested please walkin to our office at the below address on weekdays Monday to Saturday in between 10 am to 5 pm.</p>
<p>Company Description:</p>
<p>i-Net Solution is a Professional Website Design Company in Chennai since 2005. We offer a complete range of Website Design and Development, includes Corporate Web Site , Flash Website Design , Web Hosting, Internet Marketing, Search Engine Optimization and E-Commerce Solutions. For more information please visit <a href="http://www.i-netsolution.com/" target="_blank">www.i-netsolution.com</a> / <a href="http://www.2daybiz.com/" target="_blank">www.2daybiz.com</a> </p>
<p>CONTACT DETAILS: <br />Address: No.1, 1st Floor,<br />Ayyavu street,<br />Shenoy Nagar,<br />Aminjikarai, Chennai-30. <br />Phone: 044-42017075<br />Landmark: Opp to Indian Back.<br />Email Address: <a href="mailto:murali@i-netsolution.com" target="_blank">murali@i-netsolution.com</a></p>
<p>Land mark: Opp. to Indian Bank<br />Contact person: Mr.Murali</p>
<p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=36083b22-04da-8b89-8d79-7247b4051d66" /></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Smarty for me]]></title>
<link>http://newittechnologies.wordpress.com/2009/12/16/smarty-for-me/</link>
<pubDate>Wed, 16 Dec 2009 07:54:47 +0000</pubDate>
<dc:creator>newittechnologies</dc:creator>
<guid>http://newittechnologies.wordpress.com/2009/12/16/smarty-for-me/</guid>
<description><![CDATA[Why would you need Smarty? What can Smarty do that pure PHP can&#8217;t? Why should you work with th]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Why would you need Smarty? What can Smarty do that pure PHP can&#8217;t? Why should you work with this big library and sacrifice a lot of resources? Questions that I used to ask myself before knowing a single line of smarty, before trying and knowing it well. I was convinced that it&#8217;s a big waste of time, speed and resources to use Smarty in my projects. Well, I&#8217;m happy to write down my experience and answer all the questions for those of you who face the same situation.</p>
<p>If you&#8217;re working in a team where designers work close to the programmers than Smarty is the perfect solution in order to separate the content from presentation. The designer will have a way more easier job finding exactly what they want to change and customize while the programmer will have it&#8217;s own space of work, away from the unexperienced. Whatever it&#8217;s done in the &#8220;presentation&#8221; part will not affect the &#8220;content&#8221;. The presentation is much cleaner and easy to follow through, written in, almost, pure html.</p>
<p>Another perfect situation when you would chose to use it is when you deliver scripts and work with clients. Everyone may know HTML but not everyone knows PHP so how do you make such a product in order to be easy to customize and re-design? Let me guide you, use Smarty.</p>
<p>You&#8217;re probably asking yourself what exactly does this engine do, when it operates and how. Let&#8217;s suppose we have 2 files: index.php and index.tpl. In index.php you write down a lot of code queries, set variables and prepare the content to deliver to the browser. You can simply echo the content out (this of course would involve some escaping mixes of html and php blocks of code) or you can pass it to the template engine and let it deliver the presentation by replacing your assigned content with it&#8217;s templated version.</p>
<p>index.php without smarty:</p>
<pre>&#60;?php
 $var = 'something here inside a variable';
 echo '&#60;p&#62;' . $var . '&#60;/p&#62;';
?&#62;</pre>
<p>index.php with smarty:</p>
<pre>&#60;?php
 $var = 'something here inside a variable';
 $smarty-&#62;assign('myvar', $var);
 $smarty-&#62;display('index.tpl');
?&#62;</pre>
<p>index.tpl:</p>
<pre>&#60;p&#62;{$myvar}&#60;/p&#62;</pre>
<p>As you can see I&#8217;ve let smarty replace the keywords from inside the curly brackets with whatever I assign. The templated code is very clean and it doesn&#8217;t involves escaping, apostrophes and other stuff like that in order to tell the running script which is a string, which and what should it execute, parse or simply display as a string.</p>
<p>I like to consider Smarty as a good bridge in my code. Exactly as a MVC framework (Model, View, Controller), Smarty plays a very important role inside a good and well organized project.</p>
<p>One of the most important aspects about Smarty is the way it delivers the content by building it&#8217;s own pages (templates) before sending the presentation. It generates those files on the fly and uses them whenever a request is sent. If the content changes, Smarty will re-generate the templates file without further action from your part (stuff like clearing the cache, deleting the old files etc.). Inside it&#8217;s templates &#60;p&#62;{$myvar}&#60;/p&#62; becomes &#60;p&#62;&#60;?php echo $myvar; ?&#62;&#60;/p&#62; but Smarty does the hard part of the job while you take care of the rest and enjoy working with your well organized code.</p>
<p>You would probably say that it&#8217;s much faster to load the content from pure php without waiting for some template engine to parse and generate the files before sending them to the browser (and you&#8217;re right) but keep in mind that this process runs only once (and every time you perform updates of course) as the templates will be used every time a new request will be sent. A small price to pay if you&#8217;re asking me.</p>
<p>Smarty also supports caching which can very well be a huge advantage, used right. Imagine a page with a lot of queries and other external data, libraries, templates etc. It can be very slow or it can be very fast using the caching feature of Smarty. If the file is saved and cached, the running script won&#8217;t interrogate the database in order to retrieve the dynamic content. It&#8217;s already there, cached and delivered with the speed of pure HTML.</p>
<p>It takes seconds to install and start using Smarty. Just a little configuration and you&#8217;re ready to start working with it. I use a function to call and load the templates:</p>
<pre>&#60;?php
 function load_template ( $tags, $template_page )
 {
  require_once('Smarty.class.php');
  $smarty = new Smarty();

  $smarty-&#62;caching = 0;
  $smarty-&#62;compile_check = true;
  $smarty-&#62;debugging = true;

  $smarty-&#62;template_dir = 'templates/';
  $smarty-&#62;compile_dir = 'templates_c/';
  $smarty-&#62;cache_dir = 'smarty_cache/';

  $smarty-&#62;clear_all_assign ();

  foreach( $tags as $assign =&#62; $value )
  {
   $smarty-&#62;assign($assign, $value);
  }

  $smarty-&#62;display ( $template_page );
 }
?&#62;</pre>
<p>Using the above method makes it very easy for you to load the template at the end of your code. It needs 2 parameters: $tags which is an associative array where the keys are the correspondent variables inside the template ( {$myvar} where $myvar is the variable ) and $template_page which is the template you wish to use (it can be a tpl file, php file or whatever).</p>
<p>As an example we will get back to our index.php file and make some changes:</p>
<pre>&#60;?php
 $dog = 'dog';
 $cat = 'cat';

 $tags = array
 (
  'dog' =&#62; $dog,
  'cat' =&#62; $cat
 );

 load_template ( $tags, 'index.tpl' );
?&#62;</pre>
<p>index.tpl:</p>
<pre>{$dog} eats {$cat}</pre>
<p>The above code will produce: &#8216;dog eats cat&#8217;. Very clean and easy to follow.</p>
<p>The examples we used above are very basic but Smarty can pass objects, variables, arrays and all sort of content. It won&#8217;t limit or force you to prepare everything inside the content area. {$dog} eats {$cat} can very well be {$dog-&#62;name} eats {$cat-&#62;name} and we&#8217;re in objects already or {$dog.name} eats {$cat.name} for the arrays. There are a lot of things that can be done from inside the template. For example, the designer wants to capitalize the dog&#8217;s name at the header of the template and use it lower case at the footer. You will probably try to pass 2 variables like this:</p>
<pre>$tags = array
(
 'dog'  =&#62; ucfirst($dog),
 'dog_lower' =&#62; strtolower($dog),
 'cat'  =&#62; $cat
);</pre>
<p>This is not the case. What we&#8217;ll discuss from here is called &#8220;variable modifier&#8221; if you study the <a href="http://www.smarty.net/manual/en/language.modifiers.php" target="_blank">Smarty documentation</a>. Keeping the same content here&#8217;s the cleaner solution for our problem:<br />
index.tpl</p>
<pre>&#60;!-- header --&#62;
{$dog&#124;ucfirst} eats {$cat}

&#60;!-- footer --&#62;
{$dog&#124;strtolower} eats {$cat}</pre>
<p>Nicely done directly from the template. You can enjoy your Hawaii trip. No need for you at the office <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Another good example being: {$content&#124;regex_replace:&#8221;/dog/&#8221;:&#8221;cat&#8221;} where all the occurrences of &#8216;dog&#8217; will be replaced with &#8216;cat&#8217;.</p>
<p>You can also assign variables directly from the template without editing the php code and having to assign it first. Here&#8217;s an example:</p>
<pre>{assign var=some_var value=$dog}</pre>
<p>When you call {$some_var} will output the value of $dog or whatever else you decide to assign in there. Constants can be used as well:<br />
php code:</p>
<div style="text-align:center;margin:auto;">
</div>
<pre>define ( 'SOME_CONSTANT', 'some constant value' );</pre>
<p>template code:</p>
<pre>{$smarty.const.SOME_CONSTANT}</pre>
<p>That&#8217;s it. No hacks or special functions etc. Smarty recognizes all this stuff and won&#8217;t stay in your way as it&#8217;s really helping you maintain a clean and well structured code.</p>
<p>But that&#8217;s not all. What If I want to create a &#8216;loop&#8217;. How can smarty do that? Very easy I say. Very easy:<br />
php code:</p>
<pre>$array = array ( 'dogs', 'cats', 'horses', 'tigers', 'lions' );
$tags = array ( 'myArray' =&#62; $array );
load_template ( $tags, 'index.tpl' );</pre>
<p>template code:</p>
<pre>&#60;ul&#62;
{foreach from=$myArray item=value}
 &#60;li&#62;{$value}&#60;/li&#62;
{/foreach}
&#60;/ul&#62;</pre>
<p>Which will produce a nice unordered list with the array values. It&#8217;s the same thing if you have keys also inside your array:<br />
template code:</p>
<pre>&#60;ul&#62;
{foreach from=$myArray item=value key=k}
 &#60;li&#62;{$value}&#60;/li&#62;
{/foreach}
&#60;/ul&#62;</pre>
<p>If you want to add a counter there&#8217;s no easier way than this one that Smarty provides:</p>
<pre>{counter start=0 print=0}
&#60;ul&#62;
{foreach from=$myArray item=value key=k}
 &#60;li&#62;{counter} {$value}&#60;/li&#62;
{/foreach}
&#60;/ul&#62;</pre>
<p>Where &#8217;start&#8217; is the start position and &#8216;print&#8217; is a boolean value where in 0/FALSE the counter won&#8217;t print the first value (0) where it&#8217;s defined but will start printing at the very next request, inside the loop. So instead of:</p>
<pre>0
&#60;ul&#62;
 &#60;li&#62;1 dogs&#60;/li&#62;
 &#60;li&#62;2 cats&#60;/li&#62;
 //etc
&#60;/ul&#62;</pre>
<p>we will have:</p>
<pre>&#60;ul&#62;
 &#60;li&#62;1 dogs&#60;/li&#62;
 &#60;li&#62;2 cats&#60;/li&#62;
 //etc
&#60;/ul&#62;</pre>
<p>Working with already defined functions inside the template is also a piece of cake. Just look at the following example:<br />
php code:</p>
<pre>function multiply ($this, $that, $other_that)
{
 return ( $this * $that ) * $other_that;
}</pre>
<p>template code:</p>
<pre>{$this&#124;multiply:$that:$other_that}</pre>
<p>OR</p>
<pre>{10&#124;multiply:20:30}</pre>
<p>which will output: 6000</p>
<p>As you probably noticed already, the first parameter that follows the opening curly bracket is the first parameter of the function followed by a &#8216;&#124;&#8217; pipe, followed by the function name to call and followed by the rest of the function parameters separated by &#8216;:&#8217;. If the function needs no parameters you can call it this way: {&#8221;&#124;multiply} or {&#8221;&#124;@multiply} if you like to hide the errors (if you have any).</p>
<p><b>Filters</b></p>
<p>Yes. You can set 3 types of filters when working with Smarty: pre-filters, post-filters and output filters. I think the best way to describe their functionality is by talking about real examples.<br />
You have a template which you created using dreamweaver&#8217;s templating engine. Dreamweaver relies on some comments to build the templates but you wish to hide them from your visitors. In the same time, you wish to keep them because you might work on those templates, and dreamweaver, at other time. You can set a pre-filter (something like preg_replace) to strip down those comments and unwanted code when the template is parsed. This won&#8217;t affect your template but the ones that Smarty generates inside it&#8217;s compiling folder. </p>
<p>What if, you want to keep a small log on your templates like creation date or request ip etc. For this type of things you will need a post-filter to write those details after sending the content to the browser. </p>
<p>You may want to transform url&#8217;s to hyperlinks or obfuscate email addresses in order to keep the spam bots away. You will need an output filter.</p>
<p><b>Plug-ins</b></p>
<p>The above discussed filters are also plug-ins that Smarty use. You can create a lot of plug-ins to change the way Smarty reads and operates. By default Smarty reads from flat files (php, html, tpl) but it can be instructed to use a database or almost any kind of source. Plug-ins allow you to create/edit variable modifiers, functions or filters (pre, post, output), perform form validations and all kinds of stuff.</p>
<p>I have included a working example at the end of this tutorial (look for the download section) with a very basic implementation of Smarty.</p>
<p>As a short conclusion I will say that Smarty definitely is a very strong tool for both programmers and designers and has the potential to highly increase your effectiveness. I strongly recommend anyone reading this tutorial to, at least, try this wonderful template engine.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Smarty J-06 Junior POD Tuner for Dodge (2003-2007)]]></title>
<link>http://ocdiesel.wordpress.com/2009/12/02/smarty-j-06-junior-pod-tuner-for-dodge-2003-2007/</link>
<pubDate>Wed, 02 Dec 2009 20:59:29 +0000</pubDate>
<dc:creator>OCDiesel</dc:creator>
<guid>http://ocdiesel.wordpress.com/2009/12/02/smarty-j-06-junior-pod-tuner-for-dodge-2003-2007/</guid>
<description><![CDATA[Need a simple Tuner for your Dodge 5.9L Cummins for 2003-2007?? Then check out the Smarty J-06 Junio]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Need a simple Tuner for your Dodge 5.9L Cummins for 2003-2007?? Then check out the<span style="color:#888888;"><strong> <a href="http://www.ocdiesel.com/Smarty-J-06-Junior-Tuner-p/smsj-06.htm" target="_blank"><span style="color:#ff0000;">Smarty J-06 Junior POD!</span></a></strong></span></p>
<p style="text-align:center;"><a href="http://www.ocdiesel.com/Smarty-J-06-Junior-Tuner-p/smsj-06.htm" target="_blank"><img class="aligncenter size-full wp-image-2014" title="SMSJ-06-2T" src="http://ocdiesel.wordpress.com/files/2009/12/smsj-06-2t.jpg" alt="" width="250" height="250" /></a></p>
<p><strong>Features:</strong></p>
<ul>
<li><strong>CATCHER      software inside </strong></li>
<li><strong>Three      different performance levels</strong> (SW # 1: 40 Hp increase, SW # 2: 70 Hp      increase, SW # 3: 100 Hp increase)</li>
<li><strong>Improved      fuel economy </strong></li>
<li><strong>Optimized      drivability </strong></li>
<li><strong>Fastest      download in the industry, up to three times faster than the competition, a      typical ECM update takes about 3.5 to 5 minutes, depending on the truck      model </strong></li>
<li><strong>ABS      tire height updates in just few seconds from 22.5 inch to 44 inch </strong></li>
<li><strong>Not      traceable in the stock setting. Smarty leaves no footprint </strong></li>
<li><strong>Cold      weather 3 Cylinder High Idle is enabled in all software </strong></li>
<li><strong>Reads      Diagnostic Trouble Codes in plain text </strong></li>
<li><strong>No      tools required, no fuses to pull </strong></li>
<li><strong>USB      built in for simple updates from internet </strong></li>
<li><strong>Easy      installation </strong></li>
<li><strong>Reliable,      it works off your OEM hardware</strong></li>
</ul>
<p>Be sure to get the best price on <a href="http://www.ocdiesel.com/Smarty-J-06-Junior-Tuner-p/smsj-06.htm" target="_blank"><span style="color:#ff0000;"><strong>Smarty J-06 Junior POD</strong></span></a> at <a href="http://www.ocdiesel.com" target="_blank"><span style="color:#ff6600;"><strong>www.OCDiesel.com</strong></span></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Smarty S-67 Tuner for Dodge (2007.5-2009)]]></title>
<link>http://ocdiesel.wordpress.com/2009/12/02/smarty-s-67-tuner-for-dodge-2007-5-2009/</link>
<pubDate>Wed, 02 Dec 2009 20:45:01 +0000</pubDate>
<dc:creator>OCDiesel</dc:creator>
<guid>http://ocdiesel.wordpress.com/2009/12/02/smarty-s-67-tuner-for-dodge-2007-5-2009/</guid>
<description><![CDATA[Need a Tuner for your 2007.5 &#8211; 2009 Dodge Cummins?? Then look no further, the plug in Smarty S]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Need a Tuner for your 2007.5 &#8211; 2009 Dodge Cummins?? Then look no further, the plug in <a href="http://www.ocdiesel.com/product-p/sms-67.htm" target="_blank"><span style="color:#ff0000;"><strong>Smarty S-67 Tuner</strong></span></a> is exactly what you need!</p>
<p style="text-align:center;"><a href="http://www.ocdiesel.com/product-p/sms-67.htm" target="_blank"><img class="aligncenter size-full wp-image-2004" title="SMS-03-2T" src="http://ocdiesel.wordpress.com/files/2009/12/sms-03-2t.jpg" alt="" width="250" height="250" /></a></p>
<p><strong>Features:</strong></p>
<ul>
<li><strong>CaTCHER software inside</strong></li>
<li><strong>Ten different performance levels </strong>(SW #      0: Half power, SW # 1: 30 Hp increase, with added timing, SW # 2: 60 Hp      increase, no added timing, SW # 3: 60 Hp increase, with added timing, SW #      4: 90 Hp increase, no added timing, SW # 5: 90 Hp increase, with added      timing, SW # 6: 130 Hp increase, no added timing, SW # 7: 130 Hp increase,      with added timing, SW # 8: 170 Hp increase, no added timing, SW # 9: 170      Hp increase, with added timing</li>
<li><strong>Fastest download in the industry, up to      three times faster than the competition, a typical ECM update takes about      5 minutes</strong></li>
<li><strong>ABS tire height updates in just few      seconds</strong></li>
<li><strong>Manual High Idle is enabled in all      software</strong></li>
<li><strong>Reads Diagnostic Trouble Codes in plain      text</strong></li>
<li><strong>No tools required, no fuses to pull</strong></li>
<li><strong>USB built in for simple updates</strong></li>
<li><strong>Free internet updates</strong></li>
<li><strong>Most complete keyboard in the industry</strong></li>
<li><strong>Reliable, it works off your OEM      hardware</strong></li>
<li><strong>Programmable Speed Limiter from 25 to      250 mph</strong></li>
<li><strong>Programmable parameters for fine tuning</strong></li>
<li><strong>On the fly Power on Demand under      development</strong></li>
<li><strong>TNT software under advanced development</strong></li>
</ul>
<p>Be sure to get the price on a <a href="http://www.ocdiesel.com/product-p/sms-67.htm" target="_blank"><span style="color:#ff0000;"><strong>Smarty S-67 Tuner</strong></span></a> at<strong> <a href="http://www.OCDiesel.com" target="_blank"><span style="color:#ff6600;">www.OCDiesel.com</span></a></strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Smarty S-06POD Tuner for Dodge (2003-2007)]]></title>
<link>http://ocdiesel.wordpress.com/2009/12/02/smarty-s-06pod-tuner-for-dodge-2003-2007/</link>
<pubDate>Wed, 02 Dec 2009 20:32:30 +0000</pubDate>
<dc:creator>OCDiesel</dc:creator>
<guid>http://ocdiesel.wordpress.com/2009/12/02/smarty-s-06pod-tuner-for-dodge-2003-2007/</guid>
<description><![CDATA[A great choice in Tuners for a Dodge Cummins 5.9L of 2003-2007 would be the Smarty S-06POD Tuner. Th]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>A great choice in Tuners for a Dodge Cummins 5.9L of 2003-2007 would be the <strong><a href="http://www.ocdiesel.com/Smarty-S-06POD-Tuner-Power-on-Demand-p/sms-06pod.htm" target="_blank"><span style="color:#ff0000;">Smarty S-06POD Tuner.</span></a> </strong>This Tuner replaced the Smarty S-06 Tuner!</p>
<p style="text-align:center;"><a href="http://www.ocdiesel.com/Smarty-S-06POD-Tuner-Power-on-Demand-p/sms-06pod.htm" target="_blank"><img class="aligncenter size-full wp-image-2004" title="SMS-03-2T" src="http://ocdiesel.wordpress.com/files/2009/12/sms-03-2t.jpg" alt="" width="250" height="250" /></a></p>
<p><strong>Features:</strong></p>
<ul>
<li><strong>CaTCHER software inside</strong></li>
<li><strong>Ten different performance levels.</strong> (SW #      0: Half power, SW # 1: 30 Hp increase, with added timing, SW # 2: 60 Hp      increase, no added timing, SW # 3: 60 Hp increase, with added timing, SW #      4: 90 Hp increase, no added timing, SW # 5: 90 Hp increase, with added      timing, SW # 6: 130 Hp increase, no added timing, SW # 7: 130 Hp increase,      with added timing, SW # 8: 170 Hp increase, no added timing, SW # 9: 170      Hp increase, with added timing.</li>
<li><strong>Fastest download in the industry, up to      three times faster than the competition, a typical ECM update takes about      3.5 to 5 minutes, depending on the truck model.</strong></li>
<li><strong>ABS tire height updates in just few      seconds.</strong></li>
<li><strong>Not traceable in the stock setting.      Smarty leaves no footprint.</strong></li>
<li><strong>Manual High Idle is enabled in all      software</strong></li>
<li><strong>Reads Diagnostic Trouble Codes in plain      text.</strong></li>
<li><strong>No tools required, no fuses to pull.</strong></li>
<li><strong>USB built in for simple updates .</strong></li>
<li><strong>Most complete keyboard in the industry.</strong></li>
<li><strong>Reliable, it works off your OEM      hardware.</strong></li>
<li><strong>Programmable Speed Limiter from 25 to      250 mph</strong></li>
<li><strong>Power on Demand</strong></li>
</ul>
<p>Be sure to get the best price on <a href="http://www.ocdiesel.com/Smarty-S-06POD-Tuner-Power-on-Demand-p/sms-06pod.htm" target="_blank"><span style="color:#ff0000;"><strong>SMARTY S-06POD Tuner</strong></span></a><span style="color:#ff0000;"><strong> </strong></span>at <a href="http://www.OCDiesel.com" target="_blank"><span style="color:#ff6600;"><strong>www.OCDiesel.com!!</strong></span></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Smarty S-03 Tuner for Dodge (1998.5-2002)]]></title>
<link>http://ocdiesel.wordpress.com/2009/12/02/smarty-s-03-tuner-for-dodge-1998-5-2002/</link>
<pubDate>Wed, 02 Dec 2009 20:21:46 +0000</pubDate>
<dc:creator>OCDiesel</dc:creator>
<guid>http://ocdiesel.wordpress.com/2009/12/02/smarty-s-03-tuner-for-dodge-1998-5-2002/</guid>
<description><![CDATA[Smarty S-03 is a great tuner for a Dodge Cummins 1998.5-2002!! Features: CaTCHER software inside Ten]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><span style="color:#ff0000;"><strong>Smarty S-03</strong></span> is a great tuner for a Dodge Cummins 1998.5-2002!!</p>
<p style="text-align:center;"><a href="http://www.ocdiesel.com/Smarty-S-03-Tuner-p/sms-03.htm" target="_blank"><img class="aligncenter size-full wp-image-2004" title="SMS-03-2T" src="http://ocdiesel.wordpress.com/files/2009/12/sms-03-2t.jpg" alt="" width="250" height="250" /></a></p>
<p><strong>Features:</strong></p>
<ul>
<li><strong>CaTCHER software inside </strong></li>
<li><strong>Ten different performance levels</strong> (SW# 0 : Half power, SW#      1 : Fuel Saver, SW# 2 : Only more fuel and Boost fooling, SW# 3 : Like # 2      + added timing, SW# 4 : Soft CaTCHER  no added timing, SW# 5 : Like #      4 + added Timing, SW# 6 : Mild CaTCHER no added timing, SW# 7 : Like # 6 +      added Timing, SW# 8 : CaTCHER no added timing, SW# 9 : CaTCHER with Timing)</li>
<li><strong>Fastest download in the industry, a typical ECM update      takes less than two minutes </strong></li>
<li><strong>ABS tire height updates in just seconds </strong></li>
<li><strong>Not traceable in the stock setting. Smarty leaves no      footprint </strong></li>
<li><strong>Cold weather 3 Cylinder High Idle is enabled in all      software </strong></li>
<li><strong>Reads Diagnostic Trouble Codes in plain text </strong></li>
<li><strong>No tools required, no fuses to pull </strong></li>
<li><strong>USB built in for simple updates </strong></li>
<li><strong>Most complete keyboard in the industry </strong></li>
<li><strong>Reliable, it works off your OEM hardware </strong></li>
<li><strong>Programmable Speed Limiter from 25 to 250 mph (in trucks      of 2001 and 2002 the speed limiter is programmable in mph, older trucks      have only a speed adjustment)</strong></li>
</ul>
<p>Be sure to get the best price on <strong><a href="http://www.ocdiesel.com/Smarty-S-03-Tuner-p/sms-03.htm" target="_blank"><span style="color:#ff0000;">Smarty S-03 Tuners</span></a></strong> from <a href="http://www.OCDiesel.com" target="_blank"><span style="color:#ff6600;"><strong>www.OCDiesel.com</strong></span></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Reduce Fuel Consumption in your Dodge and Save Money!!]]></title>
<link>http://ocdiesel.wordpress.com/2009/12/02/reduce-fuel-consumption-in-your-dodge-and-save-money/</link>
<pubDate>Wed, 02 Dec 2009 17:10:12 +0000</pubDate>
<dc:creator>OCDiesel</dc:creator>
<guid>http://ocdiesel.wordpress.com/2009/12/02/reduce-fuel-consumption-in-your-dodge-and-save-money/</guid>
<description><![CDATA[There are many different options to upgrading your vehicle to help save money in the long run. One s]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>There are many different options to upgrading your vehicle to help save money in the long run. One such option would be  a tuner, and not just any tuner but a <a href="http://www.ocdiesel.com/SearchResults.asp?Search=SMARTY&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;"><strong>MADS Smarty Tuners with CaTCHER Software. </strong></span></a></p>
<p><a href="http://www.ocdiesel.com/SearchResults.asp?Search=SMARTY&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;"><strong>MADS</strong></span></a> has a tuning software that is well known as CaTCHER software. <a href="http://www.ocdiesel.com/SearchResults.asp?Search=SMARTY&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;"><strong>MADS</strong></span></a> is originally known for EPROMs and Flash-EPROMs or <em>chips</em> which could be installed in place of the original OEM EPROMs and Flash-EPROMs located in the vehicle’s on-board control module. These<em> chips</em>, just like the tuners of today, keep the entire vehicle safety and emissions systems intact, but modify the fuel injection settings to deliver dramatic power, torque and driveability improvements.</p>
<p>Also, fuel consumption is one of the most important point of <a href="http://www.ocdiesel.com/SearchResults.asp?Search=SMARTY&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;"><strong>MADS</strong></span></a><span style="color:#ff0000;"> </span>company research. CaTCHER software can be used to <span style="color:#008d00;"><strong>reduce fuel consumption up to 15%</strong></span> depending on the driving condition. <strong>Saving money and reducing the vehicle emissions.</strong></p>
<p>With the advent of OBD-II vehicle control module in the early 1990’s, most  domestic vehicle manufacturers installed under-dash ports, <em>or ALDL ports</em>, which allowed dealers and service techs to <em>re-flash</em> the vehicle&#8217;s control module to change engine settings without replacing any chip.</p>
<p>So today, instead of chips,<span style="color:#ff0000;"> </span><a href="http://www.ocdiesel.com/SearchResults.asp?Search=SMARTY&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;"><strong>MADS</strong></span></a> company primarily sells hand-held tuners which achieve the same dramatic drivetrain improvements, without the hassle of popping the hood, pulling out the vehicle control module, and replacing a chip.</p>
<p>Installation is quick and easy, taking about 5 minutes, depending on the truck model, and requiring no tools or mechanical skills whatsoever.</p>
<p>Find a complete selection of <strong><a href="http://www.ocdiesel.com/SearchResults.asp?Search=SMARTY&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;">MADS Smarty Tuners</span></a></strong> at <a href="http://www.ocdiesel.com" target="_blank"><span style="color:#ff6600;"><strong>www.OCDiesel.com!!</strong></span></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Hired for December]]></title>
<link>http://webdesignerforhire.wordpress.com/2009/11/28/hired-for-december/</link>
<pubDate>Sat, 28 Nov 2009 15:59:35 +0000</pubDate>
<dc:creator>Mattias Wirf</dc:creator>
<guid>http://webdesignerforhire.wordpress.com/2009/11/28/hired-for-december/</guid>
<description><![CDATA[I now am hired as webdeveloper for December by a company in Sweden, simultaneous as I work with a fe]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I now am hired as webdeveloper for December by a company in Sweden, simultaneous as I work with a few projects at night in my own company. However if you want to hire me in january I might be interested, contact me. By then I will have higher level of experience in <a href="http://www.smarty.net/" target="_blank">Smarty template engine</a> and in <a href="http://adodb.sourceforge.net/" target="_blank">ADOdb abstraction layer</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Upptagen som webbutvecklare under december]]></title>
<link>http://webbdesignersokerjobb.wordpress.com/2009/11/28/upptagen-som-webbutvecklare-under-december/</link>
<pubDate>Sat, 28 Nov 2009 15:53:21 +0000</pubDate>
<dc:creator>Mattias Wirf</dc:creator>
<guid>http://webbdesignersokerjobb.wordpress.com/2009/11/28/upptagen-som-webbutvecklare-under-december/</guid>
<description><![CDATA[Under december kommer jag vara upptagen med arbete som anställd webbutvecklare i Örebro + tagna webb]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Under december kommer jag vara upptagen med arbete som anställd webbutvecklare i Örebro + tagna webbprojekt till mitt eget  företag (en utmaning). Är du intresserad av att anlita mig efter nyåret kan jag dock vara intresserad. Då kommer jag även ha bättre erfarenhet av <a href="http://www.smarty.net/" target="_blank">Smarty</a> (template-motor i PHP) och <a href="http://adodb.sourceforge.net/" target="_blank">ADOdb</a> (databas abstraktionslager för PHP).</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Idei zilnice]]></title>
<link>http://krutz.wordpress.com/2009/11/27/idei-zilnic/</link>
<pubDate>Fri, 27 Nov 2009 14:00:14 +0000</pubDate>
<dc:creator>krutz</dc:creator>
<guid>http://krutz.wordpress.com/2009/11/27/idei-zilnic/</guid>
<description><![CDATA[Două săptămâni nu am putut posta că calculatorului i s-a stricat hardul . Singur s-a stricat ! (stri]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Două săptămâni nu am putut posta că calculatorului i s-a stricat hardul . Singur s-a stricat ! (stricat că nu mergea , dar nu era stricat stricat  &#8211; astea-s ălea stricatele , fetele) Şi eu, ca prostul, am aşteptat să îmi aducă unu sp2 cand un vecin avea sp3 . Ieri mi l-a dat . Dar asta era doar asa sa stie si vizitatorul meu unic ce dracu am mai facut de nu am mai postat sa rada şi el de prostia mea , ca umorist nu-s . Poate chiar putin obsedat de sex , dar zambim şi trecem peste .</p>
<p>Zilele astea e mare agitaţa . Sunt alegerile , Annei Lesko ii plac băieţii , Moş Crăciun cumpără de la Carrefour că e mai ieftin decât la el în atelier . Şi toate bune .<br />
Dar aici vine întrebarea mea : bă , totuşi e criză şi o să fie şi mai criză . Ce ziceţi , până în 2012 când o să intrăm în sfera de influenţă a Planetei X , o să murim oricum ? Da sau nu ? De fapt , nu răspundeţi doar la asta , că mai am .</p>
<p>Şi mai e Băsescu care a plesnit un puradel . Era el mai maroniu . Şi asta nu în sensul bun , de bere maro (neagră , cum îi zice unii) , ci de negru de pe plantaţie . Cred că dacă erau plantaţii ca în America şi în România , ălea blonde munceau în poziţia capră pentru negricioşi şi blonzii munceau pe plantaţie  , ca capre : mâncau buruienile .<br />
A mai observat cineva cum rânjea a satisfacţie ăla micu după ce a luat palma ? E mâna mogulilor , cred că i-au dat un set de două caucioace cu gust de căpşuni să ronţăie toată ziua la ele .  Astfel , în 2009 , ei aveau să îl înlăture pe Băse cu ajutorul filmării şi îi mai dădeau un alt set de 2 caucioace , acum cu gust de <a href="http://www.220.ro/ugPwTPhYgz/Prezervative-Cu-Gust-De-Ciocolata">ciocolată</a>.</p>
<p>Şi ca ultimă idee , citiţi Adevărul ! Nu scrie despre politică , ci despre nişte jegoşi care fac , au făcut sau vor face politică şi despre viaţa lor de zi cu zi : ce se cacă , ce mănâncă , ce  pişă , ce beau , ce cântă ca nişte melomani afoni ce sunt etc .</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to integrate fckeditor in smarty application?]]></title>
<link>http://anil2u.wordpress.com/2009/11/26/how-to-integrate-fckeditor-in-smarty-application/</link>
<pubDate>Thu, 26 Nov 2009 12:09:53 +0000</pubDate>
<dc:creator>Anil Kumar Panigrahi</dc:creator>
<guid>http://anil2u.wordpress.com/2009/11/26/how-to-integrate-fckeditor-in-smarty-application/</guid>
<description><![CDATA[Integration of fckeditor in smarty application 1 . in libs\plugins write the foolowing file called f]]></description>
<content:encoded><![CDATA[Integration of fckeditor in smarty application 1 . in libs\plugins write the foolowing file called f]]></content:encoded>
</item>
<item>
<title><![CDATA[Cal a php predified function from smarty file]]></title>
<link>http://freescript4u.wordpress.com/2009/11/16/how-cal-a-php-predified-function-from-smarty-file/</link>
<pubDate>Mon, 16 Nov 2009 09:06:20 +0000</pubDate>
<dc:creator>freescript4u</dc:creator>
<guid>http://freescript4u.wordpress.com/2009/11/16/how-cal-a-php-predified-function-from-smarty-file/</guid>
<description><![CDATA[// In php file we need to declare the function calling $smarty-&gt;register_function(&#8220;getProfi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>// In php file we need to declare the function calling</p>
<p>$smarty-&#62;register_function(&#8220;getProfileChatEligiable&#8221;, &#8220;getProfileChatEligiable&#8221;);</p>
<p>function getProfileChatEligiable($params,$smarty){<br />
$db = getDBHandler();<br />
$db-&#62;setFetchMode(DB_FETCHMODE_ASSOC);<br />
$memberStatus = $params['memberStatus'];<br />
$query = &#8220;SELECT a.scheme_id FROM en_task_master t, en_access_master a WHERE t.task LIKE &#8216;%initiate chat%&#8217; AND t.task_id = a.task_id AND a.scheme_id = &#8220;.$memberStatus;<br />
$res =&#38; $db-&#62;getAll($query);<br />
$arrcnt = sizeof($res);<br />
return $smarty-&#62;assign($params["assign"],$arrcnt);<br />
}</p>
<p>// In smart file</p>
<p>memberStatus need to assing a value ,<br />
assing parameter will given return result from the function</p>
<p>{getProfileChatEligiable memberStatus =1 assign=&#8221;chatEligable&#8221;}</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Always - aventuri sexi]]></title>
<link>http://krutz.wordpress.com/2009/11/14/61/</link>
<pubDate>Sat, 14 Nov 2009 20:37:39 +0000</pubDate>
<dc:creator>krutz</dc:creator>
<guid>http://krutz.wordpress.com/2009/11/14/61/</guid>
<description><![CDATA[Evrika ! Mi-a revenit inspiraţia . Doar că nu mi-a căzut un măr în cap şi nu mă căcam . Pur şi simpl]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Evrika ! Mi-a revenit inspiraţia . Doar că nu mi-a căzut un măr în cap şi nu mă căcam . Pur şi simplu mi-a venit , după ce m-am masturbat şi am dat peste nişte always.</p>
<p>M-am abătut de la subiect . De fapt , am văzut la tv reclama aia cretină la always . Căcă 94% din fomei se simt mai sexi cu chestia aia la fofo . Adică eu dacă îmi pun un burete la cucu-mare , o să am sex-appeal ? Băă.. chiar o să văd şi eu o pizdă ? Moamăă.. ce calumea ! Îmi iau şi o pompă deaia de mărit penisul şi să vedeţi ce dau în ele !<br />
Căutam material de labă pe zootube şi ia uitaţi ce am găsit . O să dau în ele ca ăla la care se uită lăbarul. Sunt salvat !<br />
<span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/yUX09Qr0_hc&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/yUX09Qr0_hc&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
<p>Acum chiar că trebuie să revin la always . &#8220;94% din femei se simt sexi&#8221; &#8211; Am şi eu o fată mare de care îmi place . E mare în ambele sensuri . Şi grasă şi virgină . Dacă îi recomand always se va simţi sexi ? Vom face prostii ? Abia aştept ! Dar dacă va fi prea sexi pt. mn. k nu s shukr adevrt ? Mai bine o las baltă.. Să fie din cele 6% fomei proaste.. tot o fut eu..</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[În public..]]></title>
<link>http://krutz.wordpress.com/2009/11/10/in-public/</link>
<pubDate>Tue, 10 Nov 2009 18:13:10 +0000</pubDate>
<dc:creator>krutz</dc:creator>
<guid>http://krutz.wordpress.com/2009/11/10/in-public/</guid>
<description><![CDATA[Fiind genul de om care se fute arareori des şi fiindcă văd pizdă doar la pornache, nu mă dau guru se]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Fiind genul de om care se fute arareori des şi fiindcă văd pizdă doar la pornache, nu mă dau guru sexual . În schimb pot să mă dau guru asexual . Oare dacă sunt guru din ăsta o să pot să mă împart în două ca unicelularele ? Sau o să mă sugeţi ca pe bivolaru sperând că , din cauza faptului că nu vă futeţi , să vă masturbaţi şi voi cum trebuie ? Păi atunci n-am de ales decât să aştept şi să văd .<br />
Ca să vă integraţi în absolut , şi asta nu la inelul maro , trebuie să veneraţi laba . Laba trebuie să fie pentru voi ceva ce se face cu seriozitate . Pentru că la birou , la şcoală şi la McDonalds nu aveţi de unde să faceţi rost de pornache , pentru că veţi fi catalogaţi obsedaţi şi daţi afară . am găsit eu o soluţie .<br />
Oamenii , de când e lumea , au tras cu ochiul . Nimic mai simplu ! Dacă aveţi budă amestecată , adică acolo să se cace şi bărbaţi şi femei , e perfect . Daţi o gaură când nu e nimeni acolo , că se aude zgomotul , şi băgaţi un pai . Apoi aşteptaţi . Când vine o femeie/fată şi se vede fofo , începeţi , războinicii mei !<br />
Eh, problema apare atunci când wc-urile sunt separate . Nici aici nu e greu , dar trebuie să fiţi dibaci (dibace , dibaci) . Ghidul ăsta e pentru bărbaţii <span style="text-decoration:line-through;">proşti </span>bătuţi de soartă  , dar poate fi folosit şi de femei . Omul e inventiv . Continuăm . Aveţi telefon cu cameră ? Bun ! Are şi card ? Dacă nu are , puteţi să vă pişaţi pe el . Luaţi unu cu card şi citiţi continuarea . Deja bănuiţi ce trebuie făcut , nu ? Se ia una bucată telefon cu cameră şi card , una bucată ziar şi se intră în baia de sex opus. Adică a persoanelor de sex opus . Că nu futeţi baia . Dacă nu vă temeţi să stricaţi telefonul , udaţi o parte de ziar şi alta lăsaţi-o uscată . În compartimentu de la budă folosit cel mai des se pune telefonul sub ziarul ud. Cel uscat se imprăştie pe jos . Foarte important să se dea o gaură la ziarul ud exact în zona camerei . Şi să se pornească camera . Dacă nu , vă futeţi în el de material de masturbare .  Conform psihologiei oamenilor , nimeni nu se va atinge de ziarul ud . Cine e atât de prost să îl ridice de jos ? Poate că pe noi ne doare în pulă dacă luăm ceva ud  , dar femeile nu se vor atinge de el .<br />
Acum se filmează şi după aceea puteţi să vă masturbaţi liniştiţi , zgâlţâind veceurile de atâta înfierbântare . Singura problemă ar fi că poate fi filmată în timpul căcării şi o domnişoară naşparlie , care face pula să intre înăuntru de ruşine . Dar aşa e viaţa . Nedreaptă !</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[To Smarty or Not To Smarty]]></title>
<link>http://sammaye.wordpress.com/2009/11/09/to-smarty-or-not-to-smarty-2/</link>
<pubDate>Mon, 09 Nov 2009 10:53:07 +0000</pubDate>
<dc:creator>sammaye</dc:creator>
<guid>http://sammaye.wordpress.com/2009/11/09/to-smarty-or-not-to-smarty-2/</guid>
<description><![CDATA[This tutorial will talk the reader through the smarty, its ups and downs and how to use smarty withi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This tutorial will talk the reader through the smarty, its ups and downs and how to use smarty within your own website. By the end of this tutorial the reader should have an unbiased view of how to use Smarty and the coding knowledge required to implement the Smarty framework.</p>
<p><b>What is Smarty?</b></p>
<p>Smarty is NOT a template engine, it states on the website [<a href="http://www.smarty.net">Smarty Website</a>] that Smarty is a framework for creating templates. Yes, sure it comes compliant with a template engine but Smarty itself is not the template engine. Smarty is all the little function for making template building easier.</p>
<p>There are a lot of sites out there that hate Smarty [<a href="http://paul-m-jones.com/?p=400">Here</a>] but I think it&#8217;s a great little piece of programming. Everyone seems to think Smarty is:</p>
<ul>
<li>Bug ridden</li>
<li>Slow</li>
<li>unnecessary</li>
<li>And just, well, shit</li>
</ul>
<p>All of the above are valid and all can be supported. Some say that there are superior template frameworks out there but when I use them I find the framework makes my site load up to twice as long. Sure Smarty is not the prettiest girl in the group but you should never judge a book by its cover, she could be a really sexy girl but dead on the inside&#8230;</p>
<p>So now your probably asking &#8220;So how do I choose which is best?&#8221; Maybe you should go for no framework at all&#8230;</p>
<p>This tutorial will tell you how to decide whether you need to use Smarty or not. </p>
<p>Now the first thing to talk about is what to ask when building a site and deciding whether or not to use a template framework. There are a number of questions you can ask yourself:</p>
<ul>
<li>How big is my site?</li>
<li>Will pages need to conform to a basic layout?</li>
<li>Am I making a multilingual site?</li>
<li>How many users would be visiting this site daily?</li>
</ul>
<p>These are just some questions but if you can answer question 1 as big and question 2 as yes then your in with a good chance of needing Smarty. There is a word of caution though, if you are building a site which is viewed by millions a day you might not want to use a template framework at all&#8230;&#8221;Why?&#8221; Because it adds an extra layer and so extra weight and extra weight means extra load on the server.</p>
<p><b>How do I install Smarty into my Site?</b></p>
<p>Okay, so you have decided whether you need Smarty or not (in basic terms). Now you need to know how to use Smarty.</p>
<p>You first need to install Smarty, so depending on which distro you use you apt-get install smarty. Once that has been done smarty will be installed to /usr/share/php/. This directory will not function correctly at first which is why you need to add its location to the php.ini. Add the folder as a extension folder, if you search for &#8220;/usr/share/php&#8221; you will find a row that just needs &#8220;uncommenting&#8221;. If you uncomment this row the shared folder will function correctly. All template frameworks and other PHP related stuff will always be installed to this directory.</p>
<p>After you have installed Smarty you will need to bind it to your website.</p>
<pre class="brush: php;">

        //Include the smarty class from the shared folder. No need to state location of shared folder it will act as a folder of the website root.
	require('smarty/Smarty.class.php');

        //Create the new smarty object to work with
	$smarty = new Smarty;

        //Assign all the working directories and such like. All of these are best to be specified. template_dir is the most important variable to assign since it is the location of your template files. config_dir contains any special Smarty and also non-Smarty configuration files required and compile_dir can not only be used for cache but the templates are also compiled in the directory for viewing. It is best to leave the compile directory outside of the immediate web root.
	$stage_root_path = getcwd() . &#34;/&#34;;
	$smarty-&#62;template_dir = $stage_root_path . 'styles/default/template';
	$smarty-&#62;config_dir = $stage_root_path . 'styles/default/configs';
	$smarty-&#62;compile_dir = '/usr/share/php/smarty/templates_c';
</pre>
<p>The script above will allow you create a new smarty object. Now you are almost ready to start Smarty-ing. You have the smarty object assigned now you need to know how to use it in order to build templates.</p>
<p><b>Examples of How to Use the Smarty Object</b></p>
<p>You will find <a href="http://www.smarty.net/crashcourse.php">this link</a> particularly useful for getting Smarty examples. This will teach you the absolute basics of Smarty-ing. Enjoy <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sex ; facem ?]]></title>
<link>http://krutz.wordpress.com/2009/11/07/sex-facem/</link>
<pubDate>Sat, 07 Nov 2009 11:44:02 +0000</pubDate>
<dc:creator>krutz</dc:creator>
<guid>http://krutz.wordpress.com/2009/11/07/sex-facem/</guid>
<description><![CDATA[Edy avea doar 12 ani , dar era om de cultura cand venea vorba de camasutra si curling . Credea ca cu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Edy avea doar 12 ani , dar era om de cultura cand venea vorba de camasutra si curling . Credea ca curling inseamna lins in cur . Dorea sa vada cum e . Pula lui..<br />
Ally era o fetiţă de 9 ani . Prima femeie a lui Edy . Au făcut sex pentru prima dată în căpiţa de fân a unchiului ei . Era o dimineaţă frumoasă şi citeau împreună literatură erotică . Nu exista pronografie pe vremea aia . Edy avea 8 ani , iar fata era o puştoaică sexy de vro 5 . Şi au făcut exact ca în carte : Edy a început să-i sărute ploapele ca de copilă , apoi a coborat mai jos şi a început să-i lingă nasul în sensul acelor de ceasornic . Auzise el că daca o linge invers îi va trezi plăcerea . La ce să se simtă ea bine şi el nu  ? Să aştepte ! A continuat să o sărute pe buze , pe gât , pe urechi , pe sfârcuri.. au ajuns apoi la faptul propriu zis . Aly a început să îi sugă puţa băieţelului cu atâta pofta ca când ar suge o acadea din aia bună , cu aromă de căpşuni . Era o fetiţă emancipată , deci i s-a părut că are în gură ceva putred . L-a întrebat pe băieţel când s-a spălat ultima dată . El i-a zis că săptămâna trecută . În acea zi era ziua de făcut baie , deci nu apucase să facă încă  . Ea i-a zis că îi va face ziua următoare felaţia . Poate nu va mai mirosi asa strident a hoit . Dar , între timp , l-a pus să o lingă la fofo.  El , mâhnit că a fost făcut nespălat , băgat cu atâta măiestrie limba , încât Aly scosese un sunet strident , in genul &#8220;aaahhh&#8221;  . Din găurica ei micuţă şi uscată ieşea un lichid roşu . Ce o fi fost oare ? Edy , surprins  şi , fiind stricat la stomac , s-a trezit cu caca la fund . În gură încă mai avea lichidul acela roşu . De ciudă că nu se mai simţea bine , Aly i-a tras un pumn în stomac . El a stropit-o pe faţă cu dezgustătoarea licoare roz provenită din fofo ei scumpă . Trebuia oare să facă ce i-a zis mă-sa ? Să nu se frece până va găsi unu cu bani pe care să îl manipuleze ? Păi fofo ei , dacă nu venea niciodată ? Era bun şi Edy .<br />
Mai târziu au încercat iar , dar au aflat că lui Edy îi murea la intrare şi chiar dacă Aly băga altceva în fofo nu prea aluneca şi o durea . Eh , copiii !</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Smarty Products Updated]]></title>
<link>http://ocdiesel.wordpress.com/2009/11/06/smarty-products-updated/</link>
<pubDate>Fri, 06 Nov 2009 17:15:33 +0000</pubDate>
<dc:creator>OCDiesel</dc:creator>
<guid>http://ocdiesel.wordpress.com/2009/11/06/smarty-products-updated/</guid>
<description><![CDATA[Orange County Diesel has recently updated their line of Smarty Tuners to include: Installation Manua]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://www.ocdiesel.com/" target="_blank"><span style="color:#ff6600;"><strong>Orange County Diesel</strong></span></a> has recently updated their line of <a href="http://www.ocdiesel.com/SearchResults.asp?Search=Smarty&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;"><strong>Smarty Tuners</strong></span></a> to include:</p>
<ul>
<li> Installation Manuals</li>
<li>Disclaimers of Liability</li>
<li>USB Installation Manuals</li>
<li>REVO Software Instructions</li>
<li>Power on Demand Instructions</li>
</ul>
<p>At <a href="http://www.ocdiesel.com/" target="_blank"><span style="color:#ff6600;"><strong>Orange County Diesel,</strong></span></a> we like to make it easy to own your Diesel products! We’ve made installation manuals, warranties, other manuals and instructions, etc. available in just a few clicks! Just look up your product at <a href="http://www.ocdiesel.com/" target="_blank"><span style="color:#ff6600;"><strong>www.OCDiesel.com</strong></span></a> and there you will find what you need! Or call and talk to a Sales Representative at <strong>1.888.OC.DIESEL. </strong></p>
<p>And just in case you forgot about&#8230;<strong> <a href="http://www.ocdiesel.com/SearchResults.asp?Search=Smarty&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;">MADS the creators of  Smarty Tuners</span></a></strong></p>
<p><strong><br />
</strong></p>
<p style="text-align:center;"><a href="http://www.ocdiesel.com/SearchResults.asp?Search=Smarty&#38;Search.x=0&#38;Search.y=0" target="_blank"><img class="aligncenter size-full wp-image-1299" title="SmartyLogo" src="http://ocdiesel.wordpress.com/files/2009/11/smartylogo.jpg" alt="SmartyLogo" width="335" height="79" /></a><strong> </strong></p>
<p><strong>The Company </strong></p>
<p><a href="http://www.ocdiesel.com/SearchResults.asp?Search=Smarty&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;"><strong>MADS</strong></span></a> is a new company specialized in the development of Automotive electronic products dedicated to the performance enthusiast. Their goal is to deliver the most complete, best performing, yet simple to use products. All of  the engineering/ research &#38; development/ performance software design are done in house. Nothing is outsourced!</p>
<p>The experience in tuning vehicles with computer controlled fuel-injection systems comes from the racing environment with high-end tuning solutions. Combined <a href="http://www.ocdiesel.com/SearchResults.asp?Search=Smarty&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;"><strong>MADS</strong></span></a> brings over 40 years of experience in the electronics / software world to the table. This allows them to set the highest quality standards possible. Each product is tested in all its functions individually before it leaves the <a href="http://www.ocdiesel.com/SearchResults.asp?Search=Smarty&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;"><strong>MADS</strong></span></a> facility.</p>
<p><strong>The Products </strong></p>
<p>The <a href="http://www.ocdiesel.com/SearchResults.asp?Search=Smarty&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;"><strong>MADS</strong></span></a> tuning software is well known as CaTCHER software <a href="http://www.ocdiesel.com/SearchResults.asp?Search=Smarty&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;"><strong>MADS</strong></span></a> original products were EPROM’s and Flash-EPROM’s (or “chips”) which could be installed in place of the original OEM EPROM’s and Flash-EPROM’s located in the vehicle’s on-board control module. These chips, just like the tuners of today, keep the entire vehicle safety and emissions systems intact, but modify the fuel injection settings to deliver dramatic power, torque and drivability improvements.</p>
<p>Also the fuel consumption is one of the most important point of <strong><a href="http://www.ocdiesel.com/SearchResults.asp?Search=Smarty&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;">MADS</span></a> </strong>company research. CaTCHER software can be used to reduce fuel consumption up to 15% depending on the driving condition. Saving money and reducing the vehicle emissions.</p>
<p>With the advent of OBD-II vehicle control module in the early 1990’s, most domestic vehicle manufacturers installed under-dash ports (“ALDL ports”) which allowed dealers and service techs to “re-flash” the vehicle&#8217;s control module to  change engine settings without replacing any chip. So today, instead of chips, <span style="color:#ff0000;"><strong><a href="http://www.ocdiesel.com/SearchResults.asp?Search=Smarty&#38;Search.x=0&#38;Search.y=0" target="_blank"><span style="color:#ff0000;">MADS</span></a> </strong></span>company primarily sells hand-held tuners which achieve the same dramatic drive-train improvements, without the hassle of popping the hood, pulling out the vehicle control module and replacing a chip. Installation is quick and easy, taking about 1.5 up to 4.5 minutes, depending on the truck model, and requiring no tools or mechanical skills whatsoever.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Ceva pute 2]]></title>
<link>http://krutz.wordpress.com/2009/11/05/ceva-pute-2/</link>
<pubDate>Thu, 05 Nov 2009 12:16:36 +0000</pubDate>
<dc:creator>krutz</dc:creator>
<guid>http://krutz.wordpress.com/2009/11/05/ceva-pute-2/</guid>
<description><![CDATA[-Porc prost ! Păi tre să te şi speli ! zise ea strihată. -Nu.. am avut şerveţele cu alcool . Am făcu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>-Porc prost ! Păi tre să te şi speli ! zise ea strihată.<br />
-Nu.. am avut şerveţele cu alcool . Am făcut arsuri anale şi hemoroizi dar nu mai pute .replică el bucuros.<br />
-Aa.. Şi eu care credeam că ţi-ai băgat vibratorul meu în fund.<br />
-Ai vibrator ? Şi de ce nu mi-ai zis ? Nu te satisfac ?<br />
-Chiar că pute ceva . Cine ştie ce poate fi..<br />
-Da , se simte . Dar de ce oare ? Şi nu schimba subiectul !<br />
-Ba mă satisfaci.. zise fata cu juma de gură .<br />
-Sigur ?<br />
-Da.<br />
-Nu te cred. Bănuiesc că noaptea când dorm tu te masturbezi cu vibratorul.. aşa e ?<br />
-Stai , că nu ai terminat de povestit ce ai făcut azi !<br />
-Aaa.. mă gândeam că îmi pute gura , dar am realizat că nu e aşa .<br />
-De ce să îţi pută ?<br />
-Păi am mâncat dupaia nişte ceapă . Mi-a fost poftă .<br />
-Ah.. nu .. nu se simte .<br />
-Bun. Am lămurit . Acum aştept să îmi răspunzi la întrebare .<br />
-Care întrebare ?<br />
-Aia cu vibratorul..<br />
-Ţi s-a părut .. nu ai zis nimic .<br />
-Da ? Am avut impresia că..<br />
-Nu , degeaba . Cred că ţi-ai imaginat .<br />
-Probabil.<br />
-Noapte bună !<br />
-Noapte bună !</p>
<p>Şi totuşi.. ceva pute ! Să fie prezervativele folosite de sub pat ?</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Шахматка с помощью PHP]]></title>
<link>http://patgod.wordpress.com/2009/11/05/%d1%88%d0%b0%d1%85%d0%bc%d0%b0%d1%82%d0%ba%d0%b0-%d1%81-%d0%bf%d0%be%d0%bc%d0%be%d1%89%d1%8c%d1%8e-php-2/</link>
<pubDate>Thu, 05 Nov 2009 05:47:09 +0000</pubDate>
<dc:creator>patgod</dc:creator>
<guid>http://patgod.wordpress.com/2009/11/05/%d1%88%d0%b0%d1%85%d0%bc%d0%b0%d1%82%d0%ba%d0%b0-%d1%81-%d0%bf%d0%be%d0%bc%d0%be%d1%89%d1%8c%d1%8e-php-2/</guid>
<description><![CDATA[Решил воспользоваться Windows Live Writer для написания поста, через это произошёл репостинг. Довело]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Решил воспользоваться Windows Live Writer для написания поста, через это произошёл репостинг.</p>
<p>Довелось мне реализовать сводную таблицу, или шахматку, на PHP с помощью Smarty.   <br />Задача стояла отобразить в табличном виде данные. По вертикали располагаются партнёры, по горизонтали располагаются регионы поставки. На пересечениях можно видеть данные партнёра_1 по региону_3.</p>
<p><a href="http://patgod.files.wordpress.com/2009/11/purpose1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="purpose" border="0" alt="purpose" src="http://patgod.files.wordpress.com/2009/11/purpose_thumb.png?w=385&#038;h=223" width="385" height="223" /></a> </p>
<p>Изначально решил сделать каркас, а потом лишь добавлять новые показатели. В коде буду использовать только стоимость, количество билетов и вычисление средней стоимости. При первом же желании добавить функциональности, столкнулся с множеством неудобств. Занялся расширяемостью:</p>
</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:b4844132-25c1-4013-a285-8ca114956b63" class="wlWriterEditableSmartContent">
<pre style="background-color:#F1F8FE;overflow:auto;"><span style="color:#0000FF;">class</span><span style="color:#000000;"> CellParametrs
{
  </span><span style="color:#0000FF;">function</span><span style="color:#000000;"> __construct()
  {
    </span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">array</span><span style="color:#000000;">();
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">null</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">name </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">'</span><span style="color:#000000;">Tickets count</span><span style="color:#000000;">'</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">0</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">lcs </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">''</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">rcs </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">''</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">format </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">'</span><span style="color:#000000;">cnt</span><span style="color:#000000;">'</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">show </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">0</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">ticketsCount</span><span style="color:#000000;">'</span><span style="color:#000000;">] </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">;

    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">null</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">name </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">'</span><span style="color:#000000;">Price</span><span style="color:#000000;">'</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">0</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">lcs </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">'</span><span style="color:#000000;">&#38;pound;</span><span style="color:#000000;">'</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">rcs </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">''</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">format </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">'</span><span style="color:#000000;">double</span><span style="color:#000000;">'</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">show </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">1</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">price_gbp</span><span style="color:#000000;">'</span><span style="color:#000000;">] </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">;

    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">null</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">name </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">'</span><span style="color:#000000;">Average value of bought tickets</span><span style="color:#000000;">'</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">0</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">lcs </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">'</span><span style="color:#000000;">&#38;pound;</span><span style="color:#000000;">'</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">rcs </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">''</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">format </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">'</span><span style="color:#000000;">double</span><span style="color:#000000;">'</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">show </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">1</span><span style="color:#000000;">;
    </span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">bought_average_price</span><span style="color:#000000;">'</span><span style="color:#000000;">] </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$tmp</span><span style="color:#000000;">;

  }
}

</span><span style="color:#0000FF;">class</span><span style="color:#000000;"> ReportCell
{
  </span><span style="color:#0000FF;">function</span><span style="color:#000000;"> __construct(</span><span style="color:#800080;">$obj</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">null</span><span style="color:#000000;">,</span><span style="color:#000000;"> </span><span style="color:#800080;">$regions</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">array</span><span style="color:#000000;">())
  {
    </span><span style="color:#0000FF;">if</span><span style="color:#000000;">(</span><span style="color:#0000FF;">isset</span><span style="color:#000000;">(</span><span style="color:#800080;">$obj</span><span style="color:#000000;">))
    {
      </span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">name </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$obj</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">name;
      </span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$obj</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value;
      </span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">id </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$obj</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">id;
      </span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">ips </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$obj</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">ips;
    }
    </span><span style="color:#800080;">$partnerParametrs</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">new</span><span style="color:#000000;"> CellParametrs();
    </span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$partnerParametrs</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params;

    </span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">regions </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">array</span><span style="color:#000000;">();
    </span><span style="color:#0000FF;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$regions</span><span style="color:#000000;"> </span><span style="color:#0000FF;">as</span><span style="color:#000000;"> </span><span style="color:#800080;">$id</span><span style="color:#000000;"> </span><span style="color:#000000;">=&#62;</span><span style="color:#000000;"> </span><span style="color:#800080;">$region</span><span style="color:#000000;">)
    {
      </span><span style="color:#800080;">$regionParametrs</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">new</span><span style="color:#000000;"> CellParametrs();
      </span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">regions[</span><span style="color:#800080;">$id</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$regionParametrs</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params;
    }
  }
}</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Первый класс, <em>CellParametrs</em> – это набор параметров ячейки, которые будут принимать участие в отчёте, как ассоциативный массив. Можно задать сколько угодно свойств.</p>
<ul>
<li><em>value</em> – значение по умолчанию. </li>
<li><em>lcs</em>, rcs – значёк слева и значёк справа (фунт или процент). </li>
<li><em>format</em> – параметр для выбора форматирования в смарти. </li>
</ul>
<p>Втрой класс, <em>ReportCell</em> – это класс с параметрами строки. Здесь набор параметров для ячеек и общий тотал.</p>
<p>Массивы <em>$partners</em> и <em>$regions</em> уже существуют. В коде не совсем элегантно дополняем их элементы свойствами новых классов.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:bf88b773-5aa7-45b1-bf7d-8e3e04f61931" class="wlWriterEditableSmartContent">
<pre style="background-color:#F1F8FE;overflow:auto;"><span style="color:#0000FF;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$regs</span><span style="color:#000000;"> </span><span style="color:#0000FF;">as</span><span style="color:#000000;"> </span><span style="color:#800080;">$id</span><span style="color:#000000;"> </span><span style="color:#000000;">=&#62;</span><span style="color:#000000;"> </span><span style="color:#800080;">$region</span><span style="color:#000000;">)
{
   </span><span style="color:#800080;">$regions</span><span style="color:#000000;">[</span><span style="color:#800080;">$id</span><span style="color:#000000;">] </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">new</span><span style="color:#000000;"> CellParametrs();
   </span><span style="color:#800080;">$regions</span><span style="color:#000000;">[</span><span style="color:#800080;">$id</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">name </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$region</span><span style="color:#000000;">;
}
</span><span style="color:#0000FF;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$partners</span><span style="color:#000000;"> </span><span style="color:#0000FF;">as</span><span style="color:#000000;"> </span><span style="color:#800080;">$id</span><span style="color:#000000;"> </span><span style="color:#000000;">=&#62;</span><span style="color:#000000;"> </span><span style="color:#000000;">&#38;</span><span style="color:#800080;">$partner</span><span style="color:#000000;">)
{
   </span><span style="color:#800080;">$partner</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">new</span><span style="color:#000000;"> ReportCell(</span><span style="color:#800080;">$partner</span><span style="color:#000000;">,</span><span style="color:#000000;"> </span><span style="color:#800080;">$regions</span><span style="color:#000000;">);
}
</span><span style="color:#800080;">$totals</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">new</span><span style="color:#000000;"> CellParametrs();</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Проходим по массиву, из которого берутся значения для отчёта и заполняем получившиеся массивы.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:2dcb5c58-71e7-4d8a-a699-edef2d9f7e57" class="wlWriterEditableSmartContent">
<pre style="background-color:#F1F8FE;overflow:auto;"><span style="color:#0000FF;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$tickets</span><span style="color:#000000;"> </span><span style="color:#0000FF;">as</span><span style="color:#000000;"> </span><span style="color:#800080;">$ticket</span><span style="color:#000000;">)
{
  </span><span style="color:#000000;">++</span><span style="color:#800080;">$partners</span><span style="color:#000000;">[</span><span style="color:#800080;">$ticket</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">partner</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">id]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">ticketsCount</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value;
  </span><span style="color:#800080;">$partners</span><span style="color:#000000;">[</span><span style="color:#800080;">$ticket</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">partner</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">id]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">price_gbp</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">+=</span><span style="color:#000000;"> </span><span style="color:#800080;">$ticket</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">price_gbp;

  </span><span style="color:#000000;">++</span><span style="color:#800080;">$partners</span><span style="color:#000000;">[</span><span style="color:#800080;">$ticket</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">partner</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">id]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">regions[</span><span style="color:#800080;">$ticket</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">leg</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">regionId]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">ticketsCount</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value;
  </span><span style="color:#800080;">$partners</span><span style="color:#000000;">[</span><span style="color:#800080;">$ticket</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">partner</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">id]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">regions[</span><span style="color:#800080;">$ticket</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">leg</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">regionId]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">price_gbp</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">+=</span><span style="color:#000000;"> </span><span style="color:#800080;">$ticket</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">price_gbp;

  </span><span style="color:#000000;">++</span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">regions[</span><span style="color:#800080;">$ticket</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">leg</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">regionId]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">ticketsCount</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value;
  </span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">regions[</span><span style="color:#800080;">$ticket</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">leg</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">regionId]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">price_gbp</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">+=</span><span style="color:#000000;"> </span><span style="color:#800080;">$ticket</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">price_gbp;

  </span><span style="color:#000000;">++</span><span style="color:#800080;">$totals</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">ticketsCount</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value;
  </span><span style="color:#800080;">$totals</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">price_gbp</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">+=</span><span style="color:#000000;"> </span><span style="color:#800080;">$ticket</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">price_gbp;
}
</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
</p>
<p>Подсчитываем итоги и передаём переменные в смарти:</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:d7670286-6185-48d4-bd1c-794b6c43fd45" class="wlWriterEditableSmartContent">
<pre style="background-color:#F1F8FE;overflow:auto;"><span style="color:#008000;">//</span><span style="color:#008000;"> Убрал тут проверку на количество равное нулю, для наглядности</span><span style="color:#008000;">
</span><span style="color:#000000;">
</span><span style="color:#0000FF;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">partners </span><span style="color:#0000FF;">as</span><span style="color:#000000;"> </span><span style="color:#800080;">$partner</span><span style="color:#000000;">)
{
   </span><span style="color:#800080;">$partner</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">bought_average_price</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$partner</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">bought_price_gbp</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">/</span><span style="color:#000000;"> </span><span style="color:#800080;">$partner</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">boughtCount</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value;
   </span><span style="color:#0000FF;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$partner</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">regions </span><span style="color:#0000FF;">as</span><span style="color:#000000;"> </span><span style="color:#800080;">$region</span><span style="color:#000000;">)
   {
      </span><span style="color:#800080;">$region</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">bought_average_price</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$region</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">bought_price_gbp</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">/</span><span style="color:#000000;"> </span><span style="color:#800080;">$region</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">boughtCount</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value;
   }
}

</span><span style="color:#0000FF;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$regions</span><span style="color:#000000;"> </span><span style="color:#0000FF;">as</span><span style="color:#000000;"> </span><span style="color:#800080;">$region</span><span style="color:#000000;">)
{
   </span><span style="color:#800080;">$region</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">bought_average_price</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$region</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">bought_price_gbp</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">/</span><span style="color:#000000;"> </span><span style="color:#800080;">$region</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">boughtCount</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value;
}
</span><span style="color:#800080;">$totals</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">bought_average_price</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$totals</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">bought_price_gbp</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value </span><span style="color:#000000;">/</span><span style="color:#000000;"> </span><span style="color:#800080;">$totals</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">params[</span><span style="color:#000000;">'</span><span style="color:#000000;">boughtCount</span><span style="color:#000000;">'</span><span style="color:#000000;">]</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">value;

</span><span style="color:#800080;">$report</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">totals </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$totals</span><span style="color:#000000;">;
</span><span style="color:#800080;">$report</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">regions </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$regions</span><span style="color:#000000;">;
</span><span style="color:#800080;">$report</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">partners </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$partners</span><span style="color:#000000;">;
</span><span style="color:#800080;">$this</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">smarty</span><span style="color:#000000;">-&#62;</span><span style="color:#000000;">assign(</span><span style="color:#000000;">'</span><span style="color:#000000;">report</span><span style="color:#000000;">'</span><span style="color:#000000;">,</span><span style="color:#000000;"> </span><span style="color:#800080;">$report</span><span style="color:#000000;">);
</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Шаблон таблицы разбивается на 2 части: общий каркас и отдельная ячейка с данными.<br />
  <br />Дополнительные дивы, с текстом «Tickets bought:», например, нужны для строк в которых хочется разместить несколько параметров. Решил не морочиться и сделать вручную.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:1d393768-8224-40d1-ba73-c3b59422c28a" class="wlWriterEditableSmartContent">
<pre style="background-color:#F1F8FE;overflow:auto;"><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">table </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">='multyLine </span><span style="color:#FF0000;">short'</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
</span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">tr</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
</span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">th</span><span style="color:#0000FF;">&#62;</span><span style="color:#FF0000;">&#38;nbsp;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">th</span><span style="color:#0000FF;">&#62;</span><span style="color:#FF0000;">&#38;nbsp;</span><span style="color:#000000;">
  {foreach from=$report-&#62;regions item=region}
    </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">th </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="chess"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
      {$region-&#62;name}
  {/foreach}
  </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">th </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="chess"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">Totals
{foreach from=$report-&#62;partners item=partner key=kk}
  </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">tr</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">td </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="acenter tdname"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">{$partner-&#62;name}
    </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">td</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
      </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">div </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="param"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
        Tickets bought:
      </span><span style="color:#0000FF;">&#60;/</span><span style="color:#800000;">div</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
{foreach from=$partner-&#62;params item=param}
        {if $param-&#62;show == 1}
          </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">div </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="param"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">{$param-&#62;name}:</span><span style="color:#0000FF;">&#60;/</span><span style="color:#800000;">div</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
        {/if}
      {/foreach}
      {foreach from=$partner-&#62;regions item=region}
        </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">td </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="aright"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
        {include file='сhessCell.tpl' cell=$region}
      {/foreach}
    </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">td </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="aright total"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
      {include file='сhessCell.tpl' cell=$partner}
{/foreach}
</span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">tr</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
</span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">td </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="acenter total"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">Totals
  </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">td </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="total"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">div </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="param"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
      Tickets bought:
    </span><span style="color:#0000FF;">&#60;/</span><span style="color:#800000;">div</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
    {foreach from=$report-&#62;totals-&#62;params item=param}
      {if $param-&#62;show == 1}
        </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">div </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="param"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">{$param-&#62;name}:</span><span style="color:#0000FF;">&#60;/</span><span style="color:#800000;">div</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
      {/if}
    {/foreach}
    {foreach from=$report-&#62;regions item=region}
      </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">td </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="aright total"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
        {include file='сhessCell.tpl' cell=$region}
    {/foreach}
    </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">td </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="aright total"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
      {include file='сhessCell.tpl' cell=$report-&#62;totals}
</span><span style="color:#0000FF;">&#60;/</span><span style="color:#800000;">table</span><span style="color:#0000FF;">&#62;</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Далее текст подключаемого сhessCell.tpl:</p>
<p><div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:f6b433f2-0377-4982-a7e6-f1af164dcdd8" class="wlWriterEditableSmartContent">
<pre style="background-color:#F1F8FE;overflow:auto;"><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">div </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="param"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
  {if $cell-&#62;params.boughtCount-&#62;value != 0 &#124;&#124; $cell-&#62;params.bought_price_gbp-&#62;value != 0}
    {$cell-&#62;params.boughtCount-&#62;value} / </span><span style="color:#FF0000;">&#38;pound;</span><span style="color:#000000;">{$cell-&#62;params.bought_price_gbp-&#62;value&#124;number_format:2:'.':','}
  {else}
    </span><span style="color:#FF0000;">&#38;nbsp;</span><span style="color:#000000;">
  {/if}
</span><span style="color:#0000FF;">&#60;/</span><span style="color:#800000;">div</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
{foreach from=$cell-&#62;params item=param}
  {if $param-&#62;show == 1}
    </span><span style="color:#0000FF;">&#60;</span><span style="color:#800000;">div </span><span style="color:#FF0000;">class</span><span style="color:#0000FF;">="param"</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
      {if $param-&#62;value != 0}
        {if $param-&#62;format == 'double'}
          {$param-&#62;lcs}{$param-&#62;value&#124;number_format:2:'.':','}{$param-&#62;rcs}
        {elseif $param-&#62;format == 'pers'}
          {$param-&#62;lcs}{$param-&#62;value&#124;number_format:2:'.':''}{$param-&#62;rcs}
        {else}
          {$param-&#62;lcs}{$param-&#62;value}{$param-&#62;rcs}
        {/if}
      {else}
        </span><span style="color:#FF0000;">&#38;nbsp;</span><span style="color:#000000;">
      {/if}
    </span><span style="color:#0000FF;">&#60;/</span><span style="color:#800000;">div</span><span style="color:#0000FF;">&#62;</span><span style="color:#000000;">
  {/if}
{/foreach}</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
</p>
<p>Тут, собственно, обходим переданный нам, объект и, заключая в полосатые дивы, в зависимости от формата, ставим значения. Ну и в css прописываем красивые стили для всей этой штуки.</p>
<p><div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:9996d06f-57d3-4a7d-89f8-531145892540" class="wlWriterEditableSmartContent">Technorati Теги: <a href="http://technorati.com/tags/%d1%81%d0%b2%d0%be%d0%b4%d0%bd%d0%b0%d1%8f+%d1%82%d0%b0%d0%b1%d0%bb%d0%b8%d1%86%d0%b0" rel="tag">сводная таблица</a>,<a href="http://technorati.com/tags/%d1%88%d0%b0%d1%85%d0%bc%d0%b0%d1%82%d0%ba%d0%b0" rel="tag">шахматка</a>,<a href="http://technorati.com/tags/php" rel="tag">php</a>,<a href="http://technorati.com/tags/smarty" rel="tag">smarty</a></div></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Smarty]]></title>
<link>http://pxleyes.wordpress.com/2009/11/05/smarty/</link>
<pubDate>Thu, 05 Nov 2009 05:21:18 +0000</pubDate>
<dc:creator>fatabbot</dc:creator>
<guid>http://pxleyes.wordpress.com/2009/11/05/smarty/</guid>
<description><![CDATA[New image in the bathing cat photoshop contest &#8230; Smarty photoshop picture]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>New image in the <a href='http://www.pxleyes.com/photoshop-contest/11403/bathing-cat.html'>bathing cat photoshop contest</a></p>
<p> &#8230; <br /><a href='http://www.pxleyes.com/photoshop-picture/4af260c6729a9/Smarty.html'>Smarty photoshop picture</a></p>
<p><a href='http://www.pxleyes.com/photoshop-picture/4af260c6729a9/Smarty.html'><img src='http://www.pxleyes.com/images/contests/bathing cat/fullsize/bathing cat_4af260c6729a9.jpg' alt='Smarty' /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Ceva pute 1]]></title>
<link>http://krutz.wordpress.com/2009/11/04/ceva-pute-1/</link>
<pubDate>Wed, 04 Nov 2009 20:10:55 +0000</pubDate>
<dc:creator>krutz</dc:creator>
<guid>http://krutz.wordpress.com/2009/11/04/ceva-pute-1/</guid>
<description><![CDATA[-Ah , pute ceva ! zise el adormit pe jumătate. -Mda.. asta e ! spuse ea dezorientată. Nuş&#8217; ce-]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>-Ah , pute ceva ! zise el adormit pe jumătate.<br />
-Mda.. asta e ! spuse ea dezorientată. Nuş&#8217; ce-i . Somn uşor.<br />
-Îmi place Oana Zăvoranu , replică el fără discernământ.<br />
-Cum ?! &#8216;te-n gât. De-ăsta îmi eşti , nu ?<br />
-Ce , nu , da , adică , ştii.. Era să-ţi atrag atenţia . Ceva pute..<br />
-Dacă-ţi zic că nu ştiu de unde e.. deschide geamul ! Dar dacă îl deschizi &#8216;tre să mă fuţi iar că se face frig . Ok?<br />
-Bine.</p>
<p>Cei doi au trecut la fapte. După 2 minute :</p>
<p>-Wow . Dar tot îmi e frig . Hai iar ! zise ea entuziastă.<br />
-Zzzz.. (dormea).. ce ?! Ştii că te iubesc , Alina , dar nu mai pot . Nu alt gangbang.<br />
-Şi asta tot să-mi atragi atenţia , nesimţitule ? Numai la Alina , fosta ta prietenă , te gândeşti ! se agită ea .<br />
-Făcea o chestie cu limba şi sărea în penis cum tu nici nu ai visa , mare greşeală că am lăsat-o.. a vrut şi ea 3 negrii deodată . Ce dacă ! Oameni suntem  ! zise el aproape în gând. Nu dragă , ceva pute ! Asta am zis.. cred că ţi s-a părut .<br />
-Da , probabil. Ţi-am zis că nu ştiu ce pute .<br />
-Şi asta o ştiu , dar parcă după ce am terminat de făcut amor , s-a înteţit mirosul .<br />
-Ţi se pare , dragă .<br />
-Cred . Nu ştii totuşi de la ce o fi ?<br />
-Am mai zis odată.. habar n-am ! De ce mă tot întrebi ?<br />
-Aşa..<br />
-Hai , zi ! Că tot nu mai pot dormi . Vrei să insinuezi ceva ?<br />
-Nu . Niciodată !</p>
<p>După 3 minute :</p>
<p>-Bine , recunosc ! zise bărbatul . Am fost la breakdance .<br />
-Normal . Eşti dansator .<br />
-Da.. dar acolo..<br />
-Aşa.<br />
-Am cam băut.<br />
-Mereu bei.<br />
-Ştiu. Stai aşa . Apoi am fost cu băieţii în club.<br />
-Sper că nu m-ai înşelat .<br />
-Nu.. era închis . La ora 15:00..<br />
-Adică dacă puteai mă înşelai ?<br />
-Nu.<br />
-Bine.<br />
-Şi apoi ne-am dus să mâncăm ceva. După care m-am căcat .<br />
-Ai căcat uscat la fund ?<br />
-Nu. M-am şters bine .</p>
<p>Va urma . Mâine vine continuarea . &#8220;:)&#8221;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Idee]]></title>
<link>http://krutz.wordpress.com/2009/11/03/idee/</link>
<pubDate>Tue, 03 Nov 2009 18:16:46 +0000</pubDate>
<dc:creator>krutz</dc:creator>
<guid>http://krutz.wordpress.com/2009/11/03/idee/</guid>
<description><![CDATA[Încep prin a vă dedica pula mea . E o metaforă . Rumegaţi-o . Vroiam să scriu ceva interesant , dar ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Încep prin a vă dedica pula mea . E o metaforă . Rumegaţi-o .<br />
Vroiam să scriu ceva interesant , dar am dormit până acum şi nu cred că vrea careva să ştie dacă am mâncat brânză cu ceapă sau icre negre , deci nici asta nu merge .<br />
Dacă vă zic că vreau să îmi fac o clismă , se pune ? Mi se pare că nu alunecă destul de bine căcatul când mă cac . Poate am mâncat prea multe coji de roşii şi s-au depus în anus ca lipitorile pe penis când îl scoatem afară să ne pişăm . Mai ales în Marea Neagră . Nicio aluzie .<br />
Nici asta nu e interesant . Vreţi să ştiţi de sex-apel ? N-am . Poate că sunt dotat pe mai multe părţi , dar asta nu contează . Că dacă mă duce mintea numai la pula mea , asta, cultura mea , parcă aş fi Hortensia Papadat , nu interesează pe nimeni .<br />
Dar ce vă interesează pe voi ? Cum mă cac eu ? Asta va veni în alte posturi , după ce voi avea o diaree şi mă taie o idee de filosof . O să fac şi un imn al căcării , mai frumos decât cel anterior . Parcă Mărgineanu a scris aşa ceva . La ce pula mea ma interesează pe mine căcatul ? Cred că din cauza faptului că mi-am adus aminte de un mare clasic în viaţă , ce zicea : &#8220;Băi cacatule , eu te mănânc pe tine !&#8221;<br />
Acum luaţi aminte şi , dacă vă ştergeţi la cur cu şerveţele parfumate , să nu fie de mentă !</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Apăsând..]]></title>
<link>http://krutz.wordpress.com/2009/11/01/apasand/</link>
<pubDate>Sun, 01 Nov 2009 18:57:08 +0000</pubDate>
<dc:creator>krutz</dc:creator>
<guid>http://krutz.wordpress.com/2009/11/01/apasand/</guid>
<description><![CDATA[-Ohhh.. nu aşa ! exclamă Maria supărată. Nu te pricepi deloc . -Ţşşş.. făcu Marian . Cine ştie? Mai ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>-Ohhh.. nu aşa ! exclamă Maria supărată. Nu te pricepi deloc .<br />
-Ţşşş.. făcu Marian . Cine ştie? Mai încerc..<br />
-Ah, ah ! Aşa , acolo , acolo !<br />
-Bun , simt şi eu că e bine . Încercăm şi altceva ?<br />
-Da , am auzit de ceva frumos !</p>
<p>(Urmă o pauză de câteva secunde)</p>
<p>-Aşa , aşa ! Mai tare ! Ştiu că poţi ! zise ea fascinată.<br />
-Ufff.. ce greu e , remarcă el.<br />
-Eu te susţin !<br />
-Da-da , uşor de spus .<br />
-Hai , inspiră expiră . Daaaa.. aşaaaa !<br />
-Deja mă cam doare .<br />
-Hai , apasă , apasă. Mai ai puţin !<br />
-Ştiu , simt vibraţiile.<br />
-Am citit eu undeva că când expiri intens te calmezi . Încearcă aşa ! Să mai ziceţi că sunt proastă şi nu citesc .<br />
-Da ,dragă , ştiu că eşti deşteaptă . Dar fii alături de mine măcar acum .<br />
-Ok . La prestaţia asta te întreci pe tine însuţi . Frumosul meu ! (aici  Maria făcu cu mâinile un semn în formă de inimă . cam pocit , dar era inimă) : Te iubesc pentru asta .<br />
-Şi eu . Sunt aproape gata !</p>
<p>Ambii gemeau de nu mai puteau . Maria a scos un ţipăt strident . Ceva lipicios şi incolor se lipise în părul ei . Venise prin fereastră . Copilul din vecini se strecurase pe balcon şi se masturba cu gândul la ce făceau ei.</p>
<p>-Aaaaaa, făcu Maria . Ce cauţi aici , porcule ?<br />
-Vă aud zilnic ţipetele de la mine din apartament , doamnă , zise el supărat că a fost prins . Mă excită.<br />
-Ce te excită mă ? spuse Marian, vizibil iritat.<br />
-Dv şi dânsa . Când faceţi sex.<br />
-Mă , tu eşti prost ? au spus cei 2 parteneri .<br />
-Nu cred , răspunse copilul pe un ton inocent . De ce ?<br />
-Cum de ce ? râse isteric Marian.<br />
-De trei zile ne chinuim să schimbăm postul TV. Nu merge decât butonul de pornire de la tv . Telecomanda e tocită .<br />
-A..</p>
<p>Spiritele s-au calmat . Copilul a fost bătut cu nuiaua la cur de mă-sa , iar cei doi au promis că nu vor mai excita copiii.<br />
Final fericit , nu ?</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
