<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php $this->load->view(TPL_FOLDER."header");?>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" >
  <tr>
    <td width="3%" align="left" ><img src="{tpl_path}images/forward.jpg" /></td>
    <td width="97%" align="left" >您现在的位置：<a href="<?php echo site_url(CTL_FOLDER."industry");?>">产品列表</a> &gt; <a href="<?php echo site_url(CTL_FOLDER."industry_catalog");?>">行业分类</a> &gt; 分类修改</td>
  </tr>
</table>
<fieldset>
<legend>分类修改</legend>
<form action="<?php echo site_url(CTL_FOLDER."industry_catalog/save_record");?>" method="post" name="dialog_edit_form" id="dialog_edit_form" onsubmit="return Validator.Validate(this,3)">
  <table width="100%"  border="0" cellpadding="3" cellspacing="0" >
    <tr>
      <td width="146"><font color="#FF0000">*</font>所属分类：</td>
      <td width="849"><select name="parent_id" id="parent_id">
          <option value="0">==根目录==</option>
          <?php 
			foreach($catalog_list as $row) {
				if($row->id!=$edit_data['id'])
				{
			?>
          <option value="<?php echo $row->id;?>" <?php if($edit_data['parent_id']==$row->id) echo "selected";?>><?php echo str_repeat("&nbsp;&nbsp;",$row->deep_id).$row->cat_name;?></option>
          <?php
			 	}
			}?>
        </select></td>
    </tr>
    <tr>
      <td width="146"><font color="#FF0000">*</font>分类标题：</td>
      <td width="849"><input Name="cat_name" type="text" Id="cat_name" size="30" value="<?php echo $edit_data['cat_name'];?>" dataType="Require" msg="该项必须填写">
      </td>
    </tr>
    <tr>
      <td><font color="#FF0000">*</font>分类排序：</td>
      <td><input name="seqorder" type="text" id="seqorder" size="4" value="<?php echo $edit_data['seqorder'];?>"  datatype="Integer" msg="该项必须填写数字" />
      </td>
    </tr>
  </table>
  <input name="rd_id" type="hidden" value="<?php echo $edit_data['id'];?>" />
  <input name="old_parent_id" type="hidden" value="<?php echo $edit_data['parent_id'];?>" />
  <input name="is_has_chd" type="hidden" value="<?php echo $edit_data['is_has_chd'];?>" />
  <input type="submit" style=" margin-left:160px; margin-bottom:10px; margin-top:10px" name="sbmit" value="修改" class="button-style2" />
</form>
</fieldset>
<?php $this->load->view(TPL_FOLDER."footer");?>
