Exemplo n.º 1
0
<?php

$type = "products";
require "up.php";
if (!$id) {
    $id = '3';
}
$res = runsql("select p.*, p.Name_{$lang} as Name, p.Description_{$lang} as Description, t.Name_{$lang} as Type from ut_products p \r\nleft outer join ut_product_types t using(TypeID) where ProductID={$id}");
$r = mysql_fetch_array($res);
print "\r\n\t<h3>" . $r[Name] . "</h3><br>\r\n     \t<h5> ласс: " . $r[Type] . "</h5><br>";
if ($r[Image]) {
    print "<img src=\"{$img_url}?id={$r['ProductID']}&record=9\"><br>";
}
print settags($r[Description]);
require "bottom.php";
Exemplo n.º 2
0
        print "\r\n                <tr>\r\n                  <td width=\"130\" align=\"center\" valign=\"top\"><img src=\"{$img_url}?id={$r['MaterialID']}&record=2\" alt=\"\" width=\"69\"></td>\r\n                  <td valign=\"top\"><h5>" . $r[Title] . "</h5>\r\n                    <p>" . $r[Headline] . "</p>\r\n                    <p align=\"right\"><a href=\"{$site_url}" . "news.php?id={$r['MaterialID']}\" class=\"lnk\">подробнее</a></p></td>\r\n                </tr>\r\n\t     ";
    }
    ?>
              </table>
<?php 
    print "<table width=100% cellspacing=0 cellpadding=2 border=0>";
    $form->Pages('');
    print "</table>";
    ?>
    
          </td>
            </tr>
            <tr>
            
              <td valign="top"><img src="images/mid/shad2.jpg" alt="" width="248" height="27"></td>

            </tr>

          </table>
<?php 
} else {
    $res = runsql("select MaterialID,Date,Headline_{$lang} as Headline, Name_{$lang} as Title, Message_{$lang} as Message, Small from ut_materials where MaterialID={$id}");
    while ($r = mysql_fetch_array($res)) {
        print "\r\n\t\t\t<h3>" . $r[Title] . "</h3><br>";
        if ($r[Small]) {
            print "<img src=\"{$img_url}?id={$r['MaterialID']}&record=1\" alt=\"{$r['Title']}\" align=\"left\" style=\"margin-right: 6px;\"></img>";
        }
        print "<p>" . settags($r[Message]) . "</p>";
    }
}
require "bottom.php";
Exemplo n.º 3
0
 function DrawRow($r, $numrow)
 {
     global $debug, $img_url, $site_url, $r, $gd, $db, $number, $_POST, $auth, $dbname, $img_url;
     if ($this->default) {
         $this->val = $this->default;
     }
     if ($r[$this->name]) {
         $this->val = $r[$this->name];
     } elseif ($_POST[$this->name]) {
         $this->val = $_POST[$this->name];
     } elseif ($this->text) {
         $this->val = $this->text;
     }
     if (is_Array($this->val)) {
         $this->val = $this->val[$numrow];
     }
     //if(strstr($this->val,"\$")) $this->val=set_params($this->val);
     //if(strstr($this->text,"\$")) $this->text=set_params($this->text);
     $name = $this->name;
     if (strlen($r[$name])) {
         $this->val = $r[$name];
     }
     if (strstr($this->format, "&lt") || strstr($this->format, "&gt")) {
         $this->format = settags($this->format);
     }
     if (strstr($this->format, "\$")) {
         $format = set_params($this->format);
     } else {
         $format = $this->format;
     }
     if ($this->type != "hidden") {
         if ($this->tdstyle && strstr($this->tdstyle, "\$")) {
             print "<td " . set_params($this->tdstyle) . ">\n";
         } else {
             print "<td>";
         }
         if ($this->align == "center") {
             print "<center>";
         } elseif ($this->align) {
             print "<div align=\"{$this->align}\">";
         }
         switch ($this->type) {
             case "flag":
                 /*
                 			if(strlen($r[$name])>0&&!strstr($name,"ID")) print "<img src=\"$site_url"."cls/images/flag.php?id=$r[0]&dbname=$db->dbname\" title=\"$r[Country]\" border=0 width=21px height=13px/>";
                 			elseif(strlen($r[$name])>0) print "<img src=\"$site_url"."cls/images/flag.php?id=$r[$name]\" width=21px height=13px border=0 title=\"$r[Country]\"/>";
                 */
                 print "<img src=\"{$site_url}" . "images/flag/{$r[$name]}.gif\" width=21px height=13px border=0 title=\"{$r['Country']}\"/>";
                 break;
             case "kit":
                 if (strlen($r[$name]) > 0) {
                     print "<img src=\"/images/ut_kits/kit/{$r['0']}.jpg\" border=0>";
                 }
                 break;
             case "showimage":
                 $table = $this->table;
                 if ($r[$name]) {
                     print "<img src=\"{$img_url}?id={$r['0']}&table=" . $table->table . "\" title=\"{$r['Name']}\" alt=\"{$r['Name']}\" border=0>";
                 }
                 break;
             case "team":
                 $name2 = $name . "ID";
                 if (!$r[TeamID]) {
                     $r[$name2];
                 }
                 if ($r[Flag] && $r[CountryID]) {
                     print "<img src=\"/cls/images/flag.php?id={$r['CountryID']}\" border=0 title=\"{$r['Country']}\" width=21px height=13px/> ";
                 }
                 print "<a href=\"/xml/players/roster.php?id={$r['TeamID']}\">";
                 if ($r[TeamID] == $auth->id) {
                     print "<b>";
                 }
                 print $r[$name];
                 print "</a>";
                 break;
             case "mail":
                 if ($r[Status] == 0) {
                     print "<img src=\"/images/engine/mail.gif\" width=14px height=11px/>";
                 } else {
                     print "<img src=\"/images/engine/read.gif\">";
                 }
                 print " <a href=\"{$PHP_SELF}?id={$r['MessageID']}\">";
                 if ($r[Status] == 0) {
                     print "<b>" . $this->val . "</b>";
                 } else {
                     print $this->val;
                 }
                 print "</a>";
                 break;
             case "icon":
                 print "<center><a href=" . set_params($this->text) . "><img src=\"{$format}\" {$this->style} border=0></a>";
                 break;
             case "icq":
                 $this->val = str_replace(" ", "", $this->val);
                 $icq = str_replace("-", "", $this->val);
                 if ($this->val) {
                     print "<img src=\"http://status.icq.com/online.gif?icq={$icq}&img=5\"  height=18px width=18px/> ";
                 }
                 if ($this->val) {
                     print "<a href=\"http://wwp.icq.com/scripts/contact.dll?msgto={$icq}\">{$this->val}</a>";
                 }
                 break;
             case "date":
                 if (is_numeric($r[$name]) && $r[$name] > 0) {
                     print "<nobr>" . date($format, $this->val) . "</nobr>";
                 } elseif ($r[$name] > 0) {
                     print $r[$name];
                 }
                 break;
             case "number":
                 $number++;
                 print "<div align=right>" . $number . ".";
                 break;
             case "numeric":
                 if ($this->size == 20) {
                     $this->size = 3;
                 }
                 print "<input name=\"" . $this->name . "[" . ($numrow - 1) . "]\" onkeypress=\"javascript: return checknumeric(event)\" onblur='FocusOUT(this);' onfocus='FocusIN(this);' type=\"text\" maxlength=\"" . $this->maxlength . "\" value=\"" . $this->val . "\" size=" . $this->size . " {$format}/>";
                 break;
             case "string":
                 print "<input name=\"" . $this->name . "[" . ($numrow - 1) . "]\" onfocus='FocusIN(this);' onblur='FocusOUT(this);' type=\"text\" maxlength=\"" . $this->maxlength . "\" value=\"" . $this->val . "\" size=" . $this->size . " {$format}/>";
                 break;
             case "image":
                 print "<input type=\"file\" name=\"" . $this->name . "[]\" style='width:170px'/>";
                 break;
             case "text":
                 print "<textarea {$this->format} name=\"" . $this->name . "[" . ($numrow - 1) . "]\" cols=20 rows=2 maxlength=\"" . $this->maxlength . "\">" . str_replace("<br />", "\r\n", $this->val) . "</textarea>";
                 break;
             case "file":
                 print "<input type=\"file\" name=\"" . $this->name . "[]\" style='width:170px'/>";
                 break;
             case "preview":
                 if (strlen($r[$name]) > 0) {
                     print "<img src=\"{$img_url}" . "?id={$r['0']}&table=" . $this->table->table . "&dbname=" . $dbname . "\" border=0><br>";
                 }
                 break;
             case "dots":
                 print "<nobr>";
                 if ($this->val) {
                     print dots($this->val) . $format;
                 } else {
                     print "0" . $format;
                 }
                 break;
             case "money":
                 print "<nobr>";
                 if ($this->val) {
                     print $format . dots($this->val);
                 } elseif (strlen($this->val)) {
                     print $format . "0";
                 }
                 break;
             case "report":
                 print "<a href=\"{$site_url}" . "admin/adm_games.php?id=" . $r[0] . "\"><img src=\"{$site_url}" . "images/icons/report.gif\" width=17px height=16px border=0 alt=\"" . sysmessage(2) . "\" title=\"" . sysmessage(2) . "\"/></a>";
                 break;
             case "golden":
                 print "<nobr>";
                 print dots($this->val) . $format . $gd;
                 break;
             case "edit":
                 print "<a href=\"{$PHP_SELF}?act=update&id={$r['0']}&type=" . $this->table->type . "\"><img src=\"{$site_url}" . "images/engine/edit.png\" width=16px height=16px border=0 alt=\"" . sysmessage(2) . "\" title=\"" . sysmessage(2) . "\"/></a>";
                 break;
             case "delete":
                 print "<a href=\"{$PHP_SELF}?act=delete&id={$r['0']}&step=1&type=" . $this->table->type . "\" onclick=\"return confirm('" . sysmessage(17) . "')\"><img src=\"{$site_url}" . "images/engine/drop.png\" width=16px height=16px border=0 alt=\"" . sysmessage(1) . "\" title=\"" . sysmessage(1) . "\"/></a>";
                 break;
             case "up":
                 print "<a href=\"{$PHP_SELF}?act=up&id={$r['0']}&step=1&type=" . $this->table->type . "\"><img src=\"{$site_url}" . "images/engine/up1.gif\" width=12px height=12px border=0  /></a>";
                 break;
             case "down":
                 print "<a href=\"{$PHP_SELF}?act=down&id={$r['0']}&step=1&type=" . $this->table->type . "\"><img src=\"{$site_url}" . "images/engine/down1.gif\" width=12px height=12px border=0 /></a>";
                 break;
             case "remove":
                 print "<a href=\"{$PHP_SELF}?act=remove&id={$r['0']}&step=1&type=" . $this->table->type . "\" onclick=\"return confirm('" . sysmessage(17) . "')\"><img src=\"{$site_url}" . "images/engine/drop.png\" width=16px height=16px border=0 alt=\"" . sysmessage(1) . "\" title=\"" . sysmessage(1) . "\"/></a>";
                 break;
             case "checkbox":
                 print "<input class=\"checkbox\" type=\"checkbox\" name=\"" . $this->name . "[" . ($numrow - 1) . "]\"";
                 if ($r[$this->name] == 1) {
                     print " checked";
                 }
                 print "/>";
                 break;
             case "radio":
                 print "<input  class=\"radio\" type=\"radio\" name=\"" . $this->name . "\"";
                 print " value='{$this->val}'";
                 if ($this->val == $this->text) {
                     print " checked=1";
                 }
                 print "/>";
                 break;
             case "list":
                 print "<select onfocus='FocusIN(this);' onblur='FocusOUT(this);' name=\"" . $this->name . "[]\">";
                 if (!strlen($this->text)) {
                     print "<option value=\"{$this->default}\">-";
                     print "</option>";
                 }
                 $ar = explode(";", $this->vars);
                 $n = 0;
                 foreach ($ar as $v) {
                     print "<option value=\"{$n}\"";
                     if ($r[$this->name] == $n || $this->text == $v && !$r[$this->name]) {
                         print " selected";
                     }
                     print ">{$v}</option>\n";
                     $n++;
                 }
                 print "</select>\n";
                 break;
             case "2dreport":
                 if ($r[Finished]) {
                     print "<a href=\"{$site_url}" . "xml/tour/getmatch.php?id=" . set_params("\$MatchID;") . "\" target=_blank><img src=\"{$site_url}" . "images/engine/goal.gif\" width=15px height=15px border=0/></a>";
                 }
                 break;
             case "sqlist":
                 $res = runsql($this->sql);
                 if (mysql_num_rows($res)) {
                     print "<select onfocus='FocusIN(this);' onblur='FocusOUT(this);' name=\"" . $this->name . "[]\">\n";
                     if (!strlen($this->text)) {
                         print "<option value=\"{$this->default}\">-";
                         print "</option>";
                     }
                     $n = 0;
                     while ($r1 = mysql_fetch_array($res)) {
                         print "<option value=\"{$r1['0']}\"";
                         if ($r1[2]) {
                             print " style='background-color:{$r1['2']}' ";
                         }
                         if ($this->val == $r1[0] && $this->val || $r[$this->name] == $r1[0] || ($this->text == $r1[1] || $this->text == "{$n}") && !$r[$this->name]) {
                             print " selected";
                         }
                         print ">";
                         print "{$r1['1']}</option>\n";
                         $n++;
                     }
                     print "</select>\n";
                 } else {
                     print "<input type=\"hidden\" name=\"{$this->name}[" . ($numrow - 1) . "]\"/>";
                 }
                 break;
             default:
                 print $format . stripslashes($r[$name]);
                 break;
         }
         print "</td>\n";
     } else {
         print "<input type=\"hidden\" name=\"{$this->name}[" . ($numrow - 1) . "]\" value=\"{$this->val}\"/>";
     }
 }
