Jump to content

php3 upgrade to php5. set_cols function missing?


ottos13

Recommended Posts

I'm upgrading a site from php3 to the latest php5.

 

I've gone through all of the code but I cannot find this function set_cols() anywhere. I can only find calls to the function, not the function itself. I'm wondering if anyone knows if this is an older version of a built in function that has been replaced?

 

This is my error:

Fatal error: Call to undefined method ManualRequest_Admin::Set_Cols() in /usr/home/prim11/www/phplodge/live/ManualRequest_Html.inc.php on line 33

 

Thanks

Link to comment
Share on other sites

Here's that code. I noticed that it extends another class, so that class follows

 

<?php
/**
* ManualRequest_Admin.inc.php
* 
* @author Katherine Parke
* @copyright 2005 Katherine Parke
* @package LDGLib
* @subpackage Equipment
* 
*/
/**
* The ManualRequest_Admin Class
* 
* Holds information about an equipment item
* 
* @package LDGLib
* @subpackage Equipment
* 
*/
class ManualRequest_Admin extends ManualRequest_Html {


var $required = array();
var $usertype = "admin";
#var $eqlink = "/admin/list/view.php";


/**
* ManualRequest_Admin Class Constructor Function
* 
* @param string $eqid an equipment id
* @return mixed
*/
function ManualRequest_Admin($eqid) {
	Debug("ManualRequest_Admin($eqid)<br>\n");
 	parent::ManualRequest_Html($eqid);
}



/* 
New Court Filing
This function will show a number of input fields and will ask the user
to enter the details of their court filing request. 

When the user hits submit the details are added to the database.


*/



function Add (){

	$error_message = "";

	if (!empty($_POST["submit"])) {

		// ADD THE RECORD, OR DIE
		if ($this->AddRecord()) {

			// REFER user to appropriate page
			$IDString = "?id=".$this->LodgeRequestID;

			if (!empty($_POST["book"])){
				// the user wants to book the settlement
				$this->GoToPage($_POST["bookingurl"].$IDString);
				#echo "Go to Booking Page : <a href='".$_POST["bookingurl"].$IDString."'>".$_POST["bookingurl"].$IDString."</a>";
				return true;
			}

			if (!empty($_POST["referer"])){
				$this->GoToPage($_POST["referer"].$IDString);
				echo "Back to Referer : <a href='".$_POST["referer"].$IDString."'>".$_POST["referer"].$IDString."</a>";
				return true;
			}

			// REFER THE USER BACK TO THEIR ORIGINAL PAGE
			$this->GoToPage($this->item_link.$IDString);
			#echo "Go to View Page : <a href='".$this->item_link.$IDString."'>".$this->item_link.$IDString."</a>";
			return true;

		}

		$error_message .= "There has been an error saving your request<br>";
		$error_message .=  $this->ERROR;


	} 




	$masterObj = new LodgeMaster($this->LodgeRequestID, $this->LodgeType);

	$this->Master = $masterObj;
	$this->Master->ShowStyleSheet();


	$this->SetInfo($_POST);
	$this->Master->SetInfo($_POST);
	$this->Action = "add";

	if (empty($error_message)) {
	$this->Master->Setup_From_Login();
 	$this->Setup_From_Login();
	}

	?>
<b class="subtitle">Manual Services</b><br>
<form action="<?php $_SERVER["PHP_SELF"]?>" method="post" name="InputForm">
<?php
if (!empty($error_message)) {
echo $error_message;
}

$this->TestData();

$show_input = 1;
$show_required = 1;
$input_class = "input";
$this->Input_Form($show_input, $show_required, $input_class);
$this->Print_Buttons_Add();
?>

</form>
	<?php

}





function Edit(){

	Debug("ManualRequest_Admin->Edit()<br>\n");

	$error_message = "";

	if (!empty($_POST["submit"])) {



		// EDIT THE RECORD OR DIE
		if ($this->EditRecord()) {




			// REFER user to appropriate page
			$IDString = "?id=".$this->LodgeRequestID;

			if (!empty($_POST["updatebooking"])){
				// the user wants to book the settlement
				$this->GoToPage($_POST["updatebooking"].$IDString);
				#echo "Go to Booking Page : ".$_POST["bookingurl"].$IDString."";
				return true;
			}
			if (!empty($_POST["book"])){
				// the user wants to book the settlement
				$this->GoToPage($_POST["bookingurl"].$IDString);
				#echo "Go to Booking Page : ".$_POST["bookingurl"].$IDString."";
				return true;
			}
			if (!empty($_POST["referer"])){
				$this->GoToPage($_POST["referer"].$IDString);
				#echo "Go to Referer Page : ".$_POST["referer"].$IDString."";
				return true;
			}
			$this->GoToPage($this->item_link.$IDString);
			#echo "Go to View Page : ".$this->item_link.$IDString."";


			return true;
		}

		$error_message .= "There has been an error saving your request<br>";
		$error_message .=  $this->ERROR;

	} 

	if (empty($error_message)) {
	if (!$this->LookupDetails()) {
		echo "Unable to lookup the details of your request<br>";
		echo "ERROR: ". $this->ERROR;
		return false;
	}
	}
	$this->Master->ShowStyleSheet();

	$this->Action = "edit";

	?>
<b class="subtitle">Manual Services</b><br>
<form action="<?php $_SERVER["PHP_SELF"]?>" method="post" name="InputForm">
<?php
if (!empty($error_message)) {
echo $error_message;
}


$show_input = 1;
$show_required = 1;
$input_class = "input";
$this->Input_Form($show_input, $show_required, $input_class);
$this->Print_Buttons_Edit();
?>
<br>
	<br>

</form>
	<?php

}




function Delete(){


	if (!empty($_POST["submit"])) {

		// DELETE THE RECORD, OR DIE
		if (!$this->DeleteRecord()) {
			echo "ERROR: ". $this->ERROR;
			return false;
		}

		// REFER THE USER BACK TO THEIR ORIGINAL PAGE
		$this->GoToPage($this->item_link_list);
		#echo "Done<br>";
		return true;
	} 

	$masterObj = new LodgeMaster($this->LodgeRequestID, $this->LodgeType);
	if (!$masterObj->LookupDetails()) {
		echo "Unable to lookup the details of your request<br>";
		echo "ERROR: ". $this->ERROR;
		return false;
	}


	?>
<h2>Please confirm you wish to delete this item</h2>
<form action="<?php $_SERVER["PHP_SELF"]?>" method="post" name="InputForm" >
<input type="hidden" name="referer" value="<?php $_SERVER["HTTP_REFERER"]?>" />

<fieldset>
<legend>Details</legend>
<input type="hidden" name="LodgeType" value="<?php $this->LodgeType?>" />
<input type="hidden" name="LodgeRequestID" value="<?php $this->LodgeRequestID?>" />



<?php

$this->PrintText($masterObj->vars["LoginID"]["title"], $masterObj->LoginID); 
$this->PrintText($masterObj->vars["RequestState"]["title"], $masterObj->RequestState); 
$this->PrintText($masterObj->vars["RequestDate"]["title"], $masterObj->RequestDate); 
$this->PrintText($this->vars["ProductSelection"]["title"], $this->data["ProductSelection"]); 



?>

</fieldset>

<input type="submit" name="submit" value="Delete"  />
</form>
	<?php

}



function AddRecordOLD() {
	Debug("ManualRequest_Admin->AddRecord()<br>\n");

	parent::AddRecord();

	// Save the Instruction File if available
	if (!empty($_FILES['InstructionFile']['name'])) {

		$next_sql = $sql;
		$next_sql = $this->PutDataValue($next_sql, 'InstructionFile', $_FILES['InstructionFile']['name']);
		if (!$db->Query($next_sql)) {

			Debug("COURT FILING DOCUMENT INSERT ERROR : ". $db->ERROR." \n");

			$reqObj->LodgeRequestID = $newid;
			$reqObj->DeleteRecord();

			$this->ERRNO = $db->ERRNO;
			$this->ERROR = $db->ERROR;

			return false;
		}
		if (!$this->SaveUpload()) {
			return false;
		}

	}

	return true;





}


function EditRecordOLD() {
	Debug("ManualRequest_Admin->EditRecord()<br>\n");

	parent::EditRecord();

	// Save the Instruction File if available
	if (!empty($_FILES['InstructionFile']['name'])) {

		if (!empty($_POST["OldInstructionFile"])) {
			// delete the old file
			$oldfile = $this->FilePath.$_POST['OldInstructionFile'];
			Debug("Delete Old File : $oldfile<br>\n");
			if (!unlink ($oldfile)) {
				$this->ERRNO = 1;
				$this->ERROR = "Unable to delete old file";
				Debug("Error Deleting Old File <br>\n");
				return false;
			}


			$next_sql = $delete_sql;
			$next_sql = $this->PutDataValue($next_sql, 'InstructionFile', $_POST['OldInstructionFile']);
			Debug("Delete database reference : $next_sql <br>\n");
			if (!$db->Query($next_sql)){
				$this->ERRNO = 1;
				$this->ERROR = $db->ERROR;
				Debug("Error Deleting database reference : ". $db->ERROR ."<br>\n");
				return false;
			}
		}

		$next_sql = $insert_sql;
		$next_sql = $this->PutDataValue($next_sql, 'InstructionFile', $_FILES['InstructionFile']['name']);
		if (!$db->Query($next_sql)) {

			Debug("COURT FILING DOCUMENT INSERT ERROR : ". $db->ERROR." \n");

			$this->ERRNO = $db->ERRNO;
			$this->ERROR = $db->ERROR;

			return false;
		}
		if (!$this->SaveUpload()) {
			return false;
		}

	}
	return true;


}




function SaveUpload() {
	Debug("ManualRequest_Admin->SaveUpload()<br>\n");

		$filename 	= $_FILES['InstructionFile']['name'];
		$filetype 	= $_FILES['InstructionFile']['type'];
		$filesize 	= $_FILES['InstructionFile']['size'];
		$filetemp 	= $_FILES['InstructionFile']['tmp_name'];
		$error 		= $_FILES['InstructionFile']['error'];
		$newfile = $this->PathToFiles."".$this->FilePath."".$_FILES['InstructionFile']['name'];
		$newfile = $this->FilePath.$_FILES['InstructionFile']['name'];


		$infostr 	= "File Error ". $error ."<br>\n".
			"File name ". $filename ."<br>\n".
			"File type ". $filetype ."<br>\n".
			"File size ". $filesize ."<br>\n".
			"File temp ". $filetemp ."<br>\n".
			"New File ". $newfile ."<br>\n";



		// Make sure the temporary file has been uploaded
		if (is_file($filetemp)) {
			#touch($newfile);
			if (!copy($filetemp, $newfile)) {
				$this->ERRNO = 1;
				$this->ERROR = "<font color='black'> Cannot copy the uploaded file to named file</font><br>".$infostr."<br>\n";
				$res = $db->Query($delete_sql);
				return false;
			}
			chmod($newfile, 0777);

		} else {
			$this->ERRNO = 1;
			$this->ERROR = "<font color='black'>Cannot find the source file</font><br>".$infostr."<br>\n";
			return false;
		}
		return true;
}








function TestData() {

	?>
	<script language="Javascript">
	function PutTestData() {

		document.forms[0].RequestRef.value 		= '44565/121';
		document.forms[0].ClientName.value 			= 'John Smith';
		document.forms[0].Court.value 				= 'Family Court';
		document.forms[0].Urgency.value 			= 'Urgent';

		document.forms[0].RequestDate.value 		= '2007-05-03';
		//document.forms[0].RequestTime.value 		= '1000';
		document.forms[0].RequestExtra.value 		= '1';


		document.forms[0].Document1Name.value 		= 'Prime Legal Services';
		document.forms[0].Document1For.value 		= 'PurchasersSolicitor';

		document.forms[0].Document2Name.value 		= 'St George';
		document.forms[0].Document2For.value 		= 'PurchasersBank';

		document.forms[0].Document3Name.value 		= 'TSA Lawyers';
		document.forms[0].Document3For.value 		= 'VendorsBank';


		document.forms[0].PayConduct[0].checked 		= true;
		document.forms[0].ConductName.value 			= 'Mr Client Smith';
		document.forms[0].ConductAddress.value 			= '12 Smith Street Suburb';
		document.forms[0].Instructions.value 			= 'Please file these doucmnets';


	}
	</script>
	<div align="center">
	<input type="button" value="Put Test Data" onClick="PutTestData()">
	</div>
	<?php

}


}

