test esame

This commit is contained in:
2015-01-17 03:44:06 +01:00
parent 7f21febb90
commit a5322258bf
9 changed files with 571 additions and 73 deletions

324
.idea/workspace.xml generated
View File

@@ -2,11 +2,7 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="f405bcb8-0de2-4a3f-bdf4-b8ba34c0c82e" name="Default" comment=""> <list default="true" id="f405bcb8-0de2-4a3f-bdf4-b8ba34c0c82e" name="Default" comment="">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/encodings.xml" afterPath="$PROJECT_DIR$/.idea/encodings.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/php12_mysql.php" afterPath="$PROJECT_DIR$/php12_mysql.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/modules.xml" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/unisa 14-15 tsw.iml" afterPath="$PROJECT_DIR$/.idea/unisa 14-15 tsw.iml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/vcs.xml" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
</list> </list>
<ignored path="unisa 14-15 tsw.iws" /> <ignored path="unisa 14-15 tsw.iws" />
@@ -32,11 +28,41 @@
</component> </component>
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf> <leaf>
<file leaf-file-name="dom1.html" pinned="false" current-in-tab="true"> <file leaf-file-name="exam_test_2b.html" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/dom1.html"> <entry file="file://$PROJECT_DIR$/exam_test_2b.html">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.5704698" vertical-offset="0" max-vertical-offset="596"> <state vertical-scroll-proportion="0.0" vertical-offset="136" max-vertical-offset="1241">
<caret line="20" column="55" selection-start-line="20" selection-start-column="55" selection-end-line="20" selection-end-column="55" /> <caret line="31" column="11" selection-start-line="31" selection-start-column="11" selection-end-line="31" selection-end-column="24" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="exam_test_3.html" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/exam_test_3.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="680">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="exam_test_4.html" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/exam_test_4.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-6.4615383" vertical-offset="138" max-vertical-offset="833">
<caret line="18" column="32" selection-start-line="18" selection-start-column="32" selection-end-line="18" selection-end-column="32" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="php13_session.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/php13_session.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.26020408" vertical-offset="153" max-vertical-offset="1819">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding /> <folding />
</state> </state>
</provider> </provider>
@@ -63,12 +89,20 @@
<option value="$PROJECT_DIR$/ajax2_json.php" /> <option value="$PROJECT_DIR$/ajax2_json.php" />
<option value="$PROJECT_DIR$/ajax2_json.html" /> <option value="$PROJECT_DIR$/ajax2_json.html" />
<option value="$PROJECT_DIR$/dom1.html" /> <option value="$PROJECT_DIR$/dom1.html" />
<option value="$PROJECT_DIR$/xml.php" />
<option value="$PROJECT_DIR$/ajax_xml.html" />
<option value="$PROJECT_DIR$/exam_test_1.html" />
<option value="$PROJECT_DIR$/php12_mysql.php" />
<option value="$PROJECT_DIR$/exam_test_2.html" />
<option value="$PROJECT_DIR$/exam_test_3.html" />
<option value="$PROJECT_DIR$/exam_test_2b.html" />
<option value="$PROJECT_DIR$/exam_test_4.html" />
</list> </list>
</option> </option>
</component> </component>
<component name="PhpServers"> <component name="PhpServers">
<servers> <servers>
<server host="localhost/unisa%20tsw%2014-15/" name="wamp php server" /> <server host="localhost/unisa14-15tsw/" name="wamp php server" />
</servers> </servers>
</component> </component>
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" interpreter_name="PHP" /> <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" interpreter_name="PHP" />
@@ -131,7 +165,7 @@
<option name="myItemId" value="" /> <option name="myItemId" value="" />
<option name="myItemType" value="" /> <option name="myItemType" value="" />
</PATH_ELEMENT> </PATH_ELEMENT>
<PATH_ELEMENT USER_OBJECT="unisa tsw 14-15"> <PATH_ELEMENT USER_OBJECT="unisa 14-15 tsw">
<option name="myItemId" value="" /> <option name="myItemId" value="" />
<option name="myItemType" value="" /> <option name="myItemType" value="" />
</PATH_ELEMENT> </PATH_ELEMENT>
@@ -142,7 +176,7 @@
</component> </component>
<component name="PropertiesComponent"> <component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" /> <property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/ajax.php" /> <property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="HbShouldOpenHtmlAsHb" value="" /> <property name="HbShouldOpenHtmlAsHb" value="" />
<property name="recentsLimit" value="5" /> <property name="recentsLimit" value="5" />
<property name="options.lastSelected" value="fileTemplates" /> <property name="options.lastSelected" value="fileTemplates" />
@@ -154,38 +188,20 @@
</component> </component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS"> <key name="CopyFile.RECENT_KEYS">
<recent name="C:\wamp\www\unisa tsw 14-15" />
<recent name="F:\Codes\Html\unisa 14-15 tsw" /> <recent name="F:\Codes\Html\unisa 14-15 tsw" />
<recent name="C:\wamp\www\unisa tsw 14-15" />
</key> </key>
</component> </component>
<component name="RunManager" selected="PHP Web Application.launch"> <component name="RunManager" selected="PHP Web Application.launch">
<configuration default="true" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
<TestRunner />
<method />
</configuration>
<configuration default="true" type="PhpBuiltInWebServerConfigurationType" factoryName="PHP Built-in Web Server">
<method />
</configuration>
<configuration default="true" type="PhpWebAppRunConfigurationType" factoryName="PHP Web Application" browser="a7bb68e0-33c0-4d6f-a81a-aac1fdb870c8" server_name="wamp php server"> <configuration default="true" type="PhpWebAppRunConfigurationType" factoryName="PHP Web Application" browser="a7bb68e0-33c0-4d6f-a81a-aac1fdb870c8" server_name="wamp php server">
<method /> <method />
</configuration> </configuration>
<configuration default="true" type="PhpRemoteDebugRunConfigurationType" factoryName="PHP Remote Debug">
<method />
</configuration>
<configuration default="true" type="PhpHttpRequestRunConfigurationType" factoryName="PHP HTTP Request"> <configuration default="true" type="PhpHttpRequestRunConfigurationType" factoryName="PHP HTTP Request">
<method /> <method />
</configuration> </configuration>
<configuration default="true" type="ChromiumRemoteDebugType" factoryName="Chromium Remote">
<option name="name" value="" />
<method />
</configuration>
<configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console"> <configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console">
<method /> <method />
</configuration> </configuration>
<configuration default="true" type="NodeWebKit" factoryName="Node-webkit">
<option name="name" value="" />
<method />
</configuration>
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug"> <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
<method /> <method />
</configuration> </configuration>
@@ -193,7 +209,7 @@
<BehatRunner /> <BehatRunner />
<method /> <method />
</configuration> </configuration>
<configuration default="true" type="AppEnginePhpConfigurationType" factoryName="App Engine for PHP"> <configuration default="true" type="PhpUnitRemoteRunConfigurationType" factoryName="PHPUnit on Server">
<method /> <method />
</configuration> </configuration>
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js"> <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
@@ -204,10 +220,28 @@
<envs /> <envs />
<method /> <method />
</configuration> </configuration>
<configuration default="true" type="PhpUnitRemoteRunConfigurationType" factoryName="PHPUnit on Server"> <configuration default="true" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
<TestRunner />
<method /> <method />
</configuration> </configuration>
<configuration default="false" name="launch" type="PhpWebAppRunConfigurationType" factoryName="PHP Web Application" server_name="wamp php server" start_url="/dom1.html"> <configuration default="true" type="PhpBuiltInWebServerConfigurationType" factoryName="PHP Built-in Web Server">
<method />
</configuration>
<configuration default="true" type="PhpRemoteDebugRunConfigurationType" factoryName="PHP Remote Debug">
<method />
</configuration>
<configuration default="true" type="ChromiumRemoteDebugType" factoryName="Chromium Remote">
<option name="name" value="" />
<method />
</configuration>
<configuration default="true" type="NodeWebKit" factoryName="Node-webkit">
<option name="name" value="" />
<method />
</configuration>
<configuration default="true" type="AppEnginePhpConfigurationType" factoryName="App Engine for PHP">
<method />
</configuration>
<configuration default="false" name="launch" type="PhpWebAppRunConfigurationType" factoryName="PHP Web Application" server_name="wamp php server" start_url="/exam_test_2">
<RunnerSettings RunnerId="PhpRunner" /> <RunnerSettings RunnerId="PhpRunner" />
<ConfigurationWrapper RunnerId="PhpRunner" /> <ConfigurationWrapper RunnerId="PhpRunner" />
<method /> <method />
@@ -231,7 +265,7 @@
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1096" extended-state="6" /> <frame x="-8" y="-8" width="1936" height="1096" extended-state="6" />
<editor active="false" /> <editor active="true" />
<layout> <layout>
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
@@ -240,19 +274,19 @@
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.15208334" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.15208334" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298969" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298969" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.33814433" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="PHP-CGI Server" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" /> <window_info id="PHP-CGI Server" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298969" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
</layout> </layout>
</component> </component>
<component name="Vcs.Log.UiProperties"> <component name="Vcs.Log.UiProperties">
@@ -272,10 +306,47 @@
</option> </option>
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager /> <breakpoint-manager>
<option name="time" value="2" />
</breakpoint-manager>
<watches-manager /> <watches-manager />
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/ajax_xml.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="204" max-vertical-offset="476">
<caret line="12" column="0" selection-start-line="12" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax2_json.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1156">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xml.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="136" max-vertical-offset="408">
<caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax_xml.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="425">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/dom1.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="561">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax.html"> <entry file="file://$PROJECT_DIR$/ajax.html">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="663"> <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="663">
@@ -444,34 +515,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/ajax.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-5.230769" vertical-offset="0" max-vertical-offset="272">
<caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-5.269231" vertical-offset="67" max-vertical-offset="663">
<caret line="12" column="0" selection-start-line="12" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax2.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="289">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="16" selection-end-column="2" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax2.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-5.923077" vertical-offset="237" max-vertical-offset="986">
<caret line="23" column="0" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax2_json.php"> <entry file="file://$PROJECT_DIR$/ajax2_json.php">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="357"> <state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="357">
@@ -479,18 +522,153 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/dom1.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.5704698" vertical-offset="0" max-vertical-offset="596">
<caret line="20" column="55" selection-start-line="20" selection-start-column="55" selection-end-line="20" selection-end-column="55" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax2_json.html"> <entry file="file://$PROJECT_DIR$/ajax2_json.html">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.77348995" vertical-offset="461" max-vertical-offset="1156"> <state vertical-scroll-proportion="0.5385906" vertical-offset="393" max-vertical-offset="1156">
<caret line="42" column="0" selection-start-line="42" selection-start-column="0" selection-end-line="42" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="187">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="663">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax2.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-9.153846" vertical-offset="204" max-vertical-offset="986">
<caret line="26" column="30" selection-start-line="26" selection-start-column="30" selection-end-line="26" selection-end-column="30" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax2.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="289">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ajax_xml.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="153" max-vertical-offset="1054">
<caret line="21" column="23" selection-start-line="21" selection-start-column="23" selection-end-line="21" selection-end-column="23" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/php_1_3.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.5323129" vertical-offset="313" max-vertical-offset="901">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/php_3.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.35884354" vertical-offset="211" max-vertical-offset="1207">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xml.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="408">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/php12_mysql.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="663" max-vertical-offset="1598">
<caret line="57" column="22" selection-start-line="57" selection-start-column="22" selection-end-line="57" selection-end-column="22" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/css2_inner.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="629">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/css_box.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="102" max-vertical-offset="782">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/css_box2.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="204" max-vertical-offset="1972">
<caret line="31" column="14" selection-start-line="31" selection-start-column="4" selection-end-line="31" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/exam_test_1.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="289" max-vertical-offset="731">
<caret line="17" column="0" selection-start-line="17" selection-start-column="0" selection-end-line="17" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/css_box5flexbox.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="289" max-vertical-offset="1377">
<caret line="17" column="23" selection-start-line="17" selection-start-column="23" selection-end-line="17" selection-end-column="23" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/exam_test_2.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="1122">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/exam_test_2b.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="136" max-vertical-offset="1241">
<caret line="31" column="11" selection-start-line="31" selection-start-column="11" selection-end-line="31" selection-end-column="24" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/exam_test_3.html">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="680">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding /> <folding />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/dom1.html"> <entry file="file://$PROJECT_DIR$/exam_test_4.html">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.5704698" vertical-offset="0" max-vertical-offset="596"> <state vertical-scroll-proportion="-6.4615383" vertical-offset="138" max-vertical-offset="833">
<caret line="20" column="55" selection-start-line="20" selection-start-column="55" selection-end-line="20" selection-end-column="55" /> <caret line="18" column="32" selection-start-line="18" selection-start-column="32" selection-end-line="18" selection-end-column="32" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/php13_session.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.26020408" vertical-offset="153" max-vertical-offset="1819">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding /> <folding />
</state> </state>
</provider> </provider>

56
ajax_xml.html Normal file
View File

@@ -0,0 +1,56 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Titolo</title>
<meta name="" content=""/>
</head>
<body>
<span> reading xml with ajax</span>
<span id="content"></span>
<script>
var request = new XMLHttpRequest();
request.addEventListener("load",loadfunction,false);
request.open("GET","xml.php");
request.send();
function loadfunction(){
var content = document.getElementById("content");
if (content){
var data = request.responseXML;
var c = data.documentElement.children;
for (i=0;i< c.length;i++){
content.innerHTML+= c[i].childNodes[0].nodeValue;
}
}
}
</script>
</body>
</html>

38
exam_test_1.html Normal file
View File

@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
table tr:nth-child(1) {background-color: red;}
table tr:nth-child(2n+3) {background-color: green;}
table tr:nth-child(2n+2) {background-color: blue;}
</style>
</head>
<body>
<table>
<thead>
<tr><th colspan="2">Wesada</th></tr>
</thead>
<tr><td>a</td><td>b</td></tr>
<tr><td>a</td><td>b</td></tr>
<tr><td>a</td><td>b</td></tr>
<tr><td>a</td><td>b</td></tr>
<tr><td>a</td><td>b</td></tr>
<tr><td>a</td><td>b</td></tr>
<tr><td>a</td><td>b</td></tr>
</table>
</body>
</html>

