Jump to content
php.lv forumi

Demo


ashais13

Recommended Posts

<img src="icon_zip.gif">

<body style="background-image: url(bgfails)">

<table>

 

ps. papeti css, html table, image

Edited by cucumber
Link to comment
Share on other sites

Kada tizla struktura, tu ko, tie taksh keywordi :)

Link to comment
Share on other sites

tur naw css tas ir 1 php skripts skaties !!!

 

 

<?php
if ($handle = opendir('C:/AppServ/www/demo/')) {
while (false !== ($file = readdir($handle))) {
if (strlen($file) > 4)
{
$gabali = explode("-", $file);
$date = $gabali[1];
$mape = $gabali[2];
$mapesgabali = explode(".", $mape);
$name = $mapesgabali[0];
$year = substr($date,0,2);
$month = substr($date,2,2);
$day = substr($date,4,2);
$hour = substr($date,6,2);
$minute = substr($date,8,2);
echo "<center> $day.$month.$year             $hour:$minute             $name            
<a href=\"http://G-prikols.oo.lv/demo/$file\">Novilkt</a></br></center>";
}
}
closedir($handle);
}
?>

Link to comment
Share on other sites

Ieliec starp

 <?php
echo "<body bgcolor="#ccc" >";
if ($handle = opendir('C:/AppServ/www/demo/')) {

// un pirms
closedir($handle);
}
echo "</body>"; 
?>

 

 

ps. Un pagugle par html table vai div.

Edited by cucumber
Link to comment
Share on other sites

Partaisi tak kodu, neticu ka pats rakstiji sho php kodu.

<?php
echo "<body bgcolor="#ccc" >";
if ($handle = opendir('C:/AppServ/www/demo/')) {
while (false !== ($file = readdir($handle))) {
if (strlen($file) > 4)
{
$gabali = explode("-", $file);
$date = $gabali[1];
$mape = $gabali[2];
$mapesgabali = explode(".", $mape);
$name = $mapesgabali[0];
$year = substr($date,0,2);
$month = substr($date,2,2);
$day = substr($date,4,2);
$hour = substr($date,6,2);
$minute = substr($date,8,2);
echo "<center> $day.$month.$year             $hour:$minute             $name            
<a href=\"http://G-prikols.oo.lv/demo/$file\">Novilkt</a></br></center>";
}
}
closedir($handle);
}
echo "</body>"; 
?>

Link to comment
Share on other sites

Toch, tiko pamaniju otrai rindai jaizkatas shita, echo "<body bgcolor=\"#ccc\" >";

 

ps. Tu no php neko nezini?

Link to comment
Share on other sites

Mosh paprasi, lai kads tev visu skriptu uzraksta, NE.

Vispar cienas nav, tev pateica, kur meklet un ko, kapec man jatere laiks uz to?

Link to comment
Share on other sites

×
×
  • Create New...