<?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_BID18xxStart_Page</id>
	<title>The BID18xxStart 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_BID18xxStart_Page"/>
	<link rel="alternate" type="text/html" href="https://wiki.board18.org/index.php?title=The_BID18xxStart_Page&amp;action=history"/>
	<updated>2026-06-18T14:46:47Z</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_BID18xxStart_Page&amp;diff=3084&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_BID18xxStart_Page&amp;diff=3084&amp;oldid=prev"/>
		<updated>2020-10-28T16:01:01Z</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;{{BID18xx Design Document Index}}&lt;br /&gt;
Control is transferred to the bid18xxStart page from the&lt;br /&gt;
index page. The index page also supplies the number of &lt;br /&gt;
players to the bid18xxStart page as a URL parameter.&amp;lt;br&amp;gt;&lt;br /&gt;
The bid18xxStart page displays a form in to &lt;br /&gt;
which the names and email addresses of the players should &lt;br /&gt;
be entered. &lt;br /&gt;
       &lt;br /&gt;
== function SetupBid() ==&lt;br /&gt;
The SetupBid function uses the functions below to setup a&lt;br /&gt;
new draft by creating a new row in the bid_table and then &lt;br /&gt;
sending an email to each player to kick off the bid process.&lt;br /&gt;
&lt;br /&gt;
== function makePinfo() ==&lt;br /&gt;
The makePinfo function sets up the BID18.nlist array &lt;br /&gt;
and the BID18.elist array by accessing the player&lt;br /&gt;
name and email addresse fields from the setup form&lt;br /&gt;
on the bid18xxStart page. It also checks for &lt;br /&gt;
duplicate names.&lt;br /&gt;
&lt;br /&gt;
== function makeBidRow() ==&lt;br /&gt;
Function makeBidRow creates &amp;quot;BID18.bid&amp;quot;,&lt;br /&gt;
and then uses JSON.stringify to convert it &lt;br /&gt;
to the JSON component of the new bid_table &lt;br /&gt;
row for this bid.&lt;br /&gt;
It then does an ajax call to makeBidRow.php.&lt;br /&gt;
&lt;br /&gt;
== function newBidOK(response) ==&lt;br /&gt;
Function newBidOK is the success callback function for &lt;br /&gt;
the ajax makeBidRow.php call. It checks for a failure&lt;br /&gt;
and then reports the new bid ID to the start page.&lt;br /&gt;
Finally it adds a psudorandom url key to the array for&lt;br /&gt;
each player calls the updatebid.php function.&lt;br /&gt;
&lt;br /&gt;
The php/makeBid.php call returns the numeric bid_id of &lt;br /&gt;
the new table row or the intiger 0 if a failure occured.&lt;br /&gt;
&lt;br /&gt;
== function updtBidResult(result) == &lt;br /&gt;
Function updtBidResult is the success callback function  &lt;br /&gt;
for the ajax updtBid.php call made by the newBidOK()&lt;br /&gt;
function. It checks for a failure or a collision&lt;br /&gt;
and then it calls the emailBidRequests.php function.&lt;br /&gt;
&lt;br /&gt;
Output from updateBid is an echo return status of &lt;br /&gt;
&amp;quot;success&amp;quot;, &amp;quot;collision&amp;quot; or &amp;quot;fail&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== function startupEmailsResult(response) ==&lt;br /&gt;
Function startupEmailsResult is the call back function for&lt;br /&gt;
the ajax calls to emailBidRequests.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;br /&gt;
&lt;br /&gt;
== function urlKeyGen(draftID, playerID) ==  &lt;br /&gt;
The urlKeyGen() function creates a pseudo random url key  &lt;br /&gt;
for a given bidID and playerID.  &lt;br /&gt;
&lt;br /&gt;
Input consists of the bidID and the playerID&lt;br /&gt;
&lt;br /&gt;
Output is the pseudo random url key based on the input.&lt;br /&gt;
&lt;br /&gt;
[[Category:Design]]&lt;/div&gt;</summary>
		<author><name>Rich</name></author>
	</entry>
</feed>