Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Place This code right after the <body> tag
- //Make sure that .noprint { display: none; } is in your @media print css
- //Now you can go through your template and do if-then statements for the $receiptstyle variable
- $current_url = "";
- foreach($_GET as $key => $val) {
- if ($key == "receiptstyle") continue;
- if ($current_url) $current_url .= "&";
- $current_url .= $key."=".urlencode($val);
- }
- $current_url = "edit.php?".$current_url;
- $receiptstyle = isset($_GET['receiptstyle']) ? (int)$_GET['receiptstyle'] : 1;
- ?>
- <ul class="noprint">
- <li><a href="<?php echo $current_url . "&receiptstyle=1"; ?>">Standard Recipt</a></li>
- <li><a href="<?php echo $current_url . "&receiptstyle=2"; ?>">Gift Recipt</a></li>
- <li><a href="<?php echo $current_url . "&receiptstyle=3"; ?>">Pick List</a></li>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement