Download Latest Version jquery.cookie.zip (3.5 kB)
Email in envelope

Get an email when there's a new version of taobao.crm

Name Modified Size InfoDownloads / Week
Parent folder
media 2013-01-12
printWidget.php 2013-01-12 5.2 kB
readme.txt 2013-01-12 3.0 kB
Totals: 3 Items   8.2 kB 0
printout

Produces print output for selected html elements on a page

This extension produces print output for selected html elements on a page with desired css styles, multiple selection is allowed

=============================
Copyright (c) 2009 by Vladimir Kovarsky, Algo-rithm
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of Vladimir Kovarsky nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=============================

###Requirements
* Yii 1.0.5

###Installation
* Copy all the 'print' catalogue under /protected/extensions

###Usage
* Add button(s) to your view page (several times, if needed - as many as you wish!):

[php]

       <?php $this->widget('application.extensions.print.printWidget', array(
                       'property1'=>'value1',
                       'property2'=>'value2')); 
        ?>

[php]

where possible properties with their default values are:

* 'cssFile' => 'print.css' string css file name. It's tuned for 'printedElement' => '.dataGrid' by default. In case you change 'printedElement', you MUST edit this file, and the content of this file is absolutely up to you!
* 'coverElement' => '#page' string css selector (understanding by jQuery $()-function) of the element, which covers all inside the 'body', it's a 'div' with id='page' by default
* 'printedElement' => '.dataGrid' string css selector (understanding by jQuery $()-function) of the element to be printed out, by default it's a 'table' with class='dataGrid' (selection result may be not single!)
* 'title' => '' string the title of the printed page
* 'htmlOptions' => array() array htmlOptions array - standard for Yii
Source: readme.txt, updated 2013-01-12