Спойлер (Отобразить)
PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?PHP
- // ELITE BOARD V 1.2 Extra
- for ($i=$t;$i<$a;$i++)
- {
- if(ADMINSTATUS == 1)
- {
- $editadmin = " <a href=# title='".$locale[7]."' onclick=\"if(confirm('".$locale[154]." ')){location.href='".DIR."administrator/?unit=last&act=delit&code=".$code."';}\" ><font color=red>[x]</font></a> <a title='".$locale[8]."' href=".DIR."administrator/?unit=last&act=edit&code=".$code." target='_blanck'><font color='green'>[v]</font></a> <a href='".DIR."administrator/?unit=last&act=prikr&code=".$code."'><font color='blue'>[".$loc_pr."]</font></a>";
- }
- $gorod = $strana = '';
- $nkat = findmes($kat,0,1,"files/kat.dat");
- if ($nkat == "?"){break;}
- $nskat = ""; $nsskat="";
- for ($ii=0; $ii<count($file2); $ii++)
- {
- }
- for ($ii=0; $ii<count($file2); $ii++)
- {
- }
- for($ii=0; $ii<count($file2); $ii++)
- {
- }
- for($ii=0; $ii<count($file2); $ii++)
- {
- }
- $datdob = $dat;
- if ($adress==""){$adress=="";}else{$adress = $locale[9].$adress."<br>";}
- if ($tel==""){$tel=="";}else{$tel = $locale[10].$tel."<br>";}
- if ($faks==""){$faks=="";}else{$faks = $locale[11].$faks."<br>";}
- if ($email != "")
- {
- if (EMAIL_ECHO == "esc")
- {
- }
- if (EMAIL_ECHO == "standart")
- {
- $email = "<a href='mailto:".$email."'>".$email."</a><br>";
- }
- if (EMAIL_ECHO == "script")
- {
- $email = "Email: <a href=javascript:mail('".$code."')>".$locale[12]."</a><br>";
- }
- }
- if ($site != "")
- {
- $site = "URL: <a target=blank href=http://".$site.">".$site."</a><br>";
- }
- $imag = $locale[13];
- if (IMG_ECHO == "on")
- {
- $cr2 = 0;
- $cr3 = true;
- for($cr=0; $cr < COLIMG; $cr++)
- {
- $r = false;
- if ($r)
- {
- if($cr3)
- {
- $cr3 = false;
- }
- else
- {
- $cr2++;
- if($cr2 == 1)
- {
- $imag .= "<br>Еще фото: ";
- }
- $imag .= "<a title='".$locale[350]."' href=\"javascript:window.open('".DIR."images/thumb_big/".$code.$cr.$r."', 'example','width=620,height=450');void(0);\" style=\"color: black\">[".$cr2."]</a> ";
- }
- }
- }
- }
- if (TGET == "rewrite")
- {
- }
- else {$level = "";}
- if(OTOB == 'newwin')
- {
- $tema = "<a href=javascript:readfull('".$code.$level."') title='".$locale[15]."' class='doska1'>".$tema."</a>".$editadmin;
- }
- if(OTOB == 'onpage')
- {
- if(TGET == 'rewrite')
- {
- $tema = "<a href='".DIR."mess-".$code.".html' title='".$locale[15]."' class='doska1'>".$tema."</a>".$editadmin;
- }
- if(TGET == 'standart')
- {
- $tema = "<a href='?mess=".$code."' title='".$locale[15]."' class='doska1'>".$tema."</a>".$editadmin;
- }
- }
- $area1 = "";
- $area2 = "";
- {
- $area = "";
- foreach($filearea as $v_)
- {
- {
- {
- if($v__v[0] == $code)
- {
- if($atype == "select" || $atype == "text") {$area1 .= "".$aname.": ".$v__v[1]."<br>"; }
- if($atype == "textarea"){ $area2 .= "<hr><b>".$aname.":</b><br>".$v__v[1]."";}
- }
- }
- }
- }
- }
- {
- if(OTOB == 'newwin')
- {
- $usertext = substr($usertext, 0, LENGTH)."<a href=javascript:readfull('".$code.$level."') title='".$locale[16]."'>... ".$locale[16]." >></a>";
- }
- else
- {
- }
- }
- $usertext .= $area2;
- $nkat = $nkat."/".$nskat."/".$nsskat;
- {
- }
- {
- }
- $strana = $strana."/".$gorod;
- {
- }
- //
- if(REG)
- {
- if($_COOKIE['autor'] == $autor)
- {
- }
- }
- }
- [b]Это таблица о которой идет речь.[/b]
- [b]echo "<table border='1' cellspacing='0' width='100%' cellpadding='5'><tr>\n";
- print "<tr><td>№</td>
- <td>Адрес</td>
- <td>Объект</td>
- <td>Общая</td>
- <td>Кухня</td>
- <td>Комнаты</td>
- <td>Цена</td>
- <td>Этаж</td>
- <td>Контакты</td>
- <td>Комментарий</td>
- </tr>";
- $cols=3;
- $posttest=array("$code, $kat, $skat, $sskat, $region_, $deltime, $dat, $autor, $adress, $tel, $faks, $site, $email, $status, $tema, $usertext, $lock");
- <td>$gorod</td>
- <td>$tema</td>
- <td>$tema</td>
- <td>$tema</td>
- <td>$tema</td>
- <td>$tema</td>
- <td>$tema</td>
- <td>$tel $autor</td>
- <td>$usertext</td>";}
- for($i=$t;$i<$a;$i++)
- for ($iss =0; $iss<$count; $iss++) {
- $iss2=$iss+1;
- if (($iss % $cols)==""){echo"<tr>\n";}
- echo "<td>\n";
- if ($iss2==$count){echo "$Dop\n";}
- }
- echo "</table>";
- [/b]
- ?>