Esempio n. 1
0
<style type="text/css">
		input.text { width:95%; padding: .4em; }
		select.text { width:100%; padding: .3em; }
		fieldset { padding:0; border:0; margin-top:25px; }
		h1 { font-size: 1.2em; margin: .6em 0; }
		div#users-contain {  width: 610px; margin: 20px 0; }
		div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 600px; }
		div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; font-size:0.85em;  }
		.ui-button { outline: 0; margin:0; padding: .1em ; text-decoration:none;  !important; cursor:pointer; position: relative; text-align: center; }
		.ui-dialog .ui-state-highlight, .ui-dialog .ui-state-error { padding: .3em;  }
		#searchtable th{ font-size:0.85em;}
		#searchtable select, #searchtable input{font-size:0.85em;}
	</style>
<?php 

$objAccount=new AccountClass($db);

if(isset($_POST['Search']) && $_POST['Search']=="Search"){
	if(isset($_POST['search_name']) && $_POST['search_name']!=""){
		$objAccount->name=$_POST['search_name'];
		//echo $objAccount->name;
	}
	
	if(isset($_POST['search_amount']) && $_POST['search_amount']!=""){
		$objAccount->amount=$_POST['search_amount'];
	}
	
	if(isset($_POST['search_currency']) && $_POST['search_currency']>0){
		$objAccount->id_currency=$_POST['search_currency'];
	}
	
Esempio n. 2
0
require_once('../../core/connect.php');
require_once('../../core/CoreClass.php');
require_once('../../BLL/AccountsBLL.php');

$id="";
$name="";
$client="";
$currency="";
$amount="";
$debit=0;
$credit=0;
$vdate1="";
$vdate2="";
$msg="";

$objAccount=new AccountClass($db);
//$objAccount->entryby=$_SESSION['userid'];

if(isset($_POST['name']) && $_POST['name']!=""){
	$name=$_POST['name'];
	$objAccount->name=$name;
}
else{
	echo "Name is Blank.";
	return;
}

if(isset($_POST['amount']) && $_POST['amount']!=""){
	$amount=$_POST['amount'];
	$objAccount->amount=$amount;
}