Главная » 2009 » Октябрь » 28 » мини-профиль (Скрипты для ucoz)
28.10.2009, 07:16

мини-профиль



Ставим в новый блок это:

Code
<DIV align="center"><script language="JavaScript">  
function process(){}  
today = new Date()  
if((today.getHours() < 12) && (today.getHours() >= 6))  
{ document.write("<b>Доброе утро $USER_FULL_NAME$.</b>")}  
if((today.getHours() >= 12) && (today.getHours() < 18))  
{ document.write("<b>Добрый день $USER_FULL_NAME$</b>")}  
if((today.getHours() >= 18) && (today.getHours() <= 23))  
{ document.write("<b>Добрый вечер $USER_FULL_NAME$</b>")}  
if((today.getHours() >= 0) && (today.getHours() < 4))  
{ document.write("<b>Здравствуйте $USER_FULL_NAME$. Не спится?</b>")}  
if((today.getHours() >= 4) && (today.getHours() <= 6))  
{ document.write("<b>Здравствуйте $USER_FULL_NAME$.<br>Мы рады вас видеть в столь ранний час.</b>")}  
</script>  

<?if($USER_AVATAR_URL$)?><img class="userAvatar" title="$USERNAME$" src="$USER_AVATAR_URL$" border="0"><?else?><?if($USER_LOGGED_IN$)?><img class="userAvatar" title="$USERNAME$" src="http://i029.radikal.ru/0804/cb/8cc27a1c0e73.gif" border="0"><?else?><img class="userAvatar" title="$USERNAME$" src="http://i021.radikal.ru/0804/53/f5b4265aa726.gif" border="0"><?endif?><?endif?>  

<?if($USER_LOGGED_IN$)?>  
<br>Вы вошли как: $USERNAME$  
<br>Вы $USER_GROUP$ кинотеатра  
<br>Ваш IP адрес: $IP_ADDRESS$  
<br>Вы здесь: <font color="#ff0000"><b>$USER_REG_DAYS$</b></font>-й день  
<input class="buttonprofile" type="button" onclick="window.open('/index/15-1','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="Список пользователей">  
<input class="buttonprofile" type="button" onclick="window.open('/index/11','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="Изменить сведения">  
<input class="buttonprofile" type="button" onclick="window.open('/index/14-999-0-1','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="Отправить ЛС">  
<input class="buttonprofile" type="button" onclick="window.open('/index/14','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="Читать ЛС ($UNREAD_PM$)"><br>  
<input class="buttonprofile" type="button" onclick="window.open('/index/8','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="Профиль"><br>  
<input class="buttonprofile" type="button" onclick="document.location.href='/index/10'; return false;" value="Выход">  

<center>  
<script language=javascript type=text/javascript>  
  function openOnClick(client_type)  
  {  
  if(client_type=="mail")clientWindow = window.open("$PM_URL$","pmw","scrollbars=1,top=0,left=0,resizable=1,width=850,height=350") || alert("Отключите блокировку всплывающих окон!");  
  if(client_type=="send")clientWindow = window.open("/index/14-999-0-1","pms","scrollbars=1,top=0,left=0,resizable=1,width=850,height=350") || alert("Отключите блокировку всплывающих окон!");  
  if(client_type=="options")clientWindow = window.open("/index/11","options","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");  
  if(client_type=="users")clientWindow = window.open("$USERS_LIST_URL$","users","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");  
  if(client_type=="rules")clientWindow = window.open("/rules.html","rules","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");  
  }  
</script>  
<?else?>  

<br>Гость, мы рады вас видеть. Пожалуйста зарегистрируйтесь или авторизуйтесь!<br><a href="http://kinoland.3dn.ru/404.htm">~>|Посетите эту страницу|<~</a><br>  
$LOGIN_FORM$  
<?endif?></center>
Материал взят с сайта infoscript.ru
Внимание! Копирование данного материала запрещено без указания ссылки на сайт Infoscript.ru
Источник/Автор: Неизвестен
Категория: Скрипты uCoz | Просмотров: 2473 | Добавил: antisept | Рейтинг: 3.5/2 |
Теги: Мини-профиль
Пока комментариев нет. Ты можешь быть первым!
Добавлять комментарии могут только зарегистрированные пользователи.
[ Регистрация | Вход ]