<?php
$setting_id = 1;

// softcover config data
function calConfigSoft() {

 $softquery=db_query("select setting_data from ym_ysup_settings where setting_id='1'");

if ($softquery) {
$row = $softquery->fetchField();
$data = json_decode ( $row, true );
}// if
return $data;
}

// hardcover config data
function calConfigHard() {

 $hardquery=mysql_query("select setting_data from ym_ysup_settings where setting_id='2'");

  if ($hardquery) {
$row = $hardquery->fetchField();

$data = json_decode ( $row, true );
}// if
return $data;
}

if (isset($_POST))
{
$hidden_id=$setting_id;

 $post_json = json_encode($_POST);

 //$update=mysql_query("update  `ym_ysup_settings` SET `setting_data`='".$post_json."' WHERE setting_id='$setting_id' ");
 /* $update = db_update('ym_ysup_settings') // Table name no longer needs {}
              ->fields(array(
                'setting_data' => $post_json,
              ))
              ->condition('setting_id', $setting_id)
              ->execute(); */
 if ($update)
 {
     echo "<script>alert('Data Succesfully saved!')</script>";
 }

}
?>



Page Price – Color

$item) { ?>

:

Page Price – BW

$item) { ?>

:

Page Price – MP

$item) { ?>

:

Page Price – BWSS

$item) { ?>

:

NUM SHEETS DIVISION

$item) { ?>

:

Binding – Perfect

$item) { ?>

:

Binding – Coil

$item) { ?>

:

Binding – Wire

$item) { ?>

:

Binding – Saddle

$item) { ?>

:

Cover – Unit Cost

$item) { ?>

:

Cover – Muliplier

$item) { ?>

:

Lamination – Gloss

$item) { ?>

:

Lamination – Matte

$item) { ?>

:

Lamination – Soft

$item) { ?>

:

Upgrade Unit – Color

$item) { ?>

:

Size Upgrade

$item) { ?>

:

Paper GSM

$item) { ?>

:

Cover GSM

$item) { ?>

:

Box

Box Weight:
Box Hold

Save

Rate Cad RMB

rate_cad_rmb:

Page Price – Color

$item) { ?>

:

Page Price – BW

$item) { ?>

:

Page Price – HPBW

$item) { ?>

:

Dust Jacket – 12_18

$item) { ?>

:

Dust Jacket – 8.5_11.69

$item) { ?>

:

Dust Jacket – 5.5_8.5

$item) { ?>

:

Binding

$item) { ?>

:

Cover Unit – Gloss

$item) { ?>

:

Cover Unit – Silk

$item) { ?>

:

Cover Unit – Imitation

$item) { ?>

:

Cover Unit – Cloth

$item) { ?>

:

Cover Finishing

$item) { ?>

:

Paper – GSM

$item) { ?>

:

Dust Jacket GSM

dust_jacket_gsm:

Box Weight

box_weight:

Box Hold

box_hold:

Stuffing Weight

stuffing_weight:

Unit Price 10kg

unit_price_10kg

Weight Unit Price

$item) { ?>

:

Weight Unit Price

$item) { ?>

:

Discount

$item) { ?>

:

Markup_multiplier

$item) { ?>

:

Save