Jump to content

vovchikku

User
  • Posts

    65
  • Joined

  • Last visited

Everything posted by vovchikku

  1. действительно, помогло спасибо, странно а почему так?
  2. Вот гляньте на страницу. www.hm-ges.ru почему таблица в ячейке слева не хочет растягиваться на 100% высоты ячейки? <td width="202" rowspan="2" align="left" valign="bottom" background="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/left.jpg"<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/left.gif"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="27" valign="top"> <div class="leftrow"><img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/home.gif" width="202" height="27" border="0" /> </div></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr> <td><?php mosLoadModules ( 'left' ); ?></td> </tr> </table></td> </tr> там слева белая картинка с клавишей home и тд доллждны быть вверху. она вставлена в верхнюю ячейку таблицы, которая находится внутри другой ячейки. Таблица должны быть 100% высоты ячейки, но она не растягивается... как сделать так чтобы в одной таблице, растянутой на 100% высоты ячейки, в которой она находится, одна картинка прилеплялась к верху, а другая к низу... Извиняюсь за ветьеватость.... заранее спасибо!
  3. да, кажется оно! Спасибо огромное, попробую прикрутить.
  4. подскажите пожалуйста как сделать чтобы сролинг был только в mainbody? если можно на конкретных примерах. заранее огроменное спасибо
  5. так оттого я и спрашиваю откуда он берет? я же css привел. там нет размера 24... в индексе берет чтоли? там тоже 24 нет... непонятно
  6. откуда он 24 берет, если ни в css, ни в php даже цифры такой "24" нет.... Откуда?
  7. Почему при выводе блога категории размер текста, отмеченного h1 увеличивается в разы? Вот ссылка http://www.arbitr-hmao.ru/pochtovyie-indeksyi-hmao/ вот кусок CSS /**** author - rgb(raduga) [url="http://mambasana.ru"]http://mambasana.ru[/url] ***/ body,html { padding : 0; margin : 0; margin-bottom : 10px; } h1{ margin-top:0px; color:#133766; font-size:1.0em; } #body_bg{ background : url(../images/bg_top.jpg) #ffffff repeat-x top left; } .main { float : left; width : 100%; margin : 0; padding : 0; } .mod { background : #FFFFFF; width : 2px; } td, tr, p, div { font-family : Arial, Verdana, Tahoma, Helvetica, sans-serif; font-size : 12px; color : #000000; } hr { color : #999999; height : 1px; width : 100%; } form { margin : 0; padding : 0; } .leftrow { width : 169px; height : 100%; margin-right : 0; background : #f5f5f5; } .rightrow { height : 100%; width : 169px; margin-left : 0; background : #f5f5f5; } .back_button { color : #999999; font-family : Tahoma, Arial, Verdana, Helvetica, sans-serif; font-size : 11px; font-weight : normal; padding-bottom : 3px; margin-right : 4px; float : right; line-height : 20px; } .button { font-size : 11px; color : #333333; border : 1px solid #999999; margin : 3px; background-color : #EDEDED; padding : 2px !important; padding : 1px; cursor : pointer; } .inputbox { color : #000000; background : #ffffff; border : 1px solid #cccccc; margin : 3px; } .contact_email { width : 100%; } .contact_email .inputbox { width : 345px; } table.moduletable { margin : 0 0 8px 0; width : 100%; background : #f5f5f5; padding-bottom : 2px; } table.moduletable th { font-family : Tahoma, Arial, Verdana, Helvetica, sans-serif; font-size : 11px; font-weight : bold; text-align : left; width : 100%; background-color : #5B7696; color : #f1f1f1; padding : 2px; text-indent : 10px; line-height : 15px; } table.moduletable td { padding-top: 2px; } .sectiontableheader { font-size : 11px; font-weight : normal; text-transform : uppercase; letter-spacing : 1px; color : #f1f1f1; background : #5B7696; padding : 1px; } .sectiontableentry1 { vertical-align : top; padding : 3px; background : none; border-bottom : 1px solid #ffffff; line-height : 25px; } .sectiontableentry2 { vertical-align : top; padding : 3px; border-bottom : 1px solid #ffffff; background : #e0e0e8; line-height : 25px; } .sectiontableentry1 img{ padding-right: 4px !important; padding-right: 2px; } .sectiontableentry2 img{ padding-right: 4px !important; padding-right: 2px; } span.mainlevel{ display : block; font-size : 12px; border : 1px solid #cccccc; background-color : #f1f1f1; font-weight : normal; padding : 2px 0; color : #666666; font-weight : bold; text-indent : 10px; } a.mainlevel { display : block; width : auto; margin : 1px 0px; padding : 0; font-size : 12px; background : none; text-indent : 10px; } a.mainlevel:link, a.mainlevel:visited { display : block; font-size : 12px; border : 1px solid #cccccc; background-color : #f1f1f1; font-weight : normal; padding : 2px 0; color : #666666; font-weight : bold; text-indent : 10px; } a.mainlevel:hover { border : 1px solid #cccccc; background-color : #E0E0E8; font-size : 12px; font-weight : normal; color : #666666; text-decoration : none; text-indent : 10px; } #active_menu { color : #000066; border : 1px solid #cccccc; background-color : #E0E0E8; font-weight : bold; } a#active_menu:hover { color : #333333; } a:link, a:visited { font-size : 11px; color : #999999; text-decoration : none; font-weight : bold; } a:hover { font-size : 11px; color : #3333ff; text-decoration : none; font-weight : bold; } a.category:link, a.category:visited { font-size : 11px; font-weight : bold; } a.readon:link, a.readon:visited { color : #999999; font-family : Tahoma, Arial, Verdana, Helvetica, sans-serif; font-size : 11px; background : url(../images/readon.gif) no-repeat; white-space : normal; font-weight : bold; padding : 1px 0 3px 18px; float : right; line-height : 10px; text-decoration : underline; } a.readon:hover { color : #3333ff; font-family : Tahoma, Arial, Verdana, Helvetica, sans-serif; font-size : 11px; background : url(../images/readon.gif) no-repeat; white-space : normal; font-weight : bold; padding : 1px 0 3px 18px; line-height : 10px; text-decoration : underline; } ul { margin : 2px; padding-left : 10px; list-style : none; } li { line-height : 15px; padding-left : 10px; padding-top : 0; background-image : url(../images/strelka.gif) ; background-repeat: no-repeat; background-position: 0px 5px; } table.contenttoc { border : 1px solid #dcdcdc; background : #F1F1F1; padding : 5px; margin-left : 2px; margin-bottom : 2px; } .pagenavcounter { font-size : 10px; color : #0066CC; } .pagenavbar { border-top : 1px solid #999999; padding : 2px; } .pagenav { font-weight : bold; } a.pagenav:link, a.pagenav:visited { font-size : 11px; color : #999999; text-decoration : none; } a.pagenav:hover { font-size : 11px; color : #3333ff; text-decoration : none; } .date { font-size : 10px; font-weight : bold; color : #707070; padding-right : 10%; } .small { font-size : 10px; color : #333333; } .smalldark { font-size : 10px; color : #333333; } .createdate, .modifydate { float : left; font-size : 10px; color : #666666; font-weight : bold; } .content_vote { font-size : 10px; height : 22px; padding-top : 2px; padding-bottom : 2px; } .content_rating { font-size : 10px; color : #999999; } .pathway { font-size : 11px; color : #333333; padding-left : 6%; } a.pathway:link, a.pathway:visited { font-size : 11px; padding-left : 0; } a.pathway:hover { font-size : 11px; padding-left : 0; } table.content{ width : 100%; padding : 0; border-collapse : collapse; border-spacing : 0; margin-bottom : 10px; } table.contentpane { width : 100%; border-spacing : 0; padding-left : 5px; padding-right : 5px; margin-bottom : 5px; } table.contentpaneopen { width : 100%; border-spacing : 0; padding-left : 5px; padding-right : 5px; margin-bottom : 5px; text-align: justify; } .poll { color : #333333; line-height : 12px; font-weight: normal; } .pollstableborder{ border-color : #999999; } .contentheading,.componentheading { border-bottom : 1px solid #000066; font-size : 11px; font-weight : bold; line-height : 16px; text-transform : uppercase; text-align : left; text-indent : 0; color : #000066; width : 100%; padding : 1px; margin: 3px 0px; } .ontab { border-left : 1px solid #666666; text-align : center; font-weight : bold; color : #333333; padding : 5px; cursor : pointer; line-height : 30px; } .offtab { border-left : 1px solid #666666; text-align : center; color : #999999; font-weight : normal; padding : 5px; cursor : pointer; line-height : 30px; } .tabpadding { border-left : 1px solid #666666; } .footer { font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 10px; color : #666666; font-weight : bold; height : 31px; border-top : 1px solid #cccccc; } .footer a:link, .footer a:visited { font-size : 10px; color : #666666; text-decoration : none; font-weight : bold; } .footer a:hover { font-size : 10px; color : #999999; text-decoration : none; font-weight : bold; } .lcol { vertical-align : top; background : #ffffff; padding-top: 5px; border-left : 1px solid #cccccc; padding-left: 3px; } .rcol { vertical-align : top; background : #ffffff; padding-top: 5px; border-right : 1px solid #cccccc; padding-right: 3px; } .foot { background : none; vertical-align : top; } .contentdescription { width : auto !important; margin : 0; padding : 0; padding-top : 5px; text-align : left; } td.top1{ margin: 0; padding: 0; height: 28px !important; height: 28px; padding-top: 2px !important; padding-top: 3px; background : url(../images/shadow.jpg) #ffffff repeat-x top; } table.top2{ background : #ffffff; } .searchbox { margin : 0; padding : 0; margin-top : 13px; margin-left : 10px; width : 130px; font-size : 11px; color : #707070; padding : 2px !important; padding : 1px; border : 1px solid #cccccc; background : none; } .sublevel { font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size : 10px; font-weight : bold; color : #999999; padding : 3px 1px 3px 5px; margin : 3px; } a.sublevel:link, a.sublevel:visited { color : #999999; text-decoration : none; } a.sublevel:hover { color : #000066; text-decoration : none; } a.sublevel#active_menu { background : transparent; color : #000066; border : 0px; } td.logoheader { margin: 0; padding: 0; background : url(../images/header.jpg) no-repeat bottom left; height : 130px; width : 100%; } td.topnav { margin : 0px; padding: 0px; background : url(../images/bg_top.jpg) repeat-x top left; height : 42px; width : 770px; } td.bgline { margin : 0px; padding: 0px; background : url(../images/s.gif) repeat-y; width : 7px; } #mainlevel-nav { float : right; display : block; font-size : 11px; list-style : none; padding : 0; margin : 0; margin-left : 1px; } #mainlevel-nav li { float : right; display : block; list-style : none; background-image : none; padding-left : 2px; padding-right : 2px; margin : 0; width : auto !important; font-size : 11px; line-height : 28px; white-space : nowrap; border-left : 1px solid #cccccc; } #mainlevel-nav li a { padding-left : 10px; padding-right : 10px; font-size : 11px; color : #000033; text-decoration : none; } #mainlevel-nav li a:hover { font-size : 11px; color : #999999; } .blog_more { margin : 10px 0 7px 7px; } .buttonheading { padding : 0 2px; } .mosimage { border : 1px solid #dedede; margin : 5px; padding-top: 3px; } .mosimage_caption { margin-top: 3px; padding : 2px; color : #000066; font-size : 10px; background: #f1f1f1; }
  8. нужно перенести подпись "автор" под текст, как это сделать? http://www.consultant-ugra.ru/content/view/98/16/ вот код. понятно что надо кусок тега перенести, но какой и куда? я даже не понимаю где в этом массиве тег вывода основного текста mainbody... просветите плиз <?php /** * @version $Id: content.html.php 10002 2008-02-08 10:56:57Z willebil $ * @package Joomla RE * @subpackage Content * @localized Àâòîðñêèå ïðàâà © 2005-2007 Joom.Ru - Ðóññêèé äîì Joomla! * @copyright Àâòîðñêèå ïðàâà © 2005 Open Source Matters. Âñå ïðàâà çàùèùåíû. * @license Ëèöåíçèÿ [url="http://www.gnu.org/licenses/gpl-2.0.html"]http://www.gnu.org/licenses/gpl-2.0.html[/url] GNU/GPL, ñìîòðèòå LICENSE.php * Joomla! - ñâîáîäíîå ïðîãðàììíîå îáåñïå÷åíèå. Ýòà âåðñèÿ ìîæåò áûòü èçìåíåíàz * â ñîîòâåòñòâèè ñ Ãåíåðàëüíîé Îáùåñòâåííîé Ëèöåíçèåé GNU, ïîýòîìó âîçìîæíî * å¸ äàëüíåéøåå ðàñïðîñòðàíåíèå â ñîñòàâå ðåçóëüòàòà ðàáîòû, ëèöåíçèðîâàííîãî * ñîãëàñíî Ãåíåðàëüíîé Îáùåñòâåííîé Ëèöåíçèåé GNU èëè äðóãèõ ëèöåíçèé ñâîáîäíûõ * ïðîãðàìì èëè ïðîãðàìì ñ îòêðûòûì èñõîäíûì êîäîì. * Äëÿ ïðîñìîòðà ïîäðîáíîñòåé è çàìå÷àíèé îá àâòîðñêîì ïðàâå, ñìîòðèòå ôàéë COPYRIGHT.php. * * @translator Oleg A. Myasnikov aka Sourpuss (sourpuss@mail.ru) */ // çàïðåò ïðÿìîãî äîñòóïà defined( '_VALID_MOS' ) or die( 'Äîñòóï çàïðåùåí' ); /** * Utility class for writing the HTML for content * @package Joomla RE * @subpackage Content */ class HTML_content { /** * Draws a Content List * Used by Content Category & Content Section */ function showContentList( $title, &$items, &$access, $id=0, $sectionid=NULL, $gid, &$params, &$pageNav, $other_categories, &$lists, $order, $categories_exist ) { global $Itemid, $mosConfig_live_site; if ( $sectionid ) { $id = $sectionid; } if ( strtolower(get_class( $title )) == 'mossection' ) { $catid = 0; } else { $catid = $title->id; } if ( $params->get( 'page_title' ) ) { ?> <div class="componentheading<?php echo $params->get( 'pageclass_sfx' ); ?>"> <?php echo htmlspecialchars( $title->name, ENT_QUOTES ); ?> </div> <?php } ?> <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" class="contentpane<?php echo $params->get( 'pageclass_sfx' ); ?>"> <?php if ( $params->get('description') || $params->get('description_image') ) { ?> <tr> <td width="60%" valign="top" class="contentdescription<?php echo $params->get( 'pageclass_sfx' ); ?>" colspan="2"> <?php if ( $params->get('description_image') && $title->image ) { $link = $mosConfig_live_site .'/images/stories/'. $title->image; ?> <img src="<?php echo $link;?>" align="<?php echo $title->image_position;?>" hspace="6" alt="<?php echo $title->image;?>" /> <?php } if ( $params->get('description') ) { echo $title->description; } ?> </td> </tr> <?php } ?> <tr> <td width="100%"> <?php // Displays the Table of Items in Category View if ( $items ) { HTML_content::showTable( $params, $items, $gid, $catid, $id, $pageNav, $access, $sectionid, $lists, $order ); } else if ( $catid ) { ?> <br /> <?php echo _EMPTY_CATEGORY; ?> <br /><br /> <?php } // New Content Icon if ( ( $access->canEdit || $access->canEditOwn ) && $categories_exist ) { $link = sefRelToAbs( 'index.php?option=com_content&task=new&sectionid='. $id .'&Itemid='. $Itemid ); ?> <a href="<?php echo $link; ?>"> <img src="<?php echo $mosConfig_live_site;?>/images/M_images/new.png" width="13" height="14" align="middle" border="0" alt="<?php echo _CMN_NEW;?>" /> <?php echo _CMN_NEW;?>...</a> <br /><br /> <?php } ?> </td> </tr> <tr> <td colspan="2"> <?php // Displays listing of Categories if ( ( ( count( $other_categories ) > 1 ) || ( count( $other_categories ) < 2 && count( $items ) < 1 ) ) ) { if ( ( $params->get( 'type' ) == 'category' ) && $params->get( 'other_cat' ) ) { HTML_content::showCategories( $params, $items, $gid, $other_categories, $catid, $id, $Itemid ); } if ( ( $params->get( 'type' ) == 'section' ) && $params->get( 'other_cat_section' ) ) { HTML_content::showCategories( $params, $items, $gid, $other_categories, $catid, $id, $Itemid ); } } ?> </td> </tr> </table> <?php // displays back button mosHTML::BackButton ( $params ); } /** * Display links to categories */ function showCategories( &$params, &$items, $gid, &$other_categories, $catid, $id, $Itemid ) { if(!count($other_categories)) return; ?> <ul> <?php foreach ( $other_categories as $row ) { $row->name = htmlspecialchars( stripslashes( ampReplace( $row->name ) ), ENT_QUOTES ); if ( $catid != $row->id ) { ?> <li> <?php if ( $row->access <= $gid ) { $link = sefRelToAbs( 'index.php?option=com_content&task=category&sectionid='. $id .'&id='. $row->id .'&Itemid='. $Itemid ); ?> <a href="<?php echo $link; ?>" class="category"> <?php echo $row->name;?></a> <?php if ( $params->get( 'cat_items' ) ) { ?> <i>( <?php echo $row->numitems; echo _CHECKED_IN_ITEMS;?> )</i> <?php } // Writes Category Description if ( $params->get( 'cat_description' ) && $row->description ) { ?> <br /> <?php echo $row->description; } } else { echo $row->name; ?> <a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=register' ); ?>"> ( <?php echo _E_REGISTERED; ?> )</a> <?php } ?> </li> <?php } } ?> </ul> <?php } /** * Display Table of items */ function showTable( &$params, &$items, &$gid, $catid, $id, &$pageNav, &$access, &$sectionid, &$lists, $order ) { global $mosConfig_live_site, $Itemid; $link = 'index.php?option=com_content&task=category&sectionid='. $sectionid .'&id='. $catid .'&Itemid='. $Itemid; ?> <form action="<?php echo sefRelToAbs($link); ?>" method="post" name="adminForm"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <?php if ( $params->get( 'filter' ) || $params->get( 'order_select' ) || $params->get( 'display' ) ) { ?> <tr> <td colspan="4"> <table> <tr> <?php if ( $params->get( 'filter' ) ) { ?> <td align="right" width="100%" nowrap="nowrap"> <?php echo _FILTER .' '; ?> <input type="text" name="filter" value="<?php echo $lists['filter'];?>" class="inputbox" onchange="document.adminForm.submit();" /> </td> <?php } if ( $params->get( 'order_select' ) ) { ?> <td align="right" width="100%" nowrap="nowrap"> <?php echo ' '. _ORDER_DROPDOWN .' '; echo $lists['order']; ?> </td> <?php } if ( $params->get( 'display' ) ) { ?> <td align="right" width="100%" nowrap="nowrap"> <?php $order = ''; if ( $lists['order_value'] ) { $order = '&order='. $lists['order_value']; } $filter = ''; if ( $lists['filter'] ) { $filter = '&filter='. $lists['filter']; } $link = 'index.php?option=com_content&task=category&sectionid='. $sectionid .'&id='. $catid .'&Itemid='. $Itemid . $order . $filter; echo ' '. _PN_DISPLAY_NR .' '; echo $pageNav->getLimitBox( $link ); ?> </td> <?php } ?> </tr> </table> </td> </tr> <?php } if ( $params->get( 'headings' ) ) { ?> <tr> <?php if ( $params->get( 'date' ) ) { ?> <td class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>" width="35%"> <?php echo _DATE; ?> </td> <?php } if ( $params->get( 'title' ) ) { ?> <td class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>"> <?php echo _HEADER_TITLE; ?> </td> <?php } if ( $params->get( 'author' ) ) { ?> <td class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>" align="left" width="25%"> <?php echo _HEADER_AUTHOR; ?> </td> <?php } if ( $params->get( 'hits' ) ) { ?> <td align="center" class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>" width="5%"> <?php echo _HEADER_HITS; ?> </td> <?php } ?> </tr> <?php } $k = 0; foreach ( $items as $row ) { $row->created = mosFormatDate ($row->created, $params->get( 'date_format' )); // calculate Itemid HTML_content::_Itemid( $row ); ?> <tr class="sectiontableentry<?php echo ($k+1) . $params->get( 'pageclass_sfx' ); ?>" > <?php if ( $params->get( 'date' ) ) { ?> <td> <?php echo $row->created; ?> </td> <?php } if ( $params->get( 'title' ) ) { if( $row->access <= $gid ){ $link = sefRelToAbs( 'index.php?option=com_content&task=view&id='. $row->id .'&Itemid='. $Itemid ); ?> <td> <a href="<?php echo $link; ?>"> <?php echo $row->title; ?> </a> <?php HTML_content::EditIcon( $row, $params, $access ); ?> </td> <?php } else { ?> <td> <?php echo $row->title .' : '; $link = sefRelToAbs( 'index.php?option=com_registration&task=register' ); ?> <a href="<?php echo $link; ?>"> <?php echo _READ_MORE_REGISTER; ?> </a> </td> <?php } } if ( $params->get( 'author' ) ) { ?> <td align="left"> <?php echo $row->created_by_alias ? $row->created_by_alias : $row->author; ?> </td> <?php } if ( $params->get( 'hits' ) ) { ?> <td align="center"> <?php echo $row->hits ? $row->hits : '-'; ?> </td> <?php } ?> </tr> <?php $k = 1 - $k; } if ( $params->get( 'navigation' ) ) { ?> <tr> <td colspan="4"> </td> </tr> <tr> <td align="center" colspan="4" class="sectiontablefooter<?php echo $params->get( 'pageclass_sfx' ); ?>"> <?php $order = ''; if ( $lists['order_value'] ) { $order = '&order='. $lists['order_value']; } $filter = ''; if ( $lists['filter'] ) { $filter = '&filter='. $lists['filter']; } $link = 'index.php?option=com_content&task=category&sectionid='. $sectionid .'&id='. $catid .'&Itemid='. $Itemid . $order . $filter; echo $pageNav->writePagesLinks( $link ); ?> </td> </tr> <tr> <td colspan="4" align="right"> <?php echo $pageNav->writePagesCounter(); ?> </td> </tr> <?php } ?> </table> <input type="hidden" name="id" value="<?php echo $catid; ?>" /> <input type="hidden" name="sectionid" value="<?php echo $sectionid; ?>" /> <input type="hidden" name="task" value="<?php echo $lists['task']; ?>" /> <input type="hidden" name="option" value="com_content" /> </form> <?php } /** * Display links to content items */ function showLinks( &$rows, $links, $total, $i=0, $show=1, $ItemidCount=NULL ) { global $mainframe, $Itemid; // getItemid compatibility mode, holds maintenance version number $compat = (int) $mainframe->getCfg('itemid_compat'); if ( $show ) { ?> <div> <strong> <?php echo _MORE; ?> </strong> </div> <?php } ?> <ul> <?php for ( $z = 0; $z < $links; $z++ ) { if (!isset( $rows[$i] )) { // stops loop if total number of items is less than the number set to display as intro + leading break; } if ($compat > 0 && $compat <= 11) { $_Itemid = $mainframe->getItemid( $rows[$i]->id, 0, 0 ); } else { $_Itemid = $Itemid; } if ( $_Itemid && $_Itemid != 99999999 ) { // where Itemid value is returned, do not add Itemid to url $Itemid_link = '&Itemid='. $_Itemid; } else { // where Itemid value is NOT returned, do not add Itemid to url $Itemid_link = ''; } $link = sefRelToAbs( 'index.php?option=com_content&task=view&id='. $rows[$i]->id . $Itemid_link ) ?> <li> <a class="blogsection" href="<?php echo $link; ?>"> <?php echo $rows[$i]->title; ?></a> </li> <?php $i++; } ?> </ul> <?php } /** * Show a content item * @param object An object with the record data * @param boolean If <code>false</code>, the print button links to a popup window. If <code>true</code> then the print button invokes the browser print method. */ function show( &$row, &$params, &$access, $page=0 ) { global $mainframe, $hide_js; global $mosConfig_live_site; global $_MAMBOTS; $mainframe->appendMetaTag( 'description', $row->metadesc ); $mainframe->appendMetaTag( 'keywords', $row->metakey ); // adds mospagebreak heading or title to <site> Title if ( isset($row->page_title) && $row->page_title ) { $mainframe->setPageTitle( $row->title .' '. $row->page_title ); } // calculate Itemid HTML_content::_Itemid( $row ); // determines the link and `link text` of the readmore button & linked title HTML_content::_linkInfo( $row, $params ); // link used by print button $print_link = $mosConfig_live_site. '/index2.php?option=com_content&task=view&id=' . $row->id .'&pop=1&page='. $page . $row->Itemid_link; // process the new bots $_MAMBOTS->loadBotGroup( 'content' ); $results = $_MAMBOTS->trigger( 'onPrepareContent', array( &$row, &$params, $page ), true ); if ( $params->get( 'item_title' ) || $params->get( 'pdf' ) || $params->get( 'print' ) || $params->get( 'email' ) ) { ?> <table class="contentpaneopen<?php echo $params->get( 'pageclass_sfx' ); ?>"> <tr> <?php // displays Item Title HTML_content::Title( $row, $params, $access ); // displays PDF Icon HTML_content::PdfIcon( $row, $params, $hide_js ); // displays Print Icon mosHTML::PrintIcon( $row, $params, $hide_js, $print_link ); // displays Email Icon HTML_content::EmailIcon( $row, $params, $hide_js ); ?> </tr> </table> <?php } else if ( $access->canEdit ) { // edit icon when item title set to hide ?> <table class="contentpaneopen<?php echo $params->get( 'pageclass_sfx' ); ?>"> <tr> <td> <?php HTML_content::EditIcon( $row, $params, $access ); ?> </td> </tr> </table> <?php } if ( !$params->get( 'intro_only' ) ) { $results = $_MAMBOTS->trigger( 'onAfterDisplayTitle', array( &$row, &$params, $page ) ); echo trim( implode( "\n", $results ) ); } $results = $_MAMBOTS->trigger( 'onBeforeDisplayContent', array( &$row, &$params, $page ) ); echo trim( implode( "\n", $results ) ); ?> <table class="contentpaneopen<?php echo $params->get( 'pageclass_sfx' ); ?>"> <?php // displays Section & Category HTML_content::Section_Category( $row, $params ); // displays Author Name HTML_content::Author( $row, $params ); // displays Created Date HTML_content::CreateDate( $row, $params ); // displays Urls HTML_content::URL( $row, $params ); ?> <tr> <td valign="top" colspan="2"> <?php // displays Table of Contents HTML_content::TOC( $row ); // displays Item Text echo ampReplace( $row->text ); ?> </td> </tr> <?php // displays Modified Date HTML_content::ModifiedDate( $row, $params ); // displays Readmore button HTML_content::ReadMore( $row, $params ); ?> </table> <span class="article_seperator"> </span> <?php $results = $_MAMBOTS->trigger( 'onAfterDisplayContent', array( &$row, &$params, $page ) ); echo trim( implode( "\n", $results ) ); // displays the next & previous buttons HTML_content::Navigation ( $row, $params ); // displays close button in pop-up window mosHTML::CloseButton ( $params, $hide_js ); // displays back button in pop-up window mosHTML::BackButton ( $params, $hide_js ); } /** * calculate Itemid */ function _Itemid( &$row ) { global $task, $Itemid, $mainframe; // getItemid compatibility mode, holds maintenance version number $compat = (int) $mainframe->getCfg('itemid_compat'); if ( ($compat > 0 && $compat <= 11) && $task != 'view' && $task != 'category' ) { $row->_Itemid = $mainframe->getItemid( $row->id, 0, 0 ); } else { // when viewing a content item, it is not necessary to calculate the Itemid $row->_Itemid = $Itemid; } if ( $row->_Itemid && $row->_Itemid != 99999999 ) { // where Itemid value is returned, do not add Itemid to url $row->Itemid_link = '&Itemid='. $row->_Itemid; } else { // where Itemid value is NOT returned, do not add Itemid to url $row->Itemid_link = ''; } } /** * determines the link and `link text` of the readmore button & linked title */ function _linkInfo( &$row, &$params ) { global $my; $row->link_on = ''; $row->link_text = ''; if ($params->get( 'readmore' ) || $params->get( 'link_titles' )) { if ( $params->get( 'intro_only' ) ) { // checks if the item is a public or registered/special item if ( $row->access <= $my->gid ) { $row->link_on = sefRelToAbs( 'index.php?option=com_content&task=view&id=' . $row->id . $row->Itemid_link ); if ( isset($row->readmore) && @$row->readmore) { // text for the readmore link $row->link_text = _READ_MORE; } } else { $row->link_on = sefRelToAbs( 'index.php?option=com_registration&task=register' ); if ( isset($row->readmore) && @$row->readmore ) { // text for the readmore link if accessible only if registered $row->link_text = _READ_MORE_REGISTER; } } } } } /** * Writes Title */ function Title( &$row, &$params, &$access ) { if ( $params->get( 'item_title' ) ) { if ( $params->get( 'link_titles' ) && $row->link_on != '' ) { ?> <td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%"> <a href="<?php echo $row->link_on;?>" class="contentpagetitle<?php echo $params->get( 'pageclass_sfx' ); ?>"> <?php echo $row->title;?></a> <?php HTML_content::EditIcon( $row, $params, $access ); ?> </td> <?php } else { ?> <td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%"> <?php echo $row->title;?> <?php HTML_content::EditIcon( $row, $params, $access ); ?> </td> <?php } } else { ?> <td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%"> <?php HTML_content::EditIcon( $row, $params, $access ); ?> </td> <?php } } /** * Writes Edit icon that links to edit page */ function EditIcon( &$row, &$params, &$access ) { global $my; if ( $params->get( 'popup' ) ) { return; } if ( $row->state < 0 ) { return; } if ( !$access->canEdit && !( $access->canEditOwn && $row->created_by == $my->id ) ) { return; } mosCommonHTML::loadOverlib(); $link = 'index.php?option=com_content&task=edit&id='. $row->id . $row->Itemid_link .'&Returnid='. $row->_Itemid; $image = mosAdminMenus::ImageCheck( 'edit.png', '/images/M_images/', NULL, NULL, _E_EDIT, _E_EDIT ); if ( $row->state == 0 ) { $overlib = _CMN_UNPUBLISHED; } else { $overlib = _CMN_PUBLISHED; } $date = mosFormatDate( $row->created ); $author = $row->created_by_alias ? $row->created_by_alias : $row->author; $overlib .= '<br />'; $overlib .= $row->groups; $overlib .= '<br />'; $overlib .= $date; $overlib .= '<br />'; $overlib .= $author; ?> <a href="<?php echo sefRelToAbs( $link ); ?>" onmouseover="return overlib('<?php echo $overlib; ?>', CAPTION, '<?php echo _E_EDIT; ?>', BELOW, RIGHT);" onmouseout="return nd();"> <?php echo $image; ?></a> <?php } /** * Writes PDF icon */ function PdfIcon( &$row, &$params, $hide_js ) { global $mosConfig_live_site; if ( $params->get( 'pdf' ) && !$params->get( 'popup' ) && !$hide_js ) { $status = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,wid th=640,height=480,directories=no,location=no'; $link = $mosConfig_live_site. '/index2.php?option=com_content&do_pdf=1&id='. $row->id; if ( $params->get( 'icons' ) ) { $image = mosAdminMenus::ImageCheck( 'pdf_button.png', '/images/M_images/', NULL, NULL, _CMN_PDF, _CMN_PDF ); } else { $image = _CMN_PDF .' '; } ?> <td align="right" width="100%" class="buttonheading"> <a href="<?php echo $link; ?>" target="_blank" onclick="window.open('<?php echo $link; ?>','win2','<?php echo $status; ?>'); return false;" title="<?php echo _CMN_PDF;?>"> <?php echo $image; ?></a> </td> <?php } } /** * Writes Email icon */ function EmailIcon( &$row, &$params, $hide_js ) { global $mosConfig_live_site, $Itemid, $task; if ( $params->get( 'email' ) && !$params->get( 'popup' ) && !$hide_js ) { $status = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,wid th=400,height=250,directories=no,location=no'; if ($task == 'view') { $_Itemid = '&itemid='. $Itemid; } else { $_Itemid = ''; } $link = $mosConfig_live_site .'/index2.php?option=com_content&task=emailform&id='. $row->id . $_Itemid; if ( $params->get( 'icons' ) ) { $image = mosAdminMenus::ImageCheck( 'emailButton.png', '/images/M_images/', NULL, NULL, _CMN_EMAIL, _CMN_EMAIL ); } else { $image = ' '. _CMN_EMAIL; } ?> <td align="right" width="100%" class="buttonheading"> <a href="<?php echo $link; ?>" target="_blank" onclick="window.open('<?php echo $link; ?>','win2','<?php echo $status; ?>'); return false;" title="<?php echo _CMN_EMAIL;?>"> <?php echo $image; ?></a> </td> <?php } } /** * Writes Container for Section & Category */ function Section_Category( &$row, &$params ) { if ( $params->get( 'section' ) || $params->get( 'category' ) ) { ?> <tr> <td> <?php } // displays Section Name HTML_content::Section( $row, $params ); // displays Section Name HTML_content::Category( $row, $params ); if ( $params->get( 'section' ) || $params->get( 'category' ) ) { ?> </td> </tr> <?php } } /** * Writes Section */ function Section( &$row, &$params ) { if ( $params->get( 'section' ) ) { ?> <span> <?php echo $row->section; // writes dash between section & Category Name when both are active if ( $params->get( 'category' ) ) { echo ' - '; } ?> </span> <?php } } /** * Writes Category */ function Category( &$row, &$params ) { if ( $params->get( 'category' ) ) { ?> <span> <?php echo $row->category; ?> </span> <?php } } /** * Writes Author name */ function Author( &$row, &$params ) { if ( ( $params->get( 'author' ) ) && ( $row->author != '' ) ) { ?> <tr> <td width="70%" align="left" valign="top" colspan="2"> <span class="small"> <?php echo _WRITTEN_BY . ' '.( $row->created_by_alias ? $row->created_by_alias : $row->author ); ?> </span> </td> </tr> <?php } } /** * Writes Create Date */ function CreateDate( &$row, &$params ) { $create_date = null; if ( intval( $row->created ) != 0 ) { $create_date = mosFormatDate( $row->created ); } if ( $params->get( 'createdate' ) ) { ?> <tr> <td valign="top" colspan="2" class="createdate"> <?php echo $create_date; ?> </td> </tr> <?php } } /** * Writes URL's */ function URL( &$row, &$params ) { if ( $params->get( 'url' ) && $row->urls ) { ?> <tr> <td valign="top" colspan="2"> <a href="http://<?php echo $row->urls; ?>" target="_blank"> <?php echo $row->urls; ?></a> </td> </tr> <?php } } /** * Writes TOC */ function TOC( &$row ) { if ( isset($row->toc) ) { echo $row->toc; } } /** * Writes Modified Date */ function ModifiedDate( &$row, &$params ) { $mod_date = null; if ( intval( $row->modified ) != 0) { $mod_date = mosFormatDate( $row->modified ); } if ( ( $mod_date != '' ) && $params->get( 'modifydate' ) ) { ?> <tr> <td colspan="2" align="left" class="modifydate"> <?php echo _LAST_UPDATED; ?> ( <?php echo $mod_date; ?> ) </td> </tr> <?php } } /** * Writes Readmore Button */ function ReadMore ( &$row, &$params ) { if ( $params->get( 'readmore' ) ) { if ( $params->get( 'intro_only' ) && $row->link_text ) { ?> <tr> <td align="left" colspan="2"> <a href="<?php echo $row->link_on;?>" class="readon<?php echo $params->get( 'pageclass_sfx' ); ?>"> <?php echo $row->link_text;?></a> </td> </tr> <?php } } } /** * Writes Next & Prev navigation button */ function Navigation( &$row, &$params ) { global $task; $link_part = 'index.php?option=com_content&task=view&id='; // determines links to next and prev content items within category if ( $params->get( 'item_navigation' ) ) { if ( $row->prev ) { $row->prev = sefRelToAbs( $link_part . $row->prev . $row->Itemid_link ); } else { $row->prev = 0; } if ( $row->next ) { $row->next = sefRelToAbs( $link_part . $row->next . $row->Itemid_link ); } else { $row->next = 0; } } if ( $params->get( 'item_navigation' ) && ( $task == 'view' ) && !$params->get( 'popup' ) && ( $row->prev || $row->next ) ) { ?> <table align="center" style="margin-top: 25px;"> <tr> <?php if ( $row->prev ) { ?> <th class="pagenav_prev"> <a href="<?php echo $row->prev; ?>"> <?php echo _ITEM_PREVIOUS; ?></a> </th> <?php } if ( $row->prev && $row->next ) { ?> <td width="50"> </td> <?php } if ( $row->next ) { ?> <th class="pagenav_next"> <a href="<?php echo $row->next; ?>"> <?php echo _ITEM_NEXT; ?></a> </th> <?php } ?> </tr> </table> <?php } } /** * Writes the edit form for new and existing content item * * A new record is defined when <var>$row</var> is passed with the <var>id</var> * property set to 0. * @param mosContent The category object * @param string The html for the groups select list */ function editContent( &$row, $section, &$lists, &$images, &$access, $myid, $sectionid, $task, $Itemid ) { global $mosConfig_live_site, $mainframe; mosMakeHtmlSafe( $row ); require_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/HTML_toolbar.php' ); // used for spoof hardening $validate = josSpoofValue(); $Returnid = intval( mosGetParam( $_REQUEST, 'Returnid', $Itemid ) ); $tabs = new mosTabs(0, 1); $mainframe->addCustomHeadTag( '<link rel="stylesheet" type="text/css" media="all" href="includes/js/calendar/calendar-mos.css" title="green" />' ); ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <!-- import the calendar script --> <script language="javascript" type="text/javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/calendar/calendar_mini.js"></script> <!-- import the language module --> <script language="javascript" type="text/javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/calendar/lang/calendar-en.js"></script> <script language="javascript" type="text/javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js"></script> <script language="javascript" type="text/javascript"> onunload = WarnUser; var folderimages = new Array; <?php $i = 0; foreach ($images as $k=>$items) { foreach ($items as $v) { echo "\n folderimages[".$i++."] = new Array( '$k','".addslashes( $v->value )."','".addslashes( $v->text )."' );"; } } ?> function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform( pressbutton ); return; } // var goodexit=false; // assemble the images back into one field form.goodexit.value=1; var temp = new Array; for (var i=0, n=form.imagelist.options.length; i < n; i++) { temp[i] = form.imagelist.options[i].value; } form.images.value = temp.join( '\n' ); try { form.onsubmit(); } catch(e){} // do field validation if (form.title.value == "") { alert ( "<?php echo addslashes( _E_WARNTITLE ); ?>" ); } else if (parseInt('<?php echo $row->sectionid;?>')) { // for content items if (getSelectedValue('adminForm','catid') < 1) { alert ( "<?php echo addslashes( _E_WARNCAT ); ?>" ); //} else if (form.introtext.value == "") { // alert ( "<?php echo addslashes( _E_WARNTEXT ); ?>" ); } else { <?php getEditorContents( 'editor1', 'introtext' ); getEditorContents( 'editor2', 'fulltext' ); ?> submitform(pressbutton); } //} else if (form.introtext.value == "") { // alert ( "<?php echo addslashes( _E_WARNTEXT ); ?>" ); } else { // for static content <?php getEditorContents( 'editor1', 'introtext' ); ?> submitform(pressbutton); } } function setgood(){ document.adminForm.goodexit.value=1; } function WarnUser(){ if (document.adminForm.goodexit.value==0) { alert('<?php echo addslashes( _E_WARNUSER );?>'); window.location="<?php echo sefRelToAbs("index.php?option=com_content&task=".$task."&sectionid=".$sectionid."&id=".$row->id."&Itemid=".$Itemid); ?>"; } } </script> <?php $docinfo = "<strong>"._E_EXPIRES."</strong> "; $docinfo .= $row->publish_down."<br />"; $docinfo .= "<strong>"._E_VERSION."</strong> "; $docinfo .= $row->version."<br />"; $docinfo .= "<strong>"._E_CREATED."</strong> "; $docinfo .= $row->created."<br />"; $docinfo .= "<strong>"._E_LAST_MOD."</strong> "; $docinfo .= $row->modified."<br />"; $docinfo .= "<strong>"._E_HITS."</strong> "; $docinfo .= $row->hits."<br />"; ?> <form action="index.php" method="post" name="adminForm" onSubmit="java script:setgood();"> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td class="contentheading" > <?php echo $section;?> / <?php echo $row->id ? _E_EDIT : _E_ADD;?> <?php echo _E_CONTENT;?> <a href="java script: void(0);" onMouseOver="return overlib('<table><?php echo $docinfo; ?></table>', CAPTION, '<?php echo _E_ITEM_INFO;?>', BELOW, RIGHT);" onMouseOut="return nd();"> <strong>[Èíôîðìàöèÿ]</strong> </a> </td> </tr> </table> <table class="adminform"> <tr> <td> <div style="float: left;"> <?php echo _E_TITLE; ?> <br /> <input class="inputbox" type="text" name="title" size="50" maxlength="100" value="<?php echo $row->title; ?>" /> </div> <div style="float: right;"> <?php // Toolbar Top mosToolBar::startTable(); mosToolBar::save(); mosToolBar::apply( 'apply_new' ); mosToolBar::cancel(); mosToolBar::endtable(); ?> </div> </td> </tr> <?php if ($row->sectionid) { ?> <tr> <td> <?php echo _E_CATEGORY; ?> <br /> <?php echo $lists['catid']; ?> </td> </tr> <?php } ?> <tr> <?php if (intval( $row->sectionid ) > 0) { ?> <td> <?php echo _E_INTRO.' ('._CMN_REQUIRED.')'; ?>: </td> <?php } else { ?> <td> <?php echo _E_MAIN.' ('._CMN_REQUIRED.')'; ?>: </td> <?php } ?> </tr> <tr> <td> <?php // parameters : areaname, content, hidden field, width, height, rows, cols editorArea( 'editor1', $row->introtext , 'introtext', '600', '400', '70', '15' ); ?> </td> </tr> <?php if (intval( $row->sectionid ) > 0) { ?> <tr> <td> <?php echo _E_MAIN.' ('._CMN_OPTIONAL.')'; ?>: </td> </tr> <tr> <td> <?php // parameters : areaname, content, hidden field, width, height, rows, cols editorArea( 'editor2', $row->fulltext , 'fulltext', '600', '400', '70', '15' ); ?> </td> </tr> <?php } ?> </table> <?php // Toolbar Bottom mosToolBar::startTable(); mosToolBar::save(); mosToolBar::apply(); mosToolBar::cancel(); mosToolBar::endtable(); ?> <?php $tabs->startPane( 'content-pane' ); $tabs->startTab( _E_IMAGES, 'images-page' ); ?> <table class="adminform"> <tr> <td colspan="4"> <?php echo _CMN_SUBFOLDER; ?> :: <?php echo $lists['folders'];?> </td> </tr> <tr> <td align="top"> <?php echo _E_GALLERY_IMAGES; ?> </td> <td width="2%"> </td> <td align="top"> <?php echo _E_CONTENT_IMAGES; ?> </td> <td align="top"> <?php echo _E_EDIT_IMAGE; ?> </td> </tr> <tr> <td valign="top"> <?php echo $lists['imagefiles'];?> <br /> <input class="button" type="button" value="<?php echo _E_INSERT; ?>" onclick="addSelectedToList('adminForm','imagefiles','imagelist')" /> </td> <td width="2%"> <input class="button" type="button" value=">>" onclick="addSelectedToList('adminForm','imagefiles','imagelist')" title="<?php echo _E_ADD; ?>"/> <br/> <input class="button" type="button" value="<<" onclick="delSelectedFromList('adminForm','imagelist')" title="<?php echo _E_REMOVE; ?>"/> </td> <td valign="top"> <?php echo $lists['imagelist'];?> <br /> <input class="button" type="button" value="<?php echo _E_UP; ?>" onclick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,-1)" /> <input class="button" type="button" value="<?php echo _E_DOWN; ?>" onclick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,+1)" /> </td> <td valign="top"> <table> <tr> <td align="right"> <?php echo _E_SOURCE; ?> </td> <td> <input class="inputbox" type="text" name= "_source" value="" size="15" /> </td> </tr> <tr> <td align="right" valign="top"> <?php echo _E_ALIGN; ?> </td> <td> <?php echo $lists['_align']; ?> </td> </tr> <tr> <td align="right"> <?php echo _E_ALT; ?> </td> <td> <input class="inputbox" type="text" name="_alt" value="" size="15" /> </td> </tr> <tr> <td align="right"> <?php echo _E_BORDER; ?> </td> <td> <input class="inputbox" type="text" name="_border" value="" size="3" maxlength="1" /> </td> </tr> <tr> <td align="right"> <?php echo _E_CAPTION; ?>: </td> <td> <input class="text_area" type="text" name="_caption" value="" size="30" /> </td> </tr> <tr> <td align="right"> <?php echo _E_CAPTION_POSITION; ?>: </td> <td> <?php echo $lists['_caption_position']; ?> </td> </tr> <tr> <td align="right"> <?php echo _E_CAPTION_ALIGN; ?>: </td> <td> <?php echo $lists['_caption_align']; ?> </td> </tr> <tr> <td align="right"> <?php echo _E_CAPTION_WIDTH; ?>: </td> <td> <input class="text_area" type="text" name="_width" value="" size="5" maxlength="5" /> </td> </tr> <tr> <td align="right"> </td> <td> <input class="button" type="button" value="<?php echo _E_APPLY; ?>" onclick="applyImageProps()" /> </td> </tr> </table> </td> </tr> <tr> <td> <img name="view_imagefiles" src="<?php echo $mosConfig_live_site;?>/images/M_images/blank.png" width="50" alt="<?php echo _E_NO_IMAGE; ?>" /> </td> <td width="2%"> </td> <td> <img name="view_imagelist" src="<?php echo $mosConfig_live_site;?>/images/M_images/blank.png" width="50" alt="<?php echo _E_NO_IMAGE; ?>" /> </td> <td> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab( _E_PUBLISHING, 'publish-page' ); ?> <table class="adminform"> <?php if ($access->canPublish) { ?> <tr> <td align="left"> <?php echo _E_STATE; ?> </td> <td> <?php echo $lists['state']; ?> </td> </tr> <?php } ?> <tr> <td align="left"> <?php echo _E_ACCESS_LEVEL; ?> </td> <td> <?php echo $lists['access']; ?> </td> </tr> <tr> <td align="left"> <?php echo _E_AUTHOR_ALIAS; ?> </td> <td> <input type="text" name="created_by_alias" size="50" maxlength="100" value="<?php echo $row->created_by_alias; ?>" class="inputbox" /> </td> </tr> <tr> <td align="left"> <?php echo _E_ORDERING; ?> </td> <td> <?php echo $lists['ordering']; ?> </td> </tr> <tr> <td align="left"> <?php echo _E_START_PUB; ?> </td> <td> <input class="inputbox" type="text" name="publish_up" id="publish_up" size="25" maxlength="19" value="<?php echo $row->publish_up; ?>" /> <input type="reset" class="button" value="..." onclick="return showCalendar('publish_up', 'y-mm-dd');" /> </td> </tr> <tr> <td align="left"> <?php echo _E_FINISH_PUB; ?> </td> <td> <input class="inputbox" type="text" name="publish_down" id="publish_down" size="25" maxlength="19" value="<?php echo $row->publish_down; ?>" /> <input type="reset" class="button" value="..." onclick="return showCalendar('publish_down', 'y-mm-dd');" /> </td> </tr> <tr> <td align="left"> <?php echo _E_SHOW_FP; ?> </td> <td> <input type="checkbox" name="frontpage" value="1" <?php echo $row->frontpage ? 'checked="checked"' : ''; ?> /> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab( _E_METADATA, 'meta-page' ); ?> <table class="adminform"> <tr> <td align="left" valign="top"> <?php echo _E_M_DESC; ?> </td> <td> <textarea class="inputbox" cols="45" rows="3" name="metadesc"><?php echo str_replace('&','&',$row->metadesc); ?></textarea> </td> </tr> <tr> <td align="left" valign="top"> <?php echo _E_M_KEY; ?> </td> <td> <textarea class="inputbox" cols="45" rows="3" name="metakey"><?php echo str_replace('&','&',$row->metakey); ?></textarea> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <div style="clear:both;"></div> <input type="hidden" name="images" value="" /> <input type="hidden" name="goodexit" value="0" /> <input type="hidden" name="option" value="com_content" /> <input type="hidden" name="Returnid" value="<?php echo $Returnid; ?>" /> <input type="hidden" name="id" value="<?php echo $row->id; ?>" /> <input type="hidden" name="version" value="<?php echo $row->version; ?>" /> <input type="hidden" name="sectionid" value="<?php echo $row->sectionid; ?>" /> <input type="hidden" name="created_by" value="<?php echo $row->created_by; ?>" /> <input type="hidden" name="referer" value="<?php echo ampReplace( @$_SERVER['HTTP_REFERER'] ); ?>" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="<?php echo $validate; ?>" value="1" /> </form> <?php } /** * Writes Email form for filling in the send destination */ function emailForm( $uid, $title, $template='', $itemid ) { global $mainframe; // used for spoof hardening $validate = josSpoofValue(); $mainframe->setPageTitle( $title ); $mainframe->addCustomHeadTag( '<link rel="stylesheet" href="templates/'. $template .'/css/template_css.css" type="text/css" />' ); ?> <script language="javascript" type="text/javascript"> function submitbutton() { var form = document.frontendForm; // do field validation if (form.email.value == "" || form.youremail.value == "") { alert( '<?php echo addslashes( _EMAIL_ERR_NOINFO ); ?>' ); return false; } return true; } </script> <form action="index2.php?option=com_content&task=emailsend" name="frontendForm" method="post" onSubmit="return submitbutton();"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td colspan="2"> <?php echo _EMAIL_FRIEND; ?> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td width="130"> <?php echo _EMAIL_FRIEND_ADDR; ?> </td> <td> <input type="text" name="email" class="inputbox" size="25" /> </td> </tr> <tr> <td height="27"> <?php echo _EMAIL_YOUR_NAME; ?> </td> <td> <input type="text" name="yourname" class="inputbox" size="25" /> </td> </tr> <tr> <td> <?php echo _EMAIL_YOUR_MAIL; ?> </td> <td> <input type="text" name="youremail" class="inputbox" size="25" /> </td> </tr> <tr> <td> <?php echo _SUBJECT_PROMPT; ?> </td> <td> <input type="text" name="subject" class="inputbox" maxlength="100" size="40" /> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2"> <input type="submit" name="submit" class="button" value="<?php echo _BUTTON_SUBMIT_MAIL; ?>" /> <input type="button" name="cancel" value="<?php echo _BUTTON_CANCEL; ?>" class="button" onclick="window.close();" /> </td> </tr> </table> <input type="hidden" name="id" value="<?php echo $uid; ?>" /> <input type="hidden" name="itemid" value="<?php echo $itemid; ?>" /> <input type="hidden" name="<?php echo $validate; ?>" value="1" /> </form> <?php } /** * Writes Email sent popup * @param string Who it was sent to * @param string The current template */ function emailSent( $to, $template='' ) { global $mosConfig_sitename, $mainframe; $mainframe->setPageTitle( $mosConfig_sitename ); $mainframe->addCustomHeadTag( '<link rel="stylesheet" href="templates/'. $template .'/css/template_css.css" type="text/css" />' ); ?> <span class="contentheading"><?php echo _EMAIL_SENT." $to";?></span> <br /> <br /> <br /> <a href='java script:window.close();'> <span class="small"><?php echo _PROMPT_CLOSE;?></span> </a> <?php } } ?> и почему здесь (на форуме) код не сжимается? пасибки
  9. неа, надо чтоб в страницу вкручивалось... все, нашел, спасибо http://flv-mp3.com/ru/flv/
  10. что можно вкрутить в html код, чтобы в страницу был встроен проигрыватель flv как в yourTube?
  11. оказалось, что ошибку генерирует плагин AllVideos для Joomla 1/0/x
  12. помогите плиз установить и устранить ошибку на странице http://www.zdes-mebel.ru/ вот код ошибки Ошибки в сценариях веб-страницы Агент пользователя: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727) штамп времени: Tue, 17 Mar 2009 09:04:45 UTC Сообщение: Требуется объект Строка: 48 Символ: 3 Код: 0 URI-код: [url="http://www.zdes-mebel.ru/"]http://www.zdes-mebel.ru/[/url] Сообщение: Требуется объект Строка: 48 Символ: 3 Код: 0 URI-код: [url="http://www.zdes-mebel.ru/"]http://www.zdes-mebel.ru/[/url] Сообщение: Требуется объект Строка: 48 Символ: 3 Код: 0 URI-код: [url="http://www.zdes-mebel.ru/"]http://www.zdes-mebel.ru/[/url] Сообщение: Требуется объект Строка: 48 Символ: 3 Код: 0 URI-код: [url="http://www.zdes-mebel.ru/"]http://www.zdes-mebel.ru/[/url] Сообщение: Требуется объект Строка: 48 Символ: 3 Код: 0 URI-код: [url="http://www.zdes-mebel.ru/"]http://www.zdes-mebel.ru/[/url] Сообщение: Требуется объект Строка: 48 Символ: 3 Код: 0 URI-код: [url="http://www.zdes-mebel.ru/"]http://www.zdes-mebel.ru/[/url] Сообщение: 'null' - есть null или не является объектом Строка: 1 Символ: 152 Код: 0 URI-код: [url="http://www.zdes-mebel.ru/"]http://www.zdes-mebel.ru/[/url] причем ошибка проявляется только в ie, а в опере все ок... вот исходники шаблона: index.php <?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); $style = ""; ?> <?php require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/styleswitcher.php");?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="<?php echo _LANGUAGE; ?>"> <head> <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <?php if ( $my->id ) { initEditor(); } mosShowHead();?> <?php require_once($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/js_template_config.php");?> <?php require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/themesaver.php");?> <?php $user_positions = array('user4','user5'); $user45width = getSplit($user_positions, 1); $bottom_user_positions = array('user6','user7'); $user67width = getSplit($bottom_user_positions, 1); $style = getColumns(); ?> <link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate();?>/css/nav.css" media="screen" type="text/css" /> <link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate();?>/css/template_css.css" media="screen" type="text/css" /> <link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate();?>/css/<?php echo $scheme;?>.css" media="screen" type="text/css" /> <!--[if IE]> <link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe-> getTemplate();?>/css/ie.css" media="screen" type="text/css" /> <![endif]--> </head> <body> <div id="header-wrap"> <div id="header_<?php echo $headerstyle; ?>"> <h1> <?php if ($headerstyle=='graphic') { ?> <a href="<?php echo $mosConfig_live_site;?>" title="<?php echo $headline; ?>"><img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate();?>/images/<?php echo $scheme;?>/logo.png" title="<?php echo $headline; ?>" alt="<?php echo $slogan; ?>"/></a> <?php } ?> <?php if ($headerstyle=='text') { ?> <a href="<?php echo $mosConfig_live_site;?>" title="<?php echo $headline; ?>"><?php echo $headline;?></a> <?php } ?> </h1> <h2><?php echo $slogan;?></h2> <div id="headermod"><?php mosLoadModules ( 'newsflash',-2 ); ?></div> </div> </div> <div class="menubar"> <div id="navmenu"> <!--[if IE]> <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate();?>/js/barmenu.js"></script> <![endif]--> <?php mosLoadModules ( 'top',-1 ); ?> </div> </div> <div id="main-wrapper"> <div class="main-top<?php echo $style; ?>"></div> <div id="mainbody<?php echo $style; ?>"> <?php if (mosCountModules('left')) { ?> <div id="leftcol"> <div class="left-inside"> <?php mosLoadModules ( 'left',-3 ); ?> </div> </div> <?php } ?> <?php if (mosCountModules('right')) { ?> <div id="rightcol"> <div class="right-inside"> <?php mosLoadModules ( 'right',-3 ); ?> </div> </div> <?php } ?> <div class="main<?php echo $style; ?>"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"> <?php if (mosCountModules ('user4') || mosCountModules ('user5') ) { ?> <div id="showcase"> <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%"> <tr> <?php if(mosCountModules('user4')) : ?> <td style="width: <?php echo $user45width; ?>;padding:5px; vertical-align:top;"> <?php mosLoadModules ('user4', -3);?> </td> <?php endif; ?> <?php if(mosCountModules('user5')) : ?> <td style="width: <?php echo $user45width; ?>;padding:5px; vertical-align:top;"> <?php mosLoadModules ('user5', -3);?> </td> <?php endif; ?> </tr> </table> </div> <?php } ?> <?php if(mosCountModules('banner')) : ?> <div id="banner"><?php mosLoadModules ('banner', -1);?></div> <?php endif; ?> <?php if ($showpathway) { ?> <div id="pathway"><?php mosPathWay(); ?></div> <?php } ?> <?php mosMainBody(); ?> </td> </tr> </table> <?php if (mosCountModules ('user6') || mosCountModules ('user7') ) { ?> <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%"> <tr> <?php if(mosCountModules('user6')) : ?> <td style="width: <?php echo $user67width; ?>;padding:5px; vertical-align:top;"> <?php mosLoadModules ('user6', -3);?> </td> <?php endif; ?> <?php if(mosCountModules('user7')) : ?> <td style="width: <?php echo $user67width; ?>;padding:5px; vertical-align:top;"> <?php mosLoadModules ('user7', -3);?> </td> <?php endif; ?> </tr> </table> <?php } ?> <div class="clear"></div> </div> </div> <div class="bottom<?php echo $style; ?>"></div> <?php if (mosCountModules ('footer')) { ?> <div class="main-top-wide"></div> <div class="mainbody-wide"> <div class="footer"> <?php mosLoadModules ('footer', -1);?> </div> <div class="clear"></div> </div> <div class="bottom-wide"> </div> <?php } ?><?php echo $jstpl;?> <p><strong><a href="http://www.wsugra.ru" target="_blank">Разработка и обслуживание сайта ООО «Капитал ПЛЮС», Ханты-Мансийск 2005-2009г.г. </a></strong></p> </div> </body> </html> template_css: /* @group Global Reset */ body { margin: 0; padding: 0; } html, body, form, fieldset { margin: 0; padding: 0; font: 100%/140% Geneva, Trebuchet MS, Lucida, Arial, sans-serif; } a img { border: none; } h1, h2, h3, h4, h5, h6, p, pre,blockquote, ul, ol, dl, address { margin: 0; padding: 0; } ul { list-style: none; margin: 0px; padding: 0px; } li { padding-left: 9px; margin: 0px; } /* Miscellaneous conveniences: */ form label { cursor: pointer; } fieldset { border: none; } /* Form field text-scaling */ input, select, textarea { font-size: 100%; } a:focus { outline: none; } /* @end */ /* @group Typography */ /* Module Column Typography - sightly smaller headings */ .module h1,.moduletable h1 { font-size: 18px; } .module h2,.moduletable h2 { font-size: 16px; } .module h4,.moduletable h4 { font-size: 14px; } /* Basic Typography */ div.main-left-only ol, div.main-left-only ul, div.main-right-only ol, div.main-right-only ul, div.main-wide ol, div.main-wide ul, div.main-both ol, div.main-both ul { margin-left: 20px; } p { padding-bottom: 10px; } h1 { font-size: 20px; line-height: 125%; padding: 4px; letter-spacing: -1px; } h2 { font-size: 18px; line-height: 125%; padding: 4px; letter-spacing: -1px; } h3 { font-size: 16px; line-height: 125%; padding: 4px; letter-spacing: -1px; } h4 { font-size: 14px; line-height: 125%; padding: 4px; letter-spacing: -1px; } /* EXTRA STYLES */ p.alert { background: #f8bda9 url(../images/exc.png) no-repeat 15px 50%; /* x-pos y-pos */ text-align: left; padding: 5px 20px 5px 45px; border-top: 2px solid #FF0000; border-bottom: 2px solid #FF0000; color: #57060a; } p.info { background: #b9cce5 url(../images/info.png) no-repeat 15px 50%; /* x-pos y-pos */ text-align: left; padding: 5px 20px 5px 45px; border-top: 2px solid #466eae; border-bottom: 2px solid #466eae; color: #000; } p.warn { background: #faffb5 url(../images/warn.png) no-repeat 15px 50%; /* x-pos y-pos */ text-align: left; padding: 5px 20px 5px 45px; border-top: 2px solid #F7D229; border-bottom: 2px solid #F7D229; color: #463b0b; } /*—--SPECIAL LIST STYLE (CHANGE OR ADD ANOTHER)—--*/ ul.checklist li { list-style: none; line-height: 16px; padding: 2px 0px 2px 18px; list-style-position: outside; } ul.checklist a { text-decoration: underline; padding: 1px; } ul.checklist a:hover { text-decoration: none; padding: 1px; } /*—--BLOCKQUOTE STYLE—--*/ blockquote { padding: 10px; font-style: italic; padding: 10px; } div.code { padding: 10px; text-decoration: none; font: normal normal normal 11px "Courier New", Courier, mono; } /* @end */ /* @group Structure */ /* Header Text */ #header_text {width: 960px;margin: 0px auto;} #header_text h1, #header_text h1 a { padding:0px; text-decoration: none; } #header_text h2 { padding: 0px; margin: 0px; } /* CSS for Header Image */ #header_graphic a img { border: none; } #header_graphic {width: 960px;margin: 0px auto;} #header_text .inside,#header_graphic .inside {padding:0; margin:0;} #header_graphic h2 {text-indent: -2000em;padding:0px;margin:0px;line-height: 0px;font-size: 0;} #header_graphic .inside {padding:0; margin:0;} #pathway { margin: 0px 0px 5px 0px; font-size: 11px; } #header-wrap { width: 100%; margin: 0; } #main-wrapper { width: 964px; margin: 14px auto 0px auto; } #mainbody-both { padding: 0px; margin: 0px; } .main-top-right-only,.main-top-both,.main-top-left-only { height: 11px; width: 964px; } .main-top-wide { height: 11px; width: 964px; } .main-both { margin: 0px 230px 0px 200px; } .main-wide { margin: 0px auto; width: 952px; position: relative; } .main-left-only { margin: 0px 10px 0px 200px; } .main-right-only { margin: 0px 250px 0px 30px; width: 630px; position: relative; } #leftcol { float: left; width: 188px; padding: 0px 0px 0px 0px; } #leftcol .left-inside { margin: 0; padding: 0px 8px 0px 8px; width: auto; } #rightcol { float: right; width: 200px; padding: 5px 10px 0px 0px; } #rightcol .right-inside { margin: 0; width: auto; } /* Footer */ .bottom-right-only,.bottom-both,.bottom-left-only,.bottom-wide { height: 11px; margin: 0px 0px 5px 0px; padding: 0px; } .footer { margin: 0px; padding: 0px 10px; text-align: center; font-size: 11px; line-height: 12px; } .footer p { margin: 0px; padding: 2px 0px; } .clear { clear: both; margin: 0px; padding: 0px; height: 0px; } /* @end */ /* @group Modules */ /* Header Module */ #headermod { float: right; overflow: hidden; position: relative; } #headermod .moduletable h3 { font-size: 16px; line-height: 16px; font-weight: bold; font-variant: normal; padding-top: 8px; margin: 0; text-indent: 0px; background-image: none; } #headermod .moduletable { font-size: 11px; line-height: 145%; } #headermod .contentheading,#headermod a.contentpagetitle { font-size: 16px; line-height: 18px; } /* Module (Default) */ div.module {margin-bottom: 8px;} div.module div{} div.module div div {} div.module div div div {padding: 5px 0px 0px 0px;} div.module div div div div {padding: 0;} div.module h3,div.moduletable h3 { padding: 0; line-height: 100%; margin: 0 0 5px 0; font-weight: normal; text-indent: 9px; font-size: 16px; } /* Module Unstyled */ div.module-none { margin-bottom: 10px; background: none; } div.module-none div { background: none; } div.module-none div div { background: none; } div.module-none div div div { background: none; padding: 0px; margin: 0px; } div.module-none div div div div { background: transparent none; padding: 0; } div.module-none h3 { margin: 10px 0; padding:0; line-height: 100%; height: auto; margin: 0 0 5px 0; font-weight: normal; text-indent: 15px; font-size: 18px; font-style: normal; border: none; color: #333333; } /* Overrides - Must come after module structure */ #showcase, .bottom { margin: 0px;padding: 0px; } #leftcol ul#mainlevel li,#rightcol ul#mainlevel li, #leftcol ul#mainlevel-sidenav li,#rightcol ul#mainlevel-sidenav li { background-image: none; padding: 0px; } #leftcol ul#mainlevel,#rightcol ul#mainlevel, #leftcol ul#mainlevel-sidenav,#rightcol ul#mainlevel-sidenav { background-image: none; list-style: none; } #leftcol a.mainlevel,#rightcol a.mainlevel, #leftcol a.mainlevel-sidenav,#rightcol a.mainlevel-sidenav { line-height: 27px; height: 27px; padding-left: 8px; margin-bottom: 2px; text-decoration: none; display: block; font-size: 12px; } #leftcol a.mainlevel:hover,#rightcol a.mainlevel:hover, #leftcol a.mainlevel-sidenav:hover,#rightcol a.mainlevel-sidenav:hover { } #leftcol a#active_menu.mainlevel,#leftcol a#active_menu.mainlevel:hover, #rightcol a#active_menu.mainlevel,#rightcol a#active_menu.mainlevel:hover { } a.sublevel,a.sublevel-sidenav { padding-left: 4px; font-size: 12px; } a.sublevel.img { } /* Banner */ div#banner { margin: 0px auto 10px auto; text-align: center; } /* @end */ /* @group Joomla Styles */ table.contentpaneopen ul, table.contentpaneopen ol { list-style-position: inside; } /* Tables */ table.contentpaneopen { margin: 0; padding: 0; width: 100%; } table.blog table.contentpaneopen { white-space: normal; border-collapse:separate; } table table.contentpaneopen td, table table.contentpane td { padding: 0px 4px; } table.contentpaneopen, table.contentpane, table.blog { border-collapse: collapse; width: 100%; } div.blog_more { padding: 0px 10px; } div.blog_more strong { position: relative; } div.blog_more ul li { list-style: none; background-image: none; padding: 0px; } div.blog_more ul li a { text-decoration: none; display: block; padding: 4px; } div.blog_more ul li a:hover { text-decoration: none; display: block; padding: 4px; } /* Polls Module */ table.pollstableborder { width: 100%; text-align: left; } table.poll { font-size: 11px; } .smalldark { white-space: nowrap; } .sectiontableentry1 a, .sectiontableentry2 a { text-decoration: none; } li a.category { font-weight: bold; text-decoration: none; } table.contentpane tr td ul { list-style: none; } /* Print-PDF-EMail */ body.contentpane { background: #fff; margin: 25px; } span.pagenav { color: #9e9984; } td.modifydate { line-height: 30px; } div.mosimage { margin: 10px; } div.mosimage_caption { font: 10px/12px Arial, Helvetica, Geneva, sans-serif; padding: 2px; } div.mosimage img { padding: 5px; } /* Content Headings */ a.contentpagetitle { font-size: 20px; font-weight: normal; white-space: normal; line-height: 145%; padding: 4px 0px 0px 0px; margin-bottom: 6px; text-decoration: none; } a.contentpagetitle:hover { text-decoration: none; } td.contentheading { width: 100%; } .contentheading { font-size: 20px; font-weight: normal; white-space: normal; line-height: 115%; padding: 4px 0px 0px 0px; margin-bottom: 6px; font-style: normal; letter-spacing: -1px; } .componentheading { font-size: 20px; line-height: 30px; font-weight: bold; } a.readon { float: right; padding-left: 18px; line-height: 15px; font-size: 12px; text-decoration: none; } .pagenav_next a,.pagenav_prev a { margin: 15px 15px 0px 0px; padding: 1px 4px; text-align: center; text-decoration:none; font: 12px Arial, Helvetica, Geneva, sans-serif; } div.back_button a { margin: 15px 15px 0px 0px; border: 1px solid #adc387; padding: 1px 2px; text-align: center; text-decoration:none; float: right; font: 12px "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; } .pagenav_next a:hover,.pagenav_prev a:hover,div.back_button a:hover { text-decoration:none; } div.pagenavbar a, div.pagenavbar { text-decoration: none; font-size: 11px; } table.contenttoc { font-size: 12px; } table.contenttoc th { font-size: 16px; font-weight: normal; font-style: normal; font-variant: small-caps; } table.contenttoc td { font-size: 14px; padding: 2px 8px; } table.contenttoc a.toclink { font-size: 12px; text-decoration: none; } /* @end */ и еще есть стили в папке css: body { background: #adc387 url(../images/style1/pagetop_bg.png) repeat-x 0px 152px; margin: 0; padding: 0; font-size: 12px; color: #686362; line-height: 129%; } /* @group Typography */ /* Link Colors */ a { color: #557F01; text-decoration: underline; } a:hover { color: #333333; text-decoration: underline; } li { background: url(../images/style1/bullet.gif) no-repeat 0 5px; } /* $headerstyle(graphic) */ #header_graphic a img { padding-top: 15px; /* Header Text distance from top */ } /* Total header height */ #header-wrap,#header_text,#header_graphic { height: 110px; } /* Header background color/image */ #header-wrap { background: #333333 url(../images/style1/header_bg.png) repeat-x; } /* $headerstyle(text) */ #header_text h1, #header_text h1 a { color: #fff; /* Header Text Color */ padding-top:15px; /* Header Text distance from top */ font: bold 40px/50px "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; /* Header Text Typograhy */ letter-spacing: -1px; } #header_text h2 { color: #d4e3b9; /* Slogan Text Color */ font: italic bold 18px/18px Geneva, Verdana, sans-serif;/* Slogan Text Typograhy */ } /* Heading Styles */ h1 { color: #333333; } h2 { color: #690; } h3 { color: #727272; } h4 { color: #727272; } blockquote { border: 1px solid #adc387; background-color: #e4edd5; } .footer { color: #6f6f6f; } /* @end */ /* @group Newsflash Module */ #headermod { height: 98px; /* Module Height */ width: 0px; /* Module Width */ top:10px; /* Distance from top */ color: #dbded3; /* Text Color */ } #headermod .contentheading,#headermod a.contentpagetitle,#headermod a { color: #f9f9f2;/* Heading/Link Color */ } #headermod td.contentheading,#headermod .moduletable h3 { border-bottom: 1px solid #43643d;/* Content/Module Heading Border */ } /* @end */ /* @group Joomla! Styles */ /* Category Tables */ td.sectiontableheader { color: #fff; background-color: #557f01; font: 14px/20px Arial, Helvetica, Geneva, sans-serif; } table tr.sectiontableentry1 td, table td.sectiontableentry1 { background: #fff; padding: 4px; border-bottom: 1px solid #f0f0f0; line-height: 155%; } table tr.sectiontableentry2 td, table td.sectiontableentry2 { background: #fff; padding: 4px; border-bottom: 1px solid #f0f0f0; line-height: 155%; } /* Polls */ table.pollstableborder td.sectiontableentry1 { color: #3d2518; background: #f8f8f8; padding: 2px; border-bottom: 1px solid #fff; } table.pollstableborder td.sectiontableentry2 { color: #3d2518; background: #f2f2f2; padding: 2px; border-bottom: 1px solid #fff; } table.pollstableborder td.sectiontableheader { padding: 8px; color: #fff; border: none; } table.pollstableborder tr.sectiontableentry1 td { border: none; } table.pollstableborder tr.sectiontableentry2 td { border: none; } /* Article Overflow */ div.blog_more { border-top: 1px solid #e6e6d4; } div.blog_more ul li a { border-bottom: 1px solid #dadacc; } div.blog_more ul li a:hover { border-bottom: 1px solid #dadacc; background-color: #fefdf2; } /* Mosimages */ div.mosimage { border: 1px solid #ccc; background: #f7f7f7; } div.mosimage_caption { color: #666; background: #fff; border-top: 1px solid #ccc; } /* Content Headings */ a.contentpagetitle { color: #470705; } a.contentpagetitle:hover { color: #000; } td.contentheading { border-bottom: 1px solid #efefdd; color: #466A02; } .contentheading { color: #466A02; } .componentheading { color: #333333; } a.readon { background: url(../images/style1/readon.png) no-repeat left center; } span.small,.createdate,.modifydate { font: 10px/10px Tahoma, Lucida, Verdana, sans-serif; color: #adc387; } .pagenav_next a,.pagenav_prev a { background: #e4edd5; border: 1px solid #adc387; color: #8fa26f; } div.back_button a { background: #e4edd5; border: 1px solid #adc387; color: #8fa26f; } .pagenav_next a:hover,.pagenav_prev a:hover,div.back_button a:hover { background-color: #fff; color: #8fa26f; } table.contenttoc { background-color: #f5f2e1; border: 1px solid #e8e6d8; } table.contenttoc th { background-color: #557f01; color: #fffef1; } /* @end */ /* Conditional Styles - Advanced Edits Only Below This Line */ /* @group Style 1 Modules */ div.module h3,div.moduletable h3 { border-bottom: 1px solid #EFEFDD; color: #466A02; background: url(../images/style1/mod_heading.png) no-repeat left center; } /* Module "S1" Text Style */ .moduleS1 {position:relative;margin:0 0 1em;padding:0;background: #333333 url(../images/style1/topright_S1.png) top right no-repeat;color: #FFFFFF;} div.moduleS1 div {background: url(../images/style1/topleft_S1.png) top left no-repeat;} div.moduleS1 div div {background: url(../images/style1/botleft_S1.png) bottom left no-repeat; height:1%;} div.moduleS1 div div div {background: url(../images/style1/botright_S1.png) bottom right no-repeat;padding:10px;} div.moduleS1 div div div div {background:none;} /* Module Heading "S1" Style */ div.moduleS1 h3 {padding: 0;line-height: 100%;height: auto;margin: 0 0 5px 0;font-weight: normal;text-indent: 0px;font-size: 16px;letter-spacing: normal;border-bottom: 1px solid #40603a;color: #fff;} /* Module "S1" Link Color */ div.moduleS1 a {color: #FFFFFF;text-decoration:underline;} div.moduleS1 a:hover {color: #FFFFFF;text-decoration:none;} /* Module "S1" List Styles */ div.moduleS1 ul,div.moduleS1 ul.latestnewsS1,div.moduleS1 ul.mostreadS1 {list-style: none;margin: 0px;padding:0px;}div.moduleS1 ul li,div.moduleS1 ul.latestnewsS1 li,div.moduleS1 ul.mostreadS1 li {padding: 0px 0px 0px 10px;margin: 0px;background: url(../images/style1/bullet_S1.gif) no-repeat 0px 5px;white-space: normal;} /* Module "S2" Text Style */ .moduleS2 {position:relative;margin:0 0 1em;padding:0;background: #669900 url(../images/style1/topright_S2.png) top right no-repeat;color: #FFFFFF;} div.moduleS2 div {background: url(../images/style1/topleft_S2.png) top left no-repeat;} div.moduleS2 div div {background: url(../images/style1/botleft_S2.png) bottom left no-repeat; height:1%;} div.moduleS2 div div div {background: url(../images/style1/botright_S2.png) bottom right no-repeat;padding:10px;} div.moduleS2 div div div div {background:none;} /* Module Heading "S2" Style */ div.moduleS2 h3 {padding: 0;line-height: 100%;height: auto;margin: 0 0 5px 0;font-weight: normal;text-indent: 0px;font-size: 16px;letter-spacing: normal;border-bottom: 1px solid #78b31c;color: #FFF;} /* Module "S2" Link Color */ div.moduleS2 a {color: #FFFFFF;text-decoration:underline;} div.moduleS2 a:hover {color: #FFFFFF;text-decoration:none;} /* Module "S2" List Styles */ div.moduleS2 ul,div.moduleS2 ul.latestnewsS2,div.moduleS2 ul.mostreadS2 {list-style: none;margin: 0px;padding:0px;}div.moduleS2 ul li,div.moduleS2 ul.latestnewsS2 li,div.moduleS2 ul.mostreadS2 li {padding: 0px 0px 0px 10px;margin: 0px;background: url(../images/style1/bullet_S2.gif) no-repeat 0px 5px;white-space: normal;} /* Module "S3" Text Style */ .moduleS3 {position:relative;margin:0 0 1em;padding:0;background: #ebebeb url(../images/style1/topright_S3.png) top right no-repeat;color: #333333;} div.moduleS3 div {background: url(../images/style1/topleft_S3.png) top left no-repeat;} div.moduleS3 div div {background: url(../images/style1/botleft_S3.png) bottom left no-repeat; height:1%;} div.moduleS3 div div div {background: url(../images/style1/botright_S3.png) bottom right no-repeat;padding:10px;} div.moduleS3 div div div div {background:none;} /* Module Heading "S3" Style */ div.moduleS3 h3 {padding: 0;line-height: 100%;height: auto;margin: 0 0 5px 0;font-weight: normal;text-indent: 0px;font-size: 16px;letter-spacing: normal;border-bottom: 1px solid #d3d3d3;color: #466a02;} /* Module "S3" Link Color */ div.moduleS3 a {color: #66852D;text-decoration:underline;} div.moduleS3 a:hover {color: #66852D;text-decoration:none;} /* Module "S3" List Styles */ div.moduleS3 ul,div.moduleS3 ul.latestnewsS3,div.moduleS3 ul.mostreadS3 {list-style: none;margin: 0px;padding:0px;}div.moduleS3 ul li,div.moduleS3 ul.latestnewsS3 li,div.moduleS3 ul.mostreadS3 li {padding: 0px 0px 0px 10px;margin: 0px;background: url(../images/style1/bullet_S3.gif) no-repeat 0px 5px;white-space: normal;} /* @end */ /* @group Structural */ .main-top-both,.main-top-left-only {background: url(../images/style1/top_has_left.png) no-repeat center bottom;} .main-top-wide,.main-top-right-only {background: url(../images/style1/top_wide.png) no-repeat center bottom;} #mainbody-both {background: url(../images/style1/mid_left_right.png) repeat-y center top;} #mainbody-left-only {background: url(../images/style1/mid_leftonly.png) repeat-y center top;} #mainbody-wide,.mainbody-wide,#mainbody-right-only {background: url(../images/style1/mid_wide.png) repeat-y center top;} .bottom-both,.bottom-left-only {background: url(../images/style1/bot_has_left.png) no-repeat center top;} .bottom-wide,.bottom-right-only {background: url(../images/style1/bot_wide.png) no-repeat center top;} .tplcright a {color: #fff;display: block;margin: 4px 0px 2px 5px;text-align: center;background: url(../images/style1/arrowl.png) no-repeat left center;text-indent: -5000em;width: 75px;height: 12px;line-height: 12px;padding: 0px;} ul.checklist li {background: url(../images/style1/checklist.png) no-repeat left center;} /* @end */ /* @group Top Menu */ .menubar { background: url(../images/style1/navcontainer.png) repeat-x center top; } #navmenu { background: url(../images/style1/navcontainer.png) no-repeat left top; } #navmenu li { background: url(../images/style1/nav_norm_l.png) no-repeat bottom left; } #navmenu li a { background: url(../images/style1/nav_norm_r.png) no-repeat bottom right; color: #fff; } div#navmenu li:hover, div#navmenu li.iehover { background: url(../images/style1/nav_hover_l.png) no-repeat bottom left; } div#navmenu li:hover a, div#navmenu li.iehover a { background: url(../images/style1/nav_hover_r.png) no-repeat bottom right; color: #557f01; } div#navmenu li.active { background: url(../images/style1/nav_active_l.png) no-repeat bottom left; } div#navmenu li.active a { background: url(../images/style1/nav_active_r.png) no-repeat bottom right; color: #FFF; } /* @end */ /* @group Left Nav */ #leftcol ul#mainlevel,#rightcol ul#mainlevel, #leftcol ul#mainlevel-sidenav,#rightcol ul#mainlevel-sidenav { list-style: none; } #leftcol a.mainlevel,#rightcol a.mainlevel, #leftcol a.mainlevel-sidenav,#rightcol a.mainlevel-sidenav { background: url(../images/style1/leftnav_norm.png) no-repeat left center; color: #333333; } #leftcol a.mainlevel:hover,#rightcol a.mainlevel:hover, #leftcol a.mainlevel-sidenav:hover,#rightcol a.mainlevel-sidenav:hover { background: url(../images/style1/leftnav_over.png) no-repeat left center; color: #fff; } #leftcol a#active_menu.mainlevel,#leftcol a#active_menu.mainlevel:hover, #rightcol a#active_menu.mainlevel,#rightcol a#active_menu.mainlevel:hover, #leftcol a#active_menu-sidenav.mainlevel-sidenav,#leftcol a#active_menu-sidenav.mainlevel-sidenav:hover, #rightcol a#active_menu-sidenav.mainlevel-sidenav,#rightcol a#active_menu.mainlevel-sidenav:hover { background: url(../images/style1/leftnav_active.png) no-repeat left center; color: #fff; } a.sublevel,a.sublevel-sidenav { color: #000; } /* @end */ файл ie.css довольно простой #main-wrapper { position: relative; top: -5px; } #navmenu li a { line-height: 22px; padding: 4px 10px 4px 0px; display: inline; } очень нужно !!!!!!!;!! спасибо огромное заранее
  13. так как это выглядит на yourtube для CMS такие решения есть, а для обычного сайта на html? заранее спасибо
  14. ссылка вот http://www.wsugra.ru/severlex/index.php?op...3&Itemid=48 а еслиб я знал какое место в css отвечает за размер мендю, я бы думаю сам поменять смог. но нету. там на взгляд пикселей 200 сейчас стоит . надо на 250 поменять....
  15. перенос уже не подойдет - надо фиксировать ширину меню..... как локализовать?
  16. 2 длинных слова в пункте меню переносятся. вижу два выхода: либо запретить перенос слов в меню, либо расширить и зафиксировать само меню... подскажите как реализовать плиз.... вот код заранее признателен!!! /**** author - rgb(raduga) http://mambasana.ru ***/ body,html { padding : 0; margin : 0; margin-bottom : 10px; } #body_bg{ background : url(../images/bg_top.jpg) #ffffff repeat-x top left; } .main { float : left; width : 100%; margin : 0; padding : 0; } .mod { background : #FFFFFF; width : 2px; } td, tr, p, div { font-family : Arial, Verdana, Tahoma, Helvetica, sans-serif; font-size : 12px; color : #000000; } hr { color : #999999; height : 1px; width : 100%; } form { margin : 0; padding : 0; } .leftrow { width : 169px; height : 100%; margin-right : 0; background : #f5f5f5; } .rightrow { height : 100%; width : 169px; margin-left : 0; background : #f5f5f5; } .back_button { color : #999999; font-family : Tahoma, Arial, Verdana, Helvetica, sans-serif; font-size : 11px; font-weight : normal; padding-bottom : 3px; margin-right : 4px; float : right; line-height : 20px; } .button { font-size : 11px; color : #333333; border : 1px solid #999999; margin : 3px; background-color : #EDEDED; padding : 2px !important; padding : 1px; cursor : pointer; } .inputbox { color : #000000; background : #ffffff; border : 1px solid #cccccc; margin : 3px; } .contact_email { width : 100%; } .contact_email .inputbox { width : 345px; } table.moduletable { margin : 0 0 8px 0; width : 100%; background : #f5f5f5; padding-bottom : 2px; } table.moduletable th { font-family : Tahoma, Arial, Verdana, Helvetica, sans-serif; font-size : 11px; font-weight : bold; text-align : left; width : 100%; background-color : #5B7696; color : #f1f1f1; padding : 2px; text-indent : 10px; line-height : 15px; } table.moduletable td { padding-top: 2px; } .sectiontableheader { font-size : 11px; font-weight : normal; text-transform : uppercase; letter-spacing : 1px; color : #f1f1f1; background : #5B7696; padding : 1px; } .sectiontableentry1 { vertical-align : top; padding : 3px; background : none; border-bottom : 1px solid #ffffff; line-height : 25px; } .sectiontableentry2 { vertical-align : top; padding : 3px; border-bottom : 1px solid #ffffff; background : #e0e0e8; line-height : 25px; } .sectiontableentry1 img{ padding-right: 4px !important; padding-right: 2px; } .sectiontableentry2 img{ padding-right: 4px !important; padding-right: 2px; } a.mainlevel { display : block; width : auto; margin : 1px 0px; padding : 0; font-size : 12px; background : none; text-indent : 10px; } a.mainlevel:link, a.mainlevel:visited { display : block; font-size : 12px; border : 1px solid #cccccc; background-color : #f1f1f1; font-weight : normal; padding : 2px 0; color : #666666; font-weight : bold; text-indent : 10px; } a.mainlevel:hover { border : 1px solid #cccccc; background-color : #E0E0E8; font-size : 12px; font-weight : normal; color : #666666; text-decoration : none; text-indent : 10px; } #active_menu { color : #000066; border : 1px solid #cccccc; background-color : #E0E0E8; font-weight : bold; } a#active_menu:hover { color : #333333; } a:link, a:visited { font-size : 11px; color : #999999; text-decoration : none; font-weight : bold; } a:hover { font-size : 11px; color : #3333ff; text-decoration : none; font-weight : bold; } a.category:link, a.category:visited { font-size : 11px; font-weight : bold; } a.readon:link, a.readon:visited { color : #999999; font-family : Tahoma, Arial, Verdana, Helvetica, sans-serif; font-size : 11px; background : url(../images/readon.gif) no-repeat; white-space : normal; font-weight : bold; padding : 1px 0 3px 18px; float : right; line-height : 10px; text-decoration : underline; } a.readon:hover { color : #3333ff; font-family : Tahoma, Arial, Verdana, Helvetica, sans-serif; font-size : 11px; background : url(../images/readon.gif) no-repeat; white-space : normal; font-weight : bold; padding : 1px 0 3px 18px; line-height : 10px; text-decoration : underline; } ul { margin : 2px; padding-left : 10px; list-style : none; } li { line-height : 15px; padding-left : 10px; padding-top : 0; background-image : url(../images/strelka.gif); background-repeat: no-repeat; background-position: 0px 5px; } table.contenttoc { border : 1px solid #dcdcdc; background : #F1F1F1; padding : 5px; margin-left : 2px; margin-bottom : 2px; } .pagenavcounter { font-size : 10px; color : #0066CC; } .pagenavbar { border-top : 1px solid #999999; padding : 2px; } .pagenav { font-weight : bold; } a.pagenav:link, a.pagenav:visited { font-size : 11px; color : #999999; text-decoration : none; } a.pagenav:hover { font-size : 11px; color : #3333ff; text-decoration : none; } .date { font-size : 10px; font-weight : bold; color : #707070; padding-right : 10%; } .small { font-size : 10px; color : #333333; } .smalldark { font-size : 10px; color : #333333; } .createdate, .modifydate { float : left; font-size : 10px; color : #666666; font-weight : bold; } .content_vote { font-size : 10px; height : 22px; padding-top : 2px; padding-bottom : 2px; } .content_rating { font-size : 10px; color : #999999; } .pathway { font-size : 11px; color : #333333; padding-left : 6%; } a.pathway:link, a.pathway:visited { font-size : 11px; padding-left : 0; } a.pathway:hover { font-size : 11px; padding-left : 0; } table.content{ width : 100%; padding : 0; border-collapse : collapse; border-spacing : 0; margin-bottom : 10px; } table.contentpane { width : 100%; border-spacing : 0; padding-left : 5px; padding-right : 5px; margin-bottom : 5px; } table.contentpaneopen { width : 100%; border-spacing : 0; padding-left : 5px; padding-right : 5px; margin-bottom : 5px; } .poll { color : #333333; line-height : 12px; font-weight: normal; } .pollstableborder{ border-color : #999999; } .contentheading,.componentheading { border-bottom : 1px solid #000066; font-size : 13px; font-weight : bold; line-height : 16px; text-transform : uppercase; text-align : left; text-indent : 0; color : #000066; width : 100%; padding : 1px; margin: 3px 0px; } .ontab { border-left : 1px solid #666666; text-align : center; font-weight : bold; color : #333333; padding : 5px; cursor : pointer; line-height : 30px; } .offtab { border-left : 1px solid #666666; text-align : center; color : #999999; font-weight : normal; padding : 5px; cursor : pointer; line-height : 30px; } .tabpadding { border-left : 1px solid #666666; } .footer { font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 10px; color : #666666; font-weight : bold; height : 31px; border-top : 1px solid #cccccc; } .footer a:link, .footer a:visited { font-size : 10px; color : #666666; text-decoration : none; font-weight : bold; } .footer a:hover { font-size : 10px; color : #999999; text-decoration : none; font-weight : bold; } .lcol { vertical-align : top; background : #ffffff; padding-top: 5px; border-left : 1px solid #cccccc; padding-left: 3px; } .rcol { vertical-align : top; background : #ffffff; padding-top: 5px; border-right : 1px solid #cccccc; padding-right: 3px; } .foot { background : none; vertical-align : top; } .contentdescription { width : auto !important; margin : 0; padding : 0; padding-top : 5px; text-align : left; } td.top1{ margin: 0; padding: 0; height: 28px !important; height: 28px; padding-top: 2px !important; padding-top: 3px; background : url(../images/shadow.jpg) #ffffff repeat-x top; } table.top2{ background : #ffffff; } .searchbox { margin : 0; padding : 0; margin-top : 13px; margin-left : 10px; width : 130px; font-size : 11px; color : #707070; padding : 2px !important; padding : 1px; border : 1px solid #cccccc; background : none; } .sublevel { font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size : 10px; font-weight : bold; color : #999999; padding : 3px 1px 3px 5px; margin : 3px; } a.sublevel:link, a.sublevel:visited { color : #999999; text-decoration : none; } a.sublevel:hover { color : #000066; text-decoration : none; } a.sublevel#active_menu { background : transparent; color : #000066; border : 0px; } td.logoheader { margin: 0; padding: 0; background : url(../images/header.jpg) no-repeat bottom left; height : 100px; width : 100%; } td.topnav { margin : 0px; padding: 0px; background : url(../images/bg_top.jpg) repeat-x top left; height : 42px; width : 770px; } td.bgline { margin : 0px; padding: 0px; background : url(../images/s.gif) repeat-y; width : 7px; } #mainlevel-nav { font-size : 11px; list-style : none; padding : 0; margin : 0; margin-left : 1px; } #mainlevel-nav li { float : right; display : block; list-style : none; background-image : none; padding-left : 2px; padding-right : 2px; margin : 0; width : auto !important; font-size : 11px; line-height : 28px; white-space : nowrap; border-left : 1px solid #cccccc; } #mainlevel-nav li a { padding-left : 10px; padding-right : 10px; font-size : 11px; color : #000033; text-decoration : none; } #mainlevel-nav li a:hover { font-size : 11px; color : #999999; } .blog_more { margin : 10px 0 7px 7px; } .buttonheading { padding : 0 2px; } .mosimage { border : 1px solid #dedede; margin : 5px; padding-top: 3px; } .mosimage_caption { margin-top: 3px; padding : 2px; color : #000066; font-size : 10px; background: #f1f1f1; }
  17. подскажите как сделать таблицу с шириной бокового бордюра в 1 пикс, но чтобы верхн и нижн бордюры были по 0 пикс..... то етсь мне нужна рамка по краю сайта, но без верха и низа... заранее признателен
  18. ладно... а может кто знает скрипт "сегодняшняя дата"?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy