📄 common_form_tableadd.jsp
字号:
FCKeditor oFCKeditor ;
oFCKeditor = new FCKeditor( request, form_columnItem.getField_english_name()) ;
oFCKeditor.setBasePath(FCKeditorBasePath) ;
oFCKeditor.setValue("");
oFCKeditor.setHeight(form_columnItem.getCom_height());
out.println( oFCKeditor.create() ) ;
%>
</td>
</tr>
<%
}
%>
<%
if(form_columnItem.getCom_type().trim().toLowerCase().equals("dropdownlist"))
{
%>
<tr <% if(form_columnItem.getEdit_type().equals("2")) out.print("style='display:none'"); %> >
<td ><%=form_columnItem.getField_chinese_name()%>:</td>
<td >
<select name="<%=form_columnItem.getField_english_name()%>" id="<%=form_columnItem.getField_english_name()%>" >
<%
//固定字典取值
if(form_columnItem.getGet_value_type().equals("1"))
{
List form_dictionaryList=form_dictionaryBean.findByCode(form_columnItem.getFix_value());
for(int k=0;k<form_dictionaryList.size();k++)
{
Form_dictionaryItem form_dictionaryItem=(Form_dictionaryItem)form_dictionaryList.get(k);
if(ParameterUtils.getString(request,form_columnItem.getField_english_name()).equals(form_dictionaryItem.getCode_name()))
out.println("<option selected value='"+form_dictionaryItem.getCode_name()+"'>"+form_dictionaryItem.getCode_name()+"</option>");
else
out.println("<option value='"+form_dictionaryItem.getCode_name()+"'>"+form_dictionaryItem.getCode_name()+"</option>");
}
}
%>
<%
//关联表取值
if(form_columnItem.getGet_value_type().equals("2"))
{
List valueList=form_tableBean.findByTable(form_columnItem.getFix_table(),form_columnItem.getFix_column_value());
for(int k=0;k<valueList.size();k++)
{
String fieldvalue=valueList.get(k).toString();
if(ParameterUtils.getString(request,form_columnItem.getField_english_name()).equals(fieldvalue))
out.println("<option selected value='"+fieldvalue+"'>"+fieldvalue+"</option>");
else
out.println("<option value='"+fieldvalue+"'>"+fieldvalue+"</option>");
}
}
%>
</select>
</td>
</tr>
<%
}
%>
<%
if(form_columnItem.getCom_type().trim().toLowerCase().equals("radio"))
{
%>
<tr <% if(form_columnItem.getEdit_type().equals("2")) out.print("style='display:none'"); %> >
<td ><%=form_columnItem.getField_chinese_name()%>:</td>
<td >
<%
if(form_columnItem.getGet_value_type().equals("1"))
{
List form_dictionaryList=form_dictionaryBean.findByCode(form_columnItem.getFix_value());
String parameterValue=ParameterUtils.getString(request,form_columnItem.getField_english_name());
for(int k=0;k<form_dictionaryList.size();k++)
{
Form_dictionaryItem form_dictionaryItem=(Form_dictionaryItem)form_dictionaryList.get(k);
if((parameterValue.equals("")&&k==0)||parameterValue.equals(form_dictionaryItem.getCode_name()))
out.println("<input type='radio' checked name='"+form_columnItem.getField_english_name()+"' id='"+form_columnItem.getField_english_name()+"' value='"+form_dictionaryItem.getCode_name()+"'>"+form_dictionaryItem.getCode_name());
else
out.println("<input type='radio' name='"+form_columnItem.getField_english_name()+"' id='"+form_columnItem.getField_english_name()+"' value='"+form_dictionaryItem.getCode_name()+"'>"+form_dictionaryItem.getCode_name());
}
}
%>
<%
//关联表取值
if(form_columnItem.getGet_value_type().equals("2"))
{
List valueList=form_tableBean.findByTable(form_columnItem.getFix_table(),form_columnItem.getFix_column_value());
String parameterValue=ParameterUtils.getString(request,form_columnItem.getField_english_name());
for(int k=0;k<valueList.size();k++)
{
String fieldvalue=valueList.get(k).toString();
if((parameterValue.equals("")&&k==0)||parameterValue.equals(fieldvalue))
out.println("<input type='radio' checked name='"+form_columnItem.getField_english_name()+"' id='"+form_columnItem.getField_english_name()+"' value='"+fieldvalue+"'>"+fieldvalue);
else
out.println("<input type='radio' name='"+form_columnItem.getField_english_name()+"' id='"+form_columnItem.getField_english_name()+"' value='"+fieldvalue+"'>"+fieldvalue);
}
}
%>
</td>
</tr>
<%
}
%>
<%
if(form_columnItem.getCom_type().trim().toLowerCase().equals("checkbox"))
{
%>
<tr <% if(form_columnItem.getEdit_type().equals("2")) out.print("style='display:none'"); %> >
<td ><%=form_columnItem.getField_chinese_name()%>:</td>
<td >
<%
if(form_columnItem.getGet_value_type().equals("1"))
{
List form_dictionaryList=form_dictionaryBean.findByCode(form_columnItem.getFix_value());
String parameterValue=ParameterUtils.getString(request,form_columnItem.getField_english_name());
for(int k=0;k<form_dictionaryList.size();k++)
{
Form_dictionaryItem form_dictionaryItem=(Form_dictionaryItem)form_dictionaryList.get(k);
out.println("<input type='checkbox' name='"+form_columnItem.getField_english_name()+"' id='"+form_columnItem.getField_english_name()+"' value='"+form_dictionaryItem.getCode_name()+"'>"+form_dictionaryItem.getCode_name());
}
}
%>
<%
//关联表取值
if(form_columnItem.getGet_value_type().equals("2"))
{
List valueList=form_tableBean.findByTable(form_columnItem.getFix_table(),form_columnItem.getFix_column_value());
String parameterValue=ParameterUtils.getString(request,form_columnItem.getField_english_name());
for(int k=0;k<valueList.size();k++)
{
String fieldvalue=valueList.get(k).toString();
out.println("<input type='checkbox' name='"+form_columnItem.getField_english_name()+"' id='"+form_columnItem.getField_english_name()+"' value='"+fieldvalue+"'>"+fieldvalue);
}
}
%>
</td>
</tr>
<%
}
%>
<%
if(form_columnItem.getCom_type().trim().toLowerCase().equals("file"))
{
%>
<tr>
<td ><%=form_columnItem.getField_chinese_name()%>:</td>
<td ><input type="file" name="<%=form_columnItem.getField_english_name()%>" id="<%=form_columnItem.getField_english_name()%>" style="width:<%=form_columnItem.getCom_width()%>px;height:<%=form_columnItem.getCom_height()%>px;" ></td>
</tr>
<%
}
%>
<%
if(form_columnItem.getCom_type().trim().toLowerCase().equals("files"))
{
%>
<tr>
<td ><%=form_columnItem.getField_chinese_name()%>:</td>
<td >
<script language='javascript'>
function selectFile()
{
var url="../public/fileupload.jsp?dir_name=form_table&file_name=<%=form_columnItem.getField_english_name()%>";
open(url,'win','scrollbars=no,width=600,height=400,resizable=no,left=200,top=100,resizable=false');
}
</script>
<textarea name="<%=form_columnItem.getField_english_name()%>" id="<%=form_columnItem.getField_english_name()%>" cols='<%=form_columnItem.getCom_width()%>' rows='<%=form_columnItem.getCom_height()%>' readonly='readonly'></textarea> <input type="button" class="button" onClick="selectFile()" value="上传">
</td>
</tr>
<%
}
%>
<%
if(form_columnItem.getCom_type().trim().toLowerCase().equals("calendar"))
{
%>
<tr>
<td ><%=form_columnItem.getField_chinese_name()%>:</td>
<td >
<input name="<%=form_columnItem.getField_english_name()%>" id="<%=form_columnItem.getField_english_name()%>" type="text" style="width:<%=form_columnItem.getCom_width()%>px;height:<%=form_columnItem.getCom_height()%>px;" readonly="true" ><a href="javascript:" onClick="show_cele_date(<%=form_columnItem.getField_english_name()%>,'','',<%=form_columnItem.getField_english_name()%>)"><img src='../../icon/cal.gif' width="24" height="19" border=0></a> </td>
</tr>
<%
}
%>
<%
if(form_columnItem.getCom_type().trim().toLowerCase().equals("password"))
{
%>
<tr>
<td ><%=form_columnItem.getField_chinese_name()%>:</td>
<td >
<input name="<%=form_columnItem.getField_english_name()%>" id="<%=form_columnItem.getField_english_name()%>" type="password" style="width:<%=form_columnItem.getCom_width()%>px;height:<%=form_columnItem.getCom_height()%>px;" >
</td>
</tr>
<%
}
%>
<%
}
%>
<tr >
<td colspan="2" align="center">
<input name="Button" type="button" class="button" onClick="Check()" value="确定">
<input name="Submit2" type="button" class="button" onClick="back()" value="返回">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="status" >
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -