Changes to AgileBill

This commit is contained in:
Deon George
2009-08-03 14:10:16 +10:00
parent 0a22cfe22c
commit 27aee719b0
1051 changed files with 219109 additions and 117219 deletions

View File

@@ -18,37 +18,8 @@
* @version 1.4.93
*/
class affiliate
{
# Open the constructor for this mod
function affiliate()
{
# name of affiliate id prefix
$this->id_prefix = 'AB-';
# name of this module:
$this->module = "affiliate";
if(!defined('AJAX'))
{
# location of the construct XML file:
$this->xml_construct = PATH_MODULES . "" . $this->module . "/" . $this->module . "_construct.xml";
# open the construct file for parsing
$C_xml = new CORE_xml;
$construct = $C_xml->xml_to_array($this->xml_construct);
$this->method = $construct["construct"]["method"];
$this->trigger = $construct["construct"]["trigger"];
$this->field = $construct["construct"]["field"];
$this->table = $construct["construct"]["table"];
$this->module = $construct["construct"]["module"];
$this->cache = $construct["construct"]["cache"];
$this->order_by = $construct["construct"]["order_by"];
$this->limit = $construct["construct"]["limit"];
}
}
class affiliate extends OSB_module {
private $id_prefix = 'AB-';
###########################################
### AJAX Auto-selector
@@ -858,8 +829,7 @@ class affiliate
##############################
## VIEW ##
##############################
function view($VAR)
{
function view($VAR) {
$type = "view";
$this->method["$type"] = explode(",", $this->method["$type"]);
@@ -1007,11 +977,8 @@ class affiliate
return;
}
global $smarty;
$smarty->assign($this->table, $smart);
$smarty->assign('record', array_pop($smart));
$smarty->assign('plugin_data', $plugin_data);
$smarty->assign('results', $search->results);
}
@@ -1239,23 +1206,10 @@ class affiliate
}
}
##############################
## SEARCH FORM ##
##############################
function search_form($VAR)
{
$type = "search";
$this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database;
$db->search_form($VAR, $this, $type);
}
##############################
## SEARCH ##
##############################
function search($VAR)
function xsearch($VAR)
{
$type = "search";
$this->method["$type"] = explode(",", $this->method["$type"]);
@@ -1549,7 +1503,7 @@ class affiliate
## SEARCH SHOW ##
##############################
function search_show($VAR)
function xsearch_show($VAR)
{
$type = "search";
$this->method["$type"] = explode(",", $this->method["$type"]);
@@ -1803,4 +1757,4 @@ class affiliate
}
}
}
?>
?>