Login   Register  
PHP Classes
elePHPant
Icontem

File: display.inc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of M.G.Ranga Pathmasiri  >  File Uploading Web interface  >  display.inc.php  >  Download  
File: display.inc.php
Role: Auxiliary script
Content type: text/plain
Description: This is the html file
Class: File Uploading Web interface
Simple file uploading form handling
Author: By
Last change:
Date: 10 years ago
Size: 5,085 bytes
 

Contents

Class file image Download
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../css/remove.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #ECE958}
.style2 {color: #FFFFFF}
-->
</style>
</head>

<body>

<table width="893" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr> 
    <td width="12" height="150">&nbsp;</td>
    <td colspan="2" valign="top"><form action="<?php echo $page ?>" method="post" enctype="multipart/form-data" name="form1" id="form1">
        <table width="100%" height="150" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td colspan="6" bgcolor="#FFFFCC"><?php if ($error) { ?>&nbsp; <font color="#FF0000"><strong>error:</strong></font><?php   echo $file_error  ?><?php ?></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFCC">&nbsp;</td>
            <td colspan="3" bgcolor="#FFFFCC">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td width="83" bgcolor="#FFFFCC"> <input name="Submit" type="submit" id="Submit" value="Ok"></td>
            <td colspan="3" bgcolor="#FFFFCC"> <input name="Ok" type="submit" id="Ok" value="Ok and Atach Another"></td>
            <td width="83">&nbsp;</td>
            <td width="83">&nbsp;</td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td width="83">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td width="83" bgcolor="#FFCCFF"> <div align="center"><font color="#FF0000">File</font></div></td>
            <td colspan="4" bgcolor="#FFCCFF"> <input type="file" name="file"></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>
      </form></td>
    <td width="381">&nbsp;</td>
  </tr>
  <tr> 
    <td height="46">&nbsp;</td>
    <td width="399">&nbsp;</td>
    <td width="101">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td height="170">&nbsp;</td>
    <td colspan="2" valign="top"> 
    <form action="<?php if(isset($page)) echo  $page ?>" method="post" name="form3" id="form3">

        <table border="0" cellpadding="5" cellspacing="0" width="100%" bgcolor="#FFFFFF" >
          <!--DWLayoutTable-->
          <tr> 
            <td width="80" nowrap bgcolor="#A0C6E5">Attachments</td>
            <td nowrap bgcolor="#A0C6E5">
<div align="right">Size</div></td>
            <td nowrap bgcolor="#A0C6E5">
<div align="right">Delete</div></td>
          </tr>
          <?php if (isset($html)) echo $html?>
          <tr> 
            <td colspan="2" Align="right" class="attBrdrTop"><!--DWLayoutEmptyCell-->&nbsp;</td>
            <td bgcolor="#CC66FF" class="attBrdrTop"> 
              <div align="center"> 
                <input name="remove" type="submit" id="remove" value="--Remove--">
              </div></td>
          </tr>
          <tr> 
            <td class="attBrdrTop" colspan="2" Align="right"><div align="right">Total:&nbsp; 
              </div></td>
            <td class="attBrdrTop"> 
              <?php echo  $total_value ?>
              &nbsp;MB</td>
          </tr>
        </table>
      </form> </td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td height="82"></td>
    <td> <table width="100%" border="0" cellspacing="3" cellpadding="0">
        <tr> 
          <td>Attachment size limit: <strong><em><?php echo CAPACITY ?></em></strong></td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
        </tr>
         <?php if($inough) {?>
        <tr>
          <td><div align="center"><font color="#FF0000"><strong><em><font size="4">*** 
              </font></em></strong></font><font size="4"><em><strong><font color="#999999">Some 
              Text Some Text Some Text <font color="#FF0000">***</font></font></strong></em></font></div></td>
        </tr>
        <?php exit ();}  ?>
      </table></td>
    <td>&nbsp;</td>
    <td></td>
  </tr>
  <tr>
    <td height="57"></td>
    <td valign="top"> <table cellpadding="0" border="1" cellspacing="0" width="300">
        <tr> 
          <td width="100"> 
              
            <div style="height:5px; width:<?php  echo $pvalue   ?>; font-size:2px; background-color:#339933"></div>
            
          </td>
          <td width="100"><div align="center">
              <?php  echo  ceil($pvalue)  . "%" ?>
            </div></td>
        </tr>
      </table>
      <div align="center"></div>
      <div align="center">&nbsp;</div></td>
    <td>&nbsp;</td>
    <td></td>
  </tr>
  <tr>
    <td height="171"></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td></td>
  </tr>
</table>
 
</body>
</html>