Jump to content
  • 0

Как объединить два языка


danila_omega
 Share

Question

Есть вот такой код на html


<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Главная страница</title>
<style type="text/css">
.GlavnoeMenuZastavka {

}
</style>
</head>
<body>
<div style="font-weight:bold; ">
<table class="GlavnoeMenuZastavka" border="0" cellpadding="60" cellspacing="0">
<tr align="center" >
<td>
<a href="http://m-training01.etsp.ru/view_doc.html?mode=Uchebcenter"><img src="icons\Damir\Uchebcenter.png" width="150" height="150" border="0" alt="Учебный центр.png"></a>
<p style="margin:0px;">Учебный центр</p>
</td>
<td>
<a href="http://m-training01.etsp.ru/view_doc.html?mode=Sertifikati"><img src="icons\Damir\Dostigeniya.png" width="150" height="150" border="0" alt="Наши достижения.png"></a>
<p style="margin:0px;">Наши достижения</p>
</td>
<td>
<a href="http://m-training01.etsp.ru/view_doc.html?mode=Photo"><img src="icons\Damir\Photo.png" width="150" height="150" border="0" alt="Фотогалерея.png"></a>
<p style="margin:0px;">Фотогалерея</p>
</td>

</tr>
<tr align="center" >
<td>
<a href="http://m-training01.etsp.ru/view_doc.html?mode=Reyting"><img src="icons\Damir\Reyting.jpg" width="150" height="150" border="0" alt="Рейтинг"></a>
<p style="margin:0px;">Рейтинг</p>
</td>
<td>
<a href="http://m-training01.etsp.ru/view_doc.html?mode=kontakti"><img src="icons\Damir\Kontakti.jpg" width="185" height="150" border="0" alt="Контакты"></a>
<p style="margin:0px;">Контакты</p>
</td>
<td>
<a href="http://m-training01.etsp.ru/view_doc.html?mode=Voprosi"><img src="icons\Damir\Voprosi.png" width="150" height="150" border="0" alt="Часто задаваемые вопросы"></a>
<p style="margin:0px;">Часто задаваемые вопросы</p>
</td>
</tr>
</table>
</div>
</body>
</html>

И есть вот такой код как их объединить в один чтобы сначала был первый а следом за ним на странице отображался второй

Второй код:

[/color][/size][/font]
%>

<script type="text/javascript" src="/social/wsn.js" language="javascript"></script>
<link href="/social/wsn.css" rel="stylesheet" type="text/css" />

<%
iObjID = curObjectID == null ? curDocID : curObjectID;
sObjName = curObjectID == null ? "document" : curObject.Name;
curSocialBlock = tools_web.get_social_object_access( iObjID, sObjName );

/* права юзера по этому объекту */

bUserAllowViewList = curSocialBlock.allow_view_list; // - может ли просматривать списки лайкеров/дизлайкеров/фолловеров - сейчас одна переменная - можно разбить на три
bUserAllowViewNumbers = curSocialBlock.allow_view_numbers; // - показывать ли число лайкеров/дизлайкеров/фолловеров - сейчас одна переменная - можно разбить на три
bUserViewLike = curSocialBlock.view_like; // - видит ли юзер опцию Лайк
bUserViewDislike = curSocialBlock.view_dislike; // - видит ли юзер опцию Дизлайк
bUserViewFollow = curSocialBlock.view_follow; // - видит ли юзер опцию Отслеживать
bUserAllowLike = curSocialBlock.allow_like; // - может ли лайкать этот объект
bUserAllowDislike = curSocialBlock.allow_dislike; // - может ли дизлайкать этот объект
bUserAllowFollow = curSocialBlock.allow_follow; // - может ли подписываться/отписываться
bUserAllowShare = curSocialBlock.allow_share; // - может ли делиться (на будущее)
bUserAllowComment = curSocialBlock.allow_comment; // - true|false //read|read-write|none

