Tambahan Menu untuk cetak terbalik

Write anything here about Membership module

Moderators: wynerst, buitenzorg812, purwoko, sutriadi, ido, Dicarve, ridorido

Post Reply
User avatar
heru_subekti
Posts: 58
Joined: 04 Oct 2012, 00:02
Location: Trenggalek, Jawa Timur
Contact:

Tambahan Menu untuk cetak terbalik

Post by heru_subekti » 06 Dec 2012, 09:22

menu ini digunakan untuk mencetak terbalik (yang menggunakan media PVC)
Langkah awal :
1.buka .../admin/modules/membership/member_card_generator.php
2.sisipkan script css

Code: Select all

$html_str .= '.mirror{display:block;-moz-transform: matrix(-1, 0, 0, 1, 0, 0);-webkit-transform: matrix(-1, 0, 0, 1, 0, 0);-o-transform:matrix(-1, 0, 0, 1, 0, 0);	    }'."\n";
sebelum ->

Code: Select all

  $html_str .= '</style>'."\n";
3. ubah

Code: Select all

$html_str .= '<body>'."\n";
menjadi

Code: Select all

 if (!$_GET[mirror])	 
{ $html_str .= '<body>'."\n"; }
    else                              
 { $html_str .= '<body class="mirror">'."\n"; }
4. Tambahkan link setelah

Code: Select all

<a target="blindSubmit" href="<?php echo MODULES_WEB_ROOT_DIR; ?>membership/member_card_generator.php?action=print" class="notAJAX headerText2"><?php echo __('Print Member Cards for Selected Data'); ?></a>

dengan

Code: Select all

<a target="blindSubmit" href="<?php echo MODULES_WEB_ROOT_DIR; ?>membership/member_card_generator.php?action=print&mirror=1" class="notAJAX headerText2"><?php echo __('Print Mirror Member Cards for Selected Data'); ?></a>
Attachments
mirror.jpg
preview
mirror.jpg (214.97 KiB) Viewed 4382 times

User avatar
buitenzorg812
Posts: 836
Joined: 20 Sep 2011, 14:18
Location: Jakarta, Indonesia
Contact:

Re: Tambahan Menu untuk cetak terbalik

Post by buitenzorg812 » 20 Dec 2012, 18:28

terima kasih banyak mas heru :).

Post Reply