📄 index.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
echo "<html>\r\n<head>\r\n<title>收取传真</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/menu/new_email.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\">收取传真</span>\r\n </td>\r\n </tr>\r\n</table>\r\n<form enctype=\"multipart/form-data\" action=\"receivenew.php\" method=\"post\" name=\"form1\">\r\n";
$query = "select COUNT(*) from EFAX_ACCOUNT where find_in_set('".$LOGIN_USER_ID."',RECEIVE_PRIV) and FAX<>''";
$cursor = exequery( $connection, $query );
$ACCOUNT_COUNT = 0;
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$ACCOUNT_COUNT = $ROW[0];
}
if ( $ACCOUNT_COUNT == 0 )
{
message( "提示", "您没有收取传真的权限。" );
exit( );
}
if ( $ACCOUNT_COUNT == 1 )
{
$query = "select ACCOUNT_ID,NAME_DESC,NAME,FAX,RECEIVE_PRIV from EFAX_ACCOUNT where find_in_set('".$LOGIN_USER_ID."',RECEIVE_PRIV) and FAX<>''";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$ACCOUNT_NAME = $ROW['NAME'];
$ACCOUNT_ID = $ROW['ACCOUNT_ID'];
$FAX = $ROW['FAX'];
$NAME_DESC = $ROW['NAME_DESC'];
}
echo "<input type='hidden' name='FAX_NAME' value='";
echo $ACCOUNT_NAME;
echo "'><input type='hidden' name='OP_FLAG' value='getnew'><input type='hidden' name='op_id' value='";
echo $ACCOUNT_ID;
echo "'><script>document.all.form1.submit();</script>";
}
else
{
$SelectFAX = "<select name='FAX_NAME'>";
$query = "select NAME_DESC,NAME,FAX,RECEIVE_PRIV from EFAX_ACCOUNT where find_in_set('".$LOGIN_USER_ID."',RECEIVE_PRIV) and FAX<>''";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$SelectFAX .= "<option value=".$ROW['NAME'].">(".$ROW['NAME_DESC'].")".$ROW['FAX']."</option>";
}
$SelectFAX .= "</select>";
echo "<table class='TableBlock' align='center'><tr><td nowrap class='TableData'> 请选择您的传真号码:".$SelectFAX." </td></tr></table><input type='hidden' name='OP_FLAG' value='getnew'>";
}
echo "<br><div align=\"center\">\r\n<input id=\"Submit1\" type=\"submit\" class=\"BigButton\" value=\"收取新传真\"></div>\r\n</form>\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -