Rename *_inc.php files to drop the '_inc'
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
/*************************************************************/
|
||||
/*********************************************************/
|
||||
/* query class */
|
||||
/* (de)compose/exec queries */
|
||||
/* this should have query_inc.php's query preprocessing etc. */
|
||||
/*************************************************************/
|
||||
/* this should have query.php's query preprocessing etc. */
|
||||
/*********************************************************/
|
||||
|
||||
class qclass {
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
|
||||
include(BASE."include/"."appversion_inc.php");
|
||||
include(BASE."include/"."appbyvendor_inc.php");
|
||||
include(BASE."include/"."appversion.php");
|
||||
include(BASE."include/"."appbyvendor.php");
|
||||
|
||||
function initFields()
|
||||
{
|
||||
@@ -1,3 +1,118 @@
|
||||
<?php
|
||||
|
||||
|
||||
function create_appbyvendorsearch_url($vName)
|
||||
{
|
||||
global $fields, $orderby, $join;
|
||||
|
||||
$orderby = "appId";
|
||||
$fields[] = "vendor.vendorId";
|
||||
$fields[] = "appFamily.appId";
|
||||
$fields[] = "appFamily.appName";
|
||||
$fields[] = "appFamily.webPage";
|
||||
$join = "appFamily.vendorId=vendor.vendorId";
|
||||
|
||||
$searchwhat = "vendor.vendorId";
|
||||
|
||||
$url = "stdquery.php";
|
||||
$url .= "?orderby=$orderby";
|
||||
$url .= "&searchfor=$vName";
|
||||
$url .= "&searchwhat=$searchwhat";
|
||||
$url .= "&join=$join";
|
||||
|
||||
foreach($fields as $aField)
|
||||
{
|
||||
$url .= "&fields[]=$aField";
|
||||
}
|
||||
|
||||
$url .= "&linesPerPage=$linesPerPage";
|
||||
|
||||
return $url;
|
||||
}
|
||||
|
||||
function output_appbyvendor_forminputs()
|
||||
{
|
||||
global $fields, $orderby, $join;
|
||||
|
||||
$orderby = "appId";
|
||||
$fields[] = "vendor.vendorId";
|
||||
$fields[] = "appFamily.appId";
|
||||
$fields[] = "appFamily.appName";
|
||||
$fields[] = "appFamily.webPage";
|
||||
$join = "appFamily.vendorId=vendor.vendorId";
|
||||
|
||||
|
||||
$searchwhat = "vendor.vendorName";
|
||||
|
||||
echo "<input TYPE=\"HIDDEN\" NAME=\"orderby\" VALUE=\"$orderby\">
|
||||
<input TYPE=\"HIDDEN\" NAME=\"searchwhat\" VALUE=\"$searchwhat\">";
|
||||
|
||||
foreach($fields as $aField)
|
||||
{
|
||||
echo "<input TYPE=\"HIDDEN\" NAME=\"fields[]\" VALUE=\"$aField\">";
|
||||
}
|
||||
|
||||
echo "<input TYPE=\"HIDDEN\" NAME=\"join\" VALUE=\"$join\">";
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
function create_appbyvendorsearch_url($vName)
|
||||
{
|
||||
global $fields, $orderby, $join;
|
||||
|
||||
$orderby = "appId";
|
||||
$fields[] = "vendor.vendorId";
|
||||
$fields[] = "appFamily.appId";
|
||||
$fields[] = "appFamily.appName";
|
||||
$fields[] = "appFamily.webPage";
|
||||
$join = "appFamily.vendorId=vendor.vendorId";
|
||||
|
||||
$searchwhat = "vendor.vendorId";
|
||||
|
||||
$url = "stdquery.php";
|
||||
$url .= "?orderby=$orderby";
|
||||
$url .= "&searchfor=$vName";
|
||||
$url .= "&searchwhat=$searchwhat";
|
||||
$url .= "&join=$join";
|
||||
|
||||
foreach($fields as $aField)
|
||||
{
|
||||
$url .= "&fields[]=$aField";
|
||||
}
|
||||
|
||||
$url .= "&linesPerPage=$linesPerPage";
|
||||
|
||||
return $url;
|
||||
}
|
||||
|
||||
function output_appbyvendor_forminputs()
|
||||
{
|
||||
global $fields, $orderby, $join;
|
||||
|
||||
$orderby = "appId";
|
||||
$fields[] = "vendor.vendorId";
|
||||
$fields[] = "appFamily.appId";
|
||||
$fields[] = "appFamily.appName";
|
||||
$fields[] = "appFamily.webPage";
|
||||
$join = "appFamily.vendorId=vendor.vendorId";
|
||||
|
||||
|
||||
$searchwhat = "vendor.vendorName";
|
||||
|
||||
echo "<input TYPE=\"HIDDEN\" NAME=\"orderby\" VALUE=\"$orderby\">
|
||||
<input TYPE=\"HIDDEN\" NAME=\"searchwhat\" VALUE=\"$searchwhat\">";
|
||||
|
||||
foreach($fields as $aField)
|
||||
{
|
||||
echo "<input TYPE=\"HIDDEN\" NAME=\"fields[]\" VALUE=\"$aField\">";
|
||||
}
|
||||
|
||||
echo "<input TYPE=\"HIDDEN\" NAME=\"join\" VALUE=\"$join\">";
|
||||
}
|
||||
|
||||
?>
|
||||
<!-- start of App query -->
|
||||
<table border=1 width="100%" cellspacing=0 cellpadding=3 bordercolor=black>
|
||||
<tr>
|
||||
@@ -10,7 +125,7 @@
|
||||
Vendor Name:
|
||||
<input TYPE="TEXT" NAME="searchfor" /> (leave blank to match all)
|
||||
<?php
|
||||
include(BASE."include/"."appbyvendor_inc.php");
|
||||
include(BASE."include/"."appbyvendor.php");
|
||||
|
||||
output_appbyvendor_forminputs();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user