<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>栏目管理</title>
<link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__PUBLIC__/FCKeditor/fckeditor.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.metadata.js"></script>
</head>
<body>
 <div class="page_tilte">
       &nbsp;&nbsp;<a href="<?php echo U('News/index');?>">返回信息列表</a> | &nbsp;&nbsp;编辑信息
    </div>
    <br />
    <form method="post" action="" id="form1" enctype="multipart/form-data">
    <table id="htmlTable" width="95%" align="center" cellpadding="1" cellspacing="1" bgcolor="#dee7ff" border="0">

  <tr bgcolor="white">
    <td class="sTitle4" align="right">
                项目分类：
    </td>
    <td style="padding-left: 5px;">
      <select name="classid" id="type">
      <?php if(is_array($Result)): $i = 0; $__LIST__ = $Result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($vo['id']); ?>" <?php if($vo['id'] == $data['classid'] ): ?>selected="selected" <?php else: ?><?php endif; ?>><?php echo ($vo['name']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
     </select>
      </td>
  </tr>
   <tr bgcolor="white">
    <td class="sTitle4" align="right">
                排序：
            </td>
    <td style="padding-left: 5px;">
                <input name="orderid" type="text" value="<?php echo ($data["orderid"]); ?>" id="orderid" style="width:300px;" />
            </td>
  </tr>

  <tr bgcolor="white">
    <td class="sTitle4" align="right">
                项目名称：
            </td>
    <td style="padding-left: 5px;">
                <input name="title" type="text" value="<?php echo ($data["title"]); ?>" id="title" style="width:300px;" /><font color="#FF0000">*</font>
            </td>
  </tr>
  <tr bgcolor="white">
    <td class="sTitle4" align="right">
                保理机构:
    </td>
    <td style="padding-left: 5px;">
                <input name="bljg" type="text" value="<?php echo ($data["bljg"]); ?>" id="bljg" style="width:300px;" /><font color="#FF0000">*</font>
            </td>
  </tr>
  <tr bgcolor="white">
    <td class="sTitle4" align="right">
                项目规模:
    </td>
    <td style="padding-left: 5px;">
        <input name="xmgm" type="text" id="xmgm" value="<?php echo ($data["xmgm"]); ?>" size="12" maxlength="120" />万<font color="#FF0000">*</font>
    </td>
  </tr>
   <tr bgcolor="white">
    <td class="sTitle4" align="right">
                投资进度:
    </td>
    <td style="padding-left: 5px;">
        <input name="xmjd" type="text" id="xmjd" value="<?php echo ($data["xmjd"]); ?>" size="12" maxlength="120" /><font color="#FF0000">*</font>
    </td>
  </tr>

   <tr bgcolor="white">
    <td class="sTitle4" align="right">
                起投金额:
    </td>
    <td style="padding-left: 5px;">
        <input name="qtje" type="text" value="<?php echo ($data["qtje"]); ?>" id="qtje" size="12" maxlength="120" /><font color="#FF0000">*</font>
    </td>
  </tr>

   <tr bgcolor="white">
    <td class="sTitle4" align="right">
                最高金额:
    </td>
    <td style="padding-left: 5px;">
        <input name="zgje" type="text" value="<?php echo ($data["zgje"]); ?>" id="zgje" size="12" maxlength="120" />(0为无限制)<font color="#FF0000">*</font>
    </td>
  </tr>

   <tr bgcolor="white">
    <td class="sTitle4" align="right">
                投资人数:
    </td>
    <td style="padding-left: 5px;">
        <input name="tzrs" type="text" value="<?php echo ($data["tzrs"]); ?>" id="tzrs" size="12" maxlength="120" />人<font color="#FF0000">*</font>
    </td>
  </tr>

  <tr bgcolor="white">
    <td class="sTitle4" align="right">
                还款方式:
    </td>
    <td style="padding-left: 5px;">
        <select name="hkfs">
    <option value="0" <?php if($data['hkfs'] == 0): ?>selected="selected" <?php else: ?><?php endif; ?>>按日付收益，到期还本</option>
    <option value="1"  <?php if($data['hkfs'] == 1): ?>selected="selected" <?php else: ?><?php endif; ?>>按周期付收益，到期还本</option>
    </select><font color="#FF0000">*</font>
    </td>
  </tr>

   <tr bgcolor="white">
    <td class="sTitle4" align="right">
                是否复投:
    </td>
    <td style="padding-left: 5px;">
    <select name="isft">
    <option value="0" <?php if($data['isft'] == 0): ?>selected="selected" <?php else: ?><?php endif; ?>>不能复投</option>
    <option value="1"  <?php if($data['isft'] == 1): ?>selected="selected" <?php else: ?><?php endif; ?>>可以复投</option>
    </select><font color="#FF0000">*</font>
    </td>
  </tr>

     <tr bgcolor="white">
    <td class="sTitle4" align="right">
                可投金额:
    </td>
    <td style="padding-left: 5px;">
        <input name="ktje" type="text" value="<?php echo ($data["ktje"]); ?>" id="ktje" size="12" maxlength="120" />元<font color="#FF0000">*</font>
    </td>
  </tr>


  <tr bgcolor="white">
    <td class="sTitle4" align="right">
                交易日化收益:
    </td>
    <td style="padding-left: 5px;">
        <input name="jyrsy" type="text" value="<?php echo ($data["jyrsy"]); ?>" id="jyrsy" size="12" maxlength="120" />%<font color="#FF0000">*</font>
    </td>
  </tr>

   <tr bgcolor="white">
    <td class="sTitle4" align="right">
                提取收益佣金:
    </td>
    <td style="padding-left: 5px;">
        <input name="tqsyyj" value="<?php echo ($data["tqsyyj"]); ?>" type="text" id="tqsyyj" size="12" maxlength="120" />% (填0不扣佣金)<font color="#FF0000">*</font>
    </td>
  </tr>

   <tr bgcolor="white">
    <td class="sTitle4" align="right">
                项目期限:
    </td>
    <td style="padding-left: 5px;">
        <input name="shijian" type="text" id="shijian" size="12" maxlength="120" value="<?php echo ($data["shijian"]); ?>"/>
        <select name="qxdw">
    <option value="个交易日" <?php if($data['qxdw'] == '个交易日'): ?>selected="selected" <?php else: ?><?php endif; ?>>个交易日</option>
    <option value="个自然日" <?php if($data['qxdw'] == '个自然日'): ?>selected="selected" <?php else: ?><?php endif; ?>>个自然日</option>
    </select><font color="#FF0000">*</font>
    </td>
  </tr>

  <tr bgcolor="white">
    <td class="sTitle4" align="right">
        投资状态:
    </td>
    <td style="padding-left: 5px;">
        <select name="tzzt">
    <option value="0" <?php if($data['tzzt'] == 0): ?>selected="selected" <?php else: ?><?php endif; ?>>投资中</option>
    <option value="1" <?php if($data['tzzt'] == 1): ?>selected="selected" <?php else: ?><?php endif; ?>>已投满</option>
    </select><font color="#FF0000">*</font>
    </td>
  </tr>

   <tr bgcolor="white">
    <td class="sTitle4" align="right">
               产品图片:
    </td>
    <td style="padding-left: 5px;">
        <input name="pic" type="file" id="pic" size="30"  /><?php if(($data['pic'])  !=  ""): ?><br />
          <a href="/public/Project/<?php echo ($data["pic"]); ?>" target="_blank"><img src="/public/Project/<?php echo ($data["pic"]); ?>" style="border:#999 1px solid; margin-top:2px;" /></a><?php endif; ?>
    </td>
  </tr>

  <tr bgcolor="white">
    <td class="sTitle4" align="right">
                产品说明：
            </td>
    <td class="rightItem">
                <textarea name="content"><?php echo ($data["content"]); ?></textarea>
        <script>
    var oFCKeditor = new FCKeditor('content') ;
    oFCKeditor.BasePath = '__PUBLIC__/FCKeditor/';
    oFCKeditor.Width = '100%';
    oFCKeditor.Height = '350';
    oFCKeditor.ToolbarSet = 'Default';
    oFCKeditor.ReplaceTextarea();
        </script> 
            </td>
  </tr>

  <!-- <?php if($data['type'] == '1' ): ?>selected="selected" <?php else: ?><?php endif; ?> -->
  <tr bgcolor="white">
    <td class="sTitle4">
            </td>
    <td height="40" class="rightItem">
                <input type="hidden" name="id" value="<?php echo ($data["id"]); ?>" id="id" class="btn" />
                <input type="submit" name="sSubmit" value="提交" id="sSubmit" class="btn" />
                <input type="button" class="btn" value="取消" onclick="javascript:history.back(-1)" />
            </td>
  </tr>
</table>
    </form>
</body>
</html>