index_body

In this example below you will see how to do a index_body with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by KALTEIS, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright KALTEIS ©

Technologies

  • HTML
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>index_body</title>
  
  
  
  
  
</head>

<body>

  {JAVASCRIPT}
<!-- BEGIN message_admin_index -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
	<!-- BEGIN message_admin_titre -->
	<tr>
		<td class="catHead" height="28"><span class="cattitle">{message_admin_index.message_admin_titre.MES_TITRE}</span></td>
	</tr>
	<!-- END message_admin_titre -->
	<!-- BEGIN message_admin_txt -->
	<tr>
		<td class="row1" rowspan="3" align="center" valign="middle">
		<div class="gensmall">{message_admin_index.message_admin_txt.MES_TXT}</div>
		</td>
	</tr>
	<!-- END message_admin_txt -->
</table>
<!-- END message_admin_index -->

<!-- BEGIN switch_user_login_form_header -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
	<!-- BEGIN switch_fb_connect_no -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
		<tr>
			<td class="row1" align="center">
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td><span class="genmed">{L_USERNAME}:</span>&nbsp;</td>
						<td><input class="post" type="text" size="10" name="username"/>&nbsp;</td>
						<td>
							<input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
							<span class="gensmall">{L_AUTO_LOGIN}</span>&nbsp;
						</td>
					</tr>

					<tr>
						<td><span class="genmed">{L_PASSWORD}:</span>&nbsp;</td>
						<td><input class="post" type="password" size="10" name="password"/>&nbsp;</td>
						<td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<!-- END switch_fb_connect_no -->

	<!-- BEGIN switch_fb_connect -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
		<tr>
			<td valign="top" width="100%" class="row1" align="center">
				<table width="100%">
					<tr>
						<td width="55%" valign="middle" align="right">
							<table class="right">
								<tr>
									<td><span class="genmed">{L_USERNAME}:</span>&nbsp;</td>
									<td><input class="post" type="text" size="10" name="username"/>&nbsp;</td>
									<td>
										<input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
										<span class="gensmall">{L_AUTO_LOGIN}</span>&nbsp;
									</td>
								</tr>

								<tr>
									<td><span class="genmed">{L_PASSWORD}:</span>&nbsp;</td>
									<td><input class="post" type="password" size="10" name="password"/>&nbsp;</td>
									<td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
								</tr>
							</table>
						</td>
						<td width="10%" align="center" valign="middle">
							<span class="genmed fb_or">{switch_user_login_form_header.switch_fb_connect.L_OR}</span>
						</td>
						<td width="35%" class="align_gauche"><fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<!-- END switch_fb_connect -->
</form>
<!-- END switch_user_login_form_header -->
{CHATBOX_TOP}
{BOARD_INDEX}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="50%" valign="top">
			<!-- BEGIN switch_user_logged_in -->
			<span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span>
			<!-- END switch_user_logged_in -->
			<!-- BEGIN switch_delete_cookies -->
			<br /><span class="gensmall"><a href="{switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall" rel="nofollow">{switch_delete_cookies.L_DELETE_COOKIES}</a></span>
			<!-- END switch_delete_cookies -->
		</td>
		<td width="50%" align="right">
			<span class="gensmall">
				<a href="{U_TODAY_ACTIVE}" class="gensmall">{L_TODAY_ACTIVE}</a><br />
				<a href="{U_TODAY_POSTERS}" class="gensmall">{L_TODAY_POSTERS}</a><br />
				<a href="{U_OVERALL_POSTERS}" class="gensmall">{L_OVERALL_POSTERS}</a>
				<!-- BEGIN switch_on_index -->
					<!-- BEGIN switch_delete_cookies -->
					<br /><a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall" rel="nofollow">{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}</a>
					<!-- END switch_delete_cookies -->
				<!-- END switch_on_index -->
			</span>
		</td>
	</tr>
</table>

<!-- BEGIN switch_user_login_form_footer -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
	<!-- BEGIN switch_fb_connect_no -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
		<tr>
			<td class="row1" align="center">
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td><span class="genmed">{L_USERNAME}:</span>&nbsp;</td>
						<td><input class="post" type="text" size="10" name="username"/>&nbsp;</td>
						<td>
							<input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
							<span class="gensmall">{L_AUTO_LOGIN}</span>&nbsp;
						</td>
					</tr>

					<tr>
						<td><span class="genmed">{L_PASSWORD}:</span>&nbsp;</td>
						<td><input class="post" type="password" size="10" name="password"/>&nbsp;</td>
						<td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<!-- END switch_fb_connect_no -->

	<!-- BEGIN switch_fb_connect -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
		<tr>
			<td valign="top" width="100%" class="row1" align="center">
				<table width="100%">
					<tr>
						<td width="55%" valign="middle">
							<table class="right">
								<tr>
									<td><span class="genmed">{L_USERNAME}:</span>&nbsp;</td>
									<td><input class="post" type="text" size="10" name="username"/>&nbsp;</td>
									<td>
										<input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
										<span class="gensmall">{L_AUTO_LOGIN}</span>&nbsp;
									</td>
								</tr>

								<tr>
									<td><span class="genmed">{L_PASSWORD}:</span>&nbsp;</td>
									<td><input class="post" type="password" size="10" name="password"/>&nbsp;</td>
									<td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
								</tr>
							</table>
						</td>
						<td width="10%" align="center" valign="middle">
							<span class="genmed fb_or">{switch_user_login_form_footer.switch_fb_connect.L_OR}</span>
						</td>
						<td width="35%" class="align_gauche"><fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<!-- END switch_fb_connect -->
</form>
<!-- END switch_user_login_form_footer -->

<!-- BEGIN disable_viewonline -->
        <div class="fond_qeel"><br />
