本文整理汇总了PHP中CommonModel::getSkuPartner方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonModel::getSkuPartner方法的具体用法?PHP CommonModel::getSkuPartner怎么用?PHP CommonModel::getSkuPartner使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommonModel
的用法示例。
在下文中一共展示了CommonModel::getSkuPartner方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content_52b9238817e343_27919694
//.........这里部分代码省略.........
?>
暂时停售<?php
} elseif ($_smarty_tpl->tpl_vars['list']->value['status'] == 3) {
?>
永久性停售<?php
} else {
?>
在线<?php
}
?>
</td>
<td><?php
echo getUserNameById($_smarty_tpl->tpl_vars['list']->value['purchaseId']);
?>
</td>
</tr>
<tr <?php
if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foo']['iteration'] % 2 == 0) {
?>
style="background-color:#f2f2f2;"<?php
}
?>
>
<td colspan="7" style="border-bottom:1px solid #ccc;">
<?php
echo $_smarty_tpl->tpl_vars['list']->value['goodsName'];
?>
</td>
<td colspan="2" style="border-bottom:1px solid #ccc;">
</td>
<?php
$_smarty_tpl->tpl_vars['ptlist'] = new Smarty_variable(CommonModel::getSkuPartner($_smarty_tpl->tpl_vars['list']->value['sku']), null, 0);
?>
<td colspan="7" style="border-bottom:1px solid #ccc;">
</td>
<td style="border-bottom:1px solid #ccc;">
</td>
<td colspan="7" style="border-bottom:1px solid #ccc;">
<?php
$_smarty_tpl->tpl_vars['pt'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['pt']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['ptlist']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['pt']->key => $_smarty_tpl->tpl_vars['pt']->value) {
$_smarty_tpl->tpl_vars['pt']->_loop = true;
echo $_smarty_tpl->tpl_vars['pt']->value['company_name'];
}
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<div>
<div class="bottomvar">
<div class="pagination">
<?php
echo $_smarty_tpl->tpl_vars['pageStr']->value;
示例2: content_52b79c2c958ff0_76857627
//.........这里部分代码省略.........
} elseif ($_smarty_tpl->tpl_vars['list']->value['goodsStatus'] == 4) {
?>
停售<?php
} elseif ($_smarty_tpl->tpl_vars['list']->value['goodsStatus'] == 5) {
?>
部分平台下线<?php
}
?>
</td>
<td class="bor-top">
<?php
echo $_smarty_tpl->tpl_vars['list']->value['global_user_name'];
?>
</td>
</tr>
<tr <?php
if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foo']['iteration'] % 2 == 0) {
?>
style="background-color:#f2f2f2;"<?php
}
?>
>
<td colspan="7">
<?php
echo $_smarty_tpl->tpl_vars['list']->value['goodsName'];
?>
</td>
<td colspan="2">
</td>
<?php
$_smarty_tpl->tpl_vars['ptlist'] = new Smarty_variable(CommonModel::getSkuPartner($_smarty_tpl->tpl_vars['list']->value['sku']), null, 0);
?>
<td colspan="7">
</td>
<td>
</td>
<td colspan="5">
供应商:<?php
$_smarty_tpl->tpl_vars['pt'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['pt']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['ptlist']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['pt']->key => $_smarty_tpl->tpl_vars['pt']->value) {
$_smarty_tpl->tpl_vars['pt']->_loop = true;
echo $_smarty_tpl->tpl_vars['pt']->value['company_name'];
}
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<div>
<div class="bottomvar">
<div class="pagination">
<?php
echo $_smarty_tpl->tpl_vars['pageStr']->value;
开发者ID:ohjack,项目名称:newErp,代码行数:67,代码来源:5c6063eaa1db2aaaf06749fec2c221f96866f45e.file.productStockalarm.htm.php