📄 index1.php
字号:
<?
include_once 'inc/auth.php';
include_once 'inc/utility_all.php';
$ITEMS_IN_PAGE = 15;
if (!isset ($start))
{
$start = 0;
}
echo '
<html>
<head>
<title>投票管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript>
function show_reader(VOTE_ID)
{
URL="show_reader.php?VOTE_ID="+VOTE_ID;
myleft=(screen.availWidth-500)/2;
window.open(URL,"read_vote","height=500,width=700,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
}
function delete_vote(VOTE_ID,start)
{
msg=\'确认要删除该投票么?\';
if(window.confirm(msg))
{
URL="delete.php?VOTE_I';
echo 'D=" + VOTE_ID + "&start=" + start;
window.location=URL;
}
}
function delete_all()
{
msg=\'确认要删除所有投票么?\';
if(window.confirm(msg))
{
URL="delete_all.php";
window.location=URL;
}
}
function check_all()
{
for (i=0;i<document.all("email_select").length;i++)
{
if(document.all("allbox").checked)
document.all("email_select").item(i).checked=true;
e';
echo 'lse
document.all("email_select").item(i).checked=false;
}
if(i==0)
{
if(document.all("allbox").checked)
document.all("email_select").checked=true;
else
document.all("email_select").checked=false;
}
}
function check_one(el)
{
if(!el.checked)
document.all("allbox").checked=false;
}
function delete_mail()
{
delete_str="";
for(i=0;i<docume';
echo 'nt.all("email_select").length;i++)
{
el=document.all("email_select").item(i);
if(el.checked)
{ val=el.value;
delete_str+=val + ",";
}
}
if(i==0)
{
el=document.all("email_select");
if(el.checked)
{ val=el.value;
delete_str+=val + ",";
}
}
if(delete_str=="")
{
alert("要删除投票,请至少选择
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -