📄 index.php
字号:
<?
include_once 'inc/auth.php';
include_once 'inc/utility_all.php';
echo '
<html>
<head>
<title>批量设置密码</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
';
echo '<s';
echo 'cript>
function CheckForm()
{
if(document.form1.TO_ID.value==""&&document.form1.PRIV_ID.value==""&&document.form1.COPY_TO_ID.value=="")
{ alert("请指定人员范围!");
return (false);
}
if(document.form1.PASS1.value!=document.form1.PASS2.value)
{ alert("确认密码不一致");
return (false);
}
return (true);
}
function clear_dept()
{
document.form1.TO';
echo '_NAME.value="";
document.form1.TO_ID.value="";
}
function LoadWindow()
{
URL="/module/dept_select";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
window.showModalDialog(URL,self,"edge:raised;scroll:1;status:0;help:0;resizable:1;dialogWidth:400px;dialogHeight:330px;dialogTop:"+loc_y+"px;dialogLeft:"';
echo '+loc_x+"px");
}
function clear_priv()
{
document.form1.PRIV_ID.value="";
document.form1.PRIV_NAME.value="";
}
function LoadPrivWindow()
{
URL="/module/priv_select";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+200;
window.showModalDialog(URL,self,"edge:raised;scroll:1;status:0;help:0;resizable:1;';
echo 'dialogWidth:250px;dialogHeight:300px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
function clear_user2()
{
document.form1.COPY_TO_NAME.value="";
document.form1.COPY_TO_ID.value="";
}
function LoadWindow2()
{
URL="/module/user_select?ID=2";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
';
echo '//window.open(URL,"read_notify","height=400,width=550,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=150,resizable=yes");
window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:400px;dialogHeight:350px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
</script>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" c';
echo 'ellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/sys_config.gif" WIDTH="22" HEIGHT="20" align="absmiddle">';
echo '<s';
echo 'pan class="big3"> 批量设置密码</span>
</td>
</tr>
</table>
';
$query = 'SELECT * from SYS_PARA where PARA_NAME=\'SEC_PASS_MIN\' or PARA_NAME=\'SEC_PASS_MAX\' or PARA_NAME=\'SEC_PASS_SAFE\'';
$cursor = exequery ($connection, $query);
while ($ROW = mysql_fetch_array ($cursor))
{
$PARA_NAME = $ROW['PARA_NAME'];
$PARA_VALUE = $ROW['PARA_VALUE'];
if (($PARA_NAME == 'SEC_PASS_MIN'))
{
$SEC_PASS_MIN = $PARA_VALUE;
continue;
}
else
{
if (($PARA_NAME == 'SEC_PASS_MAX'))
{
$SEC_PASS_MAX = $PARA_VALUE;
continue;
}
else
{
if (($PARA_NAME == 'SEC_PASS_SAFE'))
{
$SEC_PASS_SAFE = $PARA_VALUE;
continue;
}
continue;
}
continue;
}
}
echo '<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center" >
<form action="submit.php" method="post" name="form1" onsubmit="return CheckForm();">
<tr>
<td nowrap class="TableData" width="150">部门:</td>
<td class="TableData">
<input type="hidden" name="TO_ID" value="';
echo $TO_ID;
echo '">
<textarea cols=38 name=TO_NAME rows=2 class="BigStatic" wrap="yes" readonly>';
echo $TO_NAME;
echo '</textarea>
<input type="button" value="添 加" class="SmallButton" onClick="LoadWindow()" title="添加部门" name="button">
<input type="button" value="清 空" class="SmallButton" onClick="clear_dept()" title="清空部门" name="button">
</td>
</tr>
<tr>
<td nowrap class="TableData">角色:</td>
<td class="TableData">
<input type="hidden" name="';
echo 'PRIV_ID" value="">
<textarea cols=38 name="PRIV_NAME" rows=2 class="BigStatic" wrap="yes" readonly></textarea>
<input type="button" value="选 择" class="SmallButton" onClick="LoadPrivWindow()" title="选择角色" name="button">
<input type="button" value="清 空" class="SmallButton" onClick="clear_priv()" title="清空角色" name="button">
</td>
</tr>
<tr>
';
echo ' <td nowrap class="TableData">人员:</td>
<td class="TableData">
<input type="hidden" name="COPY_TO_ID" value="">
<textarea cols=38 name="COPY_TO_NAME" rows=2 class="BigStatic" wrap="yes" readonly></textarea>
<input type="button" value="选 择" class="SmallButton" onClick="LoadWindow2()" title="选择人员" name="button">
<input type="button" value';
echo '="清 空" class="SmallButton" onClick="clear_user2()" title="清空人员" name="button">
</td>
</tr>
<tr>
<td nowrap class="TableData" width="60" >密码:</td>
<td nowrap class="TableData">
<input type="password" name="PASS1" class="BigInput" size="20" maxlength="';
echo $SEC_PASS_MAX;
echo '" value=""> ';
echo $SEC_PASS_MIN;
echo '-';
echo $SEC_PASS_MAX;
echo '位';
if (($SEC_PASS_SAFE == '1'))
{
echo ',必须同时包含字母和数字';
}
echo ',为空则清空密码
</td>
</tr>
<tr>
<td nowrap class="TableData" width="60">确认密码:</td>
<td nowrap class="TableData">
<input type="password" name="PASS2" class="BigInput" size="20" maxlength="';
echo $SEC_PASS_MAX;
echo '" value=""> ';
echo $SEC_PASS_MIN;
echo '-';
echo $SEC_PASS_MAX;
echo '位';
if (($SEC_PASS_SAFE == '1'))
{
echo ',必须同时包含字母和数字';
}
echo ',为空则清空密码
</td>
</tr>
<tr>
<td nowrap class="TableControl" colspan="2" align="center">
<input type="submit" value="设置密码" class="BigButton">
</td>
</tr>
</form>
</table>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -