24 lines
638 B
PHP
24 lines
638 B
PHP
<?php
|
|
class MouPx extends MY_Controller
|
|
{
|
|
function __construct() {
|
|
parent::__construct();
|
|
}
|
|
function fix_id($mouID) {
|
|
$this->load->library("SsPriceMouPx");
|
|
$rst = $this->sspricemoupx->create($mouID);
|
|
print_r($rst);
|
|
echo "\n";
|
|
}
|
|
function fix_all() {
|
|
$this->load->library("SsPriceMouPx");
|
|
$sql = "select * from m_mou where M_MouIsActive = 'Y' ";
|
|
$qry = $this->db->query($sql);
|
|
$rows = $qry->result_array();
|
|
foreach($rows as $idx => $r ) {
|
|
echo "$idx. Proses : " . $r["M_MouName"] . "\n";
|
|
$this->sspricemoupx->create($r["M_MouID"]);
|
|
}
|
|
}
|
|
}
|