本文整理匯總了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