/var/www/onesolution.com.hk/support/sys_other.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php require("checkuser.php"); ?>
<?
if ($logged_in == 1) {
} else {
    
header('Location: logon.php');
}
?>
<?php 
require("configure.php"); ?>

<html>
<head>
<title>One Solution Limited - Support</title>
<link rel="stylesheet" href="main.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<script language="JavaScript" type="text/javascript" src="richtext.js"></script>
<script type="text/javascript" src="calendarDateInput.js"></script>
<script type="text/javascript">
function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}
</script>
</head>
<body>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td class='pageheader' align="left" valign="middle" height="100"><img src="images/iconUser.png">&nbsp;<b>System</b></td>
    <td class='content' align="center" width="150"></td>
</tr>
</table>

<?php
$sql 
"select content from sys_other where id = 1";
$result mysql_query($sql);
$row mysql_fetch_assoc($result);
?>

<form action='sys_save.php' method='post'>
<div class="content">
 BCC: <input type='text' name='bcc' value='<?php echo $row['content']; ?>' style="width:300px" class="content"/></div>
<br />
 &nbsp;&nbsp;&nbsp;
<input type='submit' value='Save' class="content"/>
</form>

</body>
</html>
<?php
function getSelect($field1$field2)
{
    if (
$field1 == $field2)
    {
        return 
"selected";
    }
    else
    {
        return 
"";
    }
}
?>
<?php
function get_time_difference$start$end )
{
    
$uts['start']      =    strtotime$start );
    
$uts['end']        =    strtotime$end );
    if( 
$uts['start']!==-&& $uts['end']!==-)
    {
        if( 
$uts['end'] >= $uts['start'] )
        {
            
$diff    =    $uts['end'] - $uts['start'];
            if( 
$days=intval((floor($diff/86400))) )
                
$diff $diff 86400;
            if( 
$hours=intval((floor($diff/3600))) )
                
$diff $diff 3600;
            if( 
$minutes=intval((floor($diff/60))) )
                
$diff $diff 60;
            
$diff    =    intval$diff );            
            return( array(
'days'=>$days'hours'=>$hours'minutes'=>$minutes'seconds'=>$diff) );
        }
        else
        {
            
trigger_error"Ending date/time is earlier than the start date/time"E_USER_WARNING );
        }
    }
    else
    {
        
trigger_error"Invalid date/time data detected"E_USER_WARNING );
    }
    return( 
false );
}
?>