$default_value['a2'] = ''; $default_value['a3'] = ''; $filetype = isset($_POST['filetype']) ? $_POST['filetype'] : $default_value['filetype']; $dpi = isset($_POST['dpi']) ? $_POST['dpi'] : $default_value['dpi']; $scale = intval(isset($_POST['scale']) ? $_POST['scale'] : $default_value['scale']); $rotation = intval(isset($_POST['rotation']) ? $_POST['rotation'] : $default_value['rotation']); $font_family = isset($_POST['font_family']) ? $_POST['font_family'] : $default_value['font_family']; $font_size = intval(isset($_POST['font_size']) ? $_POST['font_size'] : $default_value['font_size']); $text = isset($_POST['text']) ? $_POST['text'] : $default_value['text']; registerImageKey('filetype', $filetype); registerImageKey('dpi', $dpi); registerImageKey('scale', $scale); registerImageKey('rotation', $rotation); registerImageKey('font_family', $font_family); registerImageKey('font_size', $font_size); registerImageKey('text', stripslashes($text)); // Text in form is different than text sent to the image $text = convertText($text); ?> <?php php; ?> <br><br><br> <div class="col-md-8 col-md-offset-2">
<?php include "../vendor/autoload.php"; define('IN_CB', true); include 'include/header.php'; registerImageKey('start', 'A'); registerImageKey('code', 'BCGcode128'); include 'include/footer.php';
$filetype = isset($_POST['filetype']) ? $_POST['filetype'] : $default_value['filetype']; $dpi = isset($_POST['dpi']) ? $_POST['dpi'] : $default_value['dpi']; $thickness = intval(isset($_POST['thickness']) ? $_POST['thickness'] : $default_value['thickness']); $scale = intval(isset($_POST['scale']) ? $_POST['scale'] : $default_value['scale']); $rotation = intval(isset($_POST['rotation']) ? $_POST['rotation'] : $default_value['rotation']); $font_family = isset($_POST['font_family']) ? $_POST['font_family'] : $default_value['font_family']; $font_size = intval(isset($_POST['font_size']) ? $_POST['font_size'] : $default_value['font_size']); $text = isset($_POST['text']) ? $_POST['text'] : $default_value['text']; registerImageKey('filetype', $filetype); registerImageKey('dpi', $dpi); registerImageKey('thickness', $thickness); registerImageKey('scale', $scale); registerImageKey('rotation', $rotation); registerImageKey('font_family', $font_family); registerImageKey('font_size', $font_size); registerImageKey('text', $text); ?> <div class="header"> <header> <img class="logo" src="logo.png" alt="Barcode Generator" /> <nav> <label for="type">Symbology</label> <?php echo getSelectHtml('type', $filename, $types); ?> <a class="info explanation" href="#"><img src="info.gif" alt="Explanation" /></a> </nav> </header> </div>
<?php define('IN_CB', true); include 'header.php'; registerImageKey('code', 'BCGpostnet'); $characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); ?> <div id="validCharacters"> <h3>Valid Characters</h3> <?php foreach ($characters as $character) { echo getButton($character); } ?> </div> <div id="explanation"> <h3>Explanation</h3> <ul> <li>Used to encode enveloppe in USA.</li> <li> You can provide <br />5 digits (ZIP Code) <br />9 digits (ZIP+4 code) <br />11 digits (ZIP+4 code+2 digits) <br />(Those 2 digits are taken from your address. If your address is 6453, the code will be 53.) </li> </ul> </div>
<?php if (!defined('IN_CB')) { die('You are not allowed to access to this page.'); } $default_value['thickness'] = 30; $thickness = intval(isset($_POST['thickness']) ? $_POST['thickness'] : $default_value['thickness']); registerImageKey('thickness', $thickness); ?> <tr> <td><label for="thickness">Thickness</label></td> <td><?php echo getInputTextHtml('thickness', $thickness, array('type' => 'number', 'min' => 20, 'max' => 90, 'step' => 5, 'required' => 'required')); ?> </td> </tr>
<?php define('IN_CB', true); include 'header.php'; $default_value['setLabel'] = ''; $setLabel = isset($_POST['setLabel']) ? $_POST['setLabel'] : $default_value['setLabel']; registerImageKey('setLabel', $setLabel); registerImageKey('code', 'BCGothercode'); $characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); ?> <ul id="specificOptions"> <li class="option"> <div class="title"> <label for="setLabel">Label</label> </div> <div class="value"> <?php echo getInputTextHtml('setLabel', $setLabel); ?> </div> </li> </ul> <div id="validCharacters"> <h3>Valid Characters</h3> <?php foreach ($characters as $character) { echo getButton($character); } ?>
<?php define('IN_CB', true); include 'header.php'; registerImageKey('code', 'BCGupca'); $characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); ?> <div id="validCharacters"> <h3>Valid Characters</h3> <?php foreach ($characters as $character) { echo getButton($character); } ?> </div> <div id="explanation"> <h3>Explanation</h3> <ul> <li>Encoded as EAN-13.</li> <li>Most common and well-known in the USA.</li> <li>There is 1 number system (NS), 5 manufacturer code, 5 product code and 1 check digit.</li> <li> NS Description : <br />0 = Regular UPC Code <br />2 = Weight Items <br />3 = Drug/Health Items <br />4 = In-Store Use on Non-Food Items <br />5 = Coupons <br />7 = Regular UPC Code
<?php define('IN_CB', true); include 'include/header.php'; registerImageKey('code', 'BCGcode93'); $vals = array(); for ($i = 0; $i <= 127; $i++) { $vals[] = '%' . sprintf('%02X', $i); } $characters = array('NUL', 'SOH', 'STX', 'ETX', 'EOT', 'ENQ', 'ACK', 'BEL', 'BS', 'TAB', 'LF', 'VT', 'FF', 'CR', 'SO', 'SI', 'DLE', 'DC1', 'DC2', 'DC3', 'DC4', 'NAK', 'SYN', 'ETB', 'CAN', 'EM', 'SUB', 'ESC', 'FS', 'GS', 'RS', 'US', ' ', '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', 'DEL'); ?> <div id="validCharacters"> <h3>Valid Characters</h3> <?php $c = count($characters); for ($i = 0; $i < $c; $i++) { echo getButton($characters[$i], $vals[$i]); } ?> </div> <div id="explanation"> <h3>Explanation</h3> <ul> <li>Known also as USS Code 93.</li> <li>Code 93 was designed to provide a higher density and data security enhancement to Code 39.</li> <li>Used primarily by Canadian postal office to encode supplementary delivery information.</li> <li>Similar to Code 39, Code 93 has the same 43 characters plus 5 special ones to encode the ASCII 0 to 127.</li> <li>This symbology composed of 2 check digits ("C" and "K").</li> <li>Your browser may not be able to write the special characters (NUL, SOH, etc.) but you can write them with the code.</li>
<?php define('IN_CB', true); include 'include/header.php'; $default_value['start'] = 'C'; $start = isset($_POST['start']) ? $_POST['start'] : $default_value['start']; registerImageKey('start', $start); $identifiers = array('' => 'Select an identifier', '00' => 'Serial Shipping Container Code (SSCC-18)', '01' => 'Shipping Container Code (SSC)', '02' => 'Number of containers', '10' => 'Batch Number', '11' => 'Production Date', '12' => 'Due date', '13' => 'Packaging Date', '15' => 'Sell by Date (Quality Control)', '17' => 'Expiration Date', '20' => 'Product Variant', '21' => 'Serial Number', '240' => 'Additional Product Identification', '241' => 'Customer part number', '250' => 'Second Serial Number', '251' => 'Reference to source entity', '253' => 'Global Document Type Identifier', '30' => 'Quantity Each', '310y' => 'Product Net Weight in kg', '311y' => 'Product Length/1st Dimension, in meters', '312y' => 'Product Width/Diameter/2nd Dimension, in meters', '313y' => 'Product Depth/Thickness/3rd Dimension, in meters', '314y' => 'Product Area, in square meters', '315y' => 'Product Volume, in liters', '316y' => 'product Volume, in cubic meters', '320y' => 'Product Net Weight, in pounds', '321y' => 'Product Length/1st Dimension, in inches', '322y' => 'Product Length/1st Dimension, in feet', '323y' => 'Product Length/1st Dimension, in yards', '324y' => 'Product Width/Diameter/2nd Dimension, in inches', '325y' => 'Product Width/Diameter/2nd Dimension, in feet', '326y' => 'Product Width/Diameter/2nd Dimension, in yards', '327y' => 'Product Depth/Thickness/3rd Dimension, in inches', '328y' => 'Product Depth/Thickness/3rd Dimension, in feet', '329y' => 'Product Depth/Thickness/3rd Dimension, in yards', '330y' => 'Container Gross Weight (Kg)', '331y' => 'Container Length/1st Dimension (Meters)', '332y' => 'Container Width/Diameter/2nd Dimension (Meters)', '333y' => 'Container Depth/Thickness/3rd Dimension (Meters)', '334y' => 'Container Area (Square Meters)', '335y' => 'Container Gross Volume (Liters)', '336y' => 'Container Gross Volume (Cubic Meters)', '337y' => 'Kilograms per square meter', '340y' => 'Container Gross Weight (Pounds)', '341y' => 'Container Length/1st Dimension, in inches', '342y' => 'Container Length/1st Dimension, in feet', '343y' => 'Container Length/1st Dimension in, in yards', '344y' => 'Container Width/Diameter/2nd Dimension, in inches', '345y' => 'Container Width/Diameter/2nd Dimension, in feet', '346y' => 'Container Width/Diameter/2nd Dimension, in yards', '347y' => 'Container Depth/Thickness/Height/3rd Dimension, in inches', '348y' => 'Container Depth/Thickness/Height/3rd Dimension, in feet', '349y' => 'Container Depth/Thickness/Height/3rd Dimension, in yards', '350y' => 'Product Area (Square Inches)', '351y' => 'Product Area (Square Feet)', '352y' => 'Product Area (Square Yards)', '353y' => 'Container Area (Square Inches)', '354y' => 'Container Area (Square Feet)', '355y' => 'Container Area (Square Yards)', '356y' => 'Net Weight (Troy Ounces)', '357y' => 'Kilograms per square meter', '360y' => 'Product Volume (Quarts)', '361y' => 'Product Volume (Gallons)', '362y' => 'Container Gross Volume (Quarts)', '363y' => 'Container Gross Volume (Gallons)', '364y' => 'Product Volume (Cubic Inches)', '365y' => 'Product Volume (Cubic Feet)', '366y' => 'Product Volume (Cubic Yards)', '367y' => 'Container Gross Volume (Cubic Inches)', '368y' => 'Container Gross Volume (Cubic Feet)', '369y' => 'Container Gross Volume (Cubic Yards)', '37' => 'Number of Units Contained', '390y' => 'Amount payable-single monetary area', '391y' => 'Amount payable with ISO currency code', '392y' => 'Amount payable for a Variable Measure Trade Item single monetary unit', '393y' => 'Amount payable for a Variable Measure Trade Item - with ISO currency code', '400' => 'Customer Purchase Order Number', '401' => 'Consignment number', '402' => 'Shipment Identification Number', '403' => 'Routing code', '410' => 'Ship To/Deliver To Location Code (EAN13 or DUNS code)', '411' => 'Bill To/Invoice Location Code (EAN13 or DUNS code)', '412' => 'Purchase From Location Code (EAN13 or DUNS code)', '413' => 'Ship for - deliver for - forward to EAN.UCC Global Location Number', '414' => 'Identification of a physical location EAN.UCC Global Location Number', '415' => 'EAN.UCC Global Location Number of the invoicing party', '420' => 'Ship To/Deliver To Postal Code (Single Postal Authority)', '421' => 'Ship To/Deliver To Postal Code (Multiple Postal Authority)', '422' => 'Country of origin of a trade item', '8001' => 'Roll Products - Width/Length/Core Diameter', '8002' => 'Electronic Serial Number (ESN) for Cellular Phone', '8003' => 'UPC/EAN Number and Serial Number of Returnable Asset', '8004' => 'UPC/EAN Serial Identification', '8005' => 'Price per Unit of Measure', '8006' => 'Identification of the component of a trade item', '8007' => 'International Bank Account Number', '8018' => 'EAN.UCC Global Service Relation Number', '8020' => 'Payment Slip Reference Number', '8100' => 'Coupon Extended Code: Number System and Offer', '8101' => '8101 Coupon Extended Code: Number System, Offer, End of Offer', '8102' => 'Coupon Extended Code: Number System preceded by 0', '90' => 'Mutually Agreed Between Trading Partners', '91' => 'Internal Company Codes', '92' => 'Internal Company Codes', '93' => 'Internal Company Codes', '94' => 'Internal Company Codes', '95' => 'Internal Company Codes', '96' => 'Internal Company Codes', '97' => 'Internal Company Codes', '98' => 'Internal Company Codes', '99' => 'Internal Company Codes'); foreach ($identifiers as $key => $value) { if ($key) { $identifiers[$key] = $key . ' - ' . $value; } } registerImageKey('code', 'BCGgs1128'); $vals = array(); for ($i = 0; $i <= 127; $i++) { $vals[] = '%' . sprintf('%02X', $i); } $characters = array('NUL', 'SOH', 'STX', 'ETX', 'EOT', 'ENQ', 'ACK', 'BEL', 'BS', 'TAB', 'LF', 'VT', 'FF', 'CR', 'SO', 'SI', 'DLE', 'DC1', 'DC2', 'DC3', 'DC4', 'NAK', 'SYN', 'ETB', 'CAN', 'EM', 'SUB', 'ESC', 'FS', 'GS', 'RS', 'US', ' ', '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', 'DEL'); ?> <ul id="specificOptions"> <li class="option"> <div class="title"> <label for="start">Starts with</label> </div> <div class="value"> <?php echo getSelectHtml('start', $start, array('NULL' => 'Auto', 'A' => 'Code 128-A', 'B' => 'Code 128-B', 'C' => 'Code 128-C')); ?> </div>
<?php define('IN_CB', true); include 'include/header.php'; $default_value['checksum'] = ''; $checksum = isset($_POST['checksum']) ? $_POST['checksum'] : $default_value['checksum']; registerImageKey('checksum', $checksum); registerImageKey('code', 'BCGs25'); $characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); ?> <ul id="specificOptions"> <li class="option"> <div class="title"> <label for="checksum">Checksum</label> </div> <div class="value"> <?php echo getCheckboxHtml('checksum', $checksum, array('value' => 1)); ?> </div> </li> </ul> <div id="validCharacters"> <h3>Valid Characters</h3> <?php foreach ($characters as $character) { echo getButton($character); } ?>
define('IN_CB', true); include 'include/header.php'; $default_value['barcodeIdentifier'] = ''; $barcodeIdentifier = isset($_POST['barcodeIdentifier']) ? $_POST['barcodeIdentifier'] : $default_value['barcodeIdentifier']; registerImageKey('barcodeIdentifier', $barcodeIdentifier); $default_value['serviceType'] = ''; $serviceType = isset($_POST['serviceType']) ? $_POST['serviceType'] : $default_value['serviceType']; registerImageKey('serviceType', $serviceType); $default_value['mailerIdentifier'] = ''; $mailerIdentifier = isset($_POST['mailerIdentifier']) ? $_POST['mailerIdentifier'] : $default_value['mailerIdentifier']; registerImageKey('mailerIdentifier', $mailerIdentifier); $default_value['serialNumber'] = ''; $serialNumber = isset($_POST['serialNumber']) ? $_POST['serialNumber'] : $default_value['serialNumber']; registerImageKey('serialNumber', $serialNumber); registerImageKey('code', 'BCGintelligentmail'); $characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); ?> <ul id="specificOptions"> <li class="option"> <div class="title"> <label for="barcodeIdentifier">Barcode Identifier</label> </div> <div class="value"> <?php echo getInputTextHtml('barcodeIdentifier', $barcodeIdentifier, array('type' => 'text', 'maxlength' => 2, 'required' => 'required')); ?> </div> </li> <li class="option">
<?php define('IN_CB', true); include 'header.php'; registerImageKey('code', 'BCGisbn'); $characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); ?> <div id="validCharacters"> <h3>Valid Characters</h3> <?php foreach ($characters as $character) { echo getButton($character); } ?> </div> <div id="explanation"> <h3>Explanation</h3> <ul> <li>ISBN stands for International Standard Book Number.</li> <li>ISBN type is based on EAN-13.</li> <li>Previously, all ISBN were in EAN-10 format. EAN-13 uses the same encoding but may contain different data in the ISBN number.</li> <li>Composed by a GS1 prefix (for ISBN-13), a group identifier, a publisher code, an item number and a check digit.</li> </ul> </div> <?php include 'footer.php';
<?php define('IN_CB', true); include 'header.php'; registerImageKey('code', 'BCGcodabar'); $characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '$', ':', '/', '.', '+', 'A', 'B', 'C', 'D'); ?> <div id="validCharacters"> <h3>Valid Characters</h3> <?php foreach ($characters as $character) { echo getButton($character); } ?> </div> <div id="explanation"> <h3>Explanation</h3> <ul> <li>Known also as Ames Code, NW-7, Monarch, 2 of 7, Rationalized Codabar.</li> <li>Codabar was developed in 1972 by Pitney Bowes, Inc.</li> <li>This symbology is useful to encode digital information. It is a self-checking code, there is no check digit.</li> <li>Codabar is used by blood bank, photo labs, library, FedEx...</li> <li>Coding can be with an unspecified length composed by numbers, plus and minus sign, colon, slash, dot, dollar.</li> </ul> </div> <?php include 'footer.php';
<?php define('IN_CB', true); include 'include/header.php'; registerImageKey('code', 'BCGean8'); $characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); ?> <div id="validCharacters"> <h3>Valid Characters</h3> <?php foreach ($characters as $character) { echo getButton($character); } ?> </div> <div id="explanation"> <h3>Explanation</h3> <ul> <li>EAN-8 is a short version of EAN-13.</li> <li>Composed by 7 digits and 1 check digit.</li> <li>There is no conversion available between EAN-8 and EAN-13.</li> </ul> </div> <?php include 'include/footer.php';
<?php define('IN_CB', true); include 'include/header.php'; $default_value['checksum'] = ''; $checksum = isset($_POST['checksum']) ? $_POST['checksum'] : $default_value['checksum']; registerImageKey('checksum', $checksum); registerImageKey('code', 'BCGcode39extended'); $vals = array(); for ($i = 0; $i <= 127; $i++) { $vals[] = '%' . sprintf('%02X', $i); } $characters = array('NUL', 'SOH', 'STX', 'ETX', 'EOT', 'ENQ', 'ACK', 'BEL', 'BS', 'TAB', 'LF', 'VT', 'FF', 'CR', 'SO', 'SI', 'DLE', 'DC1', 'DC2', 'DC3', 'DC4', 'NAK', 'SYN', 'ETB', 'CAN', 'EM', 'SUB', 'ESC', 'FS', 'GS', 'RS', 'US', ' ', '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', 'DEL'); ?> <ul id="specificOptions"> <li class="option"> <div class="title"> <label for="checksum">Checksum</label> </div> <div class="value"> <?php echo getCheckboxHtml('checksum', $checksum, array('value' => 1)); ?> </div> </li> </ul> <div id="validCharacters"> <h3>Valid Characters</h3> <?php
<?php define('IN_CB', true); include 'header.php'; registerImageKey('code', 'BCGupcext2'); $characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); ?> <div id="validCharacters"> <h3>Valid Characters</h3> <?php foreach ($characters as $character) { echo getButton($character); } ?> </div> <div id="explanation"> <h3>Explanation</h3> <ul> <li>Extension for UPC-A, UPC-E, EAN-13 and EAN-8.</li> <li>Used for encode additional information for newspaper, books...</li> </ul> </div> <?php include 'footer.php';
function imprimirTicket() { //validacion para identificar tipo de usuario y desglosar info $user = $this->session->userdata('user'); $op['info'] = array(); if ($user['uid'] != '') { $tipo = 'info_' . $user['tipoUsuario']; $op['info'] = $this->data_model->{$tipo}($user['uid']); } $s_trans_referencia = $this->session->userdata('trans_referencia'); $s_trans_error = $this->session->userdata('trans_error'); $s_trans_tipo = $this->session->userdata('trans_tipo'); $s_trans_msg = $this->session->userdata('trans_msg'); $s_trans_url = $this->session->userdata('trans_url'); $s_trans_id = $this->session->userdata('trans_id'); $s_trans_respuesta = $this->session->userdata('s_trans_respuesta'); $creacionDate = $this->session->userdata('s_creacionDate'); $info2 = $this->carrito_model->infoComprador($s_trans_referencia); $montoPagar = 0; $nomCliente = ''; $emailCliente = ''; if ($info2) { $montoPagar = $info2[0]->total . ' MXN'; $nomCliente = $info2[0]->alias . ' ' . $info2[0]->name; $emailCliente = $info2[0]->email; } $valoresR = array(); if ($s_trans_respuesta != "") { $valoresR = explode("#", $s_trans_respuesta); } $fechaCreacion = ""; $horaCreacion = ""; $fechaExp = ""; $horaExp = ""; $barCode = ""; $htmlPayu = ''; $text = ''; if (count($valoresR) > 0) { $fecha_crea = explode("T", $creacionDate); $fecha_exp = explode("T", $valoresR[1]); $fechaCreacion = $fecha_crea[0]; $horaCreacion = $fecha_crea[1]; $fechaExp = $fecha_exp[0]; $horaExp = $fecha_exp[1]; $barCode = $valoresR[2]; } $op['trans_referencia'] = $s_trans_referencia; $op['trans_error'] = $s_trans_error; $op['trans_tipo'] = $s_trans_tipo; $op['trans_msg'] = $s_trans_msg; $op['trans_url'] = $s_trans_url; $op['s_trans_respuesta'] = $s_trans_respuesta; if ($s_trans_error == 0) { switch ($s_trans_tipo) { case 'OXXO': $imgSuc = '<img id="img_oxxo" style="float: left; width: 255px; margin-left: 80px;" src="http://www.plazadelatecnologia.com/assets/graphics/payu_oxxo.png" alt="oxxo" />'; break; case '7ELEVEN': $imgSuc = '<img id="eleven" style="float: left; margin-left: 80px; width: 185px; padding: 0px 20px; margin-bottom: 20px;" src="http://www.plazadelatecnologia.com/assets/graphics/payu_7eleven.png" alt="7-eleven" />'; break; } $htmlPayu .= '<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body> <table width="700" align="center" border="0" cellpadding="2" cellspacing="0" style="border:3px solid #ccc"> <tr><td> <p> Apreciable Cliente: ' . $nomCliente . ' <br/><br/> Imprime y presenta este comprobante en cualquier tienda ' . $s_trans_tipo . ' del país para realizar el pago por tu compra. <strong>Indica al cajero de la tienda el valor exacto</strong> que figura en el presente comprobante. De lo contrario es probable que no podamos validar correctamente la compra.<br/><br/> </p> </td></tr> <tr><td> <table width="700" border="0" cellpadding="2" cellspacing="0"> <tr><td width="290" valign="top">' . $imgSuc . '</td> <td width="410"> <table width="400" border="0" cellpadding="2" cellspacing="0" style="float: left;"> <tr> <td colspan="4" bgcolor="#666666" style="color:#FFF; text-align: center;">DATOS PARA REALIZAR EL PAGO</td> </tr> <tr> <td width="130" bgcolor="#CCCCCC">Número de pago:</td> <td colspan="3">' . $s_trans_id . '</td> </tr> <tr> <td bgcolor="#CCCCCC">Valor:</td> <td colspan="3">' . $montoPagar . '</td> </tr> <tr> <td bgcolor="#CCCCCC">Nombre Comercio:</td> <td colspan="3">PASAJE DE ELECTRONICA EL SALVADOR SA DE CV</td> </tr> <tr> <td bgcolor="#CCCCCC">Fecha de creación:</td> <td width="79">' . $fechaCreacion . '</td> <td width="144" bgcolor="#CCCCCC">Hora:</td> <td width="79">' . $horaCreacion . '</td> </tr> <tr> <td bgcolor="#CCCCCC">Fecha de expiración:</td> <td>' . $fechaExp . '</td> <td bgcolor="#CCCCCC">Hora:</td> <td>' . $horaExp . '</td> </tr> </table> </td></tr></table> </td></tr> <tr><td> <p> ¡TEN EN CUENTA! <br/> <br/> 1) El presente recibo solo es válido para el pago que estás efectuando y se verá reflejado en la cuenta del comercio 24 horas después de haberse realizado. <br/><br/> 2) Si tienes dudas sobre tu compra comunicate con PASAJE DE ELECTRONICA EL SALVADOR SA DE CV, es responsababilidad del Comercio aclarar cualquier reclamo sobre la compra del producto o servicio que estás pagando. <br/><br/> 3) Una vez recibido tu pago en ' . $s_trans_tipo . ', PayU informará al comercio PASAJE DE ELECTRONICA EL SALVADOR SA DE CV, el cual procederá a hacer entregar del producto/servicio que estás adquieriendo. <br/><br/> </p> </td></tr> '; define("IN_CB", true); include $_SERVER["DOCUMENT_ROOT"] . "/barcodegen/html/include/function.php"; $filetype = "PNG"; $dpi = 72; $scale = 2; $rotation = 0; $font_family = "0"; $font_size = 10; $start = "C"; $text = $barCode; registerImageKey("filetype", $filetype); registerImageKey("dpi", $dpi); registerImageKey("scale", $scale); registerImageKey("rotation", $rotation); registerImageKey("font_family", $font_family); registerImageKey("font_size", 0); registerImageKey("text", $text); registerImageKey("start", $start); registerImageKey("code", "BCGcode128"); $finalRequest = ""; foreach (getImageKeys() as $key => $value) { $finalRequest .= "&" . $key . "=" . urlencode($value); } if (strlen($finalRequest) > 0) { $finalRequest[0] = "?"; } $htmlPayu .= '<tr><td align="center">'; //if ($imageKeys["text"]!== "") { if ($s_trans_tipo == 'OXXO') { $htmlPayu .= '<img width="231" height="80" src="http://www.plazadelatecnologia.com/barcodegen/html/image.php'; $htmlPayu .= $finalRequest; $htmlPayu .= '"/>'; } else { $htmlPayu .= '<img width="319" height="80" src="http://www.plazadelatecnologia.com/barcodegen/html/image.php'; $htmlPayu .= $finalRequest; $htmlPayu .= '"/>'; } //} $htmlPayu .= '<br/>' . $barCode; $htmlPayu .= '</td></tr></table></body></html>'; echo $htmlPayu; } }
<?php define('IN_CB', true); include 'header.php'; $default_value['setChecksum'] = ''; $setChecksum = isset($_POST['setChecksum']) ? $_POST['setChecksum'] : $default_value['setChecksum']; registerImageKey('setChecksum', $setChecksum); registerImageKey('code', 'BCGmsi'); $characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); ?> <ul id="specificOptions"> <li class="option"> <div class="title"> <label for="setChecksum">Checksum</label> </div> <div class="value"> <?php echo getCheckboxHtml('setChecksum', $setChecksum, array('value' => 1)); ?> </div> </li> </ul> <div id="validCharacters"> <h3>Valid Characters</h3> <?php foreach ($characters as $character) { echo getButton($character); } ?>
<?php define('IN_CB', true); include 'include/header.php'; $default_value['checksum'] = ''; $checksum = isset($_POST['checksum']) ? $_POST['checksum'] : $default_value['checksum']; registerImageKey('checksum', $checksum); registerImageKey('code', 'BCGcode39'); $characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '-', '.', ' ', '$', '/', '+', '%'); ?> <ul id="specificOptions"> <li class="option"> <div class="title"> <label for="checksum">Checksum</label> </div> <div class="value"> <?php echo getCheckboxHtml('checksum', $checksum, array('value' => 1)); ?> </div> </li> </ul> <div id="validCharacters"> <h3>Valid Characters</h3> <?php foreach ($characters as $character) { echo getButton($character); } ?>