61
exam_test_2.html Normal file
View File

@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
section {
position:fixed;
display:flex;
border: 2px blue solid;
align-items: center;
flex-wrap: wrap;
width: 340px;
height: 170px;
justify-content: space-around;
align-content: space-around;
}
header {
flex-basis: 340px;
text-align: center;
box-sizing: border-box;
height: 30px;
}
article {
box-sizing: border-box;
border:2px solid red;
flex-basis: 100px;
height: 30px;
text-align: center;
}
header h3 {
margin: 0;
}
</style>
</head>
<body>
<section>
<header><h3>Settimana:<span id="settimana">23 </span></h3></header>
<article id="lunedi">Autobus</article>
<article id="martedi">Macchina</article>
<article id="mercoled">Treno</article>
<article id="giovedi">Treno</article>
<article id="venerdi">Autobus</article>
<article id="sabato">Piedi</article>
<article id="domenica">Autobus</article>
</section>
</body>
</html>

68
exam_test_2b.html Normal file
View File

@@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
section {
position: fixed;
border: 2px blue solid;
width: 340px;
height: 170px;
box-sizing: content-box;
padding-left: 5px;
padding-right:5px;;
padding-top:50px ;
}
header {
position: absolute;
left: auto;
right: auto;
top: 10px;
width: 340px;
text-align: center;
box-sizing: border-box;
height: 30px;
}
article {
float: left;
border:2px solid red;
width: 100px;
height: 30px;
text-align: center;
margin:5px;
vertical-align: middle;
}
header h3 {
margin: 0;
}
</style>
</head>
<body>
<section>
<header><h3>Settimana:<span id="settimana">23 </span></h3></header>
<article id="lunedi">Autobus</article>
<article id="martedi">Macchina</article>
<article id="mercoled">Treno</article>
<article id="giovedi">Treno</article>
<article id="venerdi">Autobus</article>
<article id="sabato">Piedi</article>
<article id="domenica">Autobus</article>
</section>
</body>
</html>

