Minahito
minah****@users*****
2006年 5月 15日 (月) 14:26:02 JST
Index: xoops2jp/html/modules/base/admin/.xml/image_edit.xml diff -u xoops2jp/html/modules/base/admin/.xml/image_edit.xml:1.1.2.1 xoops2jp/html/modules/base/admin/.xml/image_edit.xml:1.1.2.2 --- xoops2jp/html/modules/base/admin/.xml/image_edit.xml:1.1.2.1 Fri May 12 19:13:16 2006 +++ xoops2jp/html/modules/base/admin/.xml/image_edit.xml Mon May 15 14:26:01 2006 @@ -2,10 +2,8 @@ <xoopscube-dynaactionform> <form-bean name="ImageAdminEditForm" type="XCube_ActionForm"> <form-property name="image_id" type="Int" /> - <form-property name="image_name" type="String" /> + <form-property name="image_name" type="ImageFile" /> <form-property name="image_nicename" type="String" /> - <form-property name="image_mimetype" type="String" /> - <form-property name="image_created" type="Int" /> <form-property name="image_display" type="Bool" /> <form-property name="image_weight" type="Int" /> <form-property name="imgcat_id" type="Int" /> @@ -15,38 +13,27 @@ <arg0 key="const._AD_BASE_LANG_IMAGE_ID" /> <msg name="required" key="const._AD_BASE_ERROR_REQUIRED" /> </field> - <field property="image_name" depends="required,maxlength"> + <field property="image_name" depends="extension"> <arg0 key="const._AD_BASE_LANG_IMAGE_NAME" /> <msg name="required" key="const._AD_BASE_ERROR_REQUIRED" /> <arg1 name="maxlength" key="${var:maxlength}" /> - <msg name="maxlength" key="const._AD_BASE_ERROR_MAXLENGTH" /> - <var name="maxlength" value="30" /> + <msg name="maxlength" key="const._AD_BASE_ERROR_EXTENSION" /> + <var name="extension" value="jpg,gif,png" /> </field> - <field property="image_nicename" depends="required,maxlength"> + <field property="image_nicename" depends="required"> <arg0 key="const._AD_BASE_LANG_IMAGE_NICENAME" /> <msg name="required" key="const._AD_BASE_ERROR_REQUIRED" /> - <arg1 name="maxlength" key="${var:maxlength}" /> - <msg name="maxlength" key="const._AD_BASE_ERROR_MAXLENGTH" /> - <var name="maxlength" value="255" /> - </field> - <field property="image_mimetype" depends="required,maxlength"> - <arg0 key="const._AD_BASE_LANG_IMAGE_MIMETYPE" /> - <msg name="required" key="const._AD_BASE_ERROR_REQUIRED" /> - <arg1 name="maxlength" key="${var:maxlength}" /> - <msg name="maxlength" key="const._AD_BASE_ERROR_MAXLENGTH" /> - <var name="maxlength" value="30" /> - </field> - <field property="image_created" depends="required"> - <arg0 key="const._AD_BASE_LANG_IMAGE_CREATED" /> - <msg name="required" key="const._AD_BASE_ERROR_REQUIRED" /> </field> <field property="image_weight" depends="required"> <arg0 key="const._AD_BASE_LANG_IMAGE_WEIGHT" /> <msg name="required" key="const._AD_BASE_ERROR_REQUIRED" /> </field> - <field property="imgcat_id" depends="required"> + <field property="imgcat_id" depends="required,objectExist"> <arg0 key="const._AD_BASE_LANG_IMGCAT_ID" /> <msg name="required" key="const._AD_BASE_ERROR_REQUIRED" /> + <msg name="objectExist" key="const._AD_BASE_ERROR_OBJECTEXIST" /> + <var name="handler" value="imagecategory" /> + <var name="module" value="base" /> </field> </form-validation> </xoopscube-dynaactionform>