Minahito
minah****@users*****
2006年 5月 25日 (木) 18:30:52 JST
Index: xoops2jp/html/modules/base/.xml/image_upload.xml diff -u /dev/null xoops2jp/html/modules/base/.xml/image_upload.xml:1.1.2.1 --- /dev/null Thu May 25 18:30:52 2006 +++ xoops2jp/html/modules/base/.xml/image_upload.xml Thu May 25 18:30:52 2006 @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8" ?> +<xoopscube-dynaactionform> + <form-bean name="ImageUploadForm" type="XCube_ActionForm"> + <form-property name="image_name" type="ImageFile" /> + <form-property name="image_nicename" type="String" /> + <form-property name="imgcat_id" type="Int" /> + </form-bean> + <form-validation> + <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_EXTENSION" /> + <var name="extension" value="jpg,gif,png" /> + </field> + <field property="image_nicename" depends="required"> + <arg0 key="const._AD_BASE_LANG_IMAGE_NICENAME" /> + <msg name="required" key="const._AD_BASE_ERROR_REQUIRED" /> + </field> + <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>