<form name="form_1" id="form_1" action="" method="POST" class="validation"> <div class="row"> <div class="col-md-8"> <?php $car['name'] = ''; $car['plate'] = ''; $car['chassis_serial'] = ''; $car['engine_serial'] = ''; $car['brand'] = ''; $car['model'] = ''; $car['old_mileage'] = ''; $car['mpg'] = ''; $car['user_id'] = ''; if (isset($_POST['add']) and is_log()) { $continue = true; $this->form_validation->set_rules('name', get_lang('Car Name'), 'required'); $this->form_validation->set_rules('plate', get_lang('Plate'), 'required'); if ($this->form_validation->run() == FALSE) { alertbox('alert-danger', '', validation_errors()); } else { $car['name'] = $this->input->post('name'); $car['plate'] = $this->input->post('plate'); $car['chassis_serial'] = $this->input->post('chassis_serial'); $car['engine_serial'] = $this->input->post('engine_serial'); $car['brand'] = $this->input->post('brand'); $car['model'] = $this->input->post('model'); $car['old_mileage'] = $this->input->post('old_mileage'); $car['now_mileage'] = $this->input->post('old_mileage'); $car['periodic_maintenance'] = $this->input->post('periodic_maintenance');
$query = "DELETE {$budjettitaulu}\n FROM {$budjettitaulu}\n WHERE yhtio = '{$kukarow['yhtio']}'\n AND kausi <= '{$vv}-{$kk}'"; pupe_query($query); $del = mysql_affected_rows(); is_log("Poistettiin {$del} {$budjettitaulu}-riviä."); } // Kampanjat $query = "DELETE kampanjat\n FROM kampanjat\n WHERE yhtio = '{$kukarow['yhtio']}'\n AND luontiaika > 0\n AND luontiaika <= '{$vv}-{$kk}-{$pp} 23:59:59'"; pupe_query($query); $del = mysql_affected_rows(); is_log("Poistettiin {$del} kampanjaa."); // Kampanjaehdot $query = "DELETE kampanja_ehdot\n FROM kampanja_ehdot\n LEFT JOIN kampanjat ON (kampanjat.yhtio = kampanja_ehdot.yhtio and kampanjat.tunnus = kampanja_ehdot.kampanja)\n WHERE kampanja_ehdot.yhtio = '{$kukarow['yhtio']}'\n AND kampanjat.tunnus is null"; pupe_query($query); $del = mysql_affected_rows(); is_log("Poistettiin {$del} kampanjan ehtoriviä."); // Kampanjapalkinnot $query = "DELETE kampanja_palkinnot\n FROM kampanja_palkinnot\n LEFT JOIN kampanjat ON (kampanjat.yhtio = kampanja_palkinnot.yhtio and kampanjat.tunnus = kampanja_palkinnot.kampanja)\n WHERE kampanja_palkinnot.yhtio = '{$kukarow['yhtio']}'\n AND kampanjat.tunnus is null"; pupe_query($query); $del = mysql_affected_rows(); is_log("Poistettiin {$del} kampanjan palkinotirivä."); // Messenger-viestit $query = "DELETE messenger\n FROM messenger\n WHERE yhtio = '{$kukarow['yhtio']}'\n AND luontiaika > 0\n AND luontiaika <= '{$vv}-{$kk}-{$pp} 23:59:59'"; pupe_query($query); $del = mysql_affected_rows(); is_log("Poistettiin {$del} Messenger-viestiä."); } is_log("Valmis!"); } if (!$php_cli) { require "inc/footer.inc"; }
<th class="text-center no-strong text-danger">' . $invoice['quantity'] . '</th> <th colspan="1" class="text-right no-strong text-danger">' . get_money($invoice['total']) . '</th> <th colspan="1" class="text-center no-strong text-danger">' . get_money($invoice['tax']) . '</th> <th class="text-right fs-16 no-strong text-danger">' . get_money($invoice['grand_total']) . '</th> </tr> </tfoot> </table> </div> <br />'; $custom_title = get_lang('Invoice') . ': #' . $invoice['id'] . ' [' . $account['name'] . ']'; } ?> <?php if (isset($_POST['new_message']) and is_log()) { $continue = true; $this->form_validation->set_rules('receiver_id', get_lang('Receiver'), 'required'); $this->form_validation->set_rules('title', get_lang('Title'), 'required|min_length[3]|max_length[50]'); $this->form_validation->set_rules('content', get_lang('Message'), 'required|min_length[3]|max_length[5000]'); if ($this->form_validation->run() == FALSE) { alertbox('alert-danger', '', validation_errors()); } else { $data['receiver_id'] = $this->input->post('receiver_id'); $data['title'] = $this->input->post('title'); $data['content'] = $plus_content . $this->input->post('content'); $message_id = add_message($data); if ($message_id > 0) { add_log(array('date' => $_POST['log_time'], 'type' => 'message', 'title' => get_lang('New Message'), 'description' => get_lang('Send a new message') . ' [' . $_POST['display_name'] . ']')); alertbox('alert-success', get_lang('Message has been sent.')); } else {
echo "<br><table>"; } foreach ($rivit as $rivi) { list($perhe, $kieli, $selite, $selitetark, $selitetark_2, $selitetark_3, $selitetark_4, $jarjestys, $nakyvyys) = explode("\t", trim($rivi)); $sanakirjaquery = "SELECT *\n FROM avainsana\n WHERE yhtio = '{$kukarow['yhtio']}'\n and laji = 'MYSQLALIAS'\n and selite = '{$selite}'\n and selitetark_2 = '{$selitetark_2}'"; $sanakirjaresult = pupe_query($sanakirjaquery); if (mysql_num_rows($sanakirjaresult) > 0) { $sanakirjaquery = "UPDATE avainsana SET\n selitetark = '{$selitetark}'\n WHERE yhtio = '{$kukarow['yhtio']}'\n AND laji = 'MYSQLALIAS'\n AND selite = '{$selite}'\n AND selitetark_2 = '{$selitetark_2}'"; pupe_query($sanakirjaquery); if ($tee == "TEE") { echo "<tr><th>" . t("Päivitetään mysqlalias") . "</th><td>{$selite}</td><td>{$selitetark}</td><td>{$selitetark_2}</td></tr>"; } } else { $sanakirjaquery = "INSERT INTO avainsana SET\n yhtio = '{$kukarow['yhtio']}',\n laji = 'MYSQLALIAS',\n perhe = '{$perhe}',\n kieli = '{$kieli}',\n nakyvyys = '{$nakyvyys}',\n selite = '{$selite}',\n selitetark = '{$selitetark}',\n selitetark_2 = '{$selitetark_2}',\n selitetark_3 = '{$selitetark_3}',\n selitetark_4 = '{$selitetark_4}',\n jarjestys = '{$jarjestys}',\n laatija = '{$kukarow['kuka']}',\n luontiaika = now()"; pupe_query($sanakirjaquery); if ($tee == "TEE") { echo "<tr><th>" . t("Lisätään mysqlalias") . "</th><td>{$selite}</td><td>{$selitetark}</td><td>{$selitetark_2}</td></tr>"; } } } if ($tee == "TEE") { echo "</table><br>"; echo "<br>" . t("Mysqlaliakset synkronoitu onnistuneesti") . "!<br>"; } else { $iltasiivo .= is_log("Mysqlaliakset synkronoitu onnistuneesti."); } } if (strpos($_SERVER['SCRIPT_NAME'], "synkronoi_mysqlaliakset.php") !== FALSE) { echo " <br><br>\n <form method='post'>\n <input type='hidden' name='tee' value='TEE'>\n <input type='submit' value='" . t("Hae uusimmat mysqlaliakset") . "'>\n </form>"; require "inc/footer.inc"; }
lang('Update'); ?> »</button> </div> <!-- /.text-right --> </div> <!-- /.col-md-8 --> </div> <!-- /.row --> </form> </div> <!-- /#car_card --> <!-- transactions --> <div class="tab-pane fade in" id="transactions"> <?php if (isset($_POST['add_item']) and is_log()) { $this->form_validation->set_rules('attended_km', get_lang('Attended Km'), 'required'); if ($this->form_validation->run() == FALSE) { alertbox('alert-danger', '', validation_errors()); } else { $car_item['type'] = 'km'; $car_item['date'] = $this->input->post('km_date'); $car_item['description'] = $this->input->post('km_description'); $car_item['car_id'] = $car['id']; $car_item['km'] = $this->input->post('attended_km'); $car_item['price'] = $this->input->post('km_mpg'); $car_item['total'] = $car_item['km'] * $car_item['price']; $item_id = add_car_item($car_item); if ($item_id > 0) { alertbox('alert-success', get_lang('Data Added')); $log['date'] = $this->input->post('log_time');
<small><strong>' . get_lang('phone') . '</strong>:' . $account['phone'] . ' <strong>' . get_lang('gsm') . '</strong>:' . $account['gsm'] . '</small> <br /> <ul> <li>' . get_lang('Barcode Code') . ': <code>' . $account['code'] . '</code></li> <li>' . get_lang('Balance') . ': <code>' . get_account_balance($account['balance']) . '</code></li> </ul> </div> <br />'; $custom_title = get_lang('Account Card') . ': ' . $account['name']; } ?> <?php if (isset($_POST['new_task']) and is_log()) { $continue = true; $this->form_validation->set_rules('receiver_id', get_lang('Receiver'), 'required'); $this->form_validation->set_rules('title', get_lang('Title'), 'required|min_length[3]|max_length[50]'); $this->form_validation->set_rules('content', get_lang('Message'), 'required|min_length[3]|max_length[5000]'); if ($this->form_validation->run() == FALSE) { alertbox('alert-danger', '', validation_errors()); } else { $data['receiver_id'] = $this->input->post('receiver_id'); $data['start_date'] = $this->input->post('start_date'); $data['finish_date'] = $this->input->post('finish_date'); $data['title'] = $this->input->post('title'); $data['content'] = $plus_content . $this->input->post('content'); $task_id = add_task($data); if ($task_id > 0) { add_log(array('date' => $_POST['log_time'], 'type' => 'task', 'title' => get_lang('New Task'), 'description' => get_lang('Posted a new task') . ' [' . $_POST['display_name'] . ']'));
<div id="modal-box row"> <div class="col-12"> <div id="tumbnail-img" class="no-padding-at-all"> <img id="modal-preview-img" src="" data-id=""> <div id="img-infos"> <div class="col-4 no-padding-at-all"> <span class="pull-left"><span id="like-number">0</span> Like(s)</span> <?php if (is_log()) { echo '<span id="like-img-btn" onclick="likeImg()" class="icon like-icon"></span>'; } ?> </div> <div class="col-8 no-padding-at-all"> <?php if (is_log()) { echo '<input onkeydown="commentImg(event, this)" id="comment-input" type="text" placeholder="Ajouter un com ! (140 max)" value="" maxlength="140">'; } ?> </div> </div> </div> </div> <div class="col-12"> <div id="comments"> </div> </div> </div> </div> </div> </div>
$selite .= " {$tuotepaikka["hyllynro"]}"; $selite .= " {$tuotepaikka["hyllyvali"]}"; $selite .= " {$tuotepaikka["hyllytaso"]}"; // Luodaan tapahtuma $tapahtuma_query = "INSERT INTO tapahtuma SET\n yhtio = '{$kukarow['yhtio']}',\n tuoteno = '{$tuotepaikka['tuoteno']}',\n kpl = '0',\n kplhinta = '0',\n hinta = '0',\n hyllyalue = '{$tuotepaikka['hyllyalue']}',\n hyllynro = '{$tuotepaikka['hyllynro']}',\n hyllyvali = '{$tuotepaikka['hyllyvali']}',\n hyllytaso = '{$tuotepaikka['hyllytaso']}',\n laji = 'poistettupaikka',\n selite = '{$selite}',\n laatija = '{$kukarow['kuka']}',\n laadittu = now()"; pupe_query($tapahtuma_query); } if ($poistettu > 0) { $iltasiivo .= is_log("Poistettiin {$poistettu} poistettavaksi merkattua tuotepaikkaa."); } if ($php_cli) { $argv[2] = 'CLI_TUOTTEETTOMAT'; require "varastopaikkojen_siivous.php"; if ($poistettu > 0) { $iltasiivo .= is_log("Poistettiin {$poistettu} tuotepaikkaa jonka tuotetta ei enää ole."); } } /** * Synkataan uusimmat mysqlaliakset */ require "synkronoi_mysqlaliakset.php"; $iltasiivo .= is_log("Iltasiivo {$yhtiorow['nimi']}. Done!"); if ($iltasiivo != "" and isset($iltasiivo_email) and $iltasiivo_email == 1) { $params = array("to" => $yhtiorow["admin_email"], "subject" => "Iltasiivo yhtiölle '{$yhtiorow["yhtio"]}'", "ctype" => "text", "body" => $iltasiivo); pupesoft_sahkoposti($params); } if (!$php_cli) { echo $iltasiivo; echo "</pre>"; require 'inc/footer.inc'; }
$product = get_product(array('id' => $product_id)); } ?> <?php if ($product['status'] == '0') { ?> <?php alertbox('alert-danger', get_lang('Deleted Item Card.'), '', false); } ?> <?php if (isset($_POST['update_product']) and is_log()) { $continue = true; $this->form_validation->set_rules('code', get_lang('Barcode Code'), 'min_length[3]|max_length[30]'); $this->form_validation->set_rules('name', get_lang('Product Name'), 'required|min_length[3]|max_length[30]'); $this->form_validation->set_rules('cost_price', get_lang('Cost Price'), 'numeric|max_length[10]'); $this->form_validation->set_rules('sale_price', get_lang('Sale Price'), 'numeric|max_length[10]'); $this->form_validation->set_rules('tax_rate', get_lang('Tax Rate'), 'integer|max_length[10]'); if ($this->form_validation->run() == FALSE) { alertbox('alert-danger', '', validation_errors()); } else { $product['code'] = $this->input->post('code'); $product['name'] = $this->input->post('name'); $product['description'] = $this->input->post('description'); $product['cost_price'] = $this->input->post('cost_price'); $product['sale_price'] = $this->input->post('sale_price'); $product['tax_rate'] = $this->input->post('tax_rate');
function get_log_table($data, $order_by = 'ASC', $array = array()) { $ci =& get_instance(); if (!isset($array['type'])) { $array['type'] = true; } if (!isset($array['user'])) { $array['user'] = true; } if (!isset($array['invoice_id'])) { $array['invoice_id'] = true; } ?> <script> $(document).ready(function(e) { $("#form_log_1").validate(); }); </script> <?php if (isset($_POST['add_log_user_reviews']) and is_log()) { $log['date'] = $ci->input->post('log_time'); $log['type'] = 'user_reviews'; $log['title'] = get_lang('User Reviews'); $log['description'] = $ci->input->post('description'); $log['user_id'] = get_the_current_user('id'); if (isset($data['other_id'])) { $log['other_id'] = $data['other_id']; } if (isset($data['invoice_id'])) { $log['invoice_id'] = $data['invoice_id']; } if (isset($data['product_id'])) { $log['product_id'] = $data['product_id']; } if (isset($data['account_id'])) { $log['account_id'] = $data['account_id']; } add_log($log); } if (isset($_POST['add_log_user_reviews'])) { ?> <script> $(document).ready(function(e) { $("#tab_log").click(); }); </script> <?php } ?> <form name="form_log_1" id="form_log_1" action="" method="POST"> <div class="row"> <div class="col-md-10"> <div class="form-group"> <label for="log_user_description" class="control-label ff-1 fs-16"><?php lang('User Reviews'); ?> </label> <div class="input-prepend input-group"> <span class="input-group-addon"><span class="glyphicon glyphicon-pencil"></span></span> <input type="text" id="log_user_description" name="description" class="form-control input-lg ff-1 required" minlength="3" maxlength="2000"> </div> </div> <!-- /.form-group --> </div> <!-- /.col-md-10 --> <div class="col-md-2"> <div class="form-group"> <input type="hidden" name="log_time" value="<?php echo date("Y-m-d H:i:s"); ?> " /> <input type="hidden" name="log_type" value="user_reviews" /> <input type="hidden" name="add_log_user_reviews" /> <label for="log_user_description" class="control-label ff-1 fs-16"> </label> <br /> <button class="btn btn-default2 btn-lg btn-block"><?php lang('Add'); ?> </button> </div> <!-- /.form-group --> </div> </div> <!-- /.row --> </form> <table class="table table-hover table-bordered table-condensed table-striped dataTable_noExcel_noLength"> <thead> <tr> <th class="hide"></th> <th width="130"><?php lang('Date'); ?> </th> <?php if ($array['type'] == true) { ?> <th width="80"><?php lang('Type'); ?> </th><?php } ?> <?php if ($array['user'] == true) { ?> <th width="200"><?php lang('User'); ?> </th><?php } ?> <?php if ($array['invoice_id'] == true) { ?> <th width="100"><?php lang('Invoice ID'); ?> </th><?php } ?> <th><?php lang('Title'); ?> </th> <th><?php lang('Description'); ?> </th> </tr> </thead> <tbody> <?php $users = get_user_array(); $ci->db->where($data); $ci->db->order_by('id', $order_by); $query = $ci->db->get('user_logs')->result_array(); foreach ($query as $log) { ?> <tr> <td class="hide"></td> <td><?php echo substr($log['date'], 0, 16); ?> </td> <?php if ($array['type'] == true) { ?> <td><?php echo $log['type']; ?> </td><?php } ?> <?php if ($array['user'] == true) { ?> <td><a href="<?php echo site_url('user/profile/' . $log['user_id']); ?> " target="_blank"><?php echo $users[$log['user_id']]['name'] . ' ' . $users[$log['user_id']]['surname']; ?> </a></td><?php } ?> <?php if ($array['invoice_id'] == true) { ?> <td><?php if ($log['invoice_id'] > 0) { ?> <a href="<?php echo site_url('invoice/view/' . $log['invoice_id']); ?> " target="_blank">#<?php echo $log['invoice_id']; ?> </a><?php } ?> </td><?php } ?> <td><?php echo $log['title']; ?> </td> <td><?php echo $log['description']; ?> </td> </tr> <?php } ?> </tbody> </table> <?php }
$meili = t("Tuotteiden tuotenumerot on vaihtuneet") . "\n"; $meili .= "\nTervehdys {$posti['nimi']} \n"; $meili .= "\nKäyttäjä {$kukarow['nimi']} on vaihtanut tuotteiden tuotenumeroita\n"; $meili .= t("Pyyntö") . ":\n" . str_replace("\r\n", "\n", "Tarkista seuraavilta tuotteilta hinnat ja asiakasalennukset\n"); $meili .= $lista; if ($posti['eposti'] == "") { $email_osoite = $yhtiorow['alert_email']; } else { $email_osoite = $posti['eposti']; } $tulos = mail($email_osoite, mb_encode_mimeheader(t("Tuotteiden tuotenumerot on vaihtuneet") . " {$yhtiorow['nimi']}", "ISO-8859-1", "Q"), $meili, "From: " . mb_encode_mimeheader($yhtiorow["postittaja_email"], "ISO-8859-1", "Q") . " <{$yhtiorow['postittaja_email']}>\n", "-f {$yhtiorow['postittaja_email']}"); } } } fclose($file); is_log(t("Valmis, muutettiin") . " {$lask} " . t("tuotetta") . "!"); $tee = ""; } elseif ($tee == "file") { echo "<font class='error'>" . t("Edellämainitut viat pitää korjata ennenkuin voidaan jatkaa") . "!!!<br>" . t("Mitään ei päivitetty") . "!!!<br><br>"; $tee = ""; } if ($tee == "" and $php_cli === false) { echo "<form method='post' name='sendfile' enctype='multipart/form-data'>\n\n <table>\n\n <tr>\n <td class='back' colspan='2'><br><font class='message'>" . t("Sisäänlue tiedostosta") . "</font><hr></td>\n </tr>\n\n <tr>\n <th colspan='2'>" . t("Tabulaattorilla eroteltu tekstitiedosto") . ". " . t("Tiedoston sarakkeet") . ":</th>\n </tr>\n\n <tr>\n <td>" . t("VANHA tuotenumero") . "</td>\n <td>" . t("UUSI tuotenumero") . "</td>\n </tr>\n\n <tr>\n <th>" . t("Valitse tiedosto") . ":</th>\n <td><input name='userfile' type='file'></td>\n </tr>\n\n <tr>\n <td class='back' colspan='2'><br><font class='message'>" . t("Tai syöta tuotenumerot") . "</font><hr></td>\n </tr>\n\n <tr>\n <th>" . t("Vanha tuotenumero") . ":</th>\n <td><input type='text' name='vantuoteno' size='25'></td>\n </tr>\n\n <tr>\n <th>" . t("Uusi tuotenumero") . ":</th>\n <td><input type='text' name='uustuoteno' size='25'></td>\n </tr>\n\n <tr>\n <td class='back' colspan='2'><br><font class='message'>" . t("Lisävalinnat") . "</font><hr></td>\n </tr>\n\n <tr>\n <th>" . t("Jätä vanha tuotenumero uuden tuotteen korvaavaksi tuotteeksi") . "</th>\n <td><input type='checkbox' name='jatavanha' value='jatavanha'</td>\n </tr>\n\n <tr>\n <th>" . t("Valitse vanhan tuotteen status") . "</th>\n <td><select name='status'>"; $vresult = t_avainsana("S"); while ($vrow = mysql_fetch_array($vresult)) { $sel = ""; if ($vrow["selite"] == 'P') { $sel = "SELECTED"; echo "<option value = '{$vrow['selite']}' {$sel}>{$vrow['selite']} - {$vrow['selitetark']}</option>"; } if ($vrow["selite"] == 'A') {
<?php alertbox('alert-danger', get_lang('Error!')); ?> <?php $show_message = false; } ?> <?php if ($show_message) { ?> <div class="row"> <div class="col-md-8"> <?php if (isset($_POST['reply']) and is_log()) { $continue = true; $this->form_validation->set_rules('content', get_lang('Message'), 'required|min_length[3]|max_length[1000]'); if ($this->form_validation->run() == FALSE) { alertbox('alert-danger', '', validation_errors()); } else { if ($task['receiver_id'] == get_the_current_user('id')) { $data['receiver_id'] = $task['sender_id']; $data['sender_id'] = $task['receiver_id']; $data['read'] = '[' . $task['sender_id'] . ']'; } elseif ($task['sender_id'] == get_the_current_user('id')) { $data['receiver_id'] = $task['receiver_id']; $data['sender_id'] = $task['sender_id']; $data['read'] = '[' . $task['receiver_id'] . ']'; } $data['title'] = $task['title'];
<div id="myTabContent" class="tab-content"> <!-- account_card --> <div class="tab-pane fade active in" id="account_card"> <div class="row"> <div class="col-md-8"> <?php $account = get_account(array('id' => $account_id)); if (isset($_POST['update']) and is_log()) { $continue = true; $this->form_validation->set_rules('code', get_lang('Account Code'), 'min_length[3]|max_length[30]'); $this->form_validation->set_rules('name', get_lang('Account Name'), 'required|min_length[3]|max_length[30]'); $this->form_validation->set_rules('balance', get_lang('Balance'), 'numeric|max_length[10]'); $this->form_validation->set_rules('phone', get_lang('Phone'), 'integer|max_length[20]'); $this->form_validation->set_rules('gsm', get_lang('Gsm'), 'integer|max_length[20]'); $this->form_validation->set_rules('email', get_lang('E-mail'), 'email|max_length[50]'); if ($this->form_validation->run() == FALSE) { alertbox('alert-danger', '', validation_errors()); } else { $account['code'] = replace_text_for_utf8($this->input->post('code')); $account['name'] = $this->input->post('name'); $account['name_surname'] = $this->input->post('name_surname'); $account['balance'] = $account['balance']; $account['phone'] = $this->input->post('phone');
?> </li> </ol> <div class="row"> <div class="col-md-8"> <?php $product['code'] = ''; $product['name'] = ''; $product['description'] = ''; $product['cost_price'] = ''; $product['sale_price'] = ''; $product['tax_rate'] = ''; if (isset($_POST['add_product']) and is_log()) { $continue = true; $this->form_validation->set_rules('code', get_lang('Barcode Code'), 'min_length[3]|max_length[30]'); $this->form_validation->set_rules('name', get_lang('Product Name'), 'required|min_length[3]|max_length[30]'); $this->form_validation->set_rules('cost_price', get_lang('Cost Price'), 'numeric|max_length[10]'); $this->form_validation->set_rules('sale_price', get_lang('Sale Price'), 'numeric|max_length[10]'); $this->form_validation->set_rules('tax_rate', get_lang('Tax Rate'), 'integer|max_length[10]'); if ($this->form_validation->run() == FALSE) { alertbox('alert-danger', '', validation_errors()); } else { $product['code'] = replace_text_for_utf8($this->input->post('code')); $product['name'] = $this->input->post('name'); $product['description'] = $this->input->post('description'); $product['cost_price'] = $this->input->post('cost_price'); $product['sale_price'] = $this->input->post('sale_price'); $product['tax_rate'] = $this->input->post('tax_rate');