/home/mjc1/public_html/manage/svrCondition.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
 <?
    
include("category/opSvrcommon.php");
    include(
"memberManage.php");
 
     if(
$keyword)
    {
        
$sqlStr " and a.sdate = '$keyword'  ";
    }
    else
    {
        
$yesterDay =     date("Y-m-d"strtotime("-1 Day")); 
        
$sqlStr " and a.sdate = '$yesterDay'  ";
    }
    
  
$total_sql  .=   "select a.sdate,a.svrip , round(b.freesize/1024) as freesize
                                from hddfree_m as a
                                inner join hddfree_t as b on a.idx = b.idx and b.drvname = 'C'
                                where 1=1  
$sqlStr  order by a.svrip ";


  
$result      mysql_query($total_sql) or die (mysql_error());
  
$nTotalCount mysql_num_rows($result);
?>
<title>¼­¹öÇöȲ</title>
<style type=text/css>
table { font-color;#000000;font-size:9pt }
.td {BACKGROUND-COLOR:#C1CDD8}
.nontd {BACKGROUND-COLOR:#ffffff}
</style>
<script> 
    
 function Search(){
        searchFrm.submit();   
   }
</script>
<br>
<iframe name="ifrm" width="0" height="0" style="border:0px;"></iframe>
<!-- Å¸ÀÌÆ² ½ÃÀÛ-->
<table align="center" border="0" width="960">
    <tr>
        <td style="padding:0 0 0 15px;" width="300">
         <img src="./img/subtitledot.gif" > <font color = "black" size="3"><B>¼­¹öÇöȲ</B></font>
        </td>
    </tr>
    <tr>
        <td colspan="2" width="960" height="5"><img src="./img/subtitleline.gif" width="950" height="2" border="0" align=top></td>
    </tr>
</table>
<table align=center border=1 cellpadding=3 style='border-collapse: collapse' cellspacing=0  bordercolor='#BDBEBD' width=961>
   <form name='searchFrm' method=post>
    <tr>
        <td align=left bgcolor=#f6f6f6>
  ³¯Â¥ : <input type='text' name='keyword' size=12 value='<?=$keyword;?>'>&nbsp;&nbsp;(¿¹ : 2012-09-18)
 &nbsp;&nbsp;<a href='javascript:Search();'><img src='./img/newsearch.gif' border=0 align=absmiddle></a>
<br>
 </td>
 </tr>
 <input type=hidden name='mode' value='search'>
 </form>
 </table> 
<br>
<!-- Å¸ÀÌÆ² ³¡--> 
 <table align=center border=1 cellpadding=3 style='border-collapse: collapse' cellspacing=0  bordercolor='#BDBEBD' width=961>
    <form name='pro_storeFrm'>
<?
 
if($num mysql_num_rows($result)){
      
     while(
$row  mysql_fetch_array($result)) {

         
$svrStr ".";

        for(
$i 0$i $row[freesize]; $i++){
            
$svrStr $svrStr.".";
        }
?>
    <tr>
         <b><?= $row[svrip]?>&nbsp;&nbsp;</b><span style="background:blue"><font color = blue><?= $svrStr?></font></span>&nbsp;<font color = red><b><?= $row[freesize]?>GB</b></font><br><br>
    </tr>  
<? 
    

 } 
?>
</table>
<p align="center">&nbsp;</p>