<input type="hidden" name="VOTE_ID" value="<?php echo intval($VOTE_ID); ?> "> <input type="hidden" name="lang" value="<?php echo LANGUAGE_ID; ?> "> <?php echo GetMessage("VOTE_TEMPLATE"); echo SelectBoxFromArray("TEMPLATE", GetTemplateList(), htmlspecialcharsbx($TEMPLATE), "", "", true); ?> <input <?php if ($VOTE_RIGHT < "W") { echo "disabled"; } ?> type="submit" name="save" value="<?php echo GetMessage("VOTE_SAVE"); ?> "> <?php echo bitrix_sessid_post(); ?> </form> <?php ShowVote($VOTE_ID, $TEMPLATE); } else { $APPLICATION->IncludeComponent("bitrix:voting.form", "with_description", array("VOTE_ID" => $VOTE_ID, "VOTE_RESULT_TEMPLATE" => "vote_results.php?VOTE_ID=" . $VOTE_ID, "CACHE_TYPE" => "N")); } require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
<input name="Submit" type="button" class="btn_grey" value="注册" onclick="window.location.href='userreg.php'"> </div></td> </tr> </form> </table></td> </tr> </table> <table width="100%" height="194" border="0" class="tableBorder_gray"> <tr> <td height="31" bgcolor="#FF9900"><strong>站内调查</strong></td> </tr> <tr><?php include "function.php"; ?> <td height="155" valign="top"><?php echo ShowVote(); ?> </td> </tr> </table></td> <td height="325" align="center" valign="top" style="padding:5px;"><table width="564" height="315" border="0" class="tableBorder_grey"> <tr bgcolor="#DBEBF7"> <td width="182" height="35"><div align="left"><strong>新书推荐</strong></div></td> <td width="182"><div align="left"><strong>借阅排行</strong></div></td> <td width="184"><div align="left"><strong>必读书目</strong></div></td> </tr> <tr> <td height="270" valign="top"><?php $sql = "select * from tb_bookinfo where tuijian=1 order by id desc,inTime desc"; $result = mysql_query($sql, $conn); while ($row = mysql_fetch_array($result)) {
function ShowCurrentVote($GROUP_SID, $site_id=SITE_ID) { $CURRENT_VOTE_ID = GetCurrentVote($GROUP_SID, $site_id, 2); if (intval($CURRENT_VOTE_ID)>0) ShowVote($CURRENT_VOTE_ID); }