mirror of
https://github.com/RustyRaptor/Culidore.git
synced 2026-12-03 15:15:20 -07:00
Voegen van ingredienten gelukt maar niet verwijderen
This commit is contained in:
1 parent
c030a161fd
commit
ebed3c0bf2
12 files changed
+2577
-229
No files matched your search
@@ -0,0 +1,5 @@
|
||||
.idea
|
||||
.git
|
||||
*.swp
|
||||
npm-debug.log
|
||||
node_modules
|
||||
Generated
+123
-122
@@ -2,11 +2,13 @@
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="3aeefded-d9c9-4d08-8866-71ba02f21759" name="Default" comment="Rating toevoegen, probleem aanmelding">
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/ajax.php" />
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/design.css" afterPath="$PROJECT_DIR$/design.css" />
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/index.php" afterPath="$PROJECT_DIR$/index.php" />
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/ingredientinput.php" afterPath="$PROJECT_DIR$/ingredientinput.php" />
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/recepttoevoegendiv.php" afterPath="$PROJECT_DIR$/recepttoevoegendiv.php" />
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/sources.php" afterPath="$PROJECT_DIR$/sources.php" />
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/test (2).php" afterPath="$PROJECT_DIR$/test (2).php" />
|
||||
</list>
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="TRACKING_ENABLED" value="true" />
|
||||
@@ -34,18 +36,51 @@
|
||||
<file leaf-file-name="script1.php" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/script1.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="969">
|
||||
<state relative-caret-position="669">
|
||||
<caret line="57" column="43" lean-forward="false" selection-start-line="57" selection-start-column="43" selection-end-line="57" selection-end-column="43" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="test.php" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/test.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="374">
|
||||
<caret line="22" column="0" lean-forward="false" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="recepttoevoegendiv.php" pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/recepttoevoegendiv.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="380">
|
||||
<caret line="36" column="45" lean-forward="false" selection-start-line="36" selection-start-column="45" selection-end-line="36" selection-end-column="45" />
|
||||
<state relative-caret-position="102">
|
||||
<caret line="32" column="31" lean-forward="true" selection-start-line="32" selection-start-column="31" selection-end-line="32" selection-end-column="31" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="ingredientinput.php" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/ingredientinput.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="85">
|
||||
<caret line="5" column="70" lean-forward="false" selection-start-line="5" selection-start-column="70" selection-end-line="5" selection-end-column="70" />
|
||||
<folding>
|
||||
<marker date="1486838105570" expanded="true" signature="52:85" ph="select id, N... Ingredienten" />
|
||||
<marker date="1486838105570" expanded="true" signature="205:344" ph="..." />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="test (2).php" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/test (2).php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="153">
|
||||
<caret line="9" column="45" lean-forward="true" selection-start-line="9" selection-start-column="45" selection-end-line="9" selection-end-column="45" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
@@ -54,8 +89,8 @@
|
||||
<file leaf-file-name="sources.php" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/sources.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="170">
|
||||
<caret line="10" column="27" lean-forward="true" selection-start-line="10" selection-start-column="27" selection-end-line="10" selection-end-column="27" />
|
||||
<state relative-caret-position="102">
|
||||
<caret line="6" column="25" lean-forward="false" selection-start-line="6" selection-start-column="25" selection-end-line="6" selection-end-column="25" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
@@ -64,25 +99,13 @@
|
||||
<file leaf-file-name="design.css" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/design.css">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="9911">
|
||||
<caret line="583" column="0" lean-forward="false" selection-start-line="583" selection-start-column="0" selection-end-line="583" selection-end-column="0" />
|
||||
<state relative-caret-position="511">
|
||||
<caret line="658" column="12" lean-forward="false" selection-start-line="658" selection-start-column="12" selection-end-line="658" selection-end-column="12" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="recept.php" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/recept.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="510">
|
||||
<caret line="30" column="41" lean-forward="false" selection-start-line="30" selection-start-column="41" selection-end-line="30" selection-end-column="41" />
|
||||
<folding>
|
||||
<marker date="1486507664547" expanded="true" signature="687:918" ph="INSERT INTO tblrecepten... " />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="scriptsonclick.php" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/scriptsonclick.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
@@ -93,36 +116,6 @@
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="scriptremoveGET.php" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/scriptremoveGET.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="119">
|
||||
<caret line="7" column="9" lean-forward="true" selection-start-line="0" selection-start-column="0" selection-end-line="7" selection-end-column="9" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="scriptfunctionsonclick.php" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/scriptfunctionsonclick.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="12" selection-end-column="9" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="menuvanboven.php" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/menuvanboven.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="119">
|
||||
<caret line="7" column="55" lean-forward="false" selection-start-line="7" selection-start-column="18" selection-end-line="7" selection-end-column="55" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
</leaf>
|
||||
</component>
|
||||
<component name="FindInProjectRecents">
|
||||
@@ -149,6 +142,10 @@
|
||||
<find>divomschrijving</find>
|
||||
<find>divprijs</find>
|
||||
<find>circle2</find>
|
||||
<find>divvanin</find>
|
||||
<find>divomsch</find>
|
||||
<find>boxrechts</find>
|
||||
<find>boxlinks</find>
|
||||
</findStrings>
|
||||
<replaceStrings>
|
||||
<replace>divomschrijving</replace>
|
||||
@@ -166,13 +163,11 @@
|
||||
<option value="$PROJECT_DIR$/fixprobleem.php" />
|
||||
<option value="$PROJECT_DIR$/verwijderrecept.php" />
|
||||
<option value="$PROJECT_DIR$/instellingen.php" />
|
||||
<option value="$PROJECT_DIR$/test.php" />
|
||||
<option value="$PROJECT_DIR$/gelogged.php" />
|
||||
<option value="$PROJECT_DIR$/registerdiv.php" />
|
||||
<option value="$PROJECT_DIR$/probleemtoevoegen.php" />
|
||||
<option value="$PROJECT_DIR$/ifadmin.php" />
|
||||
<option value="$PROJECT_DIR$/scriptsonclick.php" />
|
||||
<option value="$PROJECT_DIR$/test (2).php" />
|
||||
<option value="$PROJECT_DIR$/tabelrecept.php" />
|
||||
<option value="$PROJECT_DIR$/script1.php" />
|
||||
<option value="$PROJECT_DIR$/confirmscriptdelete.php" />
|
||||
@@ -191,10 +186,12 @@
|
||||
<option value="$PROJECT_DIR$/recept.php" />
|
||||
<option value="$PROJECT_DIR$/logindiv.php" />
|
||||
<option value="$PROJECT_DIR$/menuvanboven.php" />
|
||||
<option value="$PROJECT_DIR$/ingredientinput.php" />
|
||||
<option value="$PROJECT_DIR$/index.php" />
|
||||
<option value="$PROJECT_DIR$/sources.php" />
|
||||
<option value="$PROJECT_DIR$/test.php" />
|
||||
<option value="$PROJECT_DIR$/design.css" />
|
||||
<option value="$PROJECT_DIR$/sources.php" />
|
||||
<option value="$PROJECT_DIR$/test (2).php" />
|
||||
<option value="$PROJECT_DIR$/ingredientinput.php" />
|
||||
<option value="$PROJECT_DIR$/recepttoevoegendiv.php" />
|
||||
</list>
|
||||
</option>
|
||||
@@ -378,7 +375,7 @@
|
||||
<workItem from="1486514504167" duration="1700000" />
|
||||
<workItem from="1486554879420" duration="1078000" />
|
||||
<workItem from="1486561394328" duration="1678000" />
|
||||
<workItem from="1486822939962" duration="7000" />
|
||||
<workItem from="1486822939962" duration="13927000" />
|
||||
</task>
|
||||
<task id="LOCAL-00001" summary="test data gewist">
|
||||
<created>1485945646492</created>
|
||||
@@ -412,14 +409,15 @@
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="69768000" />
|
||||
<option name="totallyTimeSpent" value="83688000" />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="-11" y="0" width="1612" height="867" extended-state="0" />
|
||||
<editor active="true" />
|
||||
<editor active="false" />
|
||||
<layout>
|
||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.21240601" 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" show_stripe_button="true" weight="0.21491228" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
||||
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32980227" sideWeight="0.49861112" order="7" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3287827" sideWeight="0.5013889" order="7" side_tool="true" content_ui="tabs" />
|
||||
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" 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" show_stripe_button="true" weight="0.060028248" sideWeight="0.49861112" order="7" side_tool="false" content_ui="tabs" />
|
||||
@@ -427,7 +425,6 @@
|
||||
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
||||
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32980227" sideWeight="0.49861112" order="7" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" 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" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||
@@ -480,29 +477,6 @@
|
||||
<watches-manager />
|
||||
</component>
|
||||
<component name="editorHistoryManager">
|
||||
<entry file="file://$PROJECT_DIR$/index.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/design.css">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="13550">
|
||||
<caret line="542" column="18" lean-forward="false" selection-start-line="542" selection-start-column="18" selection-end-line="542" selection-end-column="18" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/test.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="25">
|
||||
<caret line="1" column="0" lean-forward="false" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/recept.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="725">
|
||||
@@ -630,13 +604,6 @@
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/test.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="375">
|
||||
<caret line="15" column="10" lean-forward="true" selection-start-line="15" selection-start-column="10" selection-end-line="15" selection-end-column="10" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/probleemtoevoegen.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
@@ -666,13 +633,6 @@
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/test (2).php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="50">
|
||||
<caret line="2" column="32" lean-forward="false" selection-start-line="2" selection-start-column="32" selection-end-line="2" selection-end-column="32" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/confirmscriptdelete.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="175">
|
||||
@@ -790,16 +750,6 @@
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/ingredientinput.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="125">
|
||||
<caret line="5" column="39" lean-forward="false" selection-start-line="5" selection-start-column="39" selection-end-line="5" selection-end-column="39" />
|
||||
<folding>
|
||||
<marker date="1486509646678" expanded="true" signature="52:85" ph="select id, N... Ingredienten" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/recept.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="510">
|
||||
@@ -834,14 +784,6 @@
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/script1.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="969">
|
||||
<caret line="57" column="43" lean-forward="false" selection-start-line="57" selection-start-column="43" selection-end-line="57" selection-end-column="43" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/scriptsonclick.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="2108">
|
||||
@@ -850,18 +792,18 @@
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/sources.php">
|
||||
<entry file="file://$PROJECT_DIR$/ajax.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="170">
|
||||
<caret line="10" column="27" lean-forward="true" selection-start-line="10" selection-start-column="27" selection-end-line="10" selection-end-column="27" />
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/design.css">
|
||||
<entry file="jar://$APPLICATION_HOME_DIR$/lib/phpstorm.jar!/resources/html5-schema/html5/phrase.rnc">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="9911">
|
||||
<caret line="583" column="0" lean-forward="false" selection-start-line="583" selection-start-column="0" selection-end-line="583" selection-end-column="0" />
|
||||
<state relative-caret-position="175">
|
||||
<caret line="53" column="6" lean-forward="true" selection-start-line="53" selection-start-column="6" selection-end-line="53" selection-end-column="6" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
@@ -874,10 +816,69 @@
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/design.css">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="511">
|
||||
<caret line="658" column="12" lean-forward="false" selection-start-line="658" selection-start-column="12" selection-end-line="658" selection-end-column="12" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/script1.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="669">
|
||||
<caret line="57" column="43" lean-forward="false" selection-start-line="57" selection-start-column="43" selection-end-line="57" selection-end-column="43" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/test.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="374">
|
||||
<caret line="22" column="0" lean-forward="false" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$USER_HOME$/AppData/Local/Temp/Rar$DIa0.822/taffy.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/sources.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="102">
|
||||
<caret line="6" column="25" lean-forward="false" selection-start-line="6" selection-start-column="25" selection-end-line="6" selection-end-column="25" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/test (2).php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="153">
|
||||
<caret line="9" column="45" lean-forward="true" selection-start-line="9" selection-start-column="45" selection-end-line="9" selection-end-column="45" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/ingredientinput.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="85">
|
||||
<caret line="5" column="70" lean-forward="false" selection-start-line="5" selection-start-column="70" selection-end-line="5" selection-end-column="70" />
|
||||
<folding>
|
||||
<marker date="1486838105570" expanded="true" signature="52:85" ph="select id, N... Ingredienten" />
|
||||
<marker date="1486838105570" expanded="true" signature="205:344" ph="..." />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/recepttoevoegendiv.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="380">
|
||||
<caret line="36" column="45" lean-forward="false" selection-start-line="36" selection-start-column="45" selection-end-line="36" selection-end-column="45" />
|
||||
<state relative-caret-position="102">
|
||||
<caret line="32" column="31" lean-forward="true" selection-start-line="32" selection-start-column="31" selection-end-line="32" selection-end-column="31" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="stylesheet" type="text/css" href="design.css" />
|
||||
<title>Index</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="menuvanboven">
|
||||
|
||||
<ul>
|
||||
<a><img src="http://puu.sh/rWbc5/e2826e8a64.png" alt="logo"></a>
|
||||
<input type="text" name="search" placeholder="Zoeken...">
|
||||
<li><a href="#">Sign up</a></li>
|
||||
<li><a href="#">Login</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="menuvanlinks">
|
||||
<ul id="logo">
|
||||
<li ><a id="settings"><img src="http://puu.sh/rWtYi/a8925b96c9.png" alt="logo" width="35px" height="25px"></a></li>
|
||||
|
||||
<li class="unchosen"><a href="index.php"><img src="http://puu.sh/rWd4i/0d3e6da086.png" alt="logo" width="35px" height="35px"></a></li>
|
||||
<li class="unchosen"><a href="favorieten.php"><img src="http://puu.sh/rWePO/c996637cbe.png" alt="logo" width="35px" height="35px"></a></li>
|
||||
<li class="unchosen"><a href="browsen.php"><img src="http://puu.sh/rWeYR/693b8db04d.png" alt="logo" width="35px" height="35px"></a></li>
|
||||
<li class="chosen"><a><img src="http://puu.sh/rWf8v/424be36917.png" alt="logo" width="35px" height="35px"></a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
+29
-61
@@ -353,8 +353,7 @@ body{
|
||||
.recepttoevoegen {
|
||||
border-radius: 7px;
|
||||
position:fixed;
|
||||
padding-left:2%;
|
||||
padding-top:2%;
|
||||
padding: 2% 2% 2% 2%;
|
||||
left:25%;
|
||||
top: 20%;
|
||||
opacity:1;
|
||||
@@ -388,11 +387,7 @@ body{
|
||||
|
||||
|
||||
|
||||
.titelgerecht {
|
||||
|
||||
position:absolute;
|
||||
|
||||
}
|
||||
.divrating {
|
||||
|
||||
position: relative;
|
||||
@@ -612,46 +607,8 @@ body{
|
||||
.fixed{
|
||||
color:dodgerblue;
|
||||
}
|
||||
.notfixed{
|
||||
color:orangered;
|
||||
}
|
||||
.bereiding a{
|
||||
text-decoration: none;
|
||||
background-color: #7d7d7d;
|
||||
color:white;
|
||||
}
|
||||
|
||||
.textareaomschrijving {
|
||||
position: absolute;
|
||||
|
||||
}
|
||||
.divprijs{
|
||||
position:relative;
|
||||
top:40px;
|
||||
width:50%;
|
||||
}
|
||||
.divbereiding{
|
||||
position:relative;
|
||||
top:40px;
|
||||
width:50%;
|
||||
}
|
||||
.divomschrijving{
|
||||
position:relative;
|
||||
left:50%;
|
||||
width:50%;
|
||||
}
|
||||
.fotoinputdiv{
|
||||
position:relative;
|
||||
top:40px;
|
||||
}
|
||||
.divinputknop{
|
||||
position:relative;
|
||||
top:25px;
|
||||
}
|
||||
.fotoinputdiv {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin: 10px;
|
||||
.notfixed {
|
||||
color: orangered;
|
||||
}
|
||||
.fotoinputdiv input.upload {
|
||||
position: absolute;
|
||||
@@ -677,22 +634,33 @@ body{
|
||||
|
||||
padding: 5px;
|
||||
}
|
||||
.divfoto{
|
||||
position:relative;
|
||||
top:30px;
|
||||
}
|
||||
.ingredients{
|
||||
position:absolute;
|
||||
left:50%;
|
||||
}
|
||||
.divvaningredienten{
|
||||
position:absolute;
|
||||
left:52%;
|
||||
top:74%;
|
||||
width:100px;
|
||||
|
||||
|
||||
|
||||
#idknopingredient{
|
||||
display: inline-block;
|
||||
background: #811412;
|
||||
border-radius: 4px;
|
||||
font-family: "arial-black";
|
||||
font-size: 14px;
|
||||
color: #FFF;
|
||||
padding: 8px 12px;
|
||||
cursor: pointer;
|
||||
margin-bottom:10px;
|
||||
}
|
||||
.selectingredient{
|
||||
|
||||
.boxlinks{
|
||||
width:40%;
|
||||
display:inline-block;
|
||||
margin-bottom:7px;
|
||||
height:300px;
|
||||
position:absolute;
|
||||
}
|
||||
.boxrechts{
|
||||
width:40%;
|
||||
height:300px;
|
||||
position:absolute;
|
||||
left:49%;
|
||||
top:4%;
|
||||
|
||||
|
||||
}
|
||||
+7
-2
@@ -2,8 +2,10 @@
|
||||
include('db.php');
|
||||
if ($conn) {
|
||||
$vraag = "select id, Naam from Ingredienten";
|
||||
if ($result = mysqli_query($conn, $vraag)) {?>
|
||||
<select class="selectingredient" name="ingredient">
|
||||
if ($result = mysqli_query($conn, $vraag)) {
|
||||
echo "<select class=\"selectingredient\" name=\"ingredient\">"?>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
@@ -14,6 +16,9 @@ if ($conn) {
|
||||
<?php }?>
|
||||
|
||||
</select>
|
||||
<button onclick="removeIngredient(">
|
||||
X
|
||||
</button>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "taffydb",
|
||||
"version": "2.7.3",
|
||||
"description": "TaffyDB is an opensouce library that brings database features into your JavaScript applications.",
|
||||
"keywords": [
|
||||
"database", "browser", "json", "collection", "records", "node", "nodejs"
|
||||
],
|
||||
"main": "taffy.js",
|
||||
"scripts": {
|
||||
"test": "node_modules/.bin/nodeunit test/t.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/typicaljoe/taffydb.git"
|
||||
},
|
||||
"author": { "name": "Ian Smith" },
|
||||
"contributors": [
|
||||
{ "name": "Ian Smith" },
|
||||
{ "name": "Todd Chambery",
|
||||
"email": "todd.chambery@gmail.com"
|
||||
},
|
||||
{ "name": "Daniel Ruf",
|
||||
"email": "kontakt@daniel-ruf.de"
|
||||
},
|
||||
{ "name": "Michael Mikowski",
|
||||
"email": "mike.mikowski@gmail.com"
|
||||
},
|
||||
{ "name": "Matthew Chase Whittemore",
|
||||
"email": "mcwhittemore@gmail.com"
|
||||
}
|
||||
],
|
||||
"license": "BSD-2-Clause",
|
||||
"bugs": {
|
||||
"url": "https://github.com/typicaljoe/taffydb/issues"
|
||||
},
|
||||
"homepage": "http://www.taffydb.com",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"jslint": "^0.9.3",
|
||||
"nodeunit": "^0.9.1",
|
||||
"nodeunit-b": "^4.0.0",
|
||||
"node-inspector" : "^0.12.5",
|
||||
"uglifyjs": "^2.4.10"
|
||||
}
|
||||
}
|
||||
+53
-40
@@ -1,50 +1,63 @@
|
||||
<div class="recepttoevoegen" style="overflow-y: scroll;">
|
||||
<form class="voegrecept" action="recept.php" method="Post" enctype="multipart/form-data">
|
||||
<div class="boxlinks">
|
||||
<div class="titelgerecht">
|
||||
<a class="titelgerecht">Titel gerecht</a></br>
|
||||
<input type="txtText" name="Titel" class="TGR" required data-errormessage-value-missing="Vul dit veld in">
|
||||
|
||||
<div class="titelgerecht">
|
||||
<a class="titelgerecht">Titel gerecht</a></br>
|
||||
<input type="txtText" name="Titel" id="TGR" required data-errormessage-value-missing="Vul dit veld in">
|
||||
<div class="divprijs">
|
||||
<a class="prijs">Prijs 1-5</a></br>
|
||||
<input type="txtText" class="TGR" name="Prijs" id="PRI" required data-errormessage-value-missing="Vul dit veld in">
|
||||
</div>
|
||||
</div>
|
||||
<div class="divbereiding">
|
||||
<a class="bereiding">Omschrijving</a></br>
|
||||
|
||||
</div>
|
||||
<div class="divomschrijving">
|
||||
<a class="rating">Bereiding</a></br>
|
||||
<textarea class="textareaomschrijving" name="textareaomschrijving" style="width:90%;height:230px;" required data-errormessage-value-missing="Vul dit veld in"></textarea>
|
||||
</div>
|
||||
<div class="divprijs">
|
||||
<a class="prijs">Prijs 1-5</a></br>
|
||||
<input type="txtText" name="Prijs" id="PRI" required data-errormessage-value-missing="Vul dit veld in">
|
||||
</div>
|
||||
<div class="divbereiding">
|
||||
<a class="bereiding">Omschrijving</a></br>
|
||||
|
||||
<textarea name="Bereiding" style="width90%;height:100px;" required data-errormessage-value-missing="Vul dit veld in"></textarea>
|
||||
<textarea name="Bereiding" required data-errormessage-value-missing="Vul dit veld in"></textarea>
|
||||
</div>
|
||||
<div class="divprijs">
|
||||
<a class="soort">Soort</a></br>
|
||||
<select required data-errormessage-value-missing="Vul dit veld in" name="Soort">
|
||||
<option>Ontbijt</option>
|
||||
<option>Middageten</option>
|
||||
<option>Avondeten</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="divfoto">
|
||||
<?php include('test.php');?>
|
||||
</div>
|
||||
<input class="divinputknop" type="submit" name="Toevoegen" value="Toevoegen">
|
||||
</div>
|
||||
|
||||
<div class="divprijs">
|
||||
<a class="soort">Soort</a></br>
|
||||
<select required data-errormessage-value-missing="Vul dit veld in" name="Soort">
|
||||
<option>Ontbijt</option>
|
||||
<option>Middageten</option>
|
||||
<option>Avondeten</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="divfoto">
|
||||
<?php include('test.php');?>
|
||||
</div>
|
||||
<div class="divvaningredienten">
|
||||
<a class="circle2">+</a>
|
||||
<?php
|
||||
include('ingredientinput.php');?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$(".circle2").click(function(){
|
||||
$(".divvaningredienten").append("asdasd");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
<div class="boxrechts">
|
||||
<div class="divomschrijving">
|
||||
<a class="rating">Bereiding</a></br>
|
||||
<textarea class="textareaomschrijving" name="textareaomschrijving" required data-errormessage-value-missing="Vul dit veld in"></textarea>
|
||||
</div>
|
||||
<div id="ingdiv" class="divvaningredienten">
|
||||
<a id="idknopingredient" onclick="doSomething();">Voeg ingredient</a>
|
||||
|
||||
<input class="divinputknop" type="submit" name="Toevoegen" value="Toevoegen">
|
||||
<script type="text/javascript">
|
||||
var divid=0;
|
||||
|
||||
function doSomething() {
|
||||
divid++;
|
||||
var div = document.createElement('div');
|
||||
div.id="result" + divid;
|
||||
document.getElementById("ingdiv").appendChild(div);
|
||||
var id = 1;
|
||||
$('#result').html('Downloading...');
|
||||
$.ajax({
|
||||
|
||||
url: "ingredientinput.php?id="+divid
|
||||
}).done(function(data) { // data what is sent back by the php page
|
||||
$('#result' + divid).html(data);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -3,6 +3,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
||||
<script src="https://use.fontawesome.com/3008661bde.js"></script>
|
||||
<script src="taffy,js"></script>
|
||||
<script src="taffy-min.js"></script>
|
||||
<script src ="civem.js"></script>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
|
||||
<head>
|
||||
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
var TAFFY,exports,T;!function(){"use strict";var _t_,_e_,_n_,_r_,_i_,_s_,_u_,_o_,_c_,_a_,_l_,_f_,_h_,_T_,_g_,_F_,_p_,_d_,_A_,_v_,_y_,_m_,___,_x_;if(!TAFFY)for(_i_="2.7",_s_=1,_u_="000000",_o_=1e3,_c_={},_x_=function(_t_){var _e_=Array.prototype.slice.call(_t_);return _e_.sort()},_a_=function(_t_){return TAFFY.isArray(_t_)||TAFFY.isObject(_t_)?_t_:JSON.parse(_t_)},_A_=function(_t_,_e_){return _v_(_t_,function(_t_){return _e_.indexOf(_t_)>=0})},_v_=function(_t_,_e_,_n_){var _r_=[];return null==_t_?_r_:Array.prototype.filter&&_t_.filter===Array.prototype.filter?_t_.filter(_e_,_n_):(_l_(_t_,function(_t_,_i_,_s_){_e_.call(_n_,_t_,_i_,_s_)&&(_r_[_r_.length]=_t_)}),_r_)},___=function(_t_){return"[object RegExp]"===Object.prototype.toString.call(_t_)},_m_=function(_t_){var _e_=T.isArray(_t_)?[]:T.isObject(_t_)?{}:null;if(null===_t_)return _t_;for(var _n_ in _t_)_e_[_n_]=___(_t_[_n_])?_t_[_n_].toString():T.isArray(_t_[_n_])||T.isObject(_t_[_n_])?_m_(_t_[_n_]):_t_[_n_];return _e_},_y_=function(_t_){var _e_=JSON.stringify(_t_);return null===_e_.match(/regex/)?_e_:JSON.stringify(_m_(_t_))},_l_=function(_t_,_e_,_n_){var _r_,_i_,_s_,_u_;if(_t_&&(T.isArray(_t_)&&1===_t_.length||!T.isArray(_t_)))_e_(T.isArray(_t_)?_t_[0]:_t_,0);else for(_s_=0,_t_=T.isArray(_t_)?_t_:[_t_],_u_=_t_.length;_u_>_s_&&(_i_=_t_[_s_],T.isUndefined(_i_)&&!_n_||(_r_=_e_(_i_,_s_),_r_!==T.EXIT));_s_++);},_f_=function(_t_,_e_){var _n_,_r_,_i_=0;for(_r_ in _t_)if(_t_.hasOwnProperty(_r_)&&(_n_=_e_(_t_[_r_],_r_,_i_++),_n_===T.EXIT))break},_c_.extend=function(_t_,_e_){_c_[_t_]=function(){return _e_.apply(this,_x_(arguments))}},_h_=function(_t_){var _e_;return T.isString(_t_)&&/[t][0-9]*[r][0-9]*/i.test(_t_)?!0:T.isObject(_t_)&&_t_.___id&&_t_.___s?!0:T.isArray(_t_)?(_e_=!0,_l_(_t_,function(_t_){return _h_(_t_)?void 0:(_e_=!1,TAFFY.EXIT)}),_e_):!1},_g_=function(_t_,_e_){var _n_=!0;return _l_(_e_,function(_e_){switch(T.typeOf(_e_)){case"function":if(!_e_.apply(_t_))return _n_=!1,TAFFY.EXIT;break;case"array":_n_=1===_e_.length?_g_(_t_,_e_[0]):2===_e_.length?_g_(_t_,_e_[0])||_g_(_t_,_e_[1]):3===_e_.length?_g_(_t_,_e_[0])||_g_(_t_,_e_[1])||_g_(_t_,_e_[2]):4===_e_.length?_g_(_t_,_e_[0])||_g_(_t_,_e_[1])||_g_(_t_,_e_[2])||_g_(_t_,_e_[3]):!1,_e_.length>4&&_l_(_e_,function(_e_){_g_(_t_,_e_)&&(_n_=!0)})}}),_n_},_T_=function(_t_){var _e_=[];return T.isString(_t_)&&/[t][0-9]*[r][0-9]*/i.test(_t_)&&(_t_={___id:_t_}),T.isArray(_t_)?(_l_(_t_,function(_t_){_e_.push(_T_(_t_))}),_t_=function(){var _t_=this,_n_=!1;return _l_(_e_,function(_e_){_g_(_t_,_e_)&&(_n_=!0)}),_n_}):T.isObject(_t_)?(T.isObject(_t_)&&_t_.___id&&_t_.___s&&(_t_={___id:_t_.___id}),_f_(_t_,function(_t_,_n_){T.isObject(_t_)||(_t_={is:_t_}),_f_(_t_,function(_t_,_r_){var _i_,_s_=[];_i_="hasAll"===_r_?function(_t_,_e_){_e_(_t_)}:_l_,_i_(_t_,function(_t_){var _e_,_i_=!0;_e_=function(){var _e_,_s_=this[_n_],_u_="==",_o_="!=",_c_="===",_a_="<",_l_=">",_f_="<=",_h_=">=",_T_="!==";return"undefined"==typeof _s_?!1:(0===_r_.indexOf("!")&&_r_!==_o_&&_r_!==_T_&&(_i_=!1,_r_=_r_.substring(1,_r_.length)),_e_="regex"===_r_?_t_.test(_s_):"lt"===_r_||_r_===_a_?_t_>_s_:"gt"===_r_||_r_===_l_?_s_>_t_:"lte"===_r_||_r_===_f_?_t_>=_s_:"gte"===_r_||_r_===_h_?_s_>=_t_:"left"===_r_?0===_s_.indexOf(_t_):"leftnocase"===_r_?0===_s_.toLowerCase().indexOf(_t_.toLowerCase()):"right"===_r_?_s_.substring(_s_.length-_t_.length)===_t_:"rightnocase"===_r_?_s_.toLowerCase().substring(_s_.length-_t_.length)===_t_.toLowerCase():"like"===_r_?_s_.indexOf(_t_)>=0:"likenocase"===_r_?_s_.toLowerCase().indexOf(_t_.toLowerCase())>=0:_r_===_c_||"is"===_r_?_s_===_t_:_r_===_u_?_s_==_t_:_r_===_T_?_s_!==_t_:_r_===_o_?_s_!=_t_:"isnocase"===_r_?_s_.toLowerCase?_s_.toLowerCase()===_t_.toLowerCase():_s_===_t_:"has"===_r_?T.has(_s_,_t_):"hasall"===_r_?T.hasAll(_s_,_t_):"contains"===_r_?TAFFY.isArray(_s_)&&_s_.indexOf(_t_)>-1:-1!==_r_.indexOf("is")||TAFFY.isNull(_s_)||TAFFY.isUndefined(_s_)||TAFFY.isObject(_t_)||TAFFY.isArray(_t_)?T[_r_]&&T.isFunction(T[_r_])&&0===_r_.indexOf("is")?T[_r_](_s_)===_t_:T[_r_]&&T.isFunction(T[_r_])?T[_r_](_s_,_t_):!1:_t_===_s_[_r_],_e_=_e_&&!_i_?!1:_e_||_i_?_e_:!0)},_s_.push(_e_)}),_e_.push(1===_s_.length?_s_[0]:function(){var _t_=this,_e_=!1;return _l_(_s_,function(_n_){_n_.apply(_t_)&&(_e_=!0)}),_e_})})}),_t_=function(){var _t_=this,_n_=!0;return _n_=(1!==_e_.length||_e_[0].apply(_t_))&&(2!==_e_.length||_e_[0].apply(_t_)&&_e_[1].apply(_t_))&&(3!==_e_.length||_e_[0].apply(_t_)&&_e_[1].apply(_t_)&&_e_[2].apply(_t_))&&(4!==_e_.length||_e_[0].apply(_t_)&&_e_[1].apply(_t_)&&_e_[2].apply(_t_)&&_e_[3].apply(_t_))?!0:!1,_e_.length>4&&_l_(_e_,function(_e_){_g_(_t_,_e_)||(_n_=!1)}),_n_}):T.isFunction(_t_)?_t_:void 0},_p_=function(_t_,_e_){var _n_=function(_t_,_n_){var _r_=0;return T.each(_e_,function(_e_){var _i_,_s_,_u_,_o_,_c_;if(_i_=_e_.split(" "),_s_=_i_[0],_u_=1===_i_.length?"logical":_i_[1],"logical"===_u_)_o_=_F_(_t_[_s_]),_c_=_F_(_n_[_s_]),T.each(_o_.length<=_c_.length?_o_:_c_,function(_t_,_e_){return _o_[_e_]<_c_[_e_]?(_r_=-1,TAFFY.EXILine truncated
|
||||
+16
-4
@@ -1,7 +1,19 @@
|
||||
<?php
|
||||
<div id="ingdiv3">
|
||||
Test
|
||||
</div>
|
||||
|
||||
echo htmlspecialchars("<script> </script>", ENT_QUOTES, 'UTF-8');
|
||||
<script>
|
||||
|
||||
function myFunction() {
|
||||
|
||||
|
||||
?>
|
||||
var para = document.createElement("A");
|
||||
var t = document.createTextNode("X");
|
||||
para.appendChild(t);
|
||||
para.id="result" + divid;
|
||||
para.onclick= function(){
|
||||
$("#result" + divid).remove();
|
||||
}
|
||||
document.getElementById("ingdiv").appendChild(para);
|
||||
}
|
||||
</script>
|
||||
<a onclick="myFunction();">Test</a>
|
||||
@@ -0,0 +1,229 @@
|
||||
/*jslint node : true, continue : true,
|
||||
devel : true, indent : 2, maxerr : 50,
|
||||
newcap : true, nomen : true, plusplus : true,
|
||||
regexp : true, vars : false, white : true
|
||||
unparam : true, sloppy : true, todo : true
|
||||
*/
|
||||
/*global global, module, require, $, KI, document, window */
|
||||
// global global, module, require, $, KI, document, window
|
||||
|
||||
'use strict';
|
||||
// BEGIN module-scope vars
|
||||
var
|
||||
TAFFY = require( '../taffy.js' ).taffy,
|
||||
|
||||
// Load libraries
|
||||
// Declare data sources
|
||||
cfgMap = {
|
||||
friend_list : [
|
||||
{"id":1,"gender":"M","first":"John","last":"Smith",
|
||||
"city":"Seattle, WA","status":"Active"},
|
||||
{"id":2,"gender":"F","first":"Kelly","last":"Ruth",
|
||||
"city":"Dallas, TX","status":"Active"},
|
||||
{"id":3,"gender":"M","first":"Jeff","last":"Stevenson",
|
||||
"city":"Washington, D.C.","status":"Active"},
|
||||
{"id":4,"gender":"F","first":"Jennifer","last":"Gill",
|
||||
"city":"Seattle, WA","status":"Active"}
|
||||
]
|
||||
},
|
||||
// Declare utlities
|
||||
getVarType, cloneFriendList,
|
||||
// Declare init used to reset state for tests
|
||||
|
||||
// Declare tests
|
||||
testSmoke, testShowBug, testDummy
|
||||
;
|
||||
// END module-scope vars
|
||||
|
||||
// BEGIN public utility /getVarType/
|
||||
// Returns 'Function', 'Object', 'Array',
|
||||
// 'String', 'Number', 'Boolean', or 'Undefined',
|
||||
getVarType = function ( data ) {
|
||||
if (undefined === data ){ return 'Undefined'; }
|
||||
if (data === null ){ return 'Null'; }
|
||||
return {}.toString.call(data).slice(8, -1);
|
||||
};
|
||||
// END public utility /getVarType/
|
||||
|
||||
// BEGIN cloneFriendList
|
||||
cloneFriendList = function () { return cfgMap.friend_list.slice(); };
|
||||
// END cloneFriendList
|
||||
|
||||
// BEGIN testSmoke
|
||||
testSmoke = function ( test_obj ) {
|
||||
var
|
||||
friend_db, query_list, query_count, initial_list, expect_map,
|
||||
idx, bit_list, key_name, val_data, expect_data, actual_str, msg_str,
|
||||
|
||||
partial, chain_list, chain_count, i, chain_map
|
||||
;
|
||||
|
||||
friend_db = TAFFY( cloneFriendList() );
|
||||
|
||||
|
||||
// Fast clone; see stackoverflow.com/questions/122102/5344074
|
||||
initial_list = JSON.parse(JSON.stringify(friend_db().get()));
|
||||
|
||||
// query data
|
||||
//
|
||||
query_list = [
|
||||
[ 'filter_city', [ { city : "Seattle, WA"}, { key: 'get' } ] ],
|
||||
[ 'filter_id_num', [ { id : 1 }, { key : 'get' } ] ],
|
||||
[ 'filter_id_str', [ { id : '1'}, { key : 'get' } ] ],
|
||||
[ 'filter_name', [ { first : 'John', last : 'Smith' }, { key : 'get' } ] ],
|
||||
[ 'kelly_by_id', [ { id : 2}, { key : 'first' } ] ],
|
||||
[ 'kelly_last_name', [ { id : 2}, { key : 'first' }, { _xprop : 'last' } ] ],
|
||||
[ 'id_list', [ null, { key : 'select', val : 'id' } ] ],
|
||||
[ 'city_list', [ null, { key : 'distinct', val : 'city' } ] ],
|
||||
[ 'filter_001', [ null, { key : 'filter', val : { city : "Seattle, WA"} }, { key : 'get' } ] ],
|
||||
|
||||
// should match initial order
|
||||
[ 'order_001', [ null, { key : 'get' } ] ],
|
||||
[ 'order_002', [ null, { key : 'order', val : 'gender' }, { key : 'get' } ] ],
|
||||
[ 'order_003', [ null, { key : 'order', val : 'gender desc' }, { key : 'get' } ] ],
|
||||
[ 'order_004', [ null, { key : 'order', val : 'gender, last' }, { key : 'get' } ] ],
|
||||
[ 'order_005', [ null, { key : 'order', val : 'gender desc, last desc' }, { key : 'get' } ] ],
|
||||
// TODO: asec is not really supported, but is default sort.
|
||||
// Also should the abbreviation be 'asc' or similar?
|
||||
[ 'order_006', [ null, { key : 'order', val : 'first' }, { key : 'get' } ] ],
|
||||
[ 'order_007', [ null, { key : 'order', val : 'last' }, { key : 'get' } ] ],
|
||||
[ 'order_008', [ null, { key : 'order', val : 'first desc' }, { key : 'get' } ] ],
|
||||
[ 'order_009', [ null, { key : 'order', val : 'last desc' }, { key : 'get' } ] ],
|
||||
// should match initial order
|
||||
[ 'order_001', [ null, { key : 'get' } ] ],
|
||||
[ 'sort_001_002', [ { _xsort : 'last' }, { key : 'get' } ] ],
|
||||
// should match changed order
|
||||
[ 'sort_001_002', [ null, { key : 'get'} ] ],
|
||||
[ 'get_ruth', [ { "last" : "Ruth" }, { key : 'update', val : { first : 'KelBel' } }, { key : 'first' } ] ]
|
||||
];
|
||||
|
||||
query_count = query_list.length;
|
||||
test_obj.expect( query_count );
|
||||
|
||||
expect_map = {
|
||||
filter_city : [{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true},{"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA","status":"Active","___id":"T000002R000005","___s":true}],
|
||||
filter_id_num : [{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true}],
|
||||
filter_id_str : [],
|
||||
filter_name : [{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true}],
|
||||
kelly_by_id : {"id":2,"gender":"F","first":"Kelly","last":"Ruth","city":"Dallas, TX","status":"Active","___id":"T000002R000003","___s":true},
|
||||
kelly_last_name : 'Ruth',
|
||||
id_list : [1,2,3,4],
|
||||
city_list : ["Seattle, WA","Dallas, TX","Washington, D.C."],
|
||||
filter_001 : [{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true},{"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA","status":"Active","___id":"T000002R000005","___s":true}],
|
||||
order_001 : initial_list,
|
||||
order_002 : [{"id":2,"gender":"F","first":"Kelly","last":"Ruth","city":"Dallas, TX","status":"Active","___id":"T000002R000003","___s":true},{"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA","status":"Active","___id":"T000002R000005","___s":true},{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true},{"id":3,"gender":"M","first":"Jeff","last":"Stevenson","city":"Washington, D.C.","status":"Active","___id":"T000002R000004","___s":true}],
|
||||
order_003 : [{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true},{"id":3,"gender":"M","first":"Jeff","last":"Stevenson","city":"Washington, D.C.","status":"Active","___id":"T000002R000004","___s":true},{"id":2,"gender":"F","first":"Kelly","last":"Ruth","city":"Dallas, TX","status":"Active","___id":"T000002R000003","___s":true},{"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA","status":"Active","___id":"T000002R000005","___s":true}],
|
||||
order_004 : [{"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA","status":"Active","___id":"T000002R000005","___s":true},{"id":2,"gender":"F","first":"Kelly","last":"Ruth","city":"Dallas, TX","status":"Active","___id":"T000002R000003","___s":true},{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true},{"id":3,"gender":"M","first":"Jeff","last":"Stevenson","city":"Washington, D.C.","status":"Active","___id":"T000002R000004","___s":true}],
|
||||
order_005 : [{"id":3,"gender":"M","first":"Jeff","last":"Stevenson","city":"Washington, D.C.","status":"Active","___id":"T000002R000004","___s":true},{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true},{"id":2,"gender":"F","first":"Kelly","last":"Ruth","city":"Dallas, TX","status":"Active","___id":"T000002R000003","___s":true},{"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA","status":"Active","___id":"T000002R000005","___s":true}],
|
||||
order_006 : [{"id":3,"gender":"M","first":"Jeff","last":"Stevenson","city":"Washington, D.C.","status":"Active","___id":"T000002R000004","___s":true},{"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA","status":"Active","___id":"T000002R000005","___s":true},{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true},{"id":2,"gender":"F","first":"Kelly","last":"Ruth","city":"Dallas, TX","status":"Active","___id":"T000002R000003","___s":true}],
|
||||
order_007 : [{"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA","status":"Active","___id":"T000002R000005","___s":true},{"id":2,"gender":"F","first":"Kelly","last":"Ruth","city":"Dallas, TX","status":"Active","___id":"T000002R000003","___s":true},{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true},{"id":3,"gender":"M","first":"Jeff","last":"Stevenson","city":"Washington, D.C.","status":"Active","___id":"T000002R000004","___s":true}],
|
||||
order_008 : [{"id":2,"gender":"F","first":"Kelly","last":"Ruth","city":"Dallas, TX","status":"Active","___id":"T000002R000003","___s":true},{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true},{"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA","status":"Active","___id":"T000002R000005","___s":true},{"id":3,"gender":"M","first":"Jeff","last":"Stevenson","city":"Washington, D.C.","status":"Active","___id":"T000002R000004","___s":true}],
|
||||
order_009 : [{"id":3,"gender":"M","first":"Jeff","last":"Stevenson","city":"Washington, D.C.","status":"Active","___id":"T000002R000004","___s":true},{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true},{"id":2,"gender":"F","first":"Kelly","last":"Ruth","city":"Dallas, TX","status":"Active","___id":"T000002R000003","___s":true},{"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA","status":"Active","___id":"T000002R000005","___s":true}],
|
||||
order_010 : initial_list,
|
||||
sort_001_002 : [{"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA","status":"Active","___id":"T000002R000005","___s":true},{"id":2,"gender":"F","first":"Kelly","last":"Ruth","city":"Dallas, TX","status":"Active","___id":"T000002R000003","___s":true},{"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA","status":"Active","___id":"T000002R000002","___s":true},{"id":3,"gender":"M","first":"Jeff","last":"Stevenson","city":"Washington, D.C.","status":"Active","___id":"T000002R000004","___s":true}],
|
||||
get_ruth : {"id":2,"gender":"F","first":"KelBel","last":"Ruth","city":"Dallas, TX","status":"Active","___id":"T000002R000003","___s":true}
|
||||
};
|
||||
|
||||
for ( idx = 0; idx < query_count; idx++ ) {
|
||||
bit_list = query_list[ idx ];
|
||||
key_name = bit_list[ 0 ];
|
||||
val_data = bit_list[ 1 ];
|
||||
expect_data = expect_map[ key_name ] || '';
|
||||
|
||||
|
||||
chain_list = val_data;
|
||||
chain_count = chain_list.length;
|
||||
|
||||
_PARTIAL_:
|
||||
for ( i = 0; i < chain_count; i++ ) {
|
||||
chain_map = chain_list[ i ];
|
||||
|
||||
if ( i === 0 ) {
|
||||
if ( ! chain_map ) {
|
||||
partial = friend_db();
|
||||
}
|
||||
else if ( chain_map._xsort ) {
|
||||
friend_db.sort( chain_map._xsort );
|
||||
partial = friend_db();
|
||||
}
|
||||
else {
|
||||
partial = friend_db( chain_map );
|
||||
}
|
||||
}
|
||||
|
||||
else {
|
||||
if ( chain_map._xprop ) {
|
||||
partial = partial[ chain_map._xprop ];
|
||||
}
|
||||
else if ( chain_map.val ) {
|
||||
partial = partial[ chain_map.key ]( chain_map.val );
|
||||
}
|
||||
else {
|
||||
partial = partial[ chain_map.key ]();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
actual_str = JSON.stringify( partial );
|
||||
msg_str = actual_str + ' === ' + JSON.stringify( expect_data );
|
||||
test_obj.deepEqual( partial, expect_data, msg_str );
|
||||
}
|
||||
test_obj.done();
|
||||
};
|
||||
// END testSmoke
|
||||
|
||||
// BEGIN testShowBug
|
||||
testShowBug = function ( test_obj ) {
|
||||
var friend_db = TAFFY( cloneFriendList() );
|
||||
test_obj.expect( 0 );
|
||||
|
||||
friend_db().each(function ( row_map, idx ) {
|
||||
if ( row_map.city === 'Seattle, WA' ){
|
||||
row_map.city = 'WallaWalla, WA';
|
||||
}
|
||||
});
|
||||
|
||||
// console.log( 'Example filter bug - rows changed without using '
|
||||
// + '.update() will filter by their original values. '
|
||||
// );
|
||||
// console.log( 'We expect 0 rows, but get 2... ' );
|
||||
// console.log(
|
||||
// friend_db().filter({ city : 'Seattle, WA'}).get()
|
||||
// );
|
||||
// console.log( '...even though the city has changed in the collection.' );
|
||||
// console.log( friend_db().get() );
|
||||
// console.log( '' );
|
||||
//
|
||||
// console.log( 'Example filter when .update() is used.');
|
||||
// friend_db = TAFFY( cloneFriendList() );
|
||||
//
|
||||
// friend_db({ city : 'Seattle, WA' })
|
||||
// .update({ city : 'WallaWalla, WA' });
|
||||
//
|
||||
// console.log( 'now we get the correct response (0 rows) ...' );
|
||||
// console.log(
|
||||
// friend_db().filter({ city : 'Seattle, WA'}).get()
|
||||
// );
|
||||
// console.log( friend_db().get() );
|
||||
// console.log( '... that reflects the taffy collection.' );
|
||||
|
||||
test_obj.done();
|
||||
};
|
||||
// END testShowBug
|
||||
|
||||
testDummy = function ( test_obj ) {
|
||||
test_obj.expect( 0 );
|
||||
test_obj.done();
|
||||
|
||||
// See http://stackoverflow.com/questions/10952806
|
||||
// Suprisingly, a non-zero exit value (echo $?) is provided
|
||||
// when the tests do not pass, which is awesome!
|
||||
//
|
||||
setTimeout( function (){ process.exit(0); }, 100 );
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
testSmoke : testSmoke,
|
||||
testShowBug : testShowBug,
|
||||
testDummy : testDummy
|
||||
};
|
||||
Reference in new issue
Block a user