Ver Fonte

todo jak zrobic post i get curlem w ancie

a.binder há 9 anos atrás
pai
commit
d9c7155fb5

+ 9 - 4
SE/schema/ant-tool/SyncResourcesYed/build.xml

@@ -1,19 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project basedir="." name="SyncResourcesYed"  default="http_fist_input" >
    
-    <property name="uuid" value="${uuid}"/>
-    
+    <property name="uuid" value=""/><!-- to be set by executing php by unique uuid identifier  -->
+    <!-- to be set by executing php by unique uuid identifier  -->
+    <property name="hashpassword" value=""/><!-- to be set by executing php by unique uuid identifier  -->
     
     <property  name="http_fist_input" value="http_fist_input"/>
     <property  name="http_fist_input.html" value="${http_fist_input}.html"/>
     <property  name="http_fist_input.xsl" value="${http_fist_input}.xsl"/>
     
     <target name="http_fist_input">
-        <!--<echo message="${uuid}"/>-->
-        <echo file="${http_fist_input.html}"/>
+        <echo message="${uuid}"/>
+        <loadfile property="output.html" srcfile="${http_fist_input.html}"/>
+        <echo message="${output.html}"/>
+        <echoproperties regex="*."/>
     </target>
    
    
+   <target name="first_save_data" depends="do zapisania wynikow od uzytkownika do WFS"></target>
+   
     <target name="http_first_output">
         <echo message="${uuid}"/>
         <echo>http_first_output</echo>

+ 13 - 6
SE/schema/ant-tool/SyncResourcesYed/http_fist_input.html

@@ -1,6 +1,13 @@
-<form  method="post">
-    <input type="hidden"  name="uuid" value="123"/>
-    <input type="hidden"  name="ant_target" value="http_first_output"/>
-    Text<input type="text" name="text" />
-    <input type="submit" />
-</form>
+<html xmlns="http://www.w3.org/1999/xhtml">
+    <head>
+        <title>Test sync resources</title>
+    </head>
+    <body>
+        <form  method="post">
+            <input type="hidden"  name="uuid" value="$uuid}"/>
+            <input type="hidden"  name="ant_target" value="http_first_output"/>
+            Text<input type="text" name="text" />
+            <input type="submit" />
+        </form>
+    </body>
+</html>

+ 3 - 2
SE/schema/ant-tool/example_ant_as_function_to_move/build.xml

@@ -10,8 +10,9 @@
         <property  name="http_fist_input.xsl" value="${http_fist_input}.xsl"/>
     
     <target name="http_fist_input">
-        <echo message="${uuid}"/>
-        <echo></echo>
+        <!--<echo message="${uuid}"/>-->
+        <loadfile srcfile="http_fist_input.html" property="output"/>
+        <echo message="${output}"/>
         <!--<echo message="${uuid}"/>-->
         <!--<xslt basedir="./" style="${http_fist_input.xsl}"  in="${http_fist_input.html}"  destdir="./"  >
             <!-\-<fileset refid="edge_paths_with_PE.xml_collection"/>-\->