📄 form_column_add_frame.jsp
字号:
out.println("<option value='" + Constants.T_FORM_FIELD_VALIDATE[i] + "' selected>" + Constants.T_FORM_FIELD_VALIDATE_NAME[i] + "</option>");
else
out.println("<option value='" + Constants.T_FORM_FIELD_VALIDATE[i] + "' >" + Constants.T_FORM_FIELD_VALIDATE_NAME[i] + "</option>");
}
%>
</select>
<input style="display:none;" name="field_validate_button" onClick="field_validate_button_change()" id="field_validate_button" type="button" class="button" value="设置">
<script language="javascript">
function field_validate_change(obj)
{
var form=form1;
//如果是类别隐藏添加列按钮,否则显示
if(obj.options[obj.selectedIndex].value=='custom')
{
document.all("field_validate_button").style.display="";
}
else
{
document.all("field_validate_button").style.display="none";
}
}
function field_validate_button_change()
{
document.all("field_validate_button_div").style.display="";
}
</script>
<div id="field_validate_button_div" style="display:none; position:absolute; z-index:1000px;LEFT: 5px; TOP: 20px;">
<div style="text-align:right"><a href="javascript:closediv('field_validate_button_div')"><font class="close">关闭</font></a></div>
<iframe style="position:absolute; visibility:inherit; top:0px; left:0px; width:380px; height:400px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';"></iframe>
<div>
<textarea name="javascript" cols="50" rows="20" id="textarea">if(form.field.value==""){
alert("消息提示");
form.field.focus();
return;
}
</textarea>
</div>
</div></td>
</tr>
<tr >
<td > 查 询:
<input type="checkbox" name="is_query" value="1"></td>
<td >显 示:
<input type="checkbox" name="is_show" value="2"></td>
</tr>
<tr >
<td >控件类型:
<select name="com_type" id="com_type" onChange="com_type_change(this)" style="width:100px;">
<%
for(int i=0;i<Constants.T_FORM_COM_TYPE.length;i++){
if(ParameterUtils.getString(request,"com_type").equals(Integer.toString(i)))
out.println("<option value='" + Constants.T_FORM_COM_TYPE[i] + "' selected>" + Constants.T_FORM_COM_TYPE_NAME[i] + "</option>");
else
out.println("<option value='" + Constants.T_FORM_COM_TYPE[i] + "' >" + Constants.T_FORM_COM_TYPE_NAME[i] + "</option>");
}
%>
</select>
<script language="javascript">
function com_type_change(obj)
{
var form=form1;
if(obj.options[obj.selectedIndex].value=='text')
{
document.all("com_width").value="120";
document.all("com_height").value="21";
}
if(obj.options[obj.selectedIndex].value=='textarea')
{
document.all("com_width").value="70";
document.all("com_height").value="10";
}
if(obj.options[obj.selectedIndex].value=='editor')
{
document.all("com_width").value="0";
document.all("com_height").value="300";
}
if(obj.options[obj.selectedIndex].value=='file')
{
document.all("com_width").value="360";
document.all("com_height").value="21";
}
if(obj.options[obj.selectedIndex].value=='files')
{
document.all("com_width").value="70";
document.all("com_height").value="5";
}
if(obj.options[obj.selectedIndex].value=='calendar')
{
document.all("com_width").value="80";
document.all("com_height").value="21";
}
if(obj.options[obj.selectedIndex].value=='password')
{
document.all("com_width").value="120";
document.all("com_height").value="21";
}
if(obj.options[obj.selectedIndex].value=='dropdownlist')
{
document.all("com_width").value="0";
document.all("com_height").value="0";
}
if(obj.options[obj.selectedIndex].value=='radio')
{
document.all("com_width").value="0";
document.all("com_height").value="0";
}
if(obj.options[obj.selectedIndex].value=='checkbox')
{
document.all("com_width").value="0";
document.all("com_height").value="0";
}
}
</script>
</td>
<td > </td>
</tr>
<tr >
<td >控件宽度:
<input name="com_width" type="text" id="com_width" style="width:100px;" value="120" maxlength="4"></td>
<td >控件高度:
<input name="com_height" type="text" id="com_height" style="width:100px;" value="21" maxlength="3"></td>
</tr>
<tr >
<td >取值类型:
<select name="get_value_type" id="get_value_type" style="width:100px;" onChange="get_value_type_change(this)" >
<%
for(int i=0;i<Constants.T_FORM_GET_VALUE_TYPE.length;i++){
if(ParameterUtils.getString(request,"field_validate").equals(Integer.toString(i)))
out.println("<option value=" + i+ " selected>" + Constants.T_FORM_GET_VALUE_TYPE[i] + "</option>");
else
out.println("<option value=" +i + " >" + Constants.T_FORM_GET_VALUE_TYPE[i] + "</option>");
}
%>
</select>
<script language="javascript">
function get_value_type_change(obj)
{
var form=form1;
//固定字典
if(obj.options[obj.selectedIndex].value==1)
{
document.all("fix_div").style.display="";
}
else
{
document.all("fix_div").style.display="none";
}
//从表取值
if(obj.options[obj.selectedIndex].value==2)
{
document.all("table_div").style.display="";
}
else
{
document.all("table_div").style.display="none";
}
//自动生成
if(obj.options[obj.selectedIndex].value==3)
{
document.all("auto_value_div").style.display="";
}
else
{
document.all("auto_value_div").style.display="none";
}
//计算字段
if(obj.options[obj.selectedIndex].value==4)
{
document.all("formula_div").style.display="";
}
else
{
document.all("formula_div").style.display="none";
}
}
</script> </td>
<td > </td>
</tr>
<tr >
<td colspan="2" >
<div id="fix_div" style="display:none;" >字典代码:
<input type="text" name="fix_value" style=" width:50px;">
</div>
<div id="table_div" style="display:none;" >取 值 表:
<select name="fix_table" id="fix_table" style="width:120px;" onChange="get_table_column(this)">
<option value=""></option>
<%
Form_tableBean form_tableBean=new Form_tableBean();
List form_tableList=form_tableBean.findDadabaseTable();
for(int i=0;i<form_tableList.size();i++)
{
String tablename=form_tableList.get(i).toString();
out.println("<option value='"+tablename+"'>"+tablename+"</option>");
}
%>
</select>
取值列值:
<select name="fix_column_value" id="fix_column_value" style="width:120px;">
</select>
</div>
<div id="auto_value_div" style="display:none;" >生成来源:
<select name="auto_value" id="auto_value" style="width:120px;">
<%
for(int i=0;i<Constants.T_FORM_AUTO_VALUE.length;i++){
if(ParameterUtils.getString(request,"field_validate").equals(Integer.toString(i)))
out.println("<option value=" + i+ " selected>" + Constants.T_FORM_AUTO_VALUE[i] + "</option>");
else
out.println("<option value=" +i + " >" + Constants.T_FORM_AUTO_VALUE[i] + "</option>");
}
%>
</select>
</div>
<div id="formula_div" style="display:none;" >
<input name="row_button" onClick="row_button_change()" id="row_button" type="button" class="button" value="设置行公式">
<input name="column_button" onClick="column_button_change()" id="column_button" type="button" class="button" value="设置列公式">
</div>
<script language="javascript">
function row_button_change()
{
document.all("row_button_div").style.display="";
}
function column_button_change()
{
document.all("column_button_div").style.display="";
}
</script>
<div id="row_button_div" style="display:none; position:absolute; z-index:1000px;LEFT: 5px; TOP: 20px;">
<div style="text-align:right"><a href="javascript:closediv('row_button_div')"><font class="close">关闭</font></a></div>
<iframe style="position:absolute; visibility:inherit; top:0px; left:0px; width:380px; height:400px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';"></iframe>
<div><textarea name="row_formula" cols="50" rows="20" id="javascript">(field*10)</textarea></div>
</div>
<div id="column_button_div" style="display:none; position:absolute; z-index:1000px;LEFT: 5px; TOP: 20px;">
<div style="text-align:right"><a href="javascript:closediv('column_button_div')"><font class="close">关闭</font></a></div>
<iframe style="position:absolute; visibility:inherit; top:0px; left:0px; width:380px; height:400px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';"></iframe>
<div><textarea name="column_formula" cols="50" rows="20" id="javascript"></textarea></div>
</div> </td>
</tr>
<tr >
<td >对 齐:
<select name="direct_type" id="direct_type" style="width:100px; ">
<%
for(int i=0;i<Constants.T_FORM_DIRECT_TYPE.length;i++){
if(ParameterUtils.getString(request,"direct_type").equals(Integer.toString(i)))
out.println("<option value='" + Constants.T_FORM_DIRECT_TYPE[i] + "' selected>" + Constants.T_FORM_DIRECT_TYPE_NAME[i] + "</option>");
else
out.println("<option value='" + Constants.T_FORM_DIRECT_TYPE[i] + "' >" + Constants.T_FORM_DIRECT_TYPE_NAME[i] + "</option>");
}
%>
</select></td>
<td >编辑类型:
<select name="edit_type" id="edit_type" style="width:100px; " >
<%
for(int i=0;i<Constants.T_FORM_EDIT_TYPE.length;i++){
if(ParameterUtils.getString(request,"field_type").equals(Integer.toString(i)))
out.println("<option value=" + i + " selected>" + Constants.T_FORM_EDIT_TYPE[i] + "</option>");
else
out.println("<option value=" + i + " >" + Constants.T_FORM_EDIT_TYPE[i] + "</option>");
}
%>
</select></td>
</tr>
<tr >
<td colspan="2" align="center" ><input name="Button" type="button" class="button" onClick="Check()" value="添加"></td>
</tr>
<tr >
<td > </td>
<td > </td>
</tr>
<tr >
<td > </td>
<td > </td>
</tr>
</table></td>
</tr>
</table>
<input type="hidden" name="status" >
<input type="hidden" name="message" >
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -