product_price_list.ihtml

来自「phpShop是一个基于php的分布式电子商务模块」· IHTML 代码 · 共 87 行

IHTML
87
字号
 <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" class="RecordsTable">  <tr>     <td class="RecordsTableHeader"><p class="HeaderText">&nbsp;<?phpif (!$product_parent_id) {  echo $product_form_product_lbl;} else {  echo  $product_form_item_lbl;}?> <?php echo $price_list_for_lbl ?> <?php$url = SECUREURL . "?page=$modulename/product_form&product_id=$product_id&product_parent_id=$product_parent_id";echo "<A class=\"hLink\" HREF=" . $sess->url($url) . ">";echo $ps_product->get_field($product_id,"product_name");echo "</A>"; ?>         </p>    </td>   </tr>   <tr>     <td>       <table width="100%" border="0" cellspacing="0" cellpadding="2">        <tr>           <td width="55%"><?php echo $price_list_group_name ?></td>          <td width="17%"><?php echo $price_list_price ?></td>          <td width="28%"><?php echo $price_list_currency ?></td>        </tr>        <?php$q  = "SELECT shopper_group_name,product_price_id,product_price,product_currency ";$q .= "FROM shopper_group,product_price ";$q .= "WHERE product_id = '$product_id' ";$q .= "AND shopper_group.vendor_id = '$ps_vendor_id' ";$q .= "AND shopper_group.shopper_group_id = product_price.shopper_group_id ";$q .= "ORDER BY shopper_group_name,product_price"; $db->query($q);while ($db->next_record()) { ?>         <tr nowrap="nowrap">           <td width="55%"><?php$url = SECUREURL . "?page=$modulename/product_price_form&product_price_id=" . $db->f("product_price_id") . "&product_id=$product_id&return_args=" . urlencode($return_args);echo "<A class=\"bLink\" HREF=" . $sess->url($url) . ">";$db->sp("shopper_group_name"); echo "</A>"; ?></td>          <td width="17%"><?phpecho $db->f("product_price"); ?></td>          <td width="28%"><?php echo $db->f("product_currency"); ?></td>        </tr>        <?php } ?>         <tr nowrap="nowrap">           <td width="100%" colspan="4">             <div align="left">&nbsp</div>          </td>        </tr>        <tr nowrap="nowrap">           <td width="100%" colspan="4"> <?php$num_rows = $db->num_rows();$q  = "SELECT * FROM shopper_group ";$q .= "WHERE vendor_id = '$ps_vendor_id' ";$db->query($q);if ($num_rows < $db->num_rows()) {?>             <div align="center">               <table width="100%" border="0" cellspacing="0" cellpadding="0">                <tr>                   <td width="100%" align="center"><input type="button" class="Button" border="0" value="Add" onclick="document.location.href='<?php $sess->purl(SECUREURL . "?page=$modulename/product_price_form&product_id=$product_id&return_args=" . urlencode($return_args)); ?>'" />                   <input type="button" class="Button" border="0" value="Done" onclick="document.location.href='<?php $sess->purl(SECUREURL . "?$return_args"); ?>'" />                  </td>                </tr>              </table>            </div>            <?php } else { ?>             <div align="center">               <table width="100%" border="0" cellspacing="0" cellpadding="0">                <tr>                   <td colspan="2" align="center"><input type="button" class="Button" border="0" value="Done" onclick="document.location.href='<?php $sess->purl(SECUREURL . "?$return_args"); ?>'" />                  </td>                </tr>              </table>            </div>            <?php } ?> </td>        </tr>      </table>    </td>  </tr></table>

⌨️ 快捷键说明

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