PHP Script for .NET Compact Framework Package – E-Commerce

Mar 10, 2012, by admin

MW6 QRCode .NET CF package has three 100% managed code libraries for Pocket PC, Windows CE and Smartphone platforms, the libraries can produce QRCode format model data and your applications can use this model data to make QRCode barcode onto E-Commerce.

  1. <?php
  2. session_start();
  3. header(“Cache-control: private”);
  4. header(‘Content-Type: text/html; charset=utf-8’);
  5. require(“_add_item.php”);
  6. ?>
  7. <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
  8. <html>
  9. <head>
  10.  <title><?=$g_page_title?></title>
  11.  <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
  12.  <link rel=”stylesheet” type=”text/css” media=”all” href=”../global/jscalendar/skins/aqua/theme.css” title=”Aqua” />
  13.  <script type=”text/javascript” src=”../global/jscalendar/calendar.js”></script>
  14.  <script type=”text/javascript” src=”../global/jscalendar/calendar-setup.js”></script>
  15.  <script type=”text/javascript” src=”../global/jscalendar/lang/calendar-en.js”></script>
  16.  <link rel=”stylesheet” type=”text/css” href=”../global/styles.css” />
  17.  <script type=”text/javascript” src=”../global/validation.js”></script>
  18. </head>
  19. <body>
  20. <?php
  21. require(“../global/banner.php”);
  22. $page = “items”;
  23. $page_link = true;
  24. require(“../global/nav.php”);
  25. ?>
  26. <div id=”main_area”>
  27.  <table cellpadding=”30″ width=”100%”>
  28.  <tr>
  29.  <td>
  30.  <div>Add Item</div>
  31.  <?php display_message($success, $message); ?>
  32.  <div>
  33.  This page lets you add a new item. <!–  You can also <a href=”items_bulk_upload.php”>bulk upload
  34.  multiple items from a CSV file</a>. –>
  35.  </div>
  36.  <br />
  37.  <form action=”<?=$_SERVER[‘PHP_SELF’]?>” method=”post”>
  38.  <table width=”700″>
  39.  <tr>
  40.  <td width=”160″>Date Added</td>
  41.  <td>
  42.  <table cellspacing=’0′ cellpadding=’0′ border=’0′>
  43.  <tr>
  44.  <td><input type=”text” name=”date_added” id=”date_added” style=”width: 130px;” value=”<?php echo $date_added; ?>” /></td>
  45.  <td><img src=’../images/calendar_icon.gif’ id=”date_added_img” border=’0′ /></td>
  46.  </tr>
  47.  </table>
  48.  <script type=”text/javascript”>
  49.  // init a Calendar for this row
  50.  Calendar.setup({
  51.  inputField     :    “date_added”,
  52.  showsTime      :    true,
  53.  timeFormat     :    “24”,
  54.  ifFormat       :    “%Y-%m-%d %H:%M:00”,
  55.  button         :    “date_added_img”,
  56.  align          :    “B2”,
  57.  singleClick    :    true
  58.  });
  59.  </script>
  60.  </td>
  61.  </tr>
  62.  <?php
  63.  // show the appropriate columns
  64.  while (list($row_num, $row_info) = each($item_settings))
  65.  {
  66.  $row_title = $row_info[0];
  67.  ?>
  68.  <tr>
  69.  <td width=”160″><?=$row_title?></td>
  70.  <td><input type=”text” name=”row_<?=$row_num?>” value=”” style=”width: 100%;” /></td>
  71.  </tr>
  72.  <?php
  73.  }
  74.  ?>
  75.  <tr>
  76.  <td> </td>
  77.  <td>
  78.  <input type=”submit” name=”submit” value=”&nbsp;ADD ITEM&nbsp;” style=”margin-top: 5px;” />
  79.  <input type=”submit” name=”submit_invoice” value=”&nbsp;ADD ITEM AND INVOICE &gt;&gt;” style=”margin-top: 5px;” />
  80.  </td>
  81.  </tr>
  82.  </table>
  83.  </form>
  84.  </td>
  85.  </tr>
  86.  </table>
  87. </div>
  88. </body>
  89. </html>
  90. &nbsp;