⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 product_attribute_list.ihtml

📁 php做的网上商店系统。简单易懂
💻 IHTML
字号:
<h2><?php echo $attribute_list_lbl ?> <?php
if (!$product_parent_id) {
  echo "Product:";
} else {
  echo  "Item:";
}
$url = SECUREURL . "?page=$modulename/product_form&product_id=$product_id&product_parent_id=$product_parent_id";
echo "<A HREF=" . $sess->url($url) . ">";
echo $ps_product->get_field($product_id,"product_name");
echo "</A>"; 
?></H2>
<TABLE width="100%" cellpadding="1" cellspacing="0" border="0" align="center">
  <TR> 
    <TD> 
      <table width="100%" border="0" cellspacing="0" cellpadding="2">
        <tr> 
          <td width="63%" ><?php echo $attribute_list_name ?></td>
          <td width="37%" ><?php echo $attribute_list_order ?></td>
        </tr>
        <?php
$product_id = $vars["product_id"];
$q = "SELECT * FROM product_attribute_sku WHERE product_id = '$product_id' ORDER BY attribute_list,attribute_name"; 
$db->query($q);
while ($db->next_record()) { ?> 
        <tr nowrap> 
          <td width="63%" ><?php 
$url = SECUREURL . "?page=$modulename/product_attribute_form&product_id=" . $product_id . "&attribute_name=" . urlencode($db->f("attribute_name")) . "&return_args=" . urlencode($return_args);
echo "<A HREF=" . $sess->url($url) . ">";
echo $db->f("attribute_name"); 
echo "</A>"; ?></td>
          <td width="37%" ><?php echo $db->f("attribute_list"); ?></td>
        </tr>
        <?php } ?> 
        <tr nowrap> 
          <td width="100%" colspan="2">&nbsp; </td>
        </tr>
        <tr nowrap> 
          <td width="100%" colspan="2"> 
            <div align="center"> 
              <table width="75%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td width="47%"> 
                    <div align="center"><a href="<?php $sess->purl(SECUREURL . "?page=$modulename/product_attribute_form&product_id=$product_id&return_args=" . urlencode($return_args)); ?>"><img src="/phpshop/ps_image/add.gif" width="50" height="16" border="0" align="middle"></a></div>
                  </td>
                  <td width="53%"> 
                    <div align="center"><a href="<?php $sess->purl(SECUREURL . "?$return_args"); ?>"><img src="/phpshop/ps_image/done.gif" width="50" height="16" border="0" align="middle"></a></div>
                  </td>
                </tr>
              </table>
            </div>
          </td>
        </tr>
      </table>
    </TD>
  </TR>
</TABLE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -