Location: PHPKode > scripts > PHP or Java Class Code Generator > php-or-java-class-code-generator/programtemplates/template_generate.html
     <form action="generate_code.php" method="post" name="code_generator" id="code_generator">
        <input type="hidden" name="action" value="add" />
  <table width="939" border="0" cellpadding="3" cellspacing="3">
   <tr>
      <td width="28%" valign="top"><div align="right">Developer name </div></td>
            <td width="72%"><input name="author" type="text" />
        (ex. John Smith) </td>
   </tr>
   <tr>
      <td width="28%" valign="top"><div align="right">Project name </div></td>
            <td width="72%"><input name="projectname" type="text" />
        (ex. Rating Script) </td>
   </tr>
   <tr>
      <td valign="top"><div align="right">CLASS name </div></td>
            <td><input name="name" type="text" />
        (ex. classProduct) </td>
   </tr>
          <tr>
            <td valign="top"><div align="right">VARIABLE name </div></td>
            <td><input name="varname" type="text" />
        (ex. cp) </td>
          </tr>
          <tr>
            <td valign="top"><div align="right">Type</div></td>
            <td>php4
                <input name="type" type="radio" value="php" checked="checked" />
       			php5
				<input type="radio" name="type" value="php5" />		
				<!--java
        		<input type="radio" name="type" value="java" />	-->	</td>
          </tr>
          <tr>
            <td valign="top"><div align="right">TABLE name </div></td>
            <td><input name="table" type="text" id="table" size="50" value="{TABLE}" disabled="disabled" /> 
			<input name="table" type="hidden" id="table" value="{TABLE}">       </td>
          </tr>
          <tr>
            <td valign="top"><div align="right">DB fields </div></td>
            <td><input name="fieldnames" type="text" id="fieldnames" size="50" value="{DBFIELDS}" disabled="disabled" />
			<input name="fieldnames" type="hidden" id="fieldnames" value="{DBFIELDS}">       </td>
          </tr>
          <tr>
            <td valign="top"><div align="right">Functions name </div></td>
            
      <td><input name="funct_name" type="text" id="funct_name2" size="50" /> 
      <br />
        (ex. {EXAMPLE})</td>
          </tr>
          <tr>
            <td valign="top"><div align="right">History(undo) Table </div></td>
            <td><input name="history_table" type="text" id="history_table" />
                <br />
              (ex. undo_table; leave empty to disable undo function) </td>
          </tr>
		   <tr>
            <td colspan="2"><div align="center">
                <input type="submit" name="Submit" value="Submit" class="buttonblue" />
            </div></td>
    </tr>
  </table>
</form>
  <p><strong>Developer name:</strong> is the name of the developer&nbsp; - it will be displayed in the header of the source file <br />
          <strong>Project name:</strong> is the name of the project - it will be displayed in the header of the source file <br />
          <strong>CLASS name:</strong> is the name of the class - the name conventions have to be taken into consideration, specific for each language (in java Class, in php class or Class) The name is important when naming a file as the source file will be named <br />
  Class.java (having the same form as the name of the class or cls_class.php in php.<br />
  <strong>VARIABLE name:</strong> the name of the variable is important as a &quot;usage code&quot; is generated, as&nbsp;sample code inserted at the beginning of the source. This may be pasted eventually in the source where this class is applied.<br />
  <strong>TYPE: </strong>the type of the generated source.<br />
  <strong>TABLE name :</strong> the name of the table.<br />
  <strong>DB fields:</strong> is the list of the table field names. Rules: the first field has to be set as Primary Key, the fields are separates by;.<br />
  <strong>Functions name:</strong> the list has to be similar with the fields one. Rules: it is recommended to be the same as the precedent list but without # and with capitalisation. Thus functions will be generated: getId, setId in case the first field is id in the fields list and Id in this one.<br />
  <strong>History(undo) Table:</strong> If you want to enable the history function in the code, you just put the name of the table, this will generate the table name structure and the functions in the code and enable it.<br />
</p>
Return current item: PHP or Java Class Code Generator