Advertisement
Advertisement
| 10.12.2008 at 08:33AM PDT, ID: 23807788 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: |
<?php
// Turn off all error reporting
error_reporting(0);
include("include/phpgrid.php");
$hostName = "localhost";
$userName = "jmichels";
$password = "hug344";
$dbName = "thstew_orders";
?>
<html>
<head>
<title>Invoice</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
$idresult = mysql_query("SELECT id
FROM oetable_backup WHERE upper($field)='$find'");
$ifs = mysql_query("SELECT final_sale
FROM oetable_backup WHERE upper($field)='$find'");
$dg = new C_DataGrid($hostName, $userName, $password, $dbName);
// We preform a bit of filtering
$find = mysql_real_escape_string($_POST['find']);
$field = mysql_real_escape_string($_POST['field']);
$find = strtoupper($find);
$find = strip_tags($find);
$find = trim ($find);
$dg -> set_gridpath ("include/");
$dg -> set_sql ("SELECT
entry_date,territory,principle,customer,po,part_no,qty,initial_sale,due_to_ship,ship_date,qty_shipped,comm,invoice,comm_due,type_ind,id
FROM oetable_backup WHERE upper($field)='$find'");
$dg -> set_sql_table ("oetable_backup");
// change column titles
//$dg -> set_col_title ("EmployeeId", "Employee ID");
//$dg -> set_col_title ("LastName", "Last Name");
//$dg -> set_col_title ("FirstName", "First Name");
// set background and mouse over color
$dg -> set_alt_bgcolor ("#ffffff, #e9eff2");
$dg -> set_onmouseover ("lightyellow");
// hide a column
$dg -> set_col_hidden ("Notes");
// display URL as hyperlink
$dg -> set_col_link ("ReportsTo",
"/query.php?EmployeeId=",
"EmployeeId",
"target='_new'");
// set page size
$dg -> set_page_size(10);
// sum up columns
$dg -> set_col_sum_enabled(true);
$dg -> set_col_sum ("initial_sale");
$dg -> set_col_sum ("final_sale");
$dg -> set_col_sum ("qty");
$dg -> set_col_sum ("comm");
$dg -> set_theme("sweet");
// make the datagrid editable
$dg -> set_allow_actions(true);
$dg -> set_action_type ("V,E");
// turn on inline-editing with Ajax enabled
//$dg -> set_inlineedit_enabled(true, true);
//$dg -> set_ok_showcredit(true);
$dg -> set_allow_export(true);
$dg -> set_toolbar_enabled(FALSE);
$dg -> debug();
$dg -> display();
echo "<b>Searched For:</b> " .$ifs;
?>
<h2 align="center"> </h2>
<h2 align="center"> </h2>
<h2 align="center"><strong><font color="#006600"> </font></strong></h2>
<h2 align="center"><strong><font color="#006600"> </font></strong></h2>
<h2 align="center"><strong><font color="#006600"><img src="http://www.thstewart.com/images/invoice.gif" alt="" title="">TH Stewart Co.</font></strong><strong><font color="#006600"><font size="3"></font></font></strong></h2>
<div align="center">
<form action="new.php" method="post">
<div> </div>
<div align="left">
<p align="center">Final Sale:
<input type="text" name="sales" value="<?php echo $ifs; ?>">
Ship Date:
<input type="text" name="sdate">
Qty Shipped:
<input type="text" name="qtys">
ID:
<input type="text" name="tid">
</p>
<p align="center"> Invoice#:
<input type="text" name="seek">
<br>
<br>
</p>
</div>
<div> </div>
<div> </div>
<div>
<input type="hidden" value="yes" name="searching">
<input type="submit" value="Invoice" name="search"></div></form></div>
|