Changeset 10977 for temp/branches


Ignore:
Timestamp:
2006/12/19 00:20:01 (20 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/branches/ec-cube-beta/html/admin/contents/campaign_create_tag.php

    r10976 r10977  
    117117    // µ¬³Ê¤Î¾ðÊó¤ò¼èÆÀ 
    118118    $arrProductClass = lfGetProductsClass($_POST['product_id']); 
    119      
    120     $create_tag .= "<option value=\"\">ÁªÂò¤·¤Æ¤¯¤À¤µ¤¤</option>"; 
    121     foreach($arrProductClass as $arrVal) { 
    122         $classcategory_name = $objQuery->get("dtb_classcategory", "name", "classcategory_id = ?", array($arrVal['classcategory_id1'])); 
    123         $create_tag .= "<option label=\"$classcategory_name\" value=\"" . $arrVal['classcategory_id1'] . "\">" . $classcategory_name . "</option>\n"; 
    124     } 
    125     $create_tag .= "<a href=\"#\" onclick=\"fnFormModeSubmit('form1', 'cart', 'product_id', 404)\"><img src=\"images/top/button_03.jpg\" alt=\"¹ØÆþ¤¹¤ë\" width=\"138\" height=\"60\" border=\"0\" style=\"margin-left:10px;\" /></a>"; 
     119    // ¥¿¥°¤òÀ¸À® 
     120    $create_tag = lfGetCreateTag($_POST['product_id'], $arrProductClass); 
     121 
    126122    $objPage->tpl_create_tag = $create_tag; 
    127123    break; 
     
    173169    return $arrRet; 
    174170} 
     171 
     172/* ¥¿¥°¤òÀ¸À® */ 
     173function lfGetCreateTag($product_id, $arrProductClass) { 
     174     
     175    $create_tag .= "<select name=\"classcategory_id1_$product_id\" style=\"\" onchange=\"lnSetSelect('classcategory_id1_$product_id');\">"; 
     176    $create_tag .= "<option value=\"\">ÁªÂò¤·¤Æ¤¯¤À¤µ¤¤</option>"; 
     177    foreach($arrProductClass as $arrVal) { 
     178        $classcategory_name = $objQuery->get("dtb_classcategory", "name", "classcategory_id = ?", array($arrVal['classcategory_id1'])); 
     179        $create_tag .= "<option label=\"$classcategory_name\" value=\"" . $arrVal['classcategory_id1'] . "\">" . $classcategory_name . "</option>\n"; 
     180    } 
     181    $create_tag .= "</select>"; 
     182    $create_tag .= "<a href=\"#\" onclick=\"fnFormModeSubmit('form1', 'cart', 'product_id', 404)\"><img src=\"images/top/button_03.jpg\" alt=\"¹ØÆþ¤¹¤ë\" width=\"138\" height=\"60\" border=\"0\" style=\"margin-left:10px;\" /></a>"; 
     183 
     184    return $create_tag;  
     185} 
    175186?> 
Note: See TracChangeset for help on using the changeset viewer.