?>

 

<?php
/**
* ManualRequest_Html.inc.php
* 
* @author Katherine Parke
* @copyright 2007 Katherine Parke
* @package PrimeLegal Lodgements
* @subpackage Settlement_LodgeRequest
* 
*/
/**
* The ManualRequest_Html Class
* 
* Holds information about a list item
* 
* @package PrimeLegal Lodgements
* @subpackage ManualRequest_Html
* 
*/
class ManualRequest_Html extends ManualRequest_Core {




/**
* ManualRequest_Html Class Constructor Function
* 
* @param string $item_id an item id
* @return mixed
*/
function ManualRequest_Html($item_id, $type = "Manual") {
 	parent::ManualRequest_Core($item_id, $type);
	$this->Set_Cols();
}





/**
* Display the equipment item
*/
function Display() {


	Debug("<strong>ManualRequest_Html->Display</strong>()<br>\n");

	$masterObj = new LodgeMaster($this->LodgeRequestID, $this->LodgeType);
	$masterObj->LookupDetails();
	$masterObj->ShowStyleSheet();


	$this->LookupDetails();


	if ($this->ERRNO > 0) {
		?>
		<!-- Start Table 1 //-->
	<table cellpadding="0" cellspacing="0" border="0" width="100%" bordercolor="#336699">
	<tr><td>
			<b class="h2">Error</b><br>
			<b class="h3"><b class="red"></b></b><br>
			<?php $this->ERROR?>
			<br>

			<form>
			<input type="button" value="Go Back" onclick="history.go(-1)">
			</form>
	</td><td align="right">
	</td></tr>
	</table>
		<?php
		return false;
	} 

	/*
	$update_string = '<a href="'.$this->item_link_edit.'?id='.$this->LodgeRequestID.'">Update</a>';
	if (!empty($this->instruction_type)) {

		// this item has been posted
		$update_string = "A BOOKING EXISTS FOR THIS REQUEST";

	}
	*/
	?>

	<!-- Start Table 1 //-->

	<table cellpadding="0" cellspacing="0" border="0" width="95%" bordercolor="#336699">
	<tr><td>
	<b class="subtitle">Manual Services</b><br>
	<?php
		// tell the user whether a booking exists for this settlement
		if (!empty($this->instruction_type)) {

			echo "<B>THIS SERVICE HAS BEEN BOOKED</B>\n";

		} elseif ($this->Master->RequestStatus == "deleted") {
			echo "<B>THIS SERVICE HAS BEEN <font color='red'>DELETED</font></B>\n";

		} 
		?>
	</td></tr>
	</table>



	<?php
	$this->Show_Details("text");
	$show_input = 0;
	$show_required = 0;
	$input_class = "input";
	$this->Input_Form($show_input, $show_required, $input_class);
	$this->Print_Buttons_View();


}



/**
* Display the equipment item
*/
function PrintDisplay() {


	Debug("<strong>ManualRequest_Html->PrintDisplay</strong>()<br>\n");

	$masterObj = new LodgeMaster($this->LodgeRequestID, $this->LodgeType);
	$masterObj->LookupDetails();
	$masterObj->ShowStyleSheet();

	$this->LookupDetails();


	if ($this->ERRNO > 0) {
		?>
		<!-- Start Table 1 //-->
	<table cellpadding="0" cellspacing="0" border="0" width="100%" bordercolor="#336699">
	<tr><td>
			<b class="h2">Error</b><br>
			<b class="h3"><b class="red"></b></b><br>
			<?php $this->ERROR?>
			<br>

			<form>
			<input type="button" value="Go Back" onclick="history.go(-1)">
			</form>
	</td><td align="right">
	</td></tr>
	</table>
		<?php
		return false;
	} 

	/*
	$update_string = '<a href="'.$this->item_link_edit.'?id='.$this->LodgeRequestID.'">Update</a>';
	if (!empty($this->instruction_type)) {

		// this item has been posted
		$update_string = "A BOOKING EXISTS FOR THIS REQUEST";

	}
	*/
	?>

	<table cellpadding="0" cellspacing="0" border="0" width="650" bordercolor="#336699">
	<tr><td colspan=2>

	<a href="<?php $this->item_link.'?id='.$this->LodgeRequestID?>">
	<b class="subtitle">Manual Services</b> - 
	ID:<?php $this->LodgeRequestID?>
	</a>

	</td>
	<td valign="top" align="right"><img src='/settlements/lodge/primebox.gif'></td>
	</tr>
	</table>


	<style>

BODY, TD, P, FONT, SPAN, B, DIV
{ font-size: 10px; font-family : Arial, Helvetica, sans-serif; }
</style>
	<?php

	$this->Show_Details("small");
	$show_input = 0;
	$show_required = 0;
	$input_class = "small";
	$this->Input_Form($show_input, $show_required, $input_class);

	?>
	<script language="">
	<!--
		window.print();
	//-->
	</script>
	<?php
}







function Input_Form($show_input = 1, $show_required = 1, $input_class = "input") {

Debug("ManualRequest_Html->Input_Form($show_input, $show_required, $input_class)\n");

$HTML = new HTML();


// Determine if there is an existing booking 
// If there is a booking, then do not allow the user to 
// change the value of the key (email, date, time, session)
$show_keyinput = $show_input;
if (!empty($this->instruction_type)) {
	$show_keyinput = 0;
}

?>

<input type="hidden" name="LodgeRequestID" value="<?php $this->LodgeRequestID?>" />
<input type="hidden" name="LodgeType" value="<?php $this->Master->LodgeType?>" />
<input type="hidden" name="LoginID" value="<?php $this->Master->LoginID?>" />
<input type="hidden" name="STATE" value="<?php $this->Master->RequestState?>" />
<input type="hidden" name="RequestTime" value="<?php $this->Master->RequestTime?>" />
<input type="hidden" name="RequestSession" value="<?php $this->Master->RequestSession?>" />

<hr size=1 noshade>

<table cellpadding="1" cellspacing="1" border="0" width="95%">
<tr>  
	<td width="50%" valign="top">



		<table cellpadding="1" cellspacing="1" border="0" width="100%">
		<tr>  
			<td width="35%" valign="top"></td>
			<td width="65%" valign="top"></td>
		</tr>
		<tr>
			<td valign="top" class="header"> <?php $this->Show_Title('SolicitorFirmName', $show_required);?></td>
			<td valign="top" nowrap><?php $HTML->Input_Text($this->data['SolicitorFirmName'], 'SolicitorFirmName', 30, $input_class, $show_input); ?></td>
		</tr>
		<tr>
			<td valign="top" class="header"><?php $this->Show_Title('SolicitorAddress', $show_required);?></td>
			<td valign="top" nowrap><?php $HTML->Input_TextArea($this->data['SolicitorAddress'], 'SolicitorAddress', 30, 4, $input_class, $show_input); ?></td>
		</tr>
		<tr>
			<td valign="top" class="header"><?php $this->Show_Title('SolicitorEmailAddress', $show_required);?></td>
			<td valign="top" nowrap><?php $HTML->Input_Text($this->data['SolicitorEmailAddress'], 'SolicitorEmailAddress', 30, $input_class, $show_input); ?></td>
		</tr>
		<tr>
			<td valign="top" class="header"><?php $this->Show_Title('SolicitorContactName', $show_required);?></td>
			<td valign="top" nowrap><?php $HTML->Input_Text($this->data['SolicitorContactName'], 'SolicitorContactName', 30, $input_class, $show_input); ?>			
		</tr>
		<tr>
			<td valign="top" class="header"><?php $this->Show_Title('SolicitorPhone', $show_required);?></td>
			<td valign="top" nowrap><?php $HTML->Input_Text($this->data['SolicitorPhone'], 'SolicitorPhone', 30, $input_class, $show_input); ?></td>

		</tr>
		<tr>
			<td valign="top" class="header"><?php $this->Master->Show_Title('RequestRef', $show_required);?></td>
			<td valign="top">
			<?php $HTML->Input_Text($this->Master->RequestRef, 'RequestRef', 30, $input_class, $show_input); ?>
			</td>

		</tr>
		<tr>
			<td valign="top" class="header"><?php $this->Show_Title('ClientName', $show_required);?></td>
			<td valign="top"> <?php $HTML->Input_Text($this->data['ClientName'], 'ClientName', 30, $input_class, $show_input);?></td>
		</tr>


		</table>


	</td>
	<td width="50%" valign="top">


		<table cellpadding="1" cellspacing="1" border="0" width="100%">
		<tr>  
			<td width="35%" valign="top"></td>
			<td width="65%" valign="top"></td>
		</tr>
		<tr>
			<td valign="top" colspan=2>

				<fieldset>

				<table cellpadding="1" cellspacing="1" border="0" width="100%">
				<tr>
				<td width="35%" valign="top"></td>
				<td width="65%" valign="top"></td>					
				</tr>

				<tr>
			<td valign="top" class="header">To</td>
			<td valign="top">

				<?php nl2br(_COMPANY_NAME)?>

			</td>
		</tr>
		<tr>
			<td valign="top" class="header"></td>
			<td valign="top">

				<?php nl2br(_COMPANY_ADDRESS)?>

			</td>
		</tr>
		<tr>
			<td valign="top" class="header">Fax</td>
			<td valign="top">
				<?php _COMPANY_FAX?>
			</td>
		</tr>
		<tr>
			<td valign="top" class="header">Phone</td>
			<td valign="top">
				<?php _COMPANY_PHONE?>
			</td>
		</tr>
		<tr>
			<td valign="top" class="header">DX</td>
			<td valign="top">
				<?php _COMPANY_DX?>
			</td>
		</tr>
				</table>


			</td>
		</tr>

		<tr>

			<td valign="top" colspan=2>

				<fieldset>

				<table cellpadding="1" cellspacing="1" border="0" width="100%">
				<tr>
				<td width="35%" valign="top"></td>
				<td width="65%" valign="top"></td>					
				</tr>
				<tr>
				<td valign="top" class="header"><?php $this->Master->Show_Title('RequestDate', $show_required);?></td>
				<td valign="top" > <?php $this->Master->Input_RequestDate($show_keyinput); ?> </td>
				</tr>

				<tr>
				<td valign="top" class="header"><?php $this->Master->Show_Title('RequestState', $show_required);?></td>
				<td valign="top">

					<?php
					$HTML->PrintStateSelectBox("RequestState", $this->Master->RequestState, 0); // don't let the user change state
					// cannot change a state, must pre-select state before making a booking
					?>
				</td>
				</tr>
				<!-- <tr>
				<td valign="top" class="header"><?php $this->Master->Show_Title('RequestVenue', $show_required);?></td>
				<td valign="top">

					<?php
					$HTML->PrintVenueSelectBox($this->Master->RequestState, "RequestVenue", $this->Master->RequestVenue, $this->data['RequestVenue_other'], $show_input);

					?>

				</td>
				</tr> -->
				</table>
				</fieldset>
			</td>


		</tr>


		</table>


	</td>
</tr>
</table>

<hr size=1 noshade>


	<!-- START PRODUCT SELECTION -->
	<table cellpadding="1" cellspacing="1" border="0" width="95%">
	<tr>
		<td width="2%" valign="top"></td>
		<td width="98%" valign="top"></td>
	</tr>
	<tr>
		<td valign="top" colspan=2 class="header">Product/Service</td>
	</tr>
	<tr>
		<td valign="top" colspan=2 class="">
		Selected Product : 
		<?php $HTML->Input_Text($this->data['ProductSelection'], 'ProductSelection', 50, "noborder", $show_input);?>


		</td>
	</tr>

	<?php


	$this->Set_Products($show_input);

	$selected_pos = "";


	for ($i=0; $i<count($this->Products); $i++) {

			$var1 = $this->Products[$i]['name'];
			$data = $this->Products[$i]['data'];


			if (is_array($data)) {

			$is_expanded 	= $data['is_expanded'];
			$input_off 		= $data['input_off'];
			$input_on 		= $data['input_on'];

			$expand_content = $data['expand_content'];
			$question 		= $data['question'];
			$field_label 	= $data['field_label'];
			$expand_jsname 	= $data['expand_jsname'];

			}
			if (!empty($var1) && $var1 == $this->data['ProductSelection']) {
				$selected_pos = $i;
				$is_expanded 	= 1;
			} else {
				$selected_pos = "";
				$is_expanded 	= 0;
			}
			/**/
			?>

			<tr>
				<td valign="top" colspan=2>
					<?php
					if (is_array($data)) {
						$this->Expand_Unique_Content($expand_jsname, $field_label, $question, $input_on, $input_off, $expand_content, $is_expanded, $i);

						$this->Expand_Content($expand_jsname, $field_label, $question, $expand_content, $i, $is_expanded, $show_input);
						echo "";
					} else {
						echo $var1;
					}
					?>
				</td>
			</tr>
			<?php

		}
		$this->Expand_Content_Footer($input_on, $input_off, $is_expanded, $selected_pos);

	?>
	</table>
	<!-- END PRODUCT SELECTION -->

	<br>


<hr size=1 noshade>
	<br>


<?php

}





/**
* Display the equipment item
*/
function GetTextOnly() {


	Debug("<strong>Court_Request_Html->GetTextOnly</strong>()<br>\n");




	$message = "";
	$message .= $this->RequestState. "\n";
	$message .= "MANUAL SERVICES\n";
	$message .= "\n";
	$message .= "From : ". $this->Master->SolicitorFirmName ."\n";
	$message .= "Address : ". $this->Master->SolicitorAddress ."\n";
	$message .= "Email : ". $this->Master->SolicitorEmailAddress ."\n";
	$message .= "Contact : ". $this->Master->SolicitorContactName ."\n";
	$message .= "Phone : ". $this->Master->SolicitorPhone ."\n";
	$message .= "\n";
	$message .= "Ref : ". $this->Master->SolicitorRef ."\n";
	$message .= "Client : ". $this->Master->ClientName ."\n";
	$message .= "Court : ". $this->data['Court'] ."\n";
	$message .= "\n";

	$message .= "Filing Date : ". $this->Master->GetFormatDate($this->Master->RequestDate, 1) ."\n";
	$message .= "Urgency : ". $this->data['Urgency'] ."\n";
	$message .= "\n";

	$message .= "Product Selection : ". $this->data['ProductSelection'] ."\n";
	$message .= "\n";

	$message .= "Probate Options \n";
	foreach ($this->ProbateOptions as $i=>$info) {

			$varname = $info[0];

			if (!is_array($info[1])) {
				$price = $info[1];
				$detail = $info[2];

				if ($this->data[$varname]) {
					$message .= "$". $price." - ". $detail ."\n";
				}
			} else {
				$data = $info[1];
				$j=0;
				foreach  ($data as $varname2 => $info2) {

					$j++;
					$varname2 = $info2[0];
					$price2 = $info2[1];
					$detail2 = $info2[2];

					if ($this->data[$varname2]) {
						$message .= "$". $price2." - ". $detail2 ."\n";
					}
				}
			}
	}
	$message .= "\n";

	$message .= "Stamping Options \n";
	foreach ($this->StampingOptions as $i=>$info) {

			$varname = $info[0];

			if (!is_array($info[1])) {
				$price = $info[1];
				$detail = $info[2];

				if ($this->data[$varname]) {
					$message .= "$". $price." - ". $detail ." \n";
				}
			} else {
				$data = $info[1];
				$j=0;
				foreach  ($data as $varname2 => $info2) {

					$j++;
					$varname2 = $info2[0];
					$price2 = $info2[1];
					$detail2 = $info2[2];

					if ($this->data[$varname2]) {
						$message .= "$". $price2." - ". $detail2 ." \n";
					}
				}
			}
	}
	$message .= "\n";

	$message .= "\n";
	$message .= "Search Requirements\n";
	$message .= "\n";
	for ($i=1; $i<=$this->SearchCount; $i++) {
		$var1 = "Search". $i."Name";
		$var2 = "Search". $i."Details";
		if (empty($this->data[$var1]) &&empty($this->data[$var2])) continue;

		$message .= "Search ".$i ." : ". $this->data[$var1] ."\n"; 
		$message .= "[Details] ". $this->data[$var2]."\n"; 
		$message .= "\n";
	}

	$message .= "\n";


	$message .= "We enclose the following documents for filing\n";
	$message .= "\n";
	for ($i=1; $i<=$this->DocumentCount; $i++) {
		$var1 = "Document". $i."Name";
		$var2 = "Document". $i."Details";
		if (empty($this->data[$var1]) &&empty($this->data[$var2])) continue;

		$message .= "Document ".$i ." : ". $this->data[$var1] ."\n"; 
		$message .= "[Details] ". $this->data[$var2]."\n"; 
		$message .= "\n";

	}

	$message .= "\n";


	return $message;

}



function GetDiaryLink_Old() {

		$submit_url = $this->diary_url;

		$submit_vars = array();
		$submit_vars["New"]=1;
		$submit_vars["Date"]=$this->Master->RequestDate;
		$submit_vars["Time"]=$this->Master->RequestTime;
		$submit_vars["Session"]=1;
		$submit_vars["URL"]="calendar.php3";
		$submit_vars["STATE"]="QLD";
		$submit_vars["location"]=urlencode($this->data['SettlementVenue']);
		$submit_vars["reference"]=urlencode($this->Master->SolicitorRef);

		$url = $submit_url;
		foreach ($submit_vars as $key=>$val) {
			$url .= $key."=".$val."&";
		}
		$url = SubStr($url, 0, StrLen($url)-1);

		#echo "<a href='$url'>". $url."</a><br>";
		return $url;

}



/**
* Display the equipment item
*/
function DiaryForm_Old() {


	Debug("<strong>ManualRequest_Html->DiaryForm</strong>()<br>\n");

	$this->LookupDetails();


	if ($this->ERRNO > 0) {
		?>
		<!-- Start Table 1 //-->
	<table cellpadding="0" cellspacing="0" border="0" width="100%" bordercolor="#336699">
	<tr><td>
			<b class="h2">Error</b><br>
			<b class="h3"><b class="red"></b></b><br>
			<?php $this->ERROR?>
			<br>

			<form>
			<input type="button" value="Go Back" onclick="history.go(-1)">
			</form>
	</td><td align="right">
	</td></tr>
	</table>
		<?php
		return false;
	} 



	?>

	<!-- Start Table 1 //-->

	<table align="center" cellpadding="0" cellspacing="0" border="0" width="95%" bordercolor="#336699">
	<tr><td>
	<b class="h2">Post Your Request to the Diary</b><br>

		<br>
		<br>

	</td><td align="right" valign="top" nowrap>
		<a href="javascript:history.go(-1)">« Go Back</a>
	</td></tr>
	</table>

	<!-- Start Table 1 //-->
	<table align="center" cellpadding="0" cellspacing="0" border="0" width="95%" bordercolor="#336699">
	<tr>
	<td valign="top" align="">


		<?php
		$url = $this->Master->GetDiaryLink();
		echo "<a href='$url'>Click to start</a>";

		?>

		<br>
		<br>

	</td></tr>

	</table>
	<br>

	<?php

}







// retired functions

function Show_Details_Old($class = "text") {
	?>

<hr size=1 noshade>

<table cellpadding="1" cellspacing="1" border="0">
<tr>
	<td width="20%" valign="top"></td>
	<td width="30%" valign="top"></td>
	<td width="20%" valign="top"></td>
	<td width="30%" valign="top"></td>
</tr>
<tr>
	<td valign="top" class="header">From</td>
	<td valign="top" nowrap><?php $this->Master->SolicitorFirmName?></td>
	<td valign="top" class="header">To</td>
	<td valign="top">

		<?php nl2br(_COMPANY_NAME)?>

	</td>
</tr>
<tr>
	<td valign="top" class="header">Address</td>
	<td valign="top" nowrap><?php $this->Master->SolicitorAddress?></td>
	<td valign="top" class="header"></td>
	<td valign="top">

		<?php nl2br(_COMPANY_ADDRESS)?>

	</td>
</tr>

<tr>
	<td valign="top" class="header">Email</td>
	<td valign="top" nowrap><?php $this->Master->SolicitorEmailAddress?></td>
	<td valign="top" class="header">Fax</td>
	<td valign="top">
		<?php _COMPANY_FAX?>
	</td>
</tr>
<tr>
	<td valign="top" class="header">Contact</td>
	<td valign="top" nowrap><?php $this->Master->SolicitorContactName?>
	<td valign="top" class="header">Phone</td>
	<td valign="top">
		<?php _COMPANY_PHONE?>
	</td>
</tr>
<tr>
	<td valign="top" class="header">Phone</td>
	<td valign="top" nowrap><?php $this->Master->SolicitorPhone?></td>
	<td valign="top" class="header">DX</td>
	<td valign="top">
		<?php _COMPANY_DX?>
	</td>
</tr>
<tr>
	<td valign="top" class="header">Ref</td>
	<td valign="top"><?php $this->Master->SolicitorRef?></td>
	<td valign="top" class="header"></td>
	<td valign="top"></td>

</tr>


</table>

<hr size=1 noshade>



	<table width="650">
	<tr>
		<td width="2%" valign="top"></td>
		<td width="98%" valign="top"></td>
	</tr>
	<tr>
		<td valign="top" colspan=2 class="header">Product/Service</td>
	</tr>

	<?php for ($i=1; $i<count($this->Products); $i++) {

			$var1 = $this->Products[$i];

			if ($this->data['ProductSelection'] == $var1) {
			?>

			<tr>
				<td valign="top">-</td>
				<td valign="top"><?php $var1?></td>
			</tr>
			<?php
			}
		}

	?>
	</table>

	<hr size=1 noshade>
	<table width="650">
	<tr>
		<td width="2%" valign="top"></td>
		<td width="2%" valign="top"></td>
		<td width="66%" valign="top"></td>
		<td width="30%" valign="top"></td>
	</tr>
	<tr>
		<td valign="top" colspan=4 class="header">Probate searching & lodging</td>
	</tr>

	<?php
	foreach ($this->ProbateOptions as $i=>$info) {

			$varname = $info[0];

			if (!is_array($info[1])) {
				$price = $info[1];
				$detail = $info[2];

				if ($this->data[$varname]) {
					?>
					<tr><td valign="top" class="">-<?php $this->InputCheckBox($varname, $detail, "", $this->data[$varname])?></td>
						<td valign="top" class=""></td>
						<td valign="top" class=""><?php $detail?></td>
						<td valign="top" class="price">$<?php $price?></td>
					</tr>
					<?php
				}



			} else {
				// we have a multi option selection
				$data = $info[1];
				$j=0;
				foreach  ($data as $varname2 => $info2) {

					$j++;
					$varname2 = $info2[0];
					$price2 = $info2[1];
					$detail2 = $info2[2];

					if ($this->data[$varname2]) {

					?>
					<tr>
					<td valign="top" class="">
						-
						<?php if ($j==1) {?>
						<?php $this->InputCheckBox($varname, $varname, "", $this->data[$varname])?>

						<?php }?>
					</td>
					<td valign="top" class="">
						<?php $this->InputRadio($varname2, $detail2, "", $this->data[$varname2])?>
						-
					</td>
					<td valign="top" class=""><?php if($this->data[$varname2]) echo $detail2;?></td>
					<td valign="top" class="price">$<?php if($this->data[$varname2]) echo $price2?></td>
					</tr>
					<?php
					}

				}

			}

		}

	?>
	</table>

	<hr size=1 noshade>
	<table width="650">
	<tr>
		<td width="2%" valign="top"></td>
		<td width="2%" valign="top"></td>
		<td width="66%" valign="top"></td>
		<td width="30%" valign="top"></td>
	</tr>
	<tr>
		<td valign="top" colspan=4 class="header">Stamping & Lodging at the Land Registry</td>
	</tr>

	<?php
	foreach ($this->StampingOptions as $i=>$info) {

			$varname = $info[0];

			if (!is_array($info[1])) {
				$price = $info[1];
				$detail = $info[2];

				if ($this->data[$varname]) {
				?>
				<tr><td valign="top" class="">

					-
					<?php $this->InputCheckBox($varname, $detail, "", $this->data[$varname])?>

					</td>
					<td valign="top" class=""></td>
					<td valign="top" class=""><?php $detail?></td>
					<td valign="top" class="price">$<?php $price?></td>
				</tr>
				<?php
				}

			} else {
				// we have a multi option selection
				$data = $info[1];
				$j=0;
				foreach  ($data as $varname2 => $info2) {

					$j++;
					$varname2 = $info2[0];
					$price2 = $info2[1];
					$detail2 = $info2[2];

					if ($this->data[$varname] || $this->data[$varname2]) {
					?>
					<tr>
					<td valign="top" class="">
						<?php if ($j==1) {?>
						<?php $this->InputCheckBox($varname, $varname, "", $this->data[$varname])?>
						<?php }?>
					</td>
					<td valign="top" class="">
						<?php $this->InputRadio($varname2, $detail2, "", $this->data[$varname2])?>
					</td>
					<td valign="top" class=""><?php $detail2?></td>
					<td valign="top" class="price">$<?php $price2?></td>
					</tr>
					<?php 
					}
				}

			}

		}

	?>
	</table>

	<hr size=1 noshade>
	<b>Do you wish to use Prime's Manual Services Instructions?</b>
<!-- <input type="radio" name="RequestExtra" value="0"> No
<input type="radio" name="RequestExtra" value="1"> Yes -->
<?php if ($this->Master->RequestExtra){?>

<b>Yes </b>
<br>






	<table>
	<tr>
		<td width="2%" valign="top"></td>
		<td width="48%" valign="top"></td>
		<td width="50%" valign="top"></td>
	</tr>
	<tr>
		<td valign="top" colspan=3 class="header">Search Requirements</td>
	</tr>

	<tr>
		<td valign="top" colspan=2 class="header">List Requirements</td>
		<td valign="top" class="header">Details</td>
	</tr>
	<?php for ($i=1; $i<=$this->SearchCount; $i++) {

			$var1 = "Search". $i."Name";
			$var2 = "Search". $i."Details";

			if (empty($this->data[$var1]) && 
				empty($this->data[$var2]) ) continue;
			?>

			<tr>
				<td valign="top"><?php $i?></td>
				<td valign="top"><?php  $this->data[$var1]; ?></td>
				<td valign="top"><?php $this->data[$var2]; ?></td>
			</tr>
			<?php
		}

	?>
	</table>
	<hr size=1 noshade>
	<b class="header">We enclose the following documents for filing</b><br>

	<table>
	<tr>
		<td width="2%" valign="top"></td>
		<td width="48%" valign="top"></td>
		<td width="50%" valign="top"></td>
	</tr>
	<tr>
		<td valign="top" colspan=3 class="header">Filing Requirements</td>
	</tr>

	<tr>
		<td valign="top" colspan=2 class="header">List Documents</td>
		<td valign="top" class="header">Details</td>
	</tr>
	<?php for ($i=1; $i<=$this->DocumentCount; $i++) {

			$var1 = "Document". $i."Name";
			$var2 = "Document". $i."Details";

			if (empty($this->data[$var1]) && 
				empty($this->data[$var2]) ) continue;
			?>

			<tr>
				<td valign="top"><?php $i?></td>
				<td valign="top"><?php  $this->data[$var1]; ?></td>
				<td valign="top"><?php $this->data[$var2]; ?></td>
			</tr>
			<?php
		}

	?>
	</table>
	<hr size=1 noshade>



	<table cellpadding="1" cellspacing="1" border="0">
	<tr>
		<td width="40%" valign="top"></td>
		<td width="60%" valign="top"></td>

	</tr>
	<tr>
		<td valign="top" class="header" colspan=2>
			Probate Details
		</td>
	</tr>

	<tr>
		<td valign="top" class="">
			Person 1 Surname
		</td>
		<td valign="top" class="">
			<?php $this->data['ProbateSearch_OnSurname']?>
		</td>
	</tr>

	<tr>
		<td valign="top" class="">
			Given names
		</td>
		<td valign="top" class="">
			<?php $this->data['ProbateSearch_OnGivenname']?>
		</td>
	</tr>

	<tr>
		<td valign="top" class="">
			Date of Death
		</td>
		<td valign="top" class="">
			<?php $this->data['ProbateSearch_OnDateofdeath']?>
		</td>
	</tr>
	<tr>
		<td valign="top" class="header" colspan=2>
			Probate Details
		</td>
	</tr>

	<tr>
		<td valign="top" class="">

		</td>
		<td valign="top" class="">
			Draw CHEQUES made payable to the relevant AUTHORITY, 
			then attach enclosures and cheques to the printed client cover sheet 
			and DX/POST to Prime's Melbourne Office.
		</td>
	</tr>
	<tr>
		<td valign="top" class="header" colspan=2>
			Lodge probate documents:
		</td>
	</tr>

	<tr>
		<td valign="top" class="">
			Details of instructions, etc
		</td>
		<td valign="top" class="">
			<?php nl2br($this->data['ProbateSearch_Instructions'])?>
		</td>
	</tr>
	<tr>
		<td valign="top" class="header" colspan=2>
			<hr size=1 noshade>
			<b class="header">Other Pre/post instructions</b>
		</td>
	</tr>

	<tr>
		<td valign="top"class="header">Instructions</td>
		<td valign="top">
			<?php nl2br($this->data['Other_Instructions'])?>
		</td>

	</tr>
	</table>



<!-- 
<table>
<tr>
	<td width="30%"valign="top"></td>
	<td width="70%" valign="top"></td>

</tr>
<tr>
	<td valign="top" colspan=4 class="<?php $class?>"><b class="header">Other Pre/post filing instructions</b></td>
</tr>
<tr>
	<td valign="top" class="<?php $class?>"><b class="header">Instructions</b></td>
	<td valign="top" class="<?php $class?>">
		<?php  $this->data["Instructions"]?>
	</td>

</tr>

<tr>
	<td valign="top" class="<?php $class?>"><b class="header">Instructions File</b></td>
	<td valign="top" class="<?php $class?>">
		<?php
		if (!empty($this->data["InstructionFile"])) {
			echo "<a href='".$this->FilePath."".$this->data["InstructionFile"]."' target='_blank'>".$this->data["InstructionFile"]."</a>";
		}
		?>
	</td>

</tr>

</table> -->
<?php }?>

	<?php
}


}

?>

Link to comment
Share on other sites

Yeah I saw the copyright date and was like ... writing php3 scripts in 2005 wtf?

 

some method in some class that extends some other class that extends yet another class is trying to call a method that apparently doesn't exist.  He says it was working before the upgrade, and now it's giving that error after the upgrade.  My first guess is he has uploaded some older file where it doesn't exist yet, or something.

Link to comment
Share on other sites

This was my guess too however I can't find the function on the existing php3 version of the site. hence why i was wondering if it was something older that has been replaced.

 

i'll keep on searching it has to exist somewhere.

 

oh yeah and the copy dates too, this seems to be an upgrade to the old code. most of the comments say 1998-99

Link to comment
Share on other sites

Either the file is on the server, perhaps hidden, outside the folder tree you are downloading, or is something on the include_path or you do in fact have the file but it is not being included. Are you debugging this on a system where error reporting is set to E_ALL so that an include statement that is failing will give you an error?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.