本文整理汇总了PHP中OmAvailableModel::getProValStrByProId方法的典型用法代码示例。如果您正苦于以下问题:PHP OmAvailableModel::getProValStrByProId方法的具体用法?PHP OmAvailableModel::getProValStrByProId怎么用?PHP OmAvailableModel::getProValStrByProId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OmAvailableModel
的用法示例。
在下文中一共展示了OmAvailableModel::getProValStrByProId方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content_526616c5806164_72182535
//.........这里部分代码省略.........
?>
<span style="color: green;">上次您搜索的类别为:<?php
echo $_smarty_tpl->tpl_vars['categorySearch']->value;
?>
</span>
<?php
}
?>
<span style="color: red;"><?php
echo $_smarty_tpl->tpl_vars['status']->value;
?>
</span>
</div>
<div class="servar products-servar">
<span>
<a href="index.php?mod=property&act=addProperty">新增属性</a>
</span>
</div>
<div class="main feedback-main">
<table class="products-action" cellspacing="0" width="100%">
<tr class="title">
<td width="10%">属性名</td>
<td width="50%">属性值</td>
<td width="5%">录入方式</td>
<td width="15%">关联类型</td>
<td width="20%">操作</td>
</tr>
<?php
$_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['value']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['propertyList']->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>
<input name="<?php
echo $_smarty_tpl->tpl_vars['value']->value['id'];
?>
" id="<?php
echo $_smarty_tpl->tpl_vars['value']->value['id'];
?>
" type="hidden"/>
<td><a href="index.php?mod=property&act=updateProperty&id=<?php
echo $_smarty_tpl->tpl_vars['value']->value['id'];
?>
"><?php
echo $_smarty_tpl->tpl_vars['value']->value['propertyName'];
?>
</a></td>
<td><?php
echo OmAvailableModel::getProValStrByProId($_smarty_tpl->tpl_vars['value']->value['id']);
?>
</td>
<td><?php
if ($_smarty_tpl->tpl_vars['value']->value['isRadio'] == 1) {
?>
单选<?php
} else {
?>
多选<?php
}
?>
</td>
<td><?php
echo getAllCateNameByPath($_smarty_tpl->tpl_vars['value']->value['categoryPath']);
?>
</td>
<td>
<input type="button" onclick="window.location.href = 'index.php?mod=property&act=updatePropertyValue&id=<?php
echo $_smarty_tpl->tpl_vars['value']->value['id'];
?>
'" value="修改属性值"/>
<input type="button" onclick="window.location.href = 'index.php?mod=property&act=addPropertyValue&id=<?php
echo $_smarty_tpl->tpl_vars['value']->value['id'];
?>
'" value="添加属性值"/>
</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,代码来源:b4243b9ca1c0a05f1712c5540f3d661f89c27886.file.propertyList.htm.php