当前位置: 首页>>代码示例>>PHP>>正文


PHP CategoryModel::getCategoryList方法代码示例

本文整理汇总了PHP中CategoryModel::getCategoryList方法的典型用法代码示例。如果您正苦于以下问题:PHP CategoryModel::getCategoryList方法的具体用法?PHP CategoryModel::getCategoryList怎么用?PHP CategoryModel::getCategoryList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CategoryModel的用法示例。


在下文中一共展示了CategoryModel::getCategoryList方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: indexAction

 public function indexAction()
 {
     $categoryObj = new CategoryModel();
     $list = $categoryObj->getCategoryList();
     var_dump($list);
     // 		exit;
 }
开发者ID:lfq618,项目名称:yafdemo,代码行数:7,代码来源:Category.php

示例2: content_52663c55b72394_37986392

    function content_52663c55b72394_37986392($_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/goodslist.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>
			<div class="servar products-servar">
			<span style="color: red;" id="error"><?php 
        echo $_GET['status'];
        ?>
</span>
            </div>
            <div class="main feedback-main">
					<table class="products-action" width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
                            <td>SPU:
                            <input value="<?php 
        echo $_smarty_tpl->tpl_vars['spu']->value;
        ?>
" disabled="disabled"/>
							<input name="spu" id="spu" value="<?php 
        echo $_smarty_tpl->tpl_vars['spu']->value;
        ?>
" type="hidden"/>
							</td>
						</tr>
                        <tr>
                           	    <td>
                                    类别:
									<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>
								</td>
						</tr>
                        <tr>
                            <td><input type="button" value="提交" id="editAutoCreateSpu"/>
							<input type="button" value="返回" id="back"/></td>
						</tr>
					</table>
            </div>
            <div class="bottomvar">
            	<div class="texvar">

            	</div>
            	<div class="pagination">
            	</div>
            </div>
<?php 
        echo $_smarty_tpl->getSubTemplate("footer.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
    }
开发者ID:ohjack,项目名称:newErp,代码行数:81,代码来源:434b7748055915c276c7e26a81f69fc41138c0ae.file.editAutoCreateSpuCate.htm.php

示例3: content_526616b983b8b3_14494234


//.........这里部分代码省略.........
        $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['value']->_loop = false;
        $_from = Auth::getApiPurchaseUsers();
        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['userId'];
            ?>
" <?php 
            if ($_GET['purchaseId'] == $_smarty_tpl->tpl_vars['value']->value['userId']) {
                ?>
selected='selected'<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['value']->value['userName'];
            ?>
</option>
									<?php 
        }
        ?>
								  </select>
								   </span>
								<span>类别&nbsp;&nbsp;
									<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='seachGoods'/>搜索</button></span>
                                   &nbsp;
                                   <?php 
        if ($_smarty_tpl->tpl_vars['categorySearch']->value != '') {
            ?>
                                   <span style="color: green;">上次您搜索的类别为:<?php 
            echo $_smarty_tpl->tpl_vars['categorySearch']->value;
            ?>
</span>
                                   <?php 
        }
开发者ID:ohjack,项目名称:newErp,代码行数:67,代码来源:6389f3c33c3dbade980a246257c1b0d8286c94f1.file.goodsList.htm.php

示例4: act_goodsAddXlsSave


//.........这里部分代码省略.........
         $warehouseName = post_check(trim($currentSheet->getCell($qq)->getValue()));
         //采购员
         $purchaseName = post_check(trim($currentSheet->getCell($rr)->getValue()));
         //包装材料
         $packingmaterial = post_check(trim($currentSheet->getCell($ss)->getValue()));
         //供应商
         $capacity = post_check(trim($currentSheet->getCell($tt)->getValue()));
         if ($goodsLength == '') {
             $goodsLength = 0;
         }
         if ($goodsWidth == '') {
             $goodsWidth = 0;
         }
         if ($goodsHeight == '') {
             $goodsHeight = 0;
         }
         $spu = strpos($spu, '_') === false ? str_pad($spu, 3, '0', STR_PAD_LEFT) : $spu;
         $sku = strpos($sku, '_') === false ? str_pad($sku, 3, '0', STR_PAD_LEFT) : $sku;
         //	if($department != '采购部' && $spu !=''){
         //		echo "<br/>非采购部人员不能导入或修改spu的值";
         //		exit();
         //	}
         /* 仓库对应的IDfactory */
         if (!empty($warehouseName)) {
             /*
             $wh 	 = RelationModel::getWarehouse("and warehouseName='{$warehouseName}'");
             var_dump($wh);die; 
             $storeid = $wh[0]['id'];
             */
             $storeid = 1;
         }
         /* 货品类别 */
         if (!empty($goods_categoryname) && !empty($pid_name)) {
             $pcate = CategoryModel::getCategoryList("id", "where name='{$pid_name}'");
             if ($pcate) {
                 $cate = CategoryModel::getCategoryList("path", "where pid='{$pcate[0]['id']}' and name='{$goods_categoryname}'");
                 if ($cate) {
                     $goodsCategory = $cate[0]['path'];
                 } else {
                     echo "<br/>第<font color='red'>{$c}</font>条记录中<font color='orange'>货品类别或父类有误,</font>请检查后再提交...<br/>";
                     exit;
                 }
             } else {
                 echo "<br/>第<font color='red'>{$c}</font>条记录中<font color='orange'>货品类别或父类有误,</font>请检查后再提交...<br/>";
                 exit;
             }
             //$goodsCategory = "1-3-5";               //调用类别接口获取类别id
         }
         if ($purchaseName == "") {
             echo "有部分数据没填采购名字,请认真检查再提交...";
             exit;
         } else {
             $purchaseId = 1;
             //需调用接口获取采购员id
         }
         /*
         需要调接口获取用户部门
         if($department == '采购部' && trim($goodsCategory) == ''){//采购部人员操作时,导入货品类别不能为空
         	echo "有部分数据没填货品类别,请认真检查再提交...";
         	exit();
         }
         */
         //统计供应商id
         if (!empty($capacity)) {
             $capacity_a = array();
             $capacity_a = array_filter(explode(',', $capacity));
开发者ID:ohjack,项目名称:newErp,代码行数:67,代码来源:goodsImport.action.php

示例5: content_526616c12e7fe9_50900572

    function content_526616c12e7fe9_50900572($_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="inputName" type="text" id="inputName" value="<?php 
        echo $_GET['inputName'];
        ?>
"/>
								   </span>
								<span>类别&nbsp;&nbsp;
									<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='seachInput'/>搜索</button></span>
                                   &nbsp;
                                   <?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=addInput">新增属性</a>
                </span>
            </div>
            <div class="main">
            	<table cellspacing="0" width="100%">
                	<tr class="title">
                    	<td>属性名</td>
						<td>录入方式</td>
						<td>关联类型</td>
                    </tr>
                    <?php 
        $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['value']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['inputList']->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 
//.........这里部分代码省略.........
开发者ID:ohjack,项目名称:newErp,代码行数:101,代码来源:2f4e19f339faaa678778ccafe5ec7318e2f02342.file.inputList.htm.php

示例6: content_526616c8597fb5_27412182

    function content_526616c8597fb5_27412182($_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/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">
                </div>
            </div>
<div class="servar products-servar">


            </div>
            <div class="main feedback-main">
					<table class="products-action" width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
                            <input id="id" value="<?php 
        echo $_smarty_tpl->tpl_vars['id']->value;
        ?>
" type="hidden"/>
                            <td><span style="color:#F00;">*</span>属性名:
							<input id="propertyName" value="<?php 
        echo $_smarty_tpl->tpl_vars['propertyName']->value;
        ?>
"/>
							</td>
						</tr>
                        <tr>
                           	    <td>
                                    &nbsp;&nbsp;
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    &nbsp;&nbsp;
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <span style="color:#F00;">*</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 style="color: green;">修改前类型为:<?php 
        echo $_smarty_tpl->tpl_vars['categoryStr']->value;
        ?>
</span>
								</td>
						</tr>
                        <tr>
                            <td><span style="color:#F00;">*</span>录入方式:
									<select name="isRadio" id="isRadio">
										<option value="1" <?php 
        if ($_smarty_tpl->tpl_vars['isRadio']->value == 1) {
            ?>
selected='selected'<?php 
        }
        ?>
>单选</option>
										<option value="2" <?php 
        if ($_smarty_tpl->tpl_vars['isRadio']->value == 2) {
            ?>
selected='selected'<?php 
        }
        ?>
>多选</option>
									</select>
							</td>
						</tr>
                        <tr>
                            <td><input type="button" value="提交" id="updatePP"/>
							<input type="button" value="返回" id="back"/></td>
						</tr>
					</table>
//.........这里部分代码省略.........
开发者ID:ohjack,项目名称:newErp,代码行数:101,代码来源:0ce1d6b1ed01b83ea371d1b271cbbf44636e73ef.file.updateProperty.htm.php

示例7: content_526616c5806164_72182535

    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>类别&nbsp;&nbsp;
									<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>
                                   &nbsp;
                                   <?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>
//.........这里部分代码省略.........
开发者ID:ohjack,项目名称:newErp,代码行数:101,代码来源:b4243b9ca1c0a05f1712c5540f3d661f89c27886.file.propertyList.htm.php

示例8: act_getCategoryInfoAndIsHasChild

 function act_getCategoryInfoAndIsHasChild()
 {
     $id = $_POST['id'];
     $list = CategoryModel::getCategoryList("*", "where is_delete=0 and pid='{$id}'");
     if ($list) {
         $count = CategoryModel::getCategoryCount("where is_delete=0 and path like '%{$id}-%-%'");
         return array($list, $count);
     } else {
         self::$errCode = 101;
         self::$errMsg = 'error';
         return false;
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:13,代码来源:omAvailable.action.php

示例9: content_526616d124ef17_38368080

    function content_526616d124ef17_38368080($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include 'D:\\wamp\\www\\ftpPc.valsun.cn\\lib\\template\\smarty\\plugins\\modifier.date_format.php';
        }
        echo $_smarty_tpl->getSubTemplate("header.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

<script type="text/javascript" src="./js/goodslist.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>SPU:
								   <input name="spu" type="text" id="spu" value="<?php 
        echo $_GET['spu'];
        ?>
"/>
								   </span>
								   <span>审核状态:
								   <select name="auditStatus" id="auditStatus" >
								    <option value="0" > </option>
									<option value="1" <?php 
        if ($_GET['auditStatus'] == 1) {
            ?>
selected='selected'<?php 
        }
        ?>
>待审核</option>
									<option value="2" <?php 
        if ($_GET['auditStatus'] == 2) {
            ?>
selected='selected'<?php 
        }
        ?>
>审核通过</option>
								  	<option value="3" <?php 
        if ($_GET['auditStatus'] == 3) {
            ?>
selected='selected'<?php 
        }
        ?>
>审核不通过</option>
								  </select>
                                  <span>采购员:
								   <select name="purchaseId" id="purchaseId" >
								    <option value="0" > </option>
								    <?php 
        $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['value']->_loop = false;
        $_from = Auth::getApiPurchaseUsers();
        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['userId'];
            ?>
" <?php 
            if ($_GET['purchaseId'] == $_smarty_tpl->tpl_vars['value']->value['userId']) {
                ?>
selected='selected'<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['value']->value['userName'];
            ?>
</option>
									<?php 
        }
        ?>
								  </select>
								   </span>
								   </span>
								   <span>类别&nbsp;&nbsp;
									<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) {
//.........这里部分代码省略.........
开发者ID:ohjack,项目名称:newErp,代码行数:101,代码来源:e1ec5ef1f410287afc16cd11b1f0598f002c8754.file.spuArchiveList.htm.php

示例10: act_delCategory

 function act_delCategory()
 {
     $id = trim($_POST['id']);
     if (CategoryModel::getCategoryList("*", "where is_delete=0 and pid='{$id}'")) {
         self::$errCode = 03;
         self::$errMsg = '请先删除子分类!';
         return false;
     } else {
         $where = "and `id` = '{$id}'";
         $data = array('is_delete' => 1);
         if (CategoryModel::update($data, $where)) {
             return true;
         } else {
             self::$errCode = 03;
             self::$errMsg = '删除失败,请重试!';
             return false;
         }
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:19,代码来源:category.action.php


注:本文中的CategoryModel::getCategoryList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。