<div class="gridMARAUDEUR">
<div class="gridMARAUDEUR__item">
  <a class="carte MARAUDEUR" href="/viewonline">Carte du Maraudeur<span>« But know this : you have nothing to fear <br>if you have nothing to hide. »</span></a>
			</div>

  </div>
    <div style="background-color: #DFDFDF; height: 260px;">
          <br /><br />
            <br />

            <div class="bloc_stat">  <span id="totalu"> {TOTAL_USERS}
<script type="text/javascript">document.getElementById('totalu').innerHTML=document.getElementById ('totalu').innerHTML.replace(/Nous avons/,"La guerre fait des ravages et les sorciers ne cessent de s'activer dans le monde magique. Le Ministère de la Magie a comptabilisé ");</script>
<script type="text/javascript">document.getElementById('totalu').innerHTML=document.getElementById ('totalu').innerHTML.replace(/membre enregistré/,"sorcier à ce jour ");
</script>
<script type="text/javascript">document.getElementById('totalu').innerHTML=document.getElementById ('totalu').innerHTML.replace(/membres enregistrés/,"sorciers à ce jour ");
</script>
</span> <span id="dernieru">         {NEWEST_USER}
<script type="text/javascript">document.getElementById('dernieru').innerHTML=document.getElementById ('dernieru').innerHTML.replace(/L'utilisateur enregistré le plus récent est/,"dont le dernier en date est");</script>.</span>
        
        
        <br>
        <span id="totalp">     		{TOTAL_POSTS}
<script type="text/javascript">document.getElementById('totalp').innerHTML=document.getElementById ('totalp').innerHTML.replace(/Nos membres ont posté un total de/,"Ces sorciers sont très actifs ans leurs correspondance et se sont échangés pas moins de");</script>
  <script type="text/javascript">document.getElementById('totalp').innerHTML=document.getElementById ('totalp').innerHTML.replace(/messages/,"parchemins.");</script> </span>
	
	<br>
          
          <br>
          
<span id="connu"> 		{TOTAL_USERS_ONLINE}
<script type="text/javascript">document.getElementById('connu').innerHTML=document.getElementById ('connu').innerHTML.replace(/Il y a en tout/,"Actuellement le monde magique contient");</script> 
<script type="text/javascript">document.getElementById('connu').innerHTML=document.getElementById ('connu').innerHTML.replace(/utilisateur en ligne/,"sorcier en quête d'aventures");</script>    
  <script type="text/javascript">document.getElementById('connu').innerHTML=document.getElementById ('connu').innerHTML.replace(/utilisateurs en ligne/,"sorciers en quête d'aventures");</script>        
<script type="text/javascript">document.getElementById('connu').innerHTML=document.getElementById ('connu').innerHTML.replace(/Enregistré/,"sorcier connu du ministère");</script>   
<script type="text/javascript">document.getElementById('connu').innerHTML=document.getElementById ('connu').innerHTML.replace(/Enregistrés/,"sorciers connus du ministère");</script>   
  <script type="text/javascript">document.getElementById('connu').innerHTML=document.getElementById ('connu').innerHTML.replace(/Invisible/,"sorcier rusé utilisant un sort d'invisibilité");</script> 
  <script type="text/javascript">document.getElementById('connu').innerHTML=document.getElementById ('connu').innerHTML.replace(/Invisibles/,"sorciers rusés utilisant un sort d'invisibilité");</script> 
  <script type="text/javascript">document.getElementById('connu').innerHTML=document.getElementById ('connu').innerHTML.replace(/Invité/,"cracmol qui n'a pas encore fait ses preuves.");</script> 
    <script type="text/javascript">document.getElementById('connu').innerHTML=document.getElementById ('connu').innerHTML.replace(/Invités/,"cracmols qui n'ont pas encore fait leurs preuves.");</script> 
            </span>




<br><br>

<span id="iden">	{LOGGED_IN_USER_LIST}
<script type="text/javascript">document.getElementById('iden').innerHTML=document.getElementById ('iden').innerHTML.replace(/Utilisateurs enregistrés/,"Sorciers à l'identité connue");</script> 
  </span></div>

            <div class="bloc_groupes"><div class="groupe_onglets">
              <a href="http://imperius-curse.forumactif.org/g2-mangemorts" style="color:#2A96BD;">Mangemorts</a>
              <a href="http://imperius-curse.forumactif.org/g2-mangemorts" style="color:#48AB73;">Neutres</a>
              <a href="http://imperius-curse.forumactif.org/g2-mangemorts" style="color:#E35858;">Phenix</a>
          </div></div><br /><br /><br /><br /><br />

            <div class="bloc_connectes"><table id="kaboum">{L_CONNECTED_MEMBERS}</table></div>
      
          <br />
          <div class="contenu_groupe_onglets">
            

            </div>
        
</div></div>

            <!-- END disable_viewonline -->
{CHATBOX_BOTTOM}
<br clear="all" />


{AUTO_DST}

<!-- BEGIN switch_fb_index_login -->
<div id="fb-root"></div>
<script>
    FB.init({
      appId      : {switch_fb_index_login.FACEBOOK_APP_ID}, 
      cookie     : true,
      xfbml      : true,
      oauth      : true,
      version    : 'v2.3'
    });

  (function(d, s, id){
     var js, fjs = d.getElementsByTagName(s)[0];
     if (d.getElementById(id)) {return;}
     js = d.createElement(s); js.id = id;
     js.src = "//connect.facebook.net/en_US/sdk.js";
     fjs.parentNode.insertBefore(js, fjs);
   }(document, 'script', 'facebook-jssdk'));
</script>
<!-- END switch_fb_index_login -->
  
  

</body>

</html>

Comments