34
exam_test_3.html Normal file
View File

@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<style>
img {
float: left;
width:95px;
height:84px;
}
p.clear {
clear: both;
}
</style>
</head>
<body>
<p>This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p>
<span>
<img src="sky.jpg" >
<img src="sky.jpg" >
<img src="sky.jpg">
<p>This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p>
<p>This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p>
<p>This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p>
<p class="clear">This is also some text. This is also some text. This is also some text. This is also some text. This is also some text. This is also some text.</p>
</span>
<img src="sky.jpg" style="float:right;" >
<img src="sky.jpg" style="float:left;" >
<p class="clear">This is some text. This is some text. This is some text. This is some text. This is some text.This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p>
</body>
</html>

43
exam_test_4.html Normal file
View File

@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<style>
td,th{
text-align: center;
vertical-align: middle;
line-height: 100%;
border: 1px solid black;
}
table{
border: 1px solid black;
}
</style>
<body>
<table>
<thead>
<tr><th>Testa1</th><th colspan="3">Testa2</th></tr>
</thead>
<tbody>
<tr><td>Cella1</td><td>cella2</td><td>cella3</td><td>cella 4</td></tr>
<tr><td colspan="2" rowspan="2">Cella5</td><td>Cella6</td><td colspan="2">cella7</td> </tr>
<tr><td colspan="3">cella9</td></tr>
</tbody>
</table>
</body>
</html>

View File

@@ -47,6 +47,7 @@ _css;
echo "\n"; echo "\n";
/////////////////////////// ///////////////////////////
$db = new PDO ("mysql:host=localhost;dbname=phptest","root","alfiobello",array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); $db = new PDO ("mysql:host=localhost;dbname=phptest","root","alfiobello",array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));
//$db->query("INSERT INTO persone VALUES('mario','gino','2')"); //$db->query("INSERT INTO persone VALUES('mario','gino','2')");

19
xml.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
header('Content-type: text/xml');
echo <<<DATA
<data>
<value id="nome">mario</value>
</data>
DATA;
?>