|
|
|
|
|
<?
include("bdlogin.php");
include("cab.inc.php");
if (!$nfile) $nfile++;
//echo "elementos do array:'".sizeof($img)."'";
for ($i = sizeof($img)-1;$i >= 0;$i--)
{
if ($img[$i] != '' and $img[$i] != 'none' and $img_size[$i] < 124000)
copy($img[$i], "/home/httpd/htdocs/img/".$img_name[$i]);
}
?>
<br>
<table align="center" border="1" cellspacing="0">
<tr>
<td bgcolor="#000080" colspan="2" align="center"><font color="#FFFFFF"><b>
Upload de Imagens</font>
</td>
</tr>
<form method="post" name="nimagens">
<tr>
<td bgcolor="#c0c0c0" align="left"><font color="#000000"><b>
Nmero de Imagens: <input type="Text" name="nfile" size="3" maxlength="3"
value="<? echo $nfile; ?>">
<input type="Submit" name="nimagens"
value="OK">
</td>
</tr>
</form>
<form method="post" enctype="multipart/form-data" name="upimagens">
<?
while ($nfile--)
{
?>
<tr bgcolor="#c0c0c0">
<td>
<input type="File" width="90" name="img[]">
</td>
</tr>
<?
}
?>
<tr bgcolor="#c0c0c0">
<td>
<input type="submit" name="Enviar" value="Enviar">
</td>
</tr>
</form>
</table>
<?
if (!$img)
{
include("rod.inc.php");
exit;
}
?>
<br>
<table align="center" border="1" cellspacing="0">
<tr>
<td bgcolor="#000080" colspan="" align="center"><font color="#FFFFFF"><b>
IMAGENS</font>
</td>
<td bgcolor="#000080" colspan="" align="center"><font color="#FFFFFF"><b>
HTML</font>
</td>
</tr>
<?
for ($i = sizeof($img)-1;$i >= 0;$i--)
{
if (($img[$i] != '') and ($img[$i] != 'none') and ($img_size[$i] < 124000))
{
?>
<tr bgcolor="#c0c0c0">
<td>
<?
$tipo = split("/",$img_type[$i]);
if ($tipo[1] == "pjpeg" || $tipo[1] == "gif")
{
?>
<IMG border="0" <? if ($img_size[$i] > 50000);
echo "width=\"300\" height=\"300\"";
?> SRC="http://www.fesurv.br/img/<? echo
$img_name[$i]; ?>">
<? }
else
{
echo "Arquivo do Tipo:".$img_type[$i];
}
?>
</td>
<td><font face="Verdana" color="#FFFFFF"><b>
<? if ($tipo[1] == "pjpeg" || $tipo[1] == "gif")
{?>
<IMG SRC="http://www.yoursite.com/img/<? echo $img_name[$i]; ?
>" border="0">
<?
}
else
{
?>
<a href="http://www.yoursite.com">Texto</a>
</td>
</tr>
<?
}
}
}
include ("rod.inc.php");
?> |
|
| PHP3: Formmail. Just a cgi formmail, but than in PHP. It is easy to use! Categories : HTML and PHP, Email, PHP, Perl, HTML and PHP | | | A script to generate a report from a valid mysql connection. The user has to supply which fields he wants to display in table. All properties are changable.
Categories : PHP, PHP Classes, Databases, MySQL, HTML and PHP | | | Simple PHP control CSS Calendar Categories : PHP, HTML and PHP, Calendar, Date Time, CSS | | | Automatically printing the contents of an sql table in MySQL. Categories : MySQL, PHP, HTML and PHP, Databases | | | PHP template processing Categories : PHP, Templates, HTML and PHP | | | Local-to-user date and time display regardless of time zone or where the website's server is located Categories : PHP, Date Time, HTML and PHP, Java Script | | | Reduce PHP/HTML File Sizes Categories : PHP, Compression, HTML and PHP, Zlib | | | Barcodes On The Fly With GD Categories : Ecommerce, Graphics, HTML and PHP, PHP | | | PhpView 0.1 - simple php viewer, using temporary files and frames.
Categories : PHP, PHP Options and Info, Debugging, HTML and PHP | | | Browser Detection, Redirection Type, MSIE, MOZILLA, Netscape Navigator, NS, $HTTP_USER_AGENT, HTTP_USER_AGENT Categories : PHP, HTTP, Browsers, HTML and PHP | | | Parsing html tags with php. Get an array from this function Categories : PHP, HTML and PHP, Arrays, Tag Extractors | | | A very simple way to build and do a hierarchical html categories browser without javascript , just using html php and mySql
Categories : HTML and PHP, Databases, Algorithms, PHP, MySQL | | | How can i Preload a 'SELECT MULTIPLE'? Categories : HTML and PHP, PHP, MySQL, Databases | | | Query2Report : Generating Html, Pdf and Csv Reports from SQL Query Categories : PHP, PHP, HTML, PDF, Excel | | | Simple PHP Form Field Generator Categories : PHP, Beginner Guides, Form Processing, HTML and PHP | |
| |
| |
|