echo "\n</div>\n"; $Conf->footerScript("function login_type() {\n var act = jQuery(\"#homeacct input[name=action]:checked\")[0] || jQuery(\"#signin_action_login\")[0];\n fold(\"homeacct\", act.value != \"login\");\n var felt = act.value != \"login\" || !jQuery(\"#signin_email\").val().length;\n jQuery(\"#signin_\" + (felt ? \"email\" : \"password\"))[0].focus();\n jQuery(\"#signin_signin\")[0].value = {\"login\":\"Sign in\",\"forgot\":\"Reset password\",\"new\":\"Create account\"}[act.value];\n}\njQuery(\"#homeacct input[name='action']\").on('click',login_type);jQuery(login_type)"); } echo "<div class='f-i'>", Ht::submit("signin", "Sign in", array("tabindex" => 1, "id" => "signin_signin")), "</div></div></form>\n<hr class='home' /></div>\n"; $Conf->footerScript("crpfocus(\"login\", null, 2)"); } // Submissions $papersub = $Conf->setting("papersub"); $homelist = $Me->privChair || $Me->isPC && $papersub || $Me->is_reviewer() && $papersub; $home_hr = "<hr class=\"home\" />\n"; $nhome_hr = 0; if ($homelist) { echo $nhome_hr ? $home_hr : "", '<div class="homegrp" id="homelist">'; // Lists echo Ht::form_div(hoturl("search"), array("method" => "get")), '<h4><a class="qq" href="', hoturl("search"), '">Search</a>: </h4>'; $tOpt = PaperSearch::search_types($Me); echo Ht::entry("q", req("q"), array("id" => "homeq", "size" => 32, "title" => "Enter paper numbers or search terms", "class" => "hotcrp_searchbox", "placeholder" => "(All)")), " in ", PaperSearch::searchTypeSelector($tOpt, key($tOpt), 0), "\n ", Ht::submit("Search"), "</div></form></div>\n"; ++$nhome_hr; } // Review token printing function reviewTokenGroup($non_reviews) { global $Conf, $reviewTokenGroupPrinted; if ($reviewTokenGroupPrinted) { return; } $tokens = array(); foreach ($Conf->session("rev_tokens", array()) as $tt) { $tokens[] = encode_token((int) $tt); } if ($non_reviews) {