Exemplo n.º 4
0
                <td><?php 
echo settags($r[rus]);
?>
</td>

              </tr>
            </table></td>
<?php 
$r = select("select rus from lk_texts where TextID=3");
?>
            <td valign="top"><?php 
echo settags($r[rus]);
?>
</td>
<?php 
$r = select("select rus from lk_texts where TextID=4");
?>
            <td valign="top"><?php 
echo settags($r[rus]);
?>
</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>

</body>
</html>
Exemplo n.º 5
0
<?php

require '../../config.php';
//$form_width=170;
require $engine_path . "cls/auth/session.php";
$leftcontent = "<img src=\"/images/ut_gladiator_types/image/{$id}.jpg\" width=\"195\">";
require $site_path . "up.php";
require $site_path . "left.php";
$r = select("select *,Name_{$lang} as Name,Description_{$lang} as Description,Headline_{$lang} as Headline from ut_gladiator_types where TypeID='{$id}'");
print "<br><h3>" . $r[Name] . ":<br></h3><br>";
if ($r[Headline]) {
    print settags($r[Headline]);
}
if ($r[Description]) {
    print "<br><br>" . settags($r[Description]);
}
$res = runsql("select TypeID,Name_{$lang} Name from ut_gladiator_types  order by Coefficient");
print "<h3>“ипы гладиаторов</h3>";
while ($r = mysql_fetch_array($res)) {
    print "<img src=\"/images/types/{$r['0']}.gif\"> <a href=\"types.php?id={$r['0']}\">{$r['1']}</a><br><img src=\"/images/hr2.gif\" height=10px><br>";
}
require $site_path . "bottom.php";
Exemplo n.º 6
0
function setlayout($post)
{
    global $sql, $loguser, $postl;
    if ($loguser['viewsig'] != 1) {
        $post['headid'] = $post['signid'] = 0;
    }
    if (!$loguser['viewsig']) {
        $post['headtext'] = $post['signtext'] = '';
        return $post;
    }
    if ($loguser['viewsig'] != 2) {
        if ($headid = filter_int($post['headid'])) {
            // just in case
            if ($postl[$headid] === NULL) {
                $postl[$headid] = $sql->resultq("SELECT text FROM postlayouts WHERE id={$headid}");
            }
            $post['headtext'] = $postl[$headid];
        }
        if ($signid = filter_int($post['signid'])) {
            // just in case
            if ($postl[$signid] === NULL) {
                $postl[$signid] = $sql->resultq("SELECT text FROM postlayouts WHERE id={$signid}");
            }
            $post['signtext'] = $postl[$signid];
        }
    }
    $post['headtext'] = settags($post['headtext'], filter_string($post['tagval']));
    $post['signtext'] = settags($post['signtext'], filter_string($post['tagval']));
    if ($loguser['viewsig'] == 2) {
        $post['headtext'] = doreplace($post['headtext'], $post['num'], ($post['date'] - $post['regdate']) / 86400, $post['name']);
        $post['signtext'] = doreplace($post['signtext'], $post['num'], ($post['date'] - $post['regdate']) / 86400, $post['name']);
    }
    $post['headtext'] = doreplace2($post['headtext']);
    $post['signtext'] = doreplace2($post['signtext']);
    //	$post['text']=doreplace2($post['text'], $post['options']);
    return $post;
}
Exemplo n.º 7
0
$res = runsql("select Name_{$lang} as Name, Rule_{$lang} as Rule from ut_rules where TypeID='{$id}' order by Rang");
if (mysql_num_rows($res) > 1) {
    print "<div class=blue><b>" . upstr('Содержание') . "</b></div><br>";
    while ($r = mysql_fetch_array($res)) {
        $n++;
        print "<a href=\"#{$n}\"><b>{$n}. " . upstr($r[Name]) . "</b></a>";
    }
    print "<br>";
}
$n = 0;
$res = runsql("select Name_{$lang} as Name, Rule_{$lang} as Rule from ut_rules where TypeID='{$id}' order by Rang");
if (mysql_num_rows($res) == 0) {
    print icon('error', "Раздел ещё не заполнен");
}
while ($r = mysql_fetch_array($res)) {
    if ($n > 0) {
        print "<p><a name=\"{$n}\"></a><font size=4>{$n}. " . upstr($r[Name]) . "</font></p>";
    } else {
        print "<p><font size=4>" . upstr($r[Name]) . "</font></p>";
    }
    $n++;
    if (substr(settags($r[Rule]), 0, 2) != "<p") {
        print "<p>";
    }
    print "<div  style=\"text-align:justify;margin-right:6px\" >" . settags(set_params($r[Rule])) . "</div><br>";
    //print settags(set_params($r[Rule]))."<br>";
}
?>
</div>
<?php 
require $site_path . "bottom.php";
Exemplo n.º 8
0
<?php

$type = "main";
require "config.php";
$first_page = 1;
require "up.php";
$res = runsql("select MaterialID,Date,Headline_{$lang} as Headline, Name_{$lang} as Title, Message_{$lang} as Message, Small from ut_materials where TypeID=9 and MaterialID=34");
$r = mysql_fetch_array($res);
print "\r\n\t<h3>" . $r[Title] . "</h3>\r\n     \t<p>" . settags($r[Message]) . "</p>\r\n          <p align=\"right\"><a href=\"{$site_url}" . "news.php?id=30\" class=\"lnk\">подробнее о компании</a></p>\r\n\t";
require "bottom.php";
Exemplo n.º 9
0
    while ($r = mysql_fetch_array($res)) {
        print "\r\n                <tr>\r\n                  <td width='130' align='center' valign='top'><img src='{$img_url}?id={$r['MaterialID']}&record=2' alt='' width='69'></td>\r\n                  <td valign='top'><h5>" . $r[Title] . "</h5>\r\n                    <br/>" . $r[Headline] . "\r\n                    <p align='right'><a href='{$site_url}" . "news.php?id={$r['MaterialID']}' class='lnk'>подробнее</a></td>\r\n                </tr>\r\n\t     ";
    }
    ?>
              </table>
<?php 
    print "<table width=100% cellspacing=0 cellpadding=2 border=0>";
    $form->Pages('');
    print "</table>";
    ?>
    
          </td>
            </tr>
            <tr>
            
              <td valign="top"><img src="images/mid/shad2.jpg" alt="" width="248" height="27"></td>

            </tr>

          </table>
<?php 
} else {
    $res = runsql("select MaterialID,Date,Headline_{$lang} as Headline, Name_{$lang} as Title, Message_{$lang} as Message, Small from ut_materials where MaterialID={$id}");
    while ($r = mysql_fetch_array($res)) {
        print "\r\n\t\t\t<h3>" . $r[Title] . "</h3><br>";
        if ($r[Small]) {
            print "<img src='{$img_url}?id={$r['MaterialID']}&record=1' alt='{$r['Title']}' align='left' style='margin-right: 6px;'></img>";
        }
        print "<br/>" . settags($r[Message]) . "";
    }
}
Exemplo n.º 10
0
function icon($icon, $text)
{
    global $site_url;
    return "<table border=0  width=100% bordercolor=E0E9F0 bgcolor=E6E6E6 cellpadding=0 cellspacing=1><td bgcolor=ffffff><table border=0 cellpadding=4 cellspacing=1><td valign=top><img src=\"{$site_url}" . "images/engine/{$icon}.gif\" width=30px height=30px></td><td valign=middle>" . settags($text) . "</td></table></td></table>";
}
Exemplo n.º 11
0
<?php

require '../../config.php';
//$form_width=170;
require $engine_path . "cls/auth/session.php";
$type = "misc/holidays";
unset($act);
//$leftcontent="<img src=\"/images/ut_gladiator_types/image/$id.jpg\" width=\"195\">";
require $site_path . "up.php";
require $site_path . "left.php";
print "<table border=0 width=\"500\" bordercolor=78746C  cellpadding=2 cellspacing=1>";
$res = runsql("select *,Name_{$lang} as Name,Description_{$lang} as Description,Day1,Month1,Day2,Month2 from ut_holidays order by Month1,Day1");
$months = array("января", "февраля", "марта", "апреля", "мая", "июня", "июля", "августа", "сентября", "октября", "ноября", "декабря");
//print"--".mysql_num_rows($res); exit;
while ($r = mysql_fetch_array($res)) {
    if ($r[Month1] == $r[Month2] && $r[Day1] == $r[Day2]) {
        $date = $r[Day1] . " " . $months[$r[Month1] - 1];
    } elseif ($r[Month1] == $r[Month2]) {
        $date = $r[Day1] . "-" . $r[Day2] . " " . $months[$r[Month1] - 1];
    } else {
        $date = $r[Day1] . " " . $months[$r[Month1] - 1] . " - " . $r[Day2] . " " . $months[$r[Month2] - 1];
    }
    print "<tr><td align=\"left\"><a name=\"{$r['HolidayID']}\"><font size=\"4pt\">{$r['Name']}</font>";
    print "<br><b>" . $date . "</b>";
    print "<br>" . settags($r[Description]) . "</td>";
    print "<tr height=10><td><img src=\"/images/hr.gif\" height=10px></td>";
}
print "</table>";
unset($date);
require $site_path . "bottom.php";
Exemplo n.º 12
0
function material($id)
{
    global $lang, $adm;
    $q = select("select Name_{$lang},Message_{$lang} from ut_materials where MaterialID='{$id}'");
    return "<div class=\"text\">" . settags($q[1]) . "</div>";
}
Exemplo n.º 13
0
 function Header()
 {
     global $id, $PHP_SELF, $QUERY_STRING, $_SERVER;
     if ($this->mode == 1) {
         $header = $this->document->getElementsByTagName("header");
         if ($header[0]) {
             $this->style = $header[0]->getAttribute("style", '');
         }
         if (!$header[0] && $this->act == "select") {
             return false;
         }
         print settags($header[0]->text);
     } else {
         $this->style = $this->attributes['header']['style'];
         if (strlen($this->attributes['header']['text'])) {
             print settags($this->attributes['header']['text']);
         }
     }
     $act = $this->name;
     if ($this->mode == 1) {
         $buttons = $this->document->getElementsByTagName("button");
         if ($buttons[0]) {
             if ($buttons[0]->getAttribute("act", '')) {
                 $act = $buttons[0]->getAttribute("act", '');
             }
         }
     } else {
         $buttons = count($this->attributes['button']);
         $act1 = reset($this->attributes['button']);
         if ($act1 = $act1['act']) {
             $act = $act1;
         }
     }
     $action = "{$PHP_SELF}?type={$this->type}&act={$act}";
     if ($buttons) {
         $method = "post";
         if ($this->act == "search") {
             $method = "get";
         }
         print "\n<form name=\"{$this->name}\" method=\"{$method}\" ";
         //например переход на WM
         if ($this->action && strstr($this->action, "http")) {
             $action = $this->action;
         } else {
             print "enctype=\"multipart/form-data\"";
         }
         //if(!strstr($action,"http://")&&substr($action,0,1)=="/") $action="http://".$_SERVER['SERVER_NAME'].$action;
         if (!$firstpage) {
             $firstpage = $PHP_SELF . "?" . $QUERY_STRING;
         }
         print " action=\"{$action}\">";
         print "<input type=\"hidden\" name=\"step\" value=\"1\"/>\n\t\t<input type=\"hidden\" name=\"type\" value=\"{$this->type}\"/>\n\n\t\t<input type=\"hidden\" name=\"firstpage\" value=\"{$firstpage}\"/>\n\n\t\t<input type=\"hidden\" name=\"act\" value=\"" . $this->name . "\"/>";
     }
     //передаем дальше параметр $id--------------
     if ($id) {
         print "<input type=\"hidden\" name=\"id\" value=\"{$id}\"/>\n";
     }
     print "<table border=" . $this->border;
     if (strlen($this->height)) {
         print " height=" . $this->height;
     }
     if (strlen($this->width)) {
         print " width=" . $this->width;
     }
     if (strlen($this->bgcolor)) {
         print " bgcolor=" . $this->bgcolor;
     }
     if (strlen($this->cellspacing)) {
         print " cellspacing=" . $this->cellspacing;
     }
     if (strlen($this->cellpadding)) {
         print " cellpadding=" . $this->cellpadding;
     }
     if (strlen($this->style)) {
         print " {$this->style}";
     }
     print ">\n";
 }