예제 #1
0
<?php

error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR);
require './roots.php';
require $root_path . 'include/care_api_classes/supplier_database_class.php';
require $root_path . 'include/care_api_classes/class_add_to_store.php';
require $root_path . 'include/care_api_classes/class_transfer.php';
$stores = new addtostore();
if (isset($_POST['store'])) {
    $store = $_POST['store'];
    $store1 = $store;
    $_SESSION['stores'] = $store;
} elseif (isset($_GET['stores'])) {
    $store = $_GET['stores'];
}
?>
<p align="center"><form action="index.php?goto=viewstores" method="post"><table align="center">
<tr><td><strong>Search Store Name :</strong></td><td><input name="store" type="text" value="<?php 
echo $store1;
?>
"></td>
<td><input name="searchstore" type="submit" value="Search"></td></tr></table></form></p>

<?php 
if (isset($_POST['submit6'])) {
    $from = $_POST['locationstore'];
    $stores->goto_transfer($date, "pharmacy", $store, $from);
    $transferid = $stores->transfer_id;
} elseif (isset($_GET['transfer'])) {
    if (!isset($_GET['stinh'])) {
        $stores->transfer($store);
예제 #2
0
<?php

error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR);
require './roots.php';
//require_once('index.php');
require $root_path . 'include/care_api_classes/supplier_database_class.php';
require $root_path . 'include/care_api_classes/class_purchase_order.php';
require $root_path . 'include/care_api_classes/class_grn_master_detail.php';
require $root_path . 'include/care_api_classes/class_add_to_store.php';
$additem = new addtostore();
$order_id = $_REQUEST['oid'];
$plced_date = $_REQUEST['odate'];
$supplier = $_REQUEST['sp'];
$amount = $_REQUEST['total'];
$placed_by = $_REQUEST['pby'];
$supplier_id = $_REQUEST['si'];
$SP = strtoupper($supplier);
$datedefault = date("d/m/Y");
?>
<script language="JavaScript" type="text/javascript">
  function checkForm(){
  	var save;
  	save=false;
  	with(document.grn){
  		if(currency.value==""){
  			alert("Select currency");
  			currency.focus();
  			return save;
  		}else if(datereceived.value==""){
  			alert("Enter received date");
  			datereceived.focus();