HEX
Server: Apache
System: Linux server1.royalgt4.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
User: mostafedeg (1125)
PHP: 5.6.40
Disabled: mail,passthru,parse_ini_file,show_source,eval,assert,pcntl_exec,dl,putenv,proc_open,popen
Upload Files
File: /home/mostafedeg/public_html/erp/controllers/printbillserail.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Untitled Document</title>
    </head>
    <link href="../views/default/assets/css/print.css" rel="stylesheet">
        <script src="../views/default/assets/js/jquery.js"></script>
        <body>
            <script>
                $(document).ready(function (e) {
                    //alert('fff');
                    window.print();
                });
            </script>
            <body>
                <?php
                // define(__TRACE_ENABLED__, false);
                //  define(__DEBUG_ENABLED__, false);

                require("../library/barcode/barcode.php");
                require("../library/barcode/i25object.php");
                require("../library/barcode/c39object.php");
                require("../library/barcode/c128aobject.php");
                require("../library/barcode/c128bobject.php");
                require("../library/barcode/c128cobject.php");


                $itr = $_POST["serailcount"];

                for ($i = 1; $i <= $itr; $i++) {
                    //  print_r("serailcount" . $itr . "<br>");
                    $barcode = $_POST['serialnumber' . $i . ''];
                    $name = $_POST['productName' . $i . ''];
                    $price = $_POST['price' . $i . ''];
                }


                /* $barcode=$_GET["parcode"];
                  $name=$_GET["name"];
                  $price=$_GET["price"]; */
                $drawtext = "on";
                $type = "C128B";
                $width = "128";
                $height = "74";
                $xres = "1";
                $font = "2";
                $output = "png";
                $border = $stretchtext = $negative = '';
                //$today=date("dm");
                //$barcode=$barcode.$today;
                //print($today);
                if (isset($barcode) && strlen($barcode) > 0) {
                    $style = BCS_ALIGN_CENTER;
                    $style |= ($output == "png" ) ? BCS_IMAGE_PNG : 0;
                    $style |= ($output == "jpeg") ? BCS_IMAGE_JPEG : 0;
                    $style |= ($border == "on" ) ? BCS_BORDER : 10;
                    $style |= ($drawtext == "on" ) ? BCS_DRAW_TEXT : 0;
                    $style |= ($stretchtext == "on" ) ? BCS_STRETCH_TEXT : 0;
                    $style |= ($negative == "on" ) ? BCS_REVERSE_COLOR : 0;

                    switch ($type) {
                        case "I25":
                            $obj = new I25Object(250, 120, $style, $barcode);
                            break;
                        case "C39":
                            $obj = new C39Object(250, 120, $style, $barcode);
                            break;
                        case "C128A":
                            $obj = new C128AObject(250, 120, $style, $barcode);
                            break;
                        case "C128B":
                            $obj = new C128BObject(250, 120, $style, $barcode);
                            break;
                        case "C128C":
                            $obj = new C128CObject(250, 120, $style, $barcode);
                            break;
                        default:
                            $obj = false;
                    }
                    if ($obj) {
                        if ($obj->DrawObject($xres)) {
                            ?>
                            <div style="width:760px; padding-left:28px; padding-right:28px; padding-top:30px;  margin:auto; " align="center">
                                <?php
                                $priceoption = $_POST["pricOption"];
                                //print_r('pricOptiondddddddd'.$pricOption);
                                if ($priceoption != "1") {


                                    for ($x = 1; $x <= $itr; $x++) {



                                        // print_r($itr."serailcountcccccc"."<br>");




                                        echo '<div style="width:152px;float:right"><span style="font-size:11px;float:right;margin-right:15px;">
                                         ' . $_POST['productName' . $x . ''] . '</span>

                                         <img src="http://www.barcodesinc.com/generator/image.php?code=' . $_POST['serialnumber' . $x . ''] . '&style=' . $style . '&type=' . $type . '&width=' . $width . "&height=" . $height . '&xres=' . $xres . '&font=' . $font . '">

                                         <div style="float:right; margin-right:11px;margin-left:12px;padding:0px">

                                         </div></div>';
                                    }
                                } else {



                                    for ($x = 1; $x <= $itr; $x++) {





                                        echo '<div style="width:152px;float:right">
                                         <span style="font-size:11px;float:left;margin-left:10px;">' . $_POST['price' . $x . ''] . ' L.E
                                         <span style="font-size:11px;float:right;margin-right:15px;">' . $_POST['productName' . $x . ''] . '</span>

                                         <img src="http://www.barcodesinc.com/generator/image.php?code=' . $_POST['serialnumber' . $x . ''] . '&style=' . $style . '&type=' . $type . '&width=' . $width . "&height=" . $height . '&xres=' . $xres . '&font=' . $font . '">

                                         <div style="float:right; margin-right:11px;margin-left:12px;padding:0px">
                                         </span>

                                         </div></div>';
                                    }
                                }
                            }
                        }
                    }
                    ?>
                    <br />
                    <a href="printbillserailController.php"><input name="" value="رجوع"  type="button"  class="noprint"/></a>
            </body>
            </html>