?? index.php
字號:
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
echo "\r\n<html>\r\n<head>\r\n<title>參數設置</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n";
echo "<s";
echo "cript>\r\nfunction CheckForm()\r\n{\r\n msg='添加后將不能更改和刪除,確定添加嗎?';\r\n if(window.confirm(msg))\r\n {\r\n form1.submit();\r\n }\r\n}\r\n</script>\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n <tr class=\"tablehead1\">\r\n <td ><img src=\"/images/manage/asset.gif\" align=\"absmiddle\">參數配置\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n";
if ( check_cfg( ) )
{
$connection = openconnection( );
$query = "select * from CP_ASSETCFG";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$DPCT_SORT = $ROW['DPCT_SORT'];
$BAL_SORT = $ROW['BAL_SORT'];
}
if ( $DPCT_SORT == "M" )
{
$DPCT_SORT_DESC = "月";
}
else if ( $DPCT_SORT == "S" )
{
$DPCT_SORT_DESC = "季";
}
else if ( $DPCT_SORT == "Y" )
{
$DPCT_SORT_DESC = "年";
}
if ( $BAL_SORT == "01" )
{
$BAL_SORT_DESC = "殘值";
}
else if ( $BAL_SORT == "02" )
{
$BAL_SORT_DESC = "殘值率";
}
echo "<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"5\">\r\n <tr class=\"TableHeader\">\r\n <td nowrap width=\"100\" >計提折舊方式</td>\r\n <td nowrap >殘值處理方式</td>\r\n </tr>\r\n <tr class=\"TableLine1\">\r\n <td nowrap >";
echo $DPCT_SORT_DESC;
echo "</td>\r\n <td nowrap >";
echo $BAL_SORT_DESC;
echo "</td>\r\n </tr>\r\n</table>\r\n";
}
else
{
echo "<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n <tr class=\"tablehead1\">\r\n <td ><a href=\"#\" onclick=\"CheckForm();\"><img src=\"/images/button/save.gif\" border=\"0\" title=\"添加\"></a></td>\r\n </tr>\r\n</table>\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"5\">\r\n <form action=\"add.php\" method=\"post\" name=\"form1\">\r\n <tr>\r\n <td nowrap width=\"100\" class=\"TableLine2";
echo "\">計提折舊方式</td>\r\n <td nowrap align=\"left\" class=\"TableLine1\">\r\n ";
echo "<s";
echo "elect name=\"DPCT_SORT\" class=\"BigSelect\">\r\n <option value=\"M\" selected>月</option>\r\n <option value=\"S\">季</option>\r\n <option value=\"Y\">年</option>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap width=\"100\" class=\"TableLine2\">殘值處理方式</td>\r\n <td nowrap align=\"left\" class=\"TableLine1\">\r\n ";
echo "<s";
echo "elect name=\"BAL_SORT\" class=\"BigSelect\">\r\n <option value=\"01\" selected>殘值</option>\r\n <option value=\"02\">殘值率</option>\r\n </select>\r\n </td>\r\n </tr>\r\n </form>\r\n</table>\r\n";
}
echo "<br>\r\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"3\">\r\n <tr>\r\n <td background=\"/images/dian1.gif\" width=\"100%\"></td>\r\n </tr>\r\n</table>\r\n<br>\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" >\r\n <tr>\r\n <td >增減處理類型\r\n </td>\r\n </tr>\r\n</table>\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"5\">\r\n <tr class=\"TableHeader\">\r\n <td now";
echo "rap width=\"80\" >類別</td>\r\n <td nowrap width=\"80\" >名稱</td>\r\n <td >描述</td>\r\n </tr>\r\n";
$query = "select * from CP_PRCS_PROP order by PRCS_CLASS";
$cursor = exequery( $connection, $query );
$ROW_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
++$ROW_COUNT;
$PRCS_CLASS = $ROW['PRCS_CLASS'];
$PRCS_DESC = $ROW['PRCS_DESC'];
$PRCS_LONG_DESC = $ROW['PRCS_LONG_DESC'];
if ( substr( $PRCS_CLASS, 0, 1 ) == "A" )
{
$PRCS_CLASS_DESC = "增加";
}
else if ( substr( $PRCS_CLASS, 0, 1 ) == "D" )
{
$PRCS_CLASS_DESC = "減少";
}
if ( $ROW_COUNT % 2 )
{
$TableLine = "TableLine1";
}
else
{
$TableLine = "TableLine2";
}
echo " <tr class=\"";
echo $TableLine;
echo "\">\r\n <td nowrap width=\"80\" >";
echo $PRCS_CLASS_DESC;
echo "</td>\r\n <td nowrap width=\"80\" >";
echo $PRCS_DESC;
echo "</td>\r\n <td width=\"300\" align=\"left\">";
echo $PRCS_LONG_DESC;
echo "</td>\r\n </tr>\r\n";
}
echo "</table>\r\n</body>\r\n</html>\r\n";
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -