Exemplo n.º 1
0
	{
		$var = htmlsafe($var);
		$display_block_templates_list .= "<option value='$var' >";
		$display_block_templates_list .= $var;
		$display_block_templates_list .= "</option>";
	}


	$display_block_templates_list .= "</select>";

	/*end drop down list section */
	/*start validataion section */

	jsBegin();
	jsFormValidationBegin("frmpost");
	jsValidateRequired("def_inv_template","{$LANG['default_inv_template']}");
	jsFormValidationEnd();
	jsEnd();
	/*end validataion section */


	$description = $LANG['default_inv_template'];

	$value = $display_block_templates_list;
	//error_log($value);

}

else if ($_GET["submit"] == "biller") {

	$default = "biller";
Exemplo n.º 2
0
/*
* Script: consulting.php
* 	consulting invoice page
*
* Authors:
*	 Justin Kelly, Nicolas Ruflin
*
* Last edited:
* 	 2007-07-19
*
* License:
*	 GPL v2 or above
*
* Website:
* 	http://www.simpleinvoices.org
*/
//stop the direct browsing to this file - let index.php handle which files get displayed
checkLogin();
jsBegin();
jsFormValidationBegin("frmpost");
jsTextValidation("biller_id", "Biller Name", 1, 1000000);
jsTextValidation("customer_id", "Customer Name", 1, 1000000);
jsValidateifNumZero("i_quantity0", "Quantity");
jsValidateifNum("i_quantity0", "Quantity");
jsValidateRequired("select_products0", "Product");
jsTextValidation("select_tax", "Tax Rate", 1, 100);
jsPreferenceValidation("select_preferences", "Invoice Preference", 1, 1000000);
jsFormValidationEnd();
jsEnd();
$pageActive = "invoices";
include './modules/invoices/invoice.php';
Exemplo n.º 3
0
<?php

//stop the direct browsing to this file - let index.php handle which files get displayed
checkLogin();
#table
jsBegin();
jsFormValidationBegin("frmpost");
jsValidateRequired("tax_description", $LANG['tax_description']);
jsValidateifNum("tax_percentage", $LANG['tax_percentage']);
jsFormValidationEnd();
jsEnd();
#get the invoice id
$tax_rate_id = $_GET['id'];
$tax = getTaxRate($tax_rate_id);
$types = getTaxTypes();
$smarty->assign("tax", $tax);
$smarty->assign("types", $types);
$smarty->assign('pageActive', 'tax_rate');
$subPageActive = $_GET['action'] == "view" ? "tax_rates_view" : "tax_rates_edit";
$smarty->assign('subPageActive', $subPageActive);
$smarty->assign('active_tab', '#setting');
Exemplo n.º 4
0
<?php

//stop the direct browsing to this file - let index.php handle which files get displayed
checkLogin();
//TODO
jsBegin();
jsFormValidationBegin("frmpost");
jsValidateRequired("pt_description", $LANG['payment_type_description']);
jsFormValidationEnd();
jsEnd();
#get the invoice id
$payment_type_id = $_GET['id'];
$paymentType = getPaymentType($payment_type_id);
$smarty->assign('paymentType', $paymentType);
$smarty->assign('pageActive', 'payment_type');
$subPageActive = $_GET['action'] == "view" ? "payment_types_view" : "payment_types_edit";
$smarty->assign('subPageActive', $subPageActive);
$smarty->assign('active_tab', '#setting');
Exemplo n.º 5
0
<?php

//stop the direct browsing to this file - let index.php handle which files get displayed
checkLogin();
//TODO
/*validation code*/
jsBegin();
jsFormValidationBegin("frmpost");
jsValidateRequired("name", "Biller name");
jsFormValidationEnd();
jsEnd();
/*end validation code*/
$payment = getPayment($_GET['id']);
/*Code to get the Invoice preference - so can link from this screen back to the invoice - START */
$invoice = getInvoice($payment['ac_inv_id']);
$invoiceType = getInvoiceType($invoice['type_id']);
$paymentType = getPaymentType($payment['ac_payment_type']);
$smarty->assign("payment", $payment);
$smarty->assign("invoice", $invoice);
$smarty->assign("invoiceType", $invoiceType);
$smarty->assign("paymentType", $paymentType);
$smarty->assign('pageActive', 'payment');
$smarty->assign('active_tab', '#money');