本文整理汇总了PHP中OmAvailableModel::isSpuAudit方法的典型用法代码示例。如果您正苦于以下问题:PHP OmAvailableModel::isSpuAudit方法的具体用法?PHP OmAvailableModel::isSpuAudit怎么用?PHP OmAvailableModel::isSpuAudit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OmAvailableModel
的用法示例。
在下文中一共展示了OmAvailableModel::isSpuAudit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content_5265dbe4ca0254_58096823
//.........这里部分代码省略.........
$_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['value']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['spuList']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->_loop = true;
?>
<tr>
<td><?php
echo $_smarty_tpl->tpl_vars['value']->value['spu'];
?>
</td>
<td><?php
echo getPersonNameById($_smarty_tpl->tpl_vars['value']->value['purchaseId']);
?>
</td>
<td><?php
if ($_smarty_tpl->tpl_vars['value']->value['status'] == 1) {
?>
<img alt="No" src="http://misc.erp.valsun.cn/img/wrong.png"/><?php
} else {
?>
<img alt="Yes" src="http://misc.erp.valsun.cn/img/right.png"/><?php
}
?>
</td>
<td><?php
echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['value']->value['createdTime'], "Y-m-d H:i");
?>
</td>
<td><?php
if ($_smarty_tpl->tpl_vars['value']->value['isSingSpu'] == 1) {
?>
单料号<?php
} else {
?>
虚拟料号<?php
}
?>
</td>
<td>
<?php
if ($_SESSION['userId'] == $_smarty_tpl->tpl_vars['value']->value['purchaseId']) {
?>
<?php
if ($_smarty_tpl->tpl_vars['value']->value['status'] == 1 && $_smarty_tpl->tpl_vars['value']->value['isSingSpu'] == 1) {
?>
<input type="button" onclick="window.location.href = 'index.php?mod=autoCreateSpu&act=editAutoCreateSpuCate&spu=<?php
echo $_smarty_tpl->tpl_vars['value']->value['spu'];
?>
'" value="添加档案"/>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['value']->value['isSingSpu'] == 1 && OmAvailableModel::isSpuAudit($_smarty_tpl->tpl_vars['value']->value['spu']) == true || $_smarty_tpl->tpl_vars['value']->value['isSingSpu'] == 2) {
?>
<input type="button" onclick="window.location.href = 'index.php?mod=autoCreateSpu&act=addSku&spu=<?php
echo $_smarty_tpl->tpl_vars['value']->value['spu'];
?>
'" value="添加子料号"/>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['value']->value['status'] == 1) {
?>
<input type="button" class="deleteAutoCreateSpu" spu="<?php
echo $_smarty_tpl->tpl_vars['value']->value['spu'];
?>
" value="删除SPU"/>
<?php
}
?>
<?php
}
?>
</td>
</tr>
<?php
}
?>
</table>
</div>
<div class="bottomvar">
<div class="texvar">
</div>
<div class="pagination">
<?php
echo $_smarty_tpl->tpl_vars['show_page']->value;
?>
</div>
</div>
<?php
echo $_smarty_tpl->getSubTemplate("footer.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
}
开发者ID:ohjack,项目名称:newErp,代码行数:101,代码来源:b980c5359695ffb77028a01392ffdf3d5363dc2c.file.spuList.htm.php