Changeset 5002 for temp/trunk/html/admin


Ignore:
Timestamp:
2006/09/18 15:46:49 (20 years ago)
Author:
kakinaka
Message:

blank

Location:
temp/trunk/html/admin
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/basis/delivery_input.php

    r4967 r5002  
    9696    } else { 
    9797        // ÅÐÏ¿¤¹¤ëÇÛÁ÷¶È¼ÔID¤Î¼èÆÀ 
     98 
     99        if (DB_TYPE == "pgsql") { 
     100            $deliv_id = $objQuery->nextval('dtb_deliv', 'deliv_id'); 
     101            $sqlval['deliv_id'] = $deliv_id; 
     102        } 
     103         
    98104        $sqlval['rank'] = $objQuery->max("dtb_deliv", "rank") + 1; 
    99105        // INSERT¤Î¼Â¹Ô 
    100106        $objQuery->insert("dtb_deliv", $sqlval); 
    101         $deliv_id = $objQuery->nextval('dtb_deliv', 'deliv_id'); 
    102  
     107         
     108        if (DB_TYPE == "mysql") { 
     109            $deliv_id = $objQuery->nextval('dtb_deliv', 'deliv_id');             
     110        } 
    103111    } 
    104112     
  • temp/trunk/html/admin/contents/inquiry.php

    r4967 r5002  
    9494            $value = serialize($_POST); 
    9595            $sql_val = array( $value, $_POST['title'] ,$question_id ); 
     96            if (DB_TYPE == "pgsql") { 
     97                $question_id = $objQuery->nextval('dtb_question', 'question_id'); 
     98                $objPage->QUESTION_ID = $question_id; 
     99            } 
    96100            $conn->query("INSERT INTO dtb_question ( question, question_name, question_id ) VALUES (?, ?, ?)", $sql_val ); 
    97101            $objPage->MESSAGE = "ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿"; 
    98102             
    99103            $objQuery = new SC_Query(); 
    100             $question_id = $objQuery->nextval('dtb_question', 'question_id'); 
    101             $objPage->QUESTION_ID = $question_id; 
     104             
     105            if (DB_TYPE == "mysql") { 
     106                $question_id = $objQuery->nextval('dtb_question', 'question_id'); 
     107                $objPage->QUESTION_ID = $question_id; 
     108            } 
    102109            sfReload(); 
    103110        } else { 
  • temp/trunk/html/admin/develop/csv.php

    r4608 r5002  
    110110        } 
    111111    } 
    112                  
    113     $product_id = $objQuery->nextval("dtb_products", "product_id"); 
    114     $sqlval['product_id'] = $product_id; 
     112     
     113    if (DB_TYPE == "pgsql") { 
     114        $product_id = $objQuery->nextval("dtb_products", "product_id"); 
     115        $sqlval['product_id'] = $product_id; 
     116    } 
    115117    $sqlval['status'] = 1;  // ɽ¼¨¤ËÀßÄꤹ¤ë¡£ 
    116118    $sqlval['update_date'] = "Now()"; 
     
    127129    // INSERT¤Î¼Â¹Ô 
    128130    $objQuery->fast_insert("dtb_products", $sqlval); 
     131    if (DB_TYPE == "mysql") { 
     132        $product_id = $objQuery->nextval("dtb_products", "product_id"); 
     133    } 
    129134} 
    130135 
  • temp/trunk/html/admin/develop/upload_csv.php

    r4966 r5002  
    208208    } 
    209209 
    210 // ¼«Æ°¥¤¥ó¥¯¥ê¥á¥ó¥È¤Ê¤Î¤ÇÉÔɬÍ×            
    211 //  $product_id = $objQuery->nextval("dtb_products", "product_id"); 
    212 //  $sqlval['product_id'] = $product_id; 
     210    if (DB_TYPE == "pgsql") { 
     211        $product_id = $objQuery->nextval("dtb_products", "product_id"); 
     212        $sqlval['product_id'] = $product_id; 
     213    } 
    213214 
    214215    $sqlval['status'] = 1;  // ɽ¼¨¤ËÀßÄꤹ¤ë¡£ 
     
    224225    // INSERT¤Î¼Â¹Ô 
    225226    $objQuery->insert("dtb_products", $sqlval); 
     227     
     228    if (DB_TYPE == "mysql") { 
     229        $product_id = $objQuery->nextval("dtb_products", "product_id");  
     230    } 
    226231     
    227232    gfPrintLog("insert product end"); 
  • temp/trunk/html/admin/mail/index.php

    r4967 r5002  
    377377     
    378378    $dtb_send_history = array(); 
    379 //  $dtb_send_history["send_id"] = $objQuery->nextval('dtb_send_history', 'send_id'); 
     379    if (DB_TYPE == "pgsql") { 
     380        $dtb_send_history["send_id"] = $objQuery->nextval('dtb_send_history', 'send_id'); 
     381    } 
    380382    $dtb_send_history["mail_method"] = $arrData['mail_method']; 
    381383    $dtb_send_history["subject"] = $arrData['subject']; 
  • temp/trunk/html/admin/products/bak_upload_csv.php

    r4967 r5002  
    195195    } 
    196196     
     197    if (DB_TYPE == "pgsql") { 
     198        $product_id = $objQuery->nextval("dtb_products", "product_id"); 
     199        $sqlval['product_id'] = $product_id; 
     200    } 
    197201    $sqlval['status'] = 2;  // Èóɽ¼¨¤ËÀßÄꤹ¤ë¡£ 
    198202    $sqlval['update_date'] = "Now()"; 
     
    206210    $objQuery->insert("dtb_products", $sqlval); 
    207211     
    208     $product_id = $objQuery->nextval("dtb_products", "product_id"); 
    209     $sqlval['product_id'] = $product_id; 
    210      
     212    if (DB_TYPE == "mysql") { 
     213        $product_id = $objQuery->nextval("dtb_products", "product_id"); 
     214        $sqlval['product_id'] = $product_id; 
     215    } 
    211216} 
    212217 
  • temp/trunk/html/admin/products/product.php

    r4967 r5002  
    303303 
    304304    if($arrList['product_id'] == "") { 
     305        if (DB_TYPE == "pgsql") { 
     306            $product_id = $objQuery->nextval("dtb_products", "product_id"); 
     307            $sqlval['product_id'] = $product_id; 
     308        } 
    305309        // ¥«¥Æ¥´¥êÆâ¤ÇºÇÂç¤Î¥é¥ó¥¯¤ò³ä¤êÅö¤Æ¤ë 
    306310        $sqlval['rank'] = $objQuery->max("dtb_products", "rank", "category_id = ?", array($arrList['category_id'])) + 1; 
     
    308312        $objQuery->insert("dtb_products", $sqlval); 
    309313         
    310         $product_id = $objQuery->nextval("dtb_products", "product_id"); 
    311         $sqlval['product_id'] = $product_id; 
     314        if (DB_TYPE == "mysql") { 
     315            $product_id = $objQuery->nextval("dtb_products", "product_id"); 
     316            $sqlval['product_id'] = $product_id; 
     317        } 
     318 
    312319    } else { 
    313320        $product_id = $arrList['product_id']; 
Note: See TracChangeset for help on using the changeset viewer.