Пример #1
0
                            }
                            $this->tpl->set_var("companyName", $cname);
                            $this->tpl->set_var("tin", $companyValue->getTin());
                            $this->tpl->set_var("telephone", $companyValue->getTelephone());
                            $this->tpl->set_var("fax", $companyValue->getFax());
                            $this->tpl->parse("CompanyListBlock", "CompanyList", true);
                        }
                    } else {
                        $this->tpl->set_block("rptsTemplate", "CompanyList", "CompanyListBlock");
                        $this->tpl->set_var("CompanyListBlock", "");
                    }
                }
            }
        }
        $this->tpl->parse("templatePage", "rptsTemplate");
        $this->tpl->finish("templatePage");
        $this->tpl->p("templatePage");
    }
}
#####################################
# Define Procedures and Functions
#####################################
##########################################################
# Begin Program Script
##########################################################
//*
page_open(array("sess" => "rpts_Session", "auth" => "rpts_Challenge_Auth"));
//*/
$ownerList = new OwnerList($HTTP_POST_VARS, $sess, $ownerID);
$ownerList->main();
page_close();
Пример #2
0
                        break;
                }
                break;
            default:
                $this->tpl->set_block("rptsTemplate", "SearchResults", "SearchResultsBlock");
                $this->tpl->set_var("SearchResultsBlock", "");
                $this->tpl->set_block("rptsTemplate", "NotFound", "NotFoundBlock");
                $this->tpl->set_var("NotFoundBlock", "");
                break;
        }
        $this->setForm();
        $this->tpl->set_var("uname", $this->user["uname"]);
        $this->tpl->set_var("today", date("F j, Y"));
        $this->tpl->set_var("Session", $this->sess->url(""));
        $this->tpl->parse("templatePage", "rptsTemplate");
        $this->tpl->finish("templatePage");
        $this->tpl->p("templatePage");
    }
}
#####################################
# Define Procedures and Functions
#####################################
##########################################################
# Begin Program Script
##########################################################
//*
page_open(array("sess" => "rpts_Session", "auth" => "rpts_Challenge_Auth"));
//*/
$obj = new OwnerList($HTTP_POST_VARS, $ownerType, $searchKey, $page, $formAction, $sess);
$obj->main();
page_close();
Пример #3
0
                    			$tdRecords->setDomDocument();
                    			if(!$domDoc = $tdRecords->getDomDocument()){
                    				return $ret = false;
                    			}
                    			else {
                    				$xmlStr = $domDoc->dump_mem(true);
                    				return $ret = $xmlStr;
                    			}
                    		}
                    		else $ret = false;*/
                } else {
                    $ret = false;
                }
            } else {
                $ret = false;
            }
        } else {
            $ret = false;
        }
        return $ret;
    }
}
//*
$obj = new OwnerList();
echo $obj->addOwnerPersonRPTOP(8, 10554, array(10728)) . "<br>";
echo $obj->addOwnerPersonRPTOP(6, 10550, array(10728)) . "<br>";
echo $obj->addOwnerPersonRPTOP(5, 10547, array(10728));
echo $obj->addOwnerPersonRPTOP(9, 10555, array(10728));
//$obj->getTdListOf(10728,"Person",2005);
//echo "mukha mo!";
//*/
Пример #4
0
                $this->tpl->set_block("rptsTemplate", "OwnerList", "OwnerListBlock");
                foreach ($list as $key => $value) {
                    $this->tpl->set_var("personID", $value->getOwnerID());
                    if (!($pname = $value->getFullName())) {
                        $pname = "none";
                    }
                    $this->tpl->set_var("fullName", $pname);
                    $this->tpl->set_var("tin", $value->getTin());
                    $this->tpl->set_var("telephone", $value->getTelephone());
                    $this->tpl->set_var("mobileNumber", $value->getMobileNumber());
                    $this->tpl->parse("OwnerListBlock", "OwnerList", true);
                }
            }
        }
        $this->tpl->parse("templatePage", "rptsTemplate");
        $this->tpl->finish("templatePage");
        $this->tpl->p("templatePage");
    }
}
#####################################
# Define Procedures and Functions
#####################################
##########################################################
# Begin Program Script
##########################################################
//*
page_open(array("sess" => "rpts_Session", "auth" => "rpts_Challenge_Auth"));
//*/
$personList = new OwnerList($HTTP_POST_VARS, $sess);
$personList->main();
page_close();