<layout name="default_layout" />
<script type="text/javascript">
db_prefix = '{$db_prefix}';

function cleanCode(){
	$('#formPreview').html('');
	$('#formCode').html('');
}

function creatForm(formMethod, formAction){
	$.post("__CONTROLLER__/creatForm", {'formMethod' : formMethod, 'formAction' : formAction},
		function(data){
			$('#formPreview').append(data);
			$('#formCode').html($('#formPreview').html());
		}
	);
}

function addRow(){
	if($('#formPreview').html() == ''){
		alert('尚