📄 content_16.php
字号:
<?php
$paraarray = getindexpara( $block_id );
$rownum = $paraarray['block_row'];
$rownum1 = $rownum - 2;
$rownum2 = intval( $rownum1 / 2 );
$rownum3 = $rownum1 - $rownum2;
echo "<div class=\"linkdiv\">\r\n<IMG SRC=\"/images/littlegif/news_bullet.gif\" WIDTH=\"15\" HEIGHT=\"10\" BORDER=\"0\" ALT=\"\">\r\n个人考勤:<a class=\"linktext\" href=\"/general/attendance/personal\" >上下班登记</a></div>\r\n";
$CUR_DATE = date( "Y-m-d", time( ) );
$flow_count = 0;
$query = "SELECT * from SAL_FLOW where to_days(BEGIN_DATE)<=to_days('{$CUR_DATE}') and to_days(END_DATE)>=to_days('{$CUR_DATE}') order by BEGIN_DATE desc LIMIT 0,1";
$cursor = exequery( $connection, $query );
while ( $row = mysql_fetch_array( $cursor ) )
{
++$flow_count;
$flow_id = $row['FLOW_ID'];
$content = $row['CONTENT'];
echo "\r\n\t<div class=\"linkdiv\">\r\n\t<IMG SRC=\"/images/littlegif/news_bullet.gif\" WIDTH=\"15\" HEIGHT=\"10\" BORDER=\"0\" ALT=\"\">\r\n\t工资上报:<a class=\"linktext\" href=\"/general/salary/submit/sal_index.php?FLOW_ID=";
echo $flow_id;
echo "\">";
echo $content;
echo "</a>\r\n\t</div>\r\n";
}
$query = "\r\n SELECT * from ATTEND_OUT,USER where ATTEND_OUT.USER_ID=USER.USER_ID and LEADER_ID='{$LOGIN_USER_ID}' and to_days(SUBMIT_TIME)=to_days('{$CUR_DATE}') and ALLOW='0' LIMIT 0,{$rownum2}\r\n ";
$cursor = exequery( $connection, $query );
while ( $row = mysql_fetch_array( $cursor ) )
{
++$flow_count;
$user_name = $row['USER_NAME'];
$submit = $row['SUBMIT_TIME'];
echo "\r\n\t<div class=\"linkdiv\">\r\n\t<IMG SRC=\"/images/littlegif/news_bullet.gif\" WIDTH=\"15\" HEIGHT=\"10\" BORDER=\"0\" ALT=\"\">\r\n\t考勤管理:<a class=\"linktext\" href=\"/general/attendance/manage/att_pass.php\" >等待批示的外出申请</a>\r\n\t";
if ( $paraarray['is_show_date'] == 1 )
{
echo "<span style=\"font-size:9px;color:#999999;\">({$submit})</span>";
}
if ( $paraarray['is_show_creator'] == 1 )
{
echo "<span style=\"font-size:12px;color:#999999;\">{$user_name}</span>";
}
echo "\t</div>\r\n";
}
$query = "\r\nSELECT * from ATTEND_LEAVE,USER where ATTEND_LEAVE.USER_ID=USER.USER_ID and LEADER_ID='{$LOGIN_USER_ID}' and status='1' and allow in('0','3') LIMIT 0,{$rownum3}\r\n";
$cursor = exequery( $connection, $query );
while ( $row = mysql_fetch_array( $cursor ) )
{
++$flow_count;
$user_name = $row['USER_NAME'];
$allow = $row['ALLOW'];
$leave_date1 = $row['LEAVE_DATE1'];
$leave_date2 = $row['LEAVE_DATE2'];
$leave_date1 = strtok( $leave_date1, " " );
$leave_date2 = strtok( $leave_date2, " " );
if ( $allow == "0" )
{
$allow = "等待批示的请假申请";
}
else
{
$allow = "等待批示的销假申请";
}
echo "\r\n\t<div class=\"linkdiv\">\r\n\t<IMG SRC=\"/images/littlegif/news_bullet.gif\" WIDTH=\"15\" HEIGHT=\"10\" BORDER=\"0\" ALT=\"\">\r\n\t考勤管理:<a class=\"linktext\" href=\"/general/attendance/manage/att_pass.php\" >";
echo $allow;
echo "</a>\r\n\t";
if ( $paraarray['is_show_date'] == 1 )
{
echo "<span style=\"font-size:9px;color:#999999;\">({$leave_date1} 至 {$leave_date2})</span>";
}
if ( $paraarray['is_show_creator'] == 1 )
{
echo "<span style=\"font-size:12px;color:#999999;\">{$user_name}</span>";
}
echo "\t</div>\r\n";
}
if ( $flow_count == 0 )
{
echo $nothingdate;
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -