
<table width="770" border="1" cellspacing="0" cellpadding="0" bordercolor="#003366">
  <tr> 
    <td bgcolor="#FFFFFF" bordercolor="#FFFFFF" align="center" valign="top"> 
      <form>
        <input type="hidden" name="newsContent" value="{info}">
      </form>
      <form name="form" method="post" action="index.php" enctype="multipart/form-data">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td><b>Creat a file in </b><font class="directory"><a href="index.php?action=list_file&type_id={top_type_id}">{top_type_name}</a></font></td>
          </tr>
          <tr> 
            <td bordercolor="#99CCCC"> Change Category 
              <select name="c_type_id" onchange="this.form.submit();">
                <option value="0" selected>Please Select</option>
				{type_selections}
              </select>
              <input type="submit" name="Submit2" value="GO">
              <input type="hidden" name="action" value="add_file">
            </td>
          </tr>
        </table>
        <!-- BEGIN selecttype -->
        Please select a category first.{selecttype} 
        <!-- END selecttype -->
        <!-- BEGIN addfile -->
        <table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td height="2" bgcolor="#666666"><img src="../images/spot.gif" width="1" height="1"></td>
          </tr>
          <tr> 
            <td> 
              <table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC">
                <tr align="center"> 
                  <td colspan="2" class="type">Basic</td>
                </tr>
                <tr> 
                  <td width="19%" height="26" bgcolor="#FFFFFF" align="right">*Name:</td>
                  <td width="81%" height="26" bgcolor="#FFFFFF"> 
                    <input type="text" name="subject" size="50">
                    || 
                    <input type="checkbox" name="is_better" value="1">
                    Recommend</td>
                </tr>
                <!-- BEGIN order -->
                <tr> 
                  <td width="19%" height="26" bgcolor="#FFFFFF" align="right">Price{currency}):</td>
                  <td width="81%" height="26" bgcolor="#FFFFFF"> 
                    <p> 
                      <input type="text" name="now_price" size="5" value="">
                    </p>
                  </td>
                </tr>
                <!-- END order -->
                <tr> 
                  <td width="19%" height="25" bgcolor="#FFFFFF" align="right">Brief:</td>
                  <td width="81%" height="25" bgcolor="#FFFFFF"> 
                    <p> 
                      <textarea name="fastview" cols="50" rows="3"></textarea>
                    </p>
                  </td>
                </tr>
                <tr> 
                  <td width="19%" height="16" bgcolor="#FFFFFF" align="right">Preview 
                    image:</td>
                  <td width="81%" height="16" bgcolor="#FFFFFF"> 
                    <input type="file" name="preview">
                    <br>
                    (Okphp will resize the image automaticly.) Max width&amp;height: 
                    <input type="text" name="maxsize" size="6" value="100">
                    px </td>
                </tr>
                <tr> 
                  <td bgcolor="#FFFFFF" align="right">*Content:</td>
                  <td bgcolor="#FFFFFF"> 
                    <input  name=body type=hidden>
                    <script language="javascript" src="./files/zoom_en.js"></script>
                  </td>
                </tr>
                <!-- BEGIN expand -->
                <tr align="center"> 
                  <td colspan="2" class="type">Expant attributes</td>
                </tr>
                <!-- BEGIN exp_item -->
                <tr> 
                  <td width="19%" bgcolor="#FFFFFF" align="right">{attribute_}:</td>
                  <td width="81%" bgcolor="#FFFFFF"> 
                    <p> 
                      <input type="text" name="{attribute}">
                    </p>
                  </td>
                </tr>
                <!-- END exp_item -->
                <!-- END expand -->
                <tr align="center"> 
                  <td colspan="2" class="type">Attachments</td>
                </tr>
                <tr> 
                  <td width="19%" bgcolor="#FFFFFF">&nbsp;</td>
                  <td width="81%" bgcolor="#FFFFFF"> 
                    <p> [<a href="attachment.php" target="_blank">Manage</a>]{addfile}</p>
                  </td>
                </tr>
                <tr> 
                  <td colspan="2" height="51" align="center" bgcolor="#FFFFFF"> 
                    <input type="hidden" name="step" value="2">
                    <input type="hidden" name="type_id" value="{type_id}">
                    <input type=submit name="submit" value=" Submit " 	onClick="save();">
                    <input type="reset" name="Submit2" value=" Reset ">
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr> 
            <td height="2" bgcolor="#666666"><img src="../images/spot.gif" width="1" height="1"></td>
          </tr>
        </table>
        <!-- END addfile -->
      </form>
      <p>&nbsp;</p>
    </td>
  </tr>
</table>