iUserLikeWeight = curSocialBlock.like_weight; // - вес юзерского лайка
iUserDislikeWeight = curSocialBlock.dislike_weight; // - вес юзерского дизлайка

/* ************************************************** */

Server.Execute("/social/const_soc.html");
Server.Execute("/social/view_soc_strip.html");
Server.Execute("/social/view_soc_storage.html");

%>

<div class="WTCSS-soc WTCSS-soc-block" id="wt-soc-block-<%=iObjID%>">
<div class="wrapper" id="wt-soc-block-wrapper-<%=iObjID%>">
<div class="comments-tree">
<ul class="ribbon object-tree" wt_user_id="<%=curUserID%>" wt_object_id="<%=iObjID%>">
<li class="fake-object-entry wall-entry" id="wall-item-<%=iObjID%>" wt_object_id="<%=iObjID%>">
<div class="comments">
<div class="controls" id="wt-soc-block-controls-<%=iObjID%>">
<%
Response.Write( fnBuildControlStrip("like|dislike|reply|hide_comments_tree|spacer|follow|share") );
%>
</div>
<div class="comments-container" style="display: none;">
<ul class="comments-tree"></ul>
</div>
</div>
</li>
</ul>
</div>
<div class="current-access" style="display: none;">{"view_like":true,"view_dislike":true,"view_follow":true,"allow_like":true,"allow_dislike":true,"allow_follow":true,"allow_share":true,"allow_comment":true,"allow_view_numbers":true,"allow_view_list":true,"like_weight":1,"dislike_weight":null}</div>
</div>
</div>

<script>$(document).ready( function () { WSN.Load.Tree(); } );</script>

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Обсуждения

    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com Портфолио https://www.behance.net/d4d4186e Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ    
    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com   Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ   Портфолио https://www.behance.net/d4d4186e
    • Доброго всем времени суток. Прошу помощи. Научите принципу изменения футера. Движок Xenforo. Версия 2.2.10. Стиль дефолтный. Что именно нужно в итоге на фото примере. Мой шаблон app.footer less имеет следующее значение.  .p-footer { .xf-publicFooter(); a { .xf-publicFooterLink(); } } .p-footer-inner { .m-pageWidth(); .m-pageInset(); padding-top: @xf-paddingMedium; padding-bottom: @xf-paddingLarge; } .p-footer-row { .m-clearFix(); margin-bottom: -@xf-paddingLarge; } .p-footer-row-main { float: left; margin-bottom: @xf-paddingLarge; } .p-footer-row-opposite { float: right; margin-bottom: @xf-paddingLarge; } .p-footer-linkList { .m-listPlain(); .m-clearFix(); > li { float: left; margin-right: .5em; &:last-child { margin-right: 0; } a { padding: 2px 4px; border-radius: @xf-borderRadiusSmall; &:hover { text-decoration: none; background-color: fade(@xf-publicFooterLink--color, 10%); } } } } .p-footer-rssLink { > span { position: relative; top: -1px; display: inline-block; width: 1.44em; height: 1.44em; line-height: 1.44em; text-align: center; font-size: .8em; background-color: #4682B4; border-radius: 2px; } .fa-rss { color: white; } } .p-footer-copyright { margin-top: @xf-elementSpacer; text-align: center; font-size: @xf-fontSizeSmallest; } .p-footer-debug { margin-top: @xf-paddingLarge; text-align: right; font-size: @xf-fontSizeSmallest; .pairs > dt { color: inherit; } } @media (max-width: @xf-responsiveMedium) { .p-footer-row-main, .p-footer-row-opposite { float: none; } .p-footer-copyright { text-align: left; padding: 0 4px; // aligns with other links } }  
    • Нужны сайты с примерами верстки, типа https://css-tricks.com/. Типовые приемы и нестандартные на все случаи жизни. Накидайте ссылок.
×
×
  • 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