Dbsource_edit.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <form id="myform" name="myform" action="<if condition="$action_name=='edit'">{:U($module_name.'/update')}<else />{:U($module_name.'/insert')}</if>" method="post">
  2. <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
  3. <tr>
  4. <td width="120">{:L('db_name')}</td>
  5. <td><input type="text" name="name" class="inputbox input-text" value="{$vo['name']}" validate="required:true,cn_username:true, minlength:2, maxlength:20" /></td>
  6. </tr>
  7. <tr>
  8. <td width="120">{:L('db_host')}</td>
  9. <td><input type="text" name="host" class="inputbox input-text" value="{if $vo['host']!=''}{$vo['host']}{else}localhost{/if}" validate="required:true, minlength:7, maxlength:20" /></td>
  10. </tr>
  11. <tr>
  12. <td width="120">{:L('db_port')}</td>
  13. <td><input type="text" name="port" class="inputbox input-text" value="{if $vo['port']!=''}{$vo['port']}{else}3306{/if}" validate="required:true, minlength:2, maxlength:6" /></td>
  14. </tr>
  15. <tr>
  16. <td width="120">{:L('db_username')}</td>
  17. <td><input type="text" name="username" class="inputbox input-text" value="{$vo['username']}" validate="required:true, minlength:1, maxlength:20" /></td>
  18. </tr>
  19. <tr>
  20. <td width="120">{:L('db_password')}</td>
  21. <td><input type="text" name="password" class="inputbox input-text" value="{$vo['password']}" validate="required:true, minlength:1, maxlength:20" /></td>
  22. </tr>
  23. <tr>
  24. <td width="120">{:L('db_dbname')}</td>
  25. <td><input type="text" name="dbname" class="inputbox input-text" value="{$vo['dbname']}" validate="required:true, minlength:2, maxlength:20" /></td>
  26. </tr>
  27. <tr>
  28. <td width="120">{:L('db_dbtablepre')}</td>
  29. <td><input type="text" name="dbtablepre" class="inputbox input-text" value="{$vo['dbtablepre']}" validate="required:true, minlength:2, maxlength:20" /></td>
  30. </tr>
  31. </table>
  32. <div class="btn">
  33. <if condition="$action_name=='edit'"><input type="hidden" id="id" name="id" value="{$vo['id']}" /></if>
  34. <INPUT TYPE="submit" value="{:L('dosubmit')}" class="button buttonBtn" >
  35. <input TYPE="reset" value="{:L('cancel')}" class="button">
  36. </div>
  37. </form>
  38. </div>