From: lbergman Date: Wed, 5 Jul 2000 15:45:36 +0000 (+0000) Subject: Added dynamic tabindex to text entry fields. Commented out error code until I can... X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=f2da9db06d1722ca4c51f2cbba7925ff8b9033d4;hp=4d859bbb554c7577130440bf38edd8d42cfd5bea Added dynamic tabindex to text entry fields. Commented out error code until I can figure a way to fix it. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@595 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/addressbook_csvimport.php b/src/addressbook_csvimport.php index 9899f361..d98d698d 100644 --- a/src/addressbook_csvimport.php +++ b/src/addressbook_csvimport.php @@ -31,7 +31,8 @@ include("../functions/strings.php"); include("../src/load_prefs.php"); - + +/** commented out until a way to deal with file rnaming is figured out. displayPageHeader($color, "None"); if (!isset($smusercsv) || $smusercsv == "none") { @@ -44,12 +45,16 @@ echo "\n"; exit; } +**/ /** ** Script-wide vars. Used all over the place or something you might want to change later. ** $example -->Sets how many rows of user data the script will use to play with before final write. ** $abook ---->Setup the addressbook functions for Pallo's Addressbook. + ** $tabindex ->A starting value for the loop to assign a tabindex value for the generated text input fields. + ** As long as this value is greater than the number of static submit buttons all should work fine. **/ + $tabindex = 10; $example = 6; $abook = addressbook_init(true, true); @@ -104,17 +109,17 @@ echo " ", _("Arrange your data to fit the 5 address book fields. "), _("Do this by inserting the data's field number under the field for which you wish it to be included into the address book. "), _("For example: fields 5, 6, and 7 need to go into the info field 5. "), _("The boxes under field 5 would contain 5, 6, and 7 in seperate boxes. "), "\n"; echo " \n"; echo " ", _("Submit Your reorganized data."), "      ", "\n"; - echo " ", "      \n"; + echo " ", "      \n"; echo " \n"; echo " \n"; echo " \n"; echo " ", _("Erase entries and re-enter field numbers."), "      ", "\n"; - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " ", _("View full set of imported records in their new format."), "      \n"; - echo " \n"; + echo " \n"; echo " "; echo " "; echo " \n"; @@ -127,7 +132,7 @@ echo " \n"; echo " ", _("Final approval. "); echo " ", _("After reviewing the rearranged data for accuracy, click \"Finish\"."), "      \n"; - echo " \n"; + echo " \n"; echo " "; echo " \n"; echo "\n"; @@ -179,28 +184,33 @@ echo " ", _("Field Number: "), "0", "
\n"; // number the fields so they know what to put where reset($nickname); while(list($k,$v)=each($nickname)) { // print out the text boxes for this var - echo"
\n"; + echo"
\n"; + $tabindex++; } echo " \n"; echo " ", _("Field Number: "), "1", "
\n"; // number the fields so they know what to put where reset($firstname); while(list($k,$v)=each($firstname)) { // print out the text boxes for this var - echo"
\n"; + echo"
\n"; + $tabindex++; } echo " \n"; echo " ", _("Field Number: "), "2", "
\n"; // number the fields so they know what to put where reset($lastname); while(list($k,$v)=each($lastname)) { // print out the text boxes for this var - echo"
\n"; + echo"
\n"; + $tabindex++; } echo " \n"; // email isn't an array so no loop needed echo " ", _("Field Number: "), "3", "
\n"; // number the fields so they know what to put where - echo " \n"; + echo " \n"; + $tabindex++; echo " \n"; echo " ", _("Field Number: "), "4", "
\n"; // number the fields so they know what to put where reset($label); while(list($k,$v)=each($label)) { // print out the text boxes for this var - echo"
\n"; + echo"
\n"; + $tabindex++; } echo " \n";