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