<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.board18.org/index.php?action=history&amp;feed=atom&amp;title=The_DRAFT1846Next_Page</id>
	<title>The DRAFT1846Next Page - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.board18.org/index.php?action=history&amp;feed=atom&amp;title=The_DRAFT1846Next_Page"/>
	<link rel="alternate" type="text/html" href="https://wiki.board18.org/index.php?title=The_DRAFT1846Next_Page&amp;action=history"/>
	<updated>2026-06-14T12:03:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.0</generator>
	<entry>
		<id>https://wiki.board18.org/index.php?title=The_DRAFT1846Next_Page&amp;diff=3079&amp;oldid=prev</id>
		<title>Rich at 14:44, 28 October 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.board18.org/index.php?title=The_DRAFT1846Next_Page&amp;diff=3079&amp;oldid=prev"/>
		<updated>2020-10-28T14:44:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:44, 28 October 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l66&quot;&gt;Line 66:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 66:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It only needs to check for errors and it only needs to report  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It only needs to check for errors and it only needs to report  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;the first error.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;the first error.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Design]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rich</name></author>
	</entry>
	<entry>
		<id>https://wiki.board18.org/index.php?title=The_DRAFT1846Next_Page&amp;diff=2796&amp;oldid=prev</id>
		<title>Rich: Initial page contents</title>
		<link rel="alternate" type="text/html" href="https://wiki.board18.org/index.php?title=The_DRAFT1846Next_Page&amp;diff=2796&amp;oldid=prev"/>
		<updated>2020-05-21T18:25:07Z</updated>

		<summary type="html">&lt;p&gt;Initial page contents&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Draft1846 Design Document Index}}&lt;br /&gt;
The draft1846Next page is called from an email generated by&lt;br /&gt;
a previous iteration of draft1846Next or by draft1846Cfrm.  &lt;br /&gt;
It first accesses the table record from the database.&lt;br /&gt;
It then deals a new hand and displays it to the player.&lt;br /&gt;
When the player makes a choice it updates the database.&lt;br /&gt;
And then it sends an email to the next player for him to take his turn.&lt;br /&gt;
&lt;br /&gt;
If there is only one private left it passes control to &lt;br /&gt;
the draft1846Last page. If the current player takes the&lt;br /&gt;
last private (leaving one or more blank cards behind)&lt;br /&gt;
then the draft is over and the draft1846Last page is not needed.&lt;br /&gt;
&lt;br /&gt;
== function getDraftResult(result) ==&lt;br /&gt;
The getDraftResult function is the call back function for &lt;br /&gt;
the ajax calls to getDraft.php. It checks that it is the  &lt;br /&gt;
current players turn and sets up the first part of the  &lt;br /&gt;
draft1846Next page.&lt;br /&gt;
 &lt;br /&gt;
Output from getDraft.php is a json encoded array.   &lt;br /&gt;
The &amp;quot;return&amp;quot; value will be either &amp;quot;success&amp;quot; or &amp;quot;fail&amp;quot;. If &lt;br /&gt;
it is &amp;quot;fail&amp;quot; then it will be the only item in the array.&lt;br /&gt;
If the &amp;quot;return&amp;quot; value is &amp;quot;success&amp;quot;, then the rest of the&lt;br /&gt;
array will be the json string from the specified table row.&lt;br /&gt;
&lt;br /&gt;
== function processSelection() ==&lt;br /&gt;
The processSelection function uses the entered card select   &lt;br /&gt;
value to update the current player&amp;#039;s holding. And also to remove &lt;br /&gt;
the card from the delt hand. It then calls updateDraft.php to &lt;br /&gt;
update the table row. &lt;br /&gt;
&lt;br /&gt;
== function updateDraftResult(result) ==&lt;br /&gt;
The updateDraftResult function is the call back function for &lt;br /&gt;
the ajax calls to updateDraft.php. It checks for collisions.&lt;br /&gt;
Then it checks if the draft has completed. If the draft is &lt;br /&gt;
over then it calls the finishDraft() function. &lt;br /&gt;
&lt;br /&gt;
If the draft is not over then the next player needs to be &lt;br /&gt;
informed that it is now his turn. To do this properly the&lt;br /&gt;
updateDraftResult(result) function must&lt;br /&gt;
first check if only one private and no blank cards are left. If&lt;br /&gt;
this is true, it will send an email directing the next player &lt;br /&gt;
to the draft1846Last page. If it is not true, it will send an &lt;br /&gt;
email directing the next player to the draft1846Next page.&lt;br /&gt;
&lt;br /&gt;
== function nextEmailResult(response) ==&lt;br /&gt;
Function nextEmailsResult is the call back function for both&lt;br /&gt;
the ajax call to emailNext.php and the ajax call to &lt;br /&gt;
emailLast.php. It only needs to check for errors.&lt;br /&gt;
&lt;br /&gt;
== function finishDraft() ==&lt;br /&gt;
The finishDraft function updates the draft status to &amp;quot;Done&amp;quot;.&lt;br /&gt;
It uses updtDraft.php to do this.&lt;br /&gt;
&lt;br /&gt;
== function finishDraftResult(result) ==&lt;br /&gt;
The finishDraftResult function is the call back function for &lt;br /&gt;
the ajax call by the finishDraft function to updtDraft.php. &lt;br /&gt;
It checks for collisions. Then&lt;br /&gt;
it uses emailDone.php to send a completed email to each player &lt;br /&gt;
and finally it calls the draftDone() function.&lt;br /&gt;
&lt;br /&gt;
== function doneEmailResult(response) ==&lt;br /&gt;
The doneEmailResult function is the call back function for &lt;br /&gt;
the ajax call to emailDone.php. It will have to&lt;br /&gt;
process returns from multiple emails for the same call.&lt;br /&gt;
It only needs to check for errors and it only needs to report &lt;br /&gt;
the first error.&lt;/div&gt;</summary>
		<author><name>Rich</name></author>
	</entry>
</feed>