This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<title>Confirmation</title> | |
<head></head> | |
<body> | |
<?php | |
$pnumber = $_POST["pnumber"]; | |
$vend = $_POST['vend']; | |
$prod = $_POST['product']; | |
$ppu = $_POST["ppu"]; | |
$pib = $_POST["pib"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> | |
<meta name="author" content="LTenuta" /> | |
<link href="ryform.css" rel="stylesheet" type="text/css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script> | |
<script type="text/javascript"> | |
$(function() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> | |
<meta name="author" content="LTenuta" /> | |
<link href="ryform.css" rel="stylesheet" type="text/css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script> | |
<script type="text/javascript"> | |
$(function() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for($i=0;$i<count($prod);++$i) | |
{ | |
$query = "INSERT INTO purchase_items (quant,pib,price,id) VALUES ({$quant[$i]},{$pib[$i]},{$ppu[$i]},NULL)"; | |
$query = "INSERT INTO purchases (orderno,,vendor,id) VALUES ('$pnumber','$vend',NULL)"; | |
$result = mysql_query($query); | |
if (!$result) die ("Database access failed: " . mysql_error()); | |
else { | |
echo "Created"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for($i=0;$i<count($prod);++$i) | |
{ | |
$result=mysql_query(' | |
INSERT INTO purchase_items (quant,pib,price,id) VALUES ({$quant[$i]},{$pib[$i]},{$ppu[$i]},NULL);'); | |
//add each row to the database here | |
if (!$result) die ("Database access failed: " . mysql_error()); | |
else { | |
echo "Created"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for($i=0;$i<count($prod);++$i) | |
{ | |
$result=mysql_query(' | |
INSERT INTO purchase_items (quant,pib,price,id) VALUES ({$quant[$i]},{$pib[$i]},{$ppu[$i]},NULL);'); | |
//add each row to the database here | |
if (!$result) die ("Database access failed: " . mysql_error()); | |
else { | |
echo "Created"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string GetLocalIP () | |
{ | |
IPHostEntry host; | |
host = Dns.GetHostEntry ( Dns.GetHostName () ); | |
foreach ( IPAddress ip in host.AddressList ) | |
{ | |
if ( ip.AddressFamily.Equals ( AddressFamily.InterNetwork ) ) return ip.ToString (); | |
} | |
return "127.0.0.1"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string GetLocalIP () | |
{ | |
IPHostEntry host; | |
host = Dns.GetHostEntry ( Dns.GetHostName () ); | |
foreach ( IPAddress ip in host.AddressList ) | |
{ | |
if ( ip.AddressFamily.Equals ( AddressFamily.InterNetwork ) ) return ip.ToString (); | |
} | |
return "127.0.0.1"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Converter | |
{ | |
public string sourceHtml { get; set; } | |
private static string filename = "[" + DateTime.Now.ToShortDateString() + " Habs Stats].xml"; | |
public void StatsParser( string sourceHtml ) | |
{ | |
this.sourceHtml = sourceHtml; | |
this.ParseHtml(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net.Mime; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Xml.Linq; | |
using HtmlAgilityPack; | |
using System.Xml; |
OlderNewer