function content_526616c5806164_72182535($_smarty_tpl) { echo $_smarty_tpl->getSubTemplate("header.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <script type="text/javascript" src="./js/fancyBox/source/jquery.fancybox.js?v=2.1.3"></script> <link rel="stylesheet" type="text/css" href="./js/fancyBox/source/jquery.fancybox.css?v=2.1.2" media="screen" /> <script type="text/javascript" src="./js/property.js"></script> <div class="fourvar"> <div class="pathvar"> <?php echo $_smarty_tpl->getSubTemplate('pcNav.htm', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </div> <div class="texvar"> </div> <div class="pagination"> <?php echo $_smarty_tpl->tpl_vars['show_page']->value; ?> </div> </div> <div class="servar products-servar"> <span>属性名: <input name="propertyName" type="text" id="propertyName" value="<?php echo $_GET['propertyName']; ?> "/> </span> <span>录入方式: <select name="isRadio" id="isRadio" > <option value="0" >==请选择==</option> <option value="1" <?php if ($_GET['isRadio'] == 1) { ?> selected='selected'<?php } ?> >单选</option> <option value="2" <?php if ($_GET['isRadio'] == 2) { ?> selected='selected'<?php } ?> >多选</option> </select> </span> <span>类别 <select name="sku_category" id="pid_one" onchange="select_one();"> <option value="0">请选择</option> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_from = CategoryModel::getCategoryList('*', "where is_delete=0 and pid=0"); 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; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['value']->value['id']; ?> "/><?php echo $_smarty_tpl->tpl_vars['value']->value['name']; ?> </option> <?php } ?> </select> <span align="left" id="div_two" style="width:auto; display:none"></span> <span align="left" id="div_three" style="width:auto; display:none"></span> <span align="left" id="div_four" style="width:auto; display:none"></span> </span> <span><button id='seachProperty'/>搜索</button></span> <?php if ($_smarty_tpl->tpl_vars['categorySearch']->value != '') { ?> <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); }