<?php include_once "../../../includes/basics/basics.inc"; if (!empty($_REQUEST['action']) && ($_REQUEST['action'] = 'search')) { if (empty($_REQUEST['term'])) { exit; } $supplier_name = $_REQUEST['term']; if (!empty($_REQUEST['primary_column1'])) { $primary_column1 = $_REQUEST['primary_column1']; } $supplier = new supplier(); $supplier->supplier_name = $supplier_name; if (!empty($primary_column1)) { $supplier->org_id = $primary_column1; $data = $supplier->searchBy_supplierName_orgId(); } else { $data = $supplier->searchBy_supplier_name(); } // JSON data echo json_encode($data); flush(); //return from this file return; } if (!empty($_GET['supplier_id']) && !empty($_GET['find_supplier_details'])) { $supplier_id = $_GET['supplier_id']; $data = []; $all_site = supplier_site::find_all_sitesOfSupplier($supplier_id); $data['supplier_site_id'] = $f->select_field_from_object('supplier_site_id', supplier_site::find_all_sitesOfSupplier($supplier_id), 'supplier_site_id', 'supplier_site_name', '', 'supplier_site_id'); $supplier_details = supplier::find_by_id($supplier_id);
<thead> <tr> <th>Action</th> <th>Seq#</th> <th>User Supplier Id</th> <th>Supplier Id</th> <th>Supplier Name</th> <th>Supplier Site</th> </tr> </thead> <tbody class="form_data_line_tbody user_supplier_values" > <?php $count = 0; foreach ($user_supplier_object as $user_supplier) { if (!empty(${$class}->supplier_id)) { $sup = new supplier(); $sup->findBy_id(${$class}->supplier_id); ${$class}->supplier_name = $sup->supplier_name; $supplier_site = supplier_site::find_by_id(${$class}->supplier_site_id); $supplier_site_obj = []; if ($supplier_site) { array_push($supplier_site_obj, $supplier_site); $supplier_site_name_statement = $f->select_field_from_object('supplier_site_id', $supplier_site_obj, 'supplier_site_id', 'supplier_site_name', ${$class}->supplier_site_id, '', 'supplier_site_id', '', $readonly); } else { $supplier_site_obj = supplier_site::find_by_parent_id(${$class}->supplier_id); $supplier_site_name_statement = $f->select_field_from_object('supplier_site_id', $supplier_site_obj, 'supplier_site_id', 'supplier_site_name', ${$class}->supplier_site_id, '', 'supplier_site_id', '', $readonly); } } else { ${$class}->supplier_name = null; $supplier_site_name_statement = form::text_field('supplier_site_id', ${$class}->supplier_site_id); }
$kode = isset($_GET['id']) ? $_GET['id'] : die('ERROR: Kode Error.'); include_once $path . '/pages/header.php'; echo "<div class='row'>"; //echo "<div class='container'>"; echo "<div class='col-sm-3'>"; include_once $path . '/pages/sidebarmenu.php'; echo "</div>"; include_once $path . '/objects/supplier.php'; $supplier = new supplier($db); $supplier->supplier_kode = $kode; $supplier->ShowOne(); echo "<div class='container'>"; echo "<div class='col-md-9'>"; if ($_POST) { include_once $_SERVER['DOCUMENT_ROOT'] . '/objects/supplier.php'; $supplier = new supplier($db); $supplier->supplier_kode = $_POST['supplier_kode']; $supplier->supplier_nama = $_POST['supplier_nama']; $supplier->supplier_alamat = $_POST['supplier_alamat']; $supplier->supplier_hp = $_POST['supplier_hp']; $supplier->isactive = $_POST['isactive']; if ($supplier->update()) { echo "<div class='alert alert-success alert-dismissable'>"; echo "<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>"; echo "Supplier berhasil diubah."; echo "</div>"; } else { echo "<div class='alert alert-danger alert-dismissable'>"; echo "<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>"; echo "Supplier gagal diubah."; echo "</div>";
<div class="first_rowset"> <ul class="column header_field"> <li><?php $f->l_checkBox_field('allow_substitute_receipts_cb', ${$class_second}->allow_substitute_receipts_cb); ?> </li> <li><?php $f->l_checkBox_field('allow_unordered_receipts_cb', ${$class_second}->allow_unordered_receipts_cb); ?> </li> <li><?php $f->l_select_field_from_object('ap_invoice_match_level', supplier::ap_invoice_match_level(), 'option_line_code', 'option_line_code', $supplier_site->ap_invoice_match_level, 'ap_invoice_match_level', '', '', $readonly); ?> </li> <li><?php $f->l_select_field_from_object('receipt_routing', supplier::po_receipt_routing(), 'option_line_code', 'option_line_code', $supplier_site->receipt_routing, 'receipt_routing', '', '', $readonly); ?> </li> <li><?php $f->l_select_field_from_object('ship_to_location_variance', option_header::exception_actions(), 'option_line_code', 'option_line_code', $supplier_site->ship_to_location_variance, 'ship_to_location_variance', $readonly, '', ''); ?> </li> </ul> </div> <div class="second_rowset"> <div class="panel panel-collapse panel-ino-classy small_box"> <div class="panel-heading"><div class="panel-title"><?php echo gettext('Quantity Tolerance'); ?> </div></div> <div class="panel-body">
?> <section> <hr/> <div class="container"> <div class="row"> <div class="tableHeading"> <p class="nomargin alignCenter"><?php echo isset($_GET['id']) ? 'Update' : 'Add'; ?> Purchase</p> </div> <?php $suppliers = new supplier(); $all_suppliers = $suppliers->get_suppliers(); $accounts = new accounts(); $ID = isset($_GET['id']) ? $_GET['id'] : NULL; if (isset($_POST['add_purchase'])) { $supplier_id = $_POST['supplier_id']; $bill_number = $_POST['bill_number']; $due_date = $_POST['due_date']; $bill_amount = $_POST['bill_amount']; $payment_type = $_POST['payment_type']; if ($payment_type == 'cheque') { $type = 'credit'; } else { $type = 'debit'; } $bank_detail = $_POST['bank_detail'];
<?php require './roots.php'; require $root_path . 'include/care_api_classes/supplier_database_class.php'; global $mode, $supplier_id, $result, $show_result, $results; $mode = $_REQUEST['mode']; $supplier_id = $_REQUEST['supplier_id']; if (!$mode || !$supplier_id) { header('Location:supplier_serach.php'); exit; } $supplier_obj = new supplier(); $supplier_obj->dbconnect(); $supplier_obj->dbselect(); switch ($mode) { case 'show': $result = $supplier_obj->show_supplier_details($supplier_id); $results = 'gui/gui_show_supplier.php'; break; case 'edit': $result = $supplier_obj->show_supplier_details($supplier_id); $results = 'gui/gui_edit_supplier.php'; break; case 'erase': $result = $supplier_obj->show_supplier_details($supplier_id); $results = 'gui/gui_delete_supplier.php'; } while ($show_result = $supplier_obj->fetch_object($result)) { $id = $show_result->Suplier_id; $company = $show_result->Company_Name; $person = $show_result->Contact_Person;
<th><?php echo __('Comment'); ?> </th> <th><?php echo __('Documents'); ?> </th> </tr> </thead> <tbody class="form_data_line_tbody"> <?php $count = 0; foreach ($po_asl_line_object as $po_asl_line) { if (!empty(${$class_second}->supplier_id)) { $sup = new supplier(); $sup->findBy_id(${$class_second}->supplier_id); ${$class_second}->supplier_name = $sup->supplier_name; $supplier_site = supplier_site::find_by_id(${$class_second}->supplier_site_id); $supplier_site_obj = []; array_push($supplier_site_obj, $supplier_site); $supplier_site_name_statement = $f->select_field_from_object('supplier_site_id', $supplier_site_obj, 'supplier_site_id', 'supplier_site_name', ${$class_second}->supplier_site_id, '', 'supplier_site_id', '', $readonly); } else { ${$class_second}->supplier_name = null; $supplier_site_name_statement = form::text_field('supplier_site_id', ${$class_second}->supplier_site_id); } ?> <tr class="po_asl_line<?php echo $count; ?>
?> </select> </div> </div> </fieldset> <fieldset> <legend>Supplier Bill Detail</legend> <div class="form-group"> <label class="col-lg-3 control-label">Email address</label> <div class="col-lg-5"> <select data-placeholder="Choose a Supplier Bill..." class="form-control chosen-select" tabindex="2" name="sup_bill" required> <option value="">Select Bill</option> <?php $suppliers = new supplier(); $all_bills = $suppliers->get_bills(); foreach ($all_bills as $value) { ?> <option value="<?php echo $value->bill_id; ?> " <?php if (isset($ID) && $value->bill_id == $product_result->warehouse_sp_bill) { echo 'selected=selected'; } ?> ><?php echo $value->bill_number; ?> </option>
<?php include './supplier/class.supplier.php'; $data = new supplier(); ?> <div class="container"> <div class="row"> <div class="col-md-3"></div> <div class="col-md-6"> <center> <h4>Master Data Supplier</h4> </center> </div> <div class="col-md-3"> <a class="btn btn-danger btn-orange btn-sm pull-right input-supplier" href='#'><i class="fa fa-plus"></i> Daftarkan Supplier</a> </div> </div> <hr> <div class="row"> <div class="col-md-12"> <table class="table table-mod" id="tabel-supplier"> <thead> <tr> <th>#</th><th>Nama Supplier</th><th>Alamat</th><th>Telp</th><th>Fax</th><th>Email</th><th>CP</th><th></th> </tr> </thead> <tbody> <?php if ($cari = $data->daftar_supplier()) { $i = 1;
<?php include_once "../../../includes/basics/basics.inc"; global $db; // if the 'term' variable is not sent with the request, exit if (!isset($_REQUEST['term'])) { exit; } $supplier_name = $_REQUEST['term']; if (!empty($_REQUEST['primary_column1'])) { $primary_column1 = $_REQUEST['primary_column1']; } $supplier = new supplier(); //$supplier->bu_org_id = $primary_column1; $supplier->supplier_name = $supplier_name; $data = $supplier->searchBy_supplier_name(); // JSON data echo json_encode($data); flush();
<?php require_once "roots.php"; require_once $root_path . 'include/care_api_classes/supplier_database_class.php'; //class file global $supplier, $companyname, $contactperson, $address1, $address1, $phone1, $phone2, $cell1, $cell2, $email, $fax, $banker, $bankdetail, $accountno, $creditlimit, $creditperiod; $host = "localhost"; $user = "******"; $pass = ""; $db = caredb; $supplier = new supplier(); $supplier->setcompanyname($_POST['companyName']); $companyname = $supplier->getcompanyname(); $supplier->setcontactperson($_POST['contactPerson']); $contactperson = $supplier->getcontactperson(); $supplier->setaddress1($_POST['address1']); $address1 = $supplier->getaddress1(); $supplier->setaddress2($_POST['address2']); $address2 = $supplier->getaddress2(); $supplier->setphone1($_POST['phone1']); $phone1 = $supplier->getphone1(); $supplier->setphone2($_POST['phone2']); $phone2 = $supplier->getphone2(); $supplier->setcell1($_POST['cell1']); $cell1 = $supplier->getcell1(); $supplier->setcell2($_POST['cell2']); $cell2 = $supplier->getcell2(); $supplier->setemail($_POST['emailAddress']); $email = $supplier->getemail(); $supplier->setfax($_POST['fax']); $fax = $supplier->getfax();
<?php if ($_POST) { include_once $_SERVER['DOCUMENT_ROOT'] . '/config/database.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/objects/supplier.php'; $database = new database(); $db = $database->getConnection(); $supplier = new supplier($db); $supplier->supplier_kode = $_POST['object_id']; if ($supplier->delete()) { echo "customer berhasil dihapus."; } else { echo "customer tidak bisa dihapus."; } }
if ($_SESSION['current_user'] != null) { include_once $path . '/config/database.php'; $database = new database(); $db = $database->getConnection(); $page_title = "Data Supplier"; include_once $path . '/pages/header.php'; echo "<div class='row'>"; //echo "<div class='container'>"; echo "<div class='col-sm-3'>"; include_once $path . '/pages/sidebarmenu.php'; echo "</div>"; include_once $_SERVER['DOCUMENT_ROOT'] . '/objects/supplier.php'; $page = isset($_GET['page']) ? $_GET['page'] : 1; $records_per_page = 20; $from_record_num = $records_per_page * $page - $records_per_page; $supplier = new supplier($db); $statement = $supplier->readAll($from_record_num, $records_per_page); $num = $statement->rowCount(); echo "<div class='container'>"; echo "<div class='col-md-9'>"; if ($num > 0) { ?> <div> <div class="form-group pull-right"> <input type="text" class="search form-control" placeholder=" Apa Yang Anda Cari?"> </div> <span class="counter pull-right"></span> <ol class="breadcrumb"> <li><a href="/">Home</a></li>
<?php if (isset($_SESSION['media-data']) && isset($_POST['apa']) && $_POST['apa'] != "") { include 'supplier/class.supplier.php'; $data = new supplier(); switch ($_POST['apa']) { case 'input-supplier': $arr = array(); if (isset($_POST['nama']) && isset($_POST['alamat']) && isset($_POST['telp']) && isset($_POST['fax']) && isset($_POST['email']) && isset($_POST['cp']) && $_POST['nama'] != "" && $_POST['alamat'] != "") { if ($input = $data->input_supplier($_POST['nama'], $_POST['alamat'], $_POST['telp'], $_POST['fax'], $_POST['email'], $_POST['cp'])) { $arr['status'] = TRUE; $arr['msg'] = "Data tersimpan"; } else { $arr['status'] = FALSE; $arr['msg'] = "Gagal menyimpan data.."; } } else { $arr['status'] = FALSE; $arr['msg'] = "Lengkapi terlebih dahulu.."; } echo json_encode($arr); break; case 'edit-supplier': $arr = array(); if (isset($_POST['id']) && isset($_POST['nama']) && isset($_POST['alamat']) && isset($_POST['telp']) && isset($_POST['fax']) && isset($_POST['email']) && isset($_POST['cp']) && $_POST['id'] != "" && $_POST['nama'] != "" && $_POST['alamat'] != "") { if ($edit = $data->edit_supplier($_POST['id'], $_POST['nama'], $_POST['alamat'], $_POST['telp'], $_POST['fax'], $_POST['email'], $_POST['cp'])) { $arr['status'] = TRUE; $arr['msg'] = "Data tersimpan"; } else { $arr['status'] = FALSE; $arr['msg'] = "Gagal menyimpan data..";
<?php require_once '../init.php'; if ($_SERVER['REQUEST_METHOD'] != 'POST') { header('location:../404.php'); } $supplier = new supplier(new dbc($config)); $filter = new filter(); extract($_POST); extract($_GET); if (isset($uploadlogo)) { $message = $supplier->upload_sup_logo($_FILES['logofile']['tmp_name'], $filename); header("location:../supplier.php?tab=tab2&message={$message}"); die; } if (isset($cancel_supp)) { header('location:../supplier.php?tab=tab2&message=Editing has been cancelled.'); die; } if (isset($updatepathes) || isset($addpathes)) { $state; $state1; if (isset($addpathes)) { $state = 'add'; $state1 = 'added'; } else { $state = 'update'; $state1 = 'updated'; } if (empty($links)) { $err = 'links Xpath is required all fields are rquired';
<div class="tableHeading"> <p class="nomargin alignCenter"><?php echo isset($_GET['id']) ? 'Update' : 'Add'; ?> Products</p> </div> <?php $product = new product(); // Add New Product in Supplier if (isset($_GET['supplier_id'])) { $supplier_id = $_GET['supplier_id']; $suppliers = new supplier(); $suppliers_list = $suppliers->get_supplier($supplier_id); } else { $suppliers = new supplier(); $suppliers_list = $suppliers->get_suppliers(); } $ID = isset($_GET['id']) ? $_GET['id'] : NULL; if (isset($_POST['add_product'])) { // Update old record if (isset($ID)) { $results = $product->pro_update($_POST, $ID); } else { // Insert new $results = $product->pro_insert($_POST); } if ($results) { echo '<div class="alert alert-success" role="alert"> Add Product Sucessfully </div>'; } else { echo '<div class="alert alert-danger" role="alert"> Error </div>';
<?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'; global $keyword, $criteria, $number_of_search_results, $result, $message, $mode, $var; $mode = ""; $mode = $_REQUEST['mode']; $var = "createorder"; if (!empty($_POST['keyword'])) { // We have work... $supplier_obj = new supplier(); $supplier_obj->setsearch_keyword($_POST['keyword']); $supplier_obj->setcriteria($_POST['criteria']); $keyword = $supplier_obj->getkeyword(); $criteria = $supplier_obj->getcriteria(); $supplier_obj->dbconnect(); $supplier_obj->dbselect(); if ($keyword == "*") { //$sql2="select Suplier_id,Company_Name,Contact_Person from care_tz_supplier_deatail ORDER BY Suplier_id DESC"; $result = $supplier_obj->get_all_suppliers(); } else { if ($keyword && $criteria) { $result = $supplier_obj->get_criteria_search_results($criteria, $keyword); } } if ($result) { $number_of_search_results = $supplier_obj->recordcount($result); $message = ""; $bg_color_change = 1; //#CCCCCC#ffffaa#EEEEEE#ffffdd
<?php require_once 'init.php'; $sites = new supplier(new dbc($config)); if (isset($_GET)) { extract($_GET); } if (isset($confirm)) { $sites->view_confirm_delete($id); } elseif (isset($single)) { if (isset($message1)) { echo $message1; } $sites->view_single($id, $single); } elseif (isset($_GET['edit_supp'])) { $sites->view_edit_supp($_GET['edit_supp']); } else { if (isset($message)) { echo $message; } $sites->view_suppliers(); }
<?php if (isset($_POST['apa']) && $_POST['apa'] != "") { //include '../inc/tes.php'; //include 'class.po.php'; include 'po/class.po.php'; $data = new po_po(); switch ($_POST['apa']) { case "isi-daftar-supplier": include 'supplier/class.supplier.php'; $supplier = new supplier(); if ($daftar = $supplier->daftar_supplier()) { while ($rs = $daftar->fetch_array()) { echo "<option value='" . $rs['id'] . "'>" . stripslashes($rs['nama']) . ", " . $rs['alamat'] . "</option>"; } } break; case "isi-daftar-do": if (isset($_POST['tglAwal']) && isset($_POST['tglAkhir'])) { include 'do/class.do.php'; $do = new do_do(); if ($daftar = $do->daftar_do("%", "%", $_POST['tglAwal'], $_POST['tglAkhir'], "2")) { while ($rs = $daftar->fetch_array()) { echo "<option value='" . $rs['id'] . "'>" . $rs['no'] . ", " . $rs['tgl_do'] . ", " . stripslashes($rs['nama']) . ", " . $rs['nama_area'] . "</option>"; } } } break; case "isi-daftar-item-do": if (isset($_POST['idDO'])) { include 'do/class.do.php';
<?php if ($_POST) { include_once $_SERVER['DOCUMENT_ROOT'] . '/objects/supplier.php'; $supplier = new supplier($db); $supplier->supplier_kode = $_POST['supplier_kode']; $supplier->supplier_nama = $_POST['supplier_nama']; $supplier->supplier_alamat = $_POST['supplier_alamat']; $supplier->supplier_hp = $_POST['supplier_hp']; $supplier->isactive = $_POST['isactive']; $supplier->insert(); header("refresh: 0"); } ?> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> <h4 class="modal-title" id="myModalLabel">Tambah Data Supplier</h4> </div> <div class="modal-body"> <form class="form-horizontal" action="" method="post"> <div class="row"> <?php echo "<div class='form-group'>"; echo " <label for='supplier_kode' class='col-sm-3 control-label'>Supplier Kode</label>"; echo " <div class='col-sm-7'>"; echo "\t<input type='text' class='form-control' placeholder='Kode Supplier' name='supplier_kode' required>"; echo " </div>"; echo "</div>";
</ol> <!-- End breadcrumb --> <div class="panel panel-info"> <div class="panel-heading"> <div class="right-content"> <a href="add_supplier.php"><button class="btn btn-success btn-perspective btn-lg pull-right">ADD NEW SUPPLIER</button></a> </div> <h3>Manage Suppliers</h3> </div> <div class="panel-body"> <!-- BEGIN DATA TABLE --> <div class="the-box"> <div class="table-responsive"> <?php $supplier = new supplier(); $results = $supplier->get_suppliers(); if ($results) { ?> <table class="table table-striped table-hover" id="datatable-example"> <thead class="the-box dark full"> <tr> <th>Supplier Name</th> <th>Email</th> <th>Phone</th> <th>City</th> <th>Action</th> </tr> </thead> <tbody>
require_once 'header.php'; ?> <section> <hr/> <div class="container"> <div class="row"> <div class="tableHeading"> <p class="nomargin alignCenter"><?php echo isset($_GET['id']) ? 'Update' : 'Add'; ?> Supplier</p> </div> <?php $supplier = new supplier(); $ID = isset($_GET['id']) ? $_GET['id'] : NULL; if (isset($_POST['add_supplier'])) { // Update old record if (isset($ID)) { $results = $supplier->update_supplier($_POST, $ID); } else { // Insert new $results = $supplier->add_supplier($_POST); } if ($results) { echo '<div class="alert alert-success" role="alert"> Add Supplier Sucessfully </div>'; } else { echo '<div class="alert alert-danger" role="alert"> Error </div>'; } }
<ol class="breadcrumb success rsaquo"> <li><a href="dashboard.php"><i class="fa fa-home"></i></a></li> <li><a href="suppliers.php">Suppliers</a></li> <li class="active">Add Supplier Bill</li> </ol> <div class="panel panel-info"> <div class="panel-heading"> <h3><?php echo isset($_GET['id']) ? 'Update' : 'Add'; ?> Supplier Bill</h3> </div> <div class="panel-body"> <?php $suppliers = new supplier(); $all_suppliers = $suppliers->get_suppliers(); $bank = new bank(); $bank_result = $bank->get_banks(); $accounts = new accounts(); $ID = isset($_GET['id']) ? $_GET['id'] : NULL; if (isset($_POST['add_bill'])) { $supplier_id = $_POST['supplier_id']; $bill_number = $_POST['bill_number']; $due_date = $_POST['due_date']; $bill_amount = $_POST['bill_amount']; $payment_type = $_POST['payment_type']; if ($payment_type == 'cheque') { $type = 'credit'; } else { $type = 'debit';
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $data['supplier'] = supplier::all(); return view('supplier.list', $data); }
echo gettext('Supplier Site'); ?> </th> <th><?php echo gettext('RFID Reference'); ?> </th> </tr> </thead> <tbody class="form_data_line_tbody"> <?php $count = 0; if (!empty($search_result)) { foreach ($search_result as $fp_kanban_header) { if (!empty(${$class}->supplier_id)) { $supplier_i = supplier::find_by_id(${$class}->supplier_id); ${$class}->supplier_name = $supplier_i->supplier_name; } else { ${$class}->supplier_name = null; } ?> <tr class="fp_kanban_header_line<?php echo $count; ?> "> <td><?php $f->seq_field_d($count); ?> </td> <td><?php
echo $form->labelEx($model, 'project'); ?> <?php echo $form->textField($model, 'project', array('size' => 20, 'maxlength' => 20)); ?> <?php echo $form->error($model, 'project'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'fk_supplier'); ?> <?php echo $form->dropDownList($model, 'fk_supplier', CHtml::listData(supplier::model()->findAll(array('order' => 'name ASC')), 'id', 'name'), array('prompt' => 'Select Supplier')); ?> <?php echo $form->error($model, 'fk_supplier'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'lpoNo'); ?> <?php echo $form->textField($model, 'lpoNo', array('size' => 15, 'maxlength' => 15)); ?> <?php echo $form->error($model, 'lpoNo');