У Вас в настройках PHP register_globals=ON? какеры идут к Вам!!!

Файловый Архив

  • Неограниченное количество категорий и суб-категорий
  • Настройки прав доступа по группам
  • Настройки прав доступа по каждой категории
  • Предпросмотр медиа файлов: FLV, IFLV, F4A, F4V, MP4, MP3, MOV и других...
  • Мультизагрузка файлов - SWFUploader
  • Добавление файлов с сервера
Подробности и история обновлений продукта в этой теме
Loading

Go Back   форум vBSupport.org > >
Register Изображения Меню vBsupport Files Manager Аллея Звёзд Реклама на форуме Search Today's Posts Mark Forums Read
  • Мемберка
  • Администраторам
  • Premoderation
  • For English speaking users
  • Изменения в правах
  • Каталог Фрилансеров
Пароли на скачивание файлов в Member Area меняются автоматически каждый день
Если вам нужно скачать какой то скрипт, за паролем ко мне в ЛС
привет какирам kerk
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Не можете скачать вложение?
Изменения в правах групп пользователей
внимательно читаем эту и эту темы
Короткая версия - тут
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

 
 
Old  
liner
Эксперт
 
liner's Avatar
Default вопрос по коду 0

Камрады, нужна консультация по коду.
Ниже приведен код event_calendar из SE, описывающий по всей видимости функции создания события в SE - ну, афишки, мероприятия, в частности - описывает календарь события, выбор даты.

Проблема, с которой я столкнулся такая: не могу создать событие вчерашним днем, ну или архив событий за 2005-2009 гг, календарь не дает поставить дату задним числом.




Вопрос: Есть ли в указанном ниже коде (файл 1: event_calendar.tpl ИЛИ файл 2: user_event_add.php) упоминание об этом? - ограничение, прямой запрет на создание событий задним числом? И, если есть, какую строчку убить или откорректировать, чтобы создавать события н, начинающиеся в 2006 году, например.

PHP Code:
{* $Idevent_calendar.tpl 9 2009-01-11 06:03:21Z john $ *}

{if 
$calendar_view=="month_small"}
  
  <
div style='text-align: center; padding-bottom: 5px;font-weight: bold;'>
    {if !isset(
$show_next_last) || $show_next_last}<a href='profile_event_calendar.php?user={$owner->user_info.user_username}&date={$date_last}'>«</a>{/if}
    {
$month}, {$year}
    {if !isset(
$show_next_last) || $show_next_last}<a href='profile_event_calendar.php?user={$owner->user_info.user_username}&date={$date_next}'>»</a>{/if}
  </
div>
  
  
  <
table cellpadding='0' cellspacing='0' class='profile_events'>
    <
tr>
      <
td class='profile_events_cellheader'>{lang_print id=3000237}</td>
      <
td class='profile_events_cellheader'>{lang_print id=3000238}</td>
      <
td class='profile_events_cellheader'>{lang_print id=3000239}</td>
      <
td class='profile_events_cellheader'>{lang_print id=3000240}</td>
      <
td class='profile_events_cellheader'>{lang_print id=3000241}</td>
      <
td class='profile_events_cellheader'>{lang_print id=3000242}</td>
      <
td class='profile_events_cellheader'>{lang_print id=3000243}</td>
    </
tr>
    
    {* 
SHOW DAYS OF MONTH *}
    {
assign var='daycount' value=1}
    {
section name=calendar loop=$total_cells}
    
    {* 
START A NEW ROW *}
    {
cycle name="startrow" values="<tr>,,,,,,"}
    
    {* 
SHOW EMPTY CELLS BEFORE THE MONTH STARTS *}
    {if 
$smarty.section.calendar.index+$first_day_of_month OR $smarty.section.calendar.index+$last_day_of_month}
      <
td class='profile_events_cellblank'>&nbsp;</td>
    
    {* 
SHOW A DAY *}
    {else}
      {
assign value=$events.$daycount var=day_events}
      {if 
is_array($event_days)}{assign value=$daycount|in_array:$event_days var=is_event_day}{else}{assign value=var=is_event_day}{/if}
      <
td class='profile_events_cell{if $is_event_day}4{elseif $today_day == $daycount AND $today_month == $date_current}3{elseif $day_events|@count != 0}2{else}1{/if}' align='center'>
        {if 
$day_events|@count == 0}
      {
$daycount}
    {else}
      <
a href='javascript:void(0)' onClick="parent.se_popup('day{$daycount}', '{math equation='x*200' x=$day_events|@count}');">{$daycount}</a>


      <
table id='day{$daycount}' cellpadding='0' cellspacing='0' class='profile_event_popup'>
          <
tr>
          <
td class='profile_event_transparent' colspan='3' style='height: 20px;'>&nbsp;</td>
          </
tr>
          <
tr>
          <
td class='profile_event_transparent' style='width: 20px;'>&nbsp;</td>
          <
td class='profile_event_popup2'>
          
            <
table cellpadding='0' cellspacing='0' width='100%'>
            <
tr>
            <
td class='profile_event_popup_title'>{lang_sprintf id=3000276 1=$owner->user_displayname 2="`$month` `$daycount`"}</td>
            </
tr>
            </
table>
            
            {
section name=event_loop loop=$day_events}
              
{* 
RI *}
<
div id='seEvent_{$day_events[event_loop].event->event_info.event_id}' class="seEventMonth" style="margin-top: 20px;">

  <
table cellpadding='0' cellspacing='0' width='100%'>
    <
tr>
      <
td class='seEventLeft' width='1'>
        <
div class='seEventPhoto' style='width: 140px; height: 140px;'>
          <
table cellpadding='0' cellspacing='0' width='140' height='140'>
            <
tr>
              <
td>
                <
a href='{$url->url_create("event", $user->user_info.user_username, $day_events[event_loop].event->event_info.event_id)}'>
                  <
img src='{$day_events[event_loop].event->event_photo("./images/nophoto.gif")}' border='0' width='{$misc->photo_size($day_events[event_loop].event->event_photo("./images/nophoto.gif"),"140","140","w")}' />
                </
a>
              </
td>
            </
tr>
          </
table>
        </
div>
      </
td>
      <
td class='seEventRight' width='100%'>
      
        {* 
SHOW EVENT TITLE *}
        <
div class='seEventTitle'>
          <
a href='{$url->url_create("event", $user->user_info.user_username, $day_events[event_loop].event->event_info.event_id)}'>
            {if !
$day_events[event_loop].event->event_info.event_title}<i>{lang_print id=589}</i>{else}{$day_events[event_loop].event->event_info.event_title|truncate:70:"...":false|choptext:40:"<br />"}{/if}
          </
a>
        </
div>
        
        {* 
SHOW EVENT CATEGORY *}
        {if !empty(
$day_events[event_loop].event->event_info.main_category_title)}
        <
div class='seEventCategory'>
          {
lang_print id=3000104}
          {* 
SHOW PARENT CATEGORY *}
          {if !empty(
$day_events[event_loop].event->event_info.parent_category_title)}
            <
a href="browse_events.php?eventcat_id={$day_events[event_loop].event->event_info.parent_category_id}">{lang_print id=$day_events[event_loop].event->event_info.parent_category_title}</a>
            -
          {/if}
          <
a href="browse_events.php?eventcat_id={$day_events[event_loop].event->event_info.main_category_id}">{lang_print id=$day_events[event_loop].event->event_info.main_category_title}</a>
        </
div>
        {/if}
        
        {* 
SHOW EVENT STATS *}
        <
div class='seEventStats'>
          {
assign var=event_date_start value=$datetime->timezone($day_events[event_loop].event->event_info.event_date_start$global_timezone)}
          {
assign var=event_date_end value=$datetime->timezone($day_events[event_loop].event->event_info.event_date_end$global_timezone)}
          
          {
lang_print id=3000105}
          
          {* 
NO END DATE *}
          {if !
$day_events[event_loop].event->event_info.event_date_end}
            {
lang_sprintf id=3000203 1=$datetime->cdate($setting.setting_dateformat$event_date_start2=$datetime->cdate($setting.setting_timeformat$event_date_start)}
          
          {* 
SAME-DAY EVENT *}
          {elseif 
$datetime->cdate("F j, Y"$event_date_start)==$datetime->cdate("F j, Y"$event_date_end)}
            {
lang_sprintf id=3000202 1=$datetime->cdate($setting.setting_dateformat$event_date_start2=$datetime->cdate($setting.setting_timeformat$event_date_start3=$datetime->cdate($setting.setting_timeformat$event_date_end)}
          
          {* 
MULTI-DAY EVENT *}
          {else}
            {
lang_sprintf id=3000204 1=$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`"$event_date_start2=$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`"$event_date_end)}
          {/if}
        </
div>
        
        {* 
SHOW EVENT RSVP *}
        <
div class='seEventStats'>
          {
lang_print id=$day_events[event_loop].event_rsvp_lvid}
        </
div>
        
        {* 
SHOW EVENT DESCRIPTION *}
        <
div class='seEventBody' style='margin-top: 8px; margin-bottom: 8px;'>
          {
$day_events[event_loop].event->event_info.event_desc|strip_tags|truncate:197:"...":true}
        </
div>
      </
td>
    </
tr>
  </
table>
  
</
div>
{* 
RI *}
              
              {/
section}
              
            </
td>
            <
td class='profile_event_transparent' style='width: 20px;'>&nbsp;</td>
          </
tr>
          <
tr>
            <
td colspan='3' class='profile_event_transparent' style='height: 20px;'>&nbsp;</td>
          </
tr>
        </
table>
          
        {/if}
      </
td>
      {
assign var='daycount' value=$daycount+1}
    {/if}
    
    {* 
END THIS ROW *}
    {
cycle name="endrow" values=",,,,,,</tr>"}
    
  {/
section}

  </
table>



{elseif 
$calendar_view=="month"}

  <
table cellpadding='0' cellspacing='0' class='event_calendar'>
    <
tr>
      <
td class='event_cellheader'>{lang_print id=3000230}</td>
      <
td class='event_cellheader'>{lang_print id=3000231}</td>
      <
td class='event_cellheader'>{lang_print id=3000232}</td>
      <
td class='event_cellheader'>{lang_print id=3000233}</td>
      <
td class='event_cellheader'>{lang_print id=3000234}</td>
      <
td class='event_cellheader'>{lang_print id=3000235}</td>
      <
td class='event_cellheader'>{lang_print id=3000236}</td>
    </
tr>
    
    {* 
SHOW DAYS OF MONTH *}
    {
assign var='daycount' value=1}
    {
section name=calendar loop=$total_cells}
    
    {* 
START A NEW ROW *}
    {
cycle name="startrow" values="<tr>,,,,,,"}
    
    {* 
SHOW EMPTY CELLS BEFORE THE MONTH STARTS *}
    {if 
$smarty.section.calendar.index 1<$first_day_of_month || $smarty.section.calendar.index 1>$last_day_of_month}
      <
td height='80' class='event_cellblank'>
        <
div class='event_cellnum'>&nbsp;</div>
      </
td>
    
    {* 
SHOW A DAY *}
    {else}
      {
assign value=$events.$daycount var=day_events}
      <
td height='80' id="event_cell{$daycount}class='event_cell{if $today_month == $date_current AND $today_day == $daycount}3{elseif $day_events|@count != 0}2{else}1{/if}'>
      
        <
table cellpadding='0' cellspacing='0' width='100%' height='100%'>
          <
tr>
            <
td class='event_celldesc'>
              
              {
section name=event_loop loop=$day_events}
              <
a href='javascript:void(0)' id="seEventMonthShow_{$day_events[event_loop].event->event_info.event_id}title="{$daycount}onClick="TB_show('', '#TB_inline?height=200&width=560&inlineId=event{$day_events[event_loop].event->event_info.event_id}', '', './images/trans.gif');">{$day_events[event_loop].event->event_info.event_title}</a><br>
              {if 
$day_events[event_loop].event->event_info.event_title != ""}
              <
table id='event{$day_events[event_loop].event->event_info.event_id}' cellpadding='0' cellspacing='0' class='profile_event_popup'>
                <
tr>
                  <
td class='profile_event_transparent' colspan='3' style='height: 20px;'>&nbsp;</td>
                </
tr>
                <
tr>
                  <
td class='profile_event_transparent' style='width: 20px;'>&nbsp;</td>
                  <
td class='profile_event_popup2'>
{* 
RI *}
<
div id='seEvent_{$day_events[event_loop].event->event_info.event_id}' class="seEventMonth">

  <
table cellpadding='0' cellspacing='0' width='100%'>
    <
tr>
      <
td class='seEventLeft' width='1'>
        <
div class='seEventPhoto' style='width: 140px; height: 140px;'>
          <
table cellpadding='0' cellspacing='0' width='140' height='140'>
            <
tr>
              <
td>
                <
a href='{$url->url_create("event", $user->user_info.user_username, $day_events[event_loop].event->event_info.event_id)}'>
                  <
img src='{$day_events[event_loop].event->event_photo("./images/nophoto.gif")}' border='0' width='{$misc->photo_size($day_events[event_loop].event->event_photo("./images/nophoto.gif"),"140","140","w")}' />
                </
a>
              </
td>
            </
tr>
          </
table>
        </
div>
      </
td>
      <
td class='seEventRight' width='100%'>
      
        {* 
SHOW EVENT TITLE *}
        <
div class='seEventTitle'>
          <
a href='{$url->url_create("event", $user->user_info.user_username, $day_events[event_loop].event->event_info.event_id)}'>
            {if !
$day_events[event_loop].event->event_info.event_title}<i>{lang_print id=589}</i>{else}{$day_events[event_loop].event->event_info.event_title|truncate:70:"...":false|choptext:40:"<br />"}{/if}
          </
a>
        </
div>
        
        {* 
SHOW EVENT CATEGORY *}
        {if !empty(
$day_events[event_loop].event->event_info.main_category_title)}
        <
div class='seEventCategory'>
          {
lang_print id=3000104}
          {* 
SHOW PARENT CATEGORY *}
          {if !empty(
$day_events[event_loop].event->event_info.parent_category_title)}
            <
a href="browse_events.php?eventcat_id={$day_events[event_loop].event->event_info.parent_category_id}">{lang_print id=$day_events[event_loop].event->event_info.parent_category_title}</a>
            -
          {/if}
          <
a href="browse_events.php?eventcat_id={$day_events[event_loop].event->event_info.main_category_id}">{lang_print id=$day_events[event_loop].event->event_info.main_category_title}</a>
        </
div>
        {/if}
        
        {* 
SHOW EVENT STATS *}
        <
div class='seEventStats'>
          {
assign var=event_date_start value=$datetime->timezone($day_events[event_loop].event->event_info.event_date_start$global_timezone)}
          {
assign var=event_date_end value=$datetime->timezone($day_events[event_loop].event->event_info.event_date_end$global_timezone)}
          
          {
lang_print id=3000105}
          
          {* 
NO END DATE *}
          {if !
$day_events[event_loop].event->event_info.event_date_end}
            {
lang_sprintf id=3000203 1=$datetime->cdate($setting.setting_dateformat$event_date_start2=$datetime->cdate($setting.setting_timeformat$event_date_start)}
          
          {* 
SAME-DAY EVENT *}
          {elseif 
$datetime->cdate("F j, Y"$event_date_start)==$datetime->cdate("F j, Y"$event_date_end)}
            {
lang_sprintf id=3000202 1=$datetime->cdate($setting.setting_dateformat$event_date_start2=$datetime->cdate($setting.setting_timeformat$event_date_start3=$datetime->cdate($setting.setting_timeformat$event_date_end)}
          
          {* 
MULTI-DAY EVENT *}
          {else}
            {
lang_sprintf id=3000204 1=$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`"$event_date_start2=$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`"$event_date_end)}
          {/if}
        </
div>
        
        {* 
SHOW EVENT RSVP *}
        <
div class='seEventStats'>
          {
lang_print id=3000277}
          
          <
span class="seEventStatusAccept"{if $day_events[event_loop].event->is_memberstyle="display:none;"{/if}>
            <
a href='javascript:void(0);' onclick="SocialEngine.Event.removeShow({$day_events[event_loop].event->event_info.event_id});">
              {
lang_print id=$day_events[event_loop].event_rsvp_lvid}
            </
a>
          </
span>
          
          <
span class="seEventStatusRSVP"{if !$day_events[event_loop].event->is_memberstyle="display:none;"{/if}>
            <
a href='javascript:void(0);' onclick="SocialEngine.Event.rsvpShow({$day_events[event_loop].event->event_info.event_id});" id="seEventRSVP_{$day_events[event_loop].event->event_info.event_id}">
              {
lang_print id=$day_events[event_loop].event_rsvp_lvid}
            </
a>
          </
span>
        </
div>
        
        {* 
SHOW EVENT DESCRIPTION *}
        <
div class='seEventBody' style='margin-top: 8px; margin-bottom: 8px;'>
          {
$day_events[event_loop].event->event_info.event_desc|strip_tags|truncate:197:"...":true}
        </
div>
        
        {* 
SHOW EVENT OPTIONS *}
        <
div class='seEventOptions'>
          
          {* 
JOIN *}
          <
div class="seEventOption1 seEventUserOptionJoin"{if !$day_events[event_loop].event->is_member_waiting || !$day_events[event_loop].event_approvedstyle="display:none;"{/if}>
            <
a href='javascript:void(0);' onclick="parent.SocialEngine.Event.join({$day_events[event_loop].event->event_info.event_id});">
              <
img src='./images/icons/event_join16.gif' border='0' class='button' />
              {
lang_print id=3000168}
            </
a>
          </
div>
          
          {* 
CANCEL REQUEST *}
          <
div class="seEventOption1 seEventUserOptionRequestCancel"{if !$day_events[event_loop].event->is_member_waiting || $day_events[event_loop].event_approvedstyle="display:none;"{/if}>
            <
a href='javascript:void(0);' onclick="parent.SocialEngine.Event.cancelShow({$day_events[event_loop].event->event_info.event_id});">
              <
img src='./images/icons/event_remove16.gif' border='0' class='button' />
              {
lang_print id=3000170}
            </
a>
          </
div>
          
          {* 
EDIT *}
          <
div class="seEventOption1 seEventUserOptionEdit"{if $day_events[event_loop].event->user_rank!=3style="display:none;"{/if}>
            <
a href='user_event_edit.php?event_id={$day_events[event_loop].event->event_info.event_id}'>
              <
img src='./images/icons/event_edit16.gif' border='0' class='button' />
              {
lang_print id=3000245}
            </
a>
          </
div>
          
          {* 
RSVP *}
          <
div class="seEventOption1 seEventUserOptionRsvp"{if !$day_events[event_loop].event->is_memberstyle="display:none;"{/if}>
            <
a href='javascript:void(0);' onclick="parent.SocialEngine.Event.rsvpShow({$day_events[event_loop].event->event_info.event_id});">
              <
img src='./images/icons/event_rsvp16.gif' border='0' class='button' />
              {
lang_print id=3000097}
            </
a>
          </
div>
          
          {* 
LEAVE *}
          <
div class="seEventOption1 seEventUserOptionLeave"{if $day_events[event_loop].event->user_rank==|| !$day_events[event_loop].event->is_memberstyle="display:none;"{/if}>
            <
a href='javascript:void(0);' onclick="parent.SocialEngine.Event.leaveShow({$day_events[event_loop].event->event_info.event_id});">
              <
img src='./images/icons/event_remove16.gif' border='0' class='button' />
              {
lang_print id=3000219}
            </
a>
          </
div>
          
          {* 
DELETE *}
          <
div class="seEventOption1 seEventUserOptionDelete"{if $day_events[event_loop].event->user_rank!=3style="display:none;"{/if}>
            <
a href='javascript:void(0);' onclick="parent.SocialEngine.Event.deleteShow({$day_events[event_loop].event->event_info.event_id});">
              <
img src='./images/icons/event_delete16.gif' border='0' class='button' />
              {
lang_print id=3000169}
            </
a>
          </
div>
          
        </
div>
      </
td>
    </
tr>
  </
table>
  
</
div>
{* 
RI *}
                </
td>
                <
td class='profile_event_transparent' style='width: 20px;'>&nbsp;</td>
              </
tr>
              <
tr>
                <
td colspan='3' class='profile_event_transparent' style='height: 20px;'>&nbsp;</td>
              </
tr>
              </
table>
            {/if}
            {/
section}
            &
nbsp;
            </
td>
          </
tr>
          <
tr>
            <
td class='event_cellnum{if $day_events|@count != 0}2{else}1{/if}'>{$daycount}</td>
          </
tr>
        </
table>
        
      </
td>
    {
assign var='daycount' value=$daycount+1}
    {/if}
    
    {* 
END THIS ROW *}
    {
cycle name="endrow" values=",,,,,,</tr>"}
    
    {/
section}
    
  </
table>



{elseif 
$calendar_view=="day"}



{elseif 
$calendar_view=="year"}



{/if} 

Last edited by liner : 06-05-2010 at 03:06 PM.
 
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
Old  
liner
Эксперт
 
liner's Avatar
Default 0

user_event_add
PHP Code:
{include file='header.tpl'}

{* 
$Iduser_event_add.tpl 22 2009-01-16 05:50:49Z john $ *}

<
table cellpadding='0' cellspacing='0' width='100%'>
  <
tr>
    <
td valign='top'>
      
      <
img src='./images/icons/event_event48.gif' border='0' class='icon_big'>
      <
div class='page_header'>{lang_print id=3000088}</div>
      <
div style="width: 500px;">{lang_print id=3000108}</div>
      
    </
td>
    <
td valign='top' align='right'>
      
      <
table cellpadding='0' cellspacing='0'>
        <
tr>
          <
td class='button' nowrap='nowrap'>
            <
a href='user_event.php'><img src='./images/icons/back16.gif' border='0' class='button' />{lang_print id=3000109}</a>
          </
td>
        </
tr>
      </
table>
      
    </
td>
  </
tr>
</
table>
<
br />



{* 
JAVASCRIPT *}
{
literal}
<
link rel="stylesheet" type="text/css" href="templates/styles_event_calendar.css" />
<
script type="text/javascript" src="include/js/calendar.compat.js"></script>
<script type="text/javascript">
  
  var myCal1, myCal2;
  window.addEvent('domready', function()
  {
    myCal1 = new Calendar({ event_date_start: '{/literal}{$compatible_input_dateformat|default:'m/d/Y'}{literal}' }, {
      classes: ['se_event_calendar'],
      direction: 1,
      tweak: {x: 6, y: 0},
      months: [{/literal}
        '{$month_names.1}',
        '{$month_names.2}',
        '{$month_names.3}',
        '{$month_names.4}',
        '{$month_names.5}',
        '{$month_names.6}',
        '{$month_names.7}',
        '{$month_names.8}',
        '{$month_names.9}',
        '{$month_names.10}',
        '{$month_names.11}',
        '{$month_names.12}'
      {literal}],
      days: [{/literal}
        '{$day_names.1}',
        '{$day_names.2}',
        '{$day_names.3}',
        '{$day_names.4}',
        '{$day_names.5}',
        '{$day_names.6}',
        '{$day_names.7}'
      {literal}],
      day_suffixes: [{/literal}
        '{lang_print id=3000286}',
        '{lang_print id=3000287}',
        '{lang_print id=3000288}',
        '{lang_print id=3000289}'
      {literal}],
      year_suffix:{/literal}'{lang_print id=3000290}'{literal}
    });
    myCal2 = new Calendar({ event_date_end: '{/literal}{$compatible_input_dateformat|default:'m/d/Y'}{literal}' }, {
      classes: ['se_event_calendar'],
      direction: 1,
      tweak: {x: 6, y: 0},
      months: [{/literal}
        '{$month_names.1}',
        '{$month_names.2}',
        '{$month_names.3}',
        '{$month_names.4}',
        '{$month_names.5}',
        '{$month_names.6}',
        '{$month_names.7}',
        '{$month_names.8}',
        '{$month_names.9}',
        '{$month_names.10}',
        '{$month_names.11}',
        '{$month_names.12}'
      {literal}],
      days: [{/literal}
        '{$day_names.1}',
        '{$day_names.2}',
        '{$day_names.3}',
        '{$day_names.4}',
        '{$day_names.5}',
        '{$day_names.6}',
        '{$day_names.7}'
      {literal}],
      day_suffixes: [{/literal}
        '{lang_print id=3000286}',
        '{lang_print id=3000287}',
        '{lang_print id=3000288}',
        '{lang_print id=3000289}'
      {literal}],
      year_suffix:{/literal}'{lang_print id=3000290}'{literal}
    });
  });
  
</script>
{/literal}


{* JAVASCRIPT FOR CATEGORIES/FIELDS *}
{literal}
<script type='text/javascript'>
<!--

  var cats = {0:{'title':'','subcats':{}}{/literal}{section name=cat_loop loop=$cats}, {$cats[cat_loop].cat_id}{literal}:{'title':'{/literal}{capture assign='cat_title'}{lang_print id=$cats[cat_loop].cat_title}{/capture}{$cat_title|replace:"'":"\'"}{literal}', 'subcats':{{/literal}{section name=subcat_loop loop=$cats[cat_loop].subcats}{if !$smarty.section.subcat_loop.first}, {/if}{$cats[cat_loop].subcats[subcat_loop].subcat_id}:'{capture assign='subcat_title'}{lang_print id=$cats[cat_loop].subcats[subcat_loop].subcat_title}{/capture}{$subcat_title|replace:"'":"\'"}'{/section}{literal}}}{/literal}{/section}{literal}};

  {/literal}{if $cats|@count>0}{literal}
  window.addEvent('domready', function(){
    for(c in cats) {
      var optn = document.createElement("option");
      optn.text = cats[c].title;
      optn.value = c;
      if(c == {/literal}{$event->event_info.event_eventcat_id|default:0}{literal}) { optn.selected = true; }
      $('event_eventcat_id').options.add(optn);
    }
    populateSubcats({/literal}{$event->event_info.event_eventcat_id|default:0}{literal});
  });
  {/literal}{/if}{literal}

  function populateSubcats(event_eventcat_id)
  {
    var subcats = cats[event_eventcat_id].subcats;
    var subcatHash = new Hash(subcats);
    $$('tr[id^=all_fields_]').each(function(el) { if(el.id == 'all_fields_'+event_eventcat_id) { el.style.display = ''; } else { el.style.display = 'none'; }});
    if(event_eventcat_id == 0 || subcatHash.getValues().length == 0) {
      $('event_eventsubcat_id').options.length = 1;
      $('event_eventsubcat_id').style.display = 'none';
    } else {
      $('event_eventsubcat_id').options.length = 1;
      $('event_eventsubcat_id').style.display = '';
      for(s in subcats) {
        var optn = document.createElement("option");
        optn.text = subcats[s];
        optn.value = s;
        if(s == {/literal}{$event->event_info.event_eventsubcat_id}{literal}) { optn.selected = true; }
        $('event_eventsubcat_id').options.add(optn);
      }
    }
  }

  function ShowHideDeps(field_id, field_value, field_type) {
    if(field_type == 6) {
      if($('field_'+field_id+'_option'+field_value)) {
        if($('field_'+field_id+'_option'+field_value).style.display == "block") {
      $('field_'+field_id+'_option'+field_value).style.display = "none";
    } else {
      $('field_'+field_id+'_option'+field_value).style.display = "block";
    }
      }
    } else {
      var divIdStart = "field_"+field_id+"_option";
      for(var x=0;x<$('field_options_'+field_id).childNodes.length;x++) {
        if($('field_options_'+field_id).childNodes[x].nodeName == "DIV" && $('field_options_'+field_id).childNodes[x].id.substr(0, divIdStart.length) == divIdStart) {
          if($('field_options_'+field_id).childNodes[x].id == 'field_'+field_id+'_option'+field_value) {
            $('field_options_'+field_id).childNodes[x].style.display = "block";
          } else {
            $('field_options_'+field_id).childNodes[x].style.display = "none";
          }
        }
      }
    }
  }
//-->
</script>
{/literal}



{* SHOW ERROR MESSAGE *}
{if $is_error}
  <table cellpadding='0' cellspacing='0'>
    <tr>
      <td class='result'>
        <img src='./images/error.gif' class='icon' border='0'>{lang_print id=$is_error}
      </td>
    </tr>
  </table>
  <br />
{/if}



<form action='user_event_add.php' method='post'>


<table cellpadding='0' cellspacing='0'>
  <tr>
    <td class='form1'>{lang_print id=3000110}*</td>
    <td class='form2'><input type='text' class='text' name='event_title' value='{$event->event_info.event_title}' maxlength='100' size='30'></td>
  </tr>
  <tr>
    <td class='form1'>{lang_print id=3000111}</td>
    <td class='form2'><textarea rows='6' cols='50' name='event_desc'>{$event->event_info.event_desc}</textarea></td>
  </tr>
  
  <tr>
    <td class='form1'>{lang_print id=3000112}*</td>
    <td class='form2'>
      
      <div class="se_event_calendar_container">
        <input class="se_event_calendar" type="text" name="event_date_start" id="event_date_start" value="{$datetime->cdate($compatible_input_dateformat, $event_date_start_tz)}" />
      </div>
      
      <div>
        <input style="width: 149px;margin-right: 6px;"  type="text" name="event_time_start" id="event_time_start" value="{$datetime->cdate($compatible_input_timeformat, $event_date_start_tz)}" />
        <label for="event_date_start">{lang_print id=3000114}</label>
      </div>
      
    </td>
  </tr>
  
  <tr>
    <td class='form1'>{lang_print id=3000113}</td>
    <td class='form2'>
      
      <div class="se_event_calendar_container">
        <input class="se_event_calendar" type="text" name="event_date_end" id="event_date_end" value="{$datetime->cdate($compatible_input_dateformat, $event_date_end_tz)}" />
      </div>
      
      <div>
        <input style="width: 149px;margin-right: 6px;" type="text" name="event_time_end" id="event_time_end" value="{$datetime->cdate($compatible_input_timeformat, $event_date_end_tz)}" />
        <label for="event_time_end">{lang_print id=3000114}</label>
      </div>
    </td>
  </tr>
  
  <tr>
    <td class='form1'>{lang_print id=3000115}</td>
    <td class='form2'><input type='text' class='text' name='event_host' value='{$event->event_info.event_host}' maxlength='250' size='30'></td>
  </tr>
  
  <tr>
    <td class='form1'>{lang_print id=3000116}</td>
    <td class='form2'><textarea rows='6' cols='50' name='event_location'>{$event->event_info.event_location}</textarea></td>
  </tr>
  
  
  {if $cats|@count>0}
  <tr>
    <td class='form1'>{lang_print id=3000134}*</td>
    <td class='form2' nowrap='nowrap'>
      <select name='event_eventcat_id' id='event_eventcat_id' onChange='populateSubcats(this.options[this.selectedIndex].value);'></select>
      <select name='event_eventsubcat_id' id='event_eventsubcat_id' style='display: none;'><option value='0'></option></select>
    </td>
  </tr>
  {section name=cat_loop loop=$cats}
    {section name=field_loop loop=$cats[cat_loop].fields}
      <tr id='all_fields_{$cats[cat_loop].cat_id}'>
      <td class='form1'>{lang_print id=$cats[cat_loop].fields[field_loop].field_title}{if $cats[cat_loop].fields[field_loop].field_required != 0}*{/if}</td>
      <td class='form2'>

      {* TEXT FIELD *}
      {if $cats[cat_loop].fields[field_loop].field_type == 1}
        <div><input type='text' class='text' name='field_{$cats[cat_loop].fields[field_loop].field_id}' id='field_{$cats[cat_loop].fields[field_loop].field_id}' value='{$cats[cat_loop].fields[field_loop].field_value}' style='{$cats[cat_loop].fields[field_loop].field_style}' maxlength='{$cats[cat_loop].fields[field_loop].field_maxlength}'></div>

        {* JAVASCRIPT FOR CREATING SUGGESTION BOX *}
        {if $cats[cat_loop].fields[field_loop].field_options != "" && $cats[cat_loop].fields[field_loop].field_options|@count != 0}
        {literal}
        <script type="text/javascript">
        <!-- 
        window.addEvent('domready', function(){
    var options = {
    script:"misc_js.php?task=suggest_field&limit=5&{/literal}{section name=option_loop loop=$cats[cat_loop].fields[field_loop].field_options}options[]={$cats[cat_loop].fields[field_loop].field_options[option_loop].label}&{/section}{literal}",
    varname:"input",
    json:true,
    shownoresults:false,
    maxresults:5,
    multisuggest:false,
    callback: function (obj) {  }
    };
    var as_json{/literal}{$cats[cat_loop].fields[field_loop].field_id}{literal} = new bsn.AutoSuggest('field_{/literal}{$cats[cat_loop].fields[field_loop].field_id}{literal}', options);
        });
        //-->
        </script>
        {/literal}
        {/if}


      {* TEXTAREA *}
      {elseif $cats[cat_loop].fields[field_loop].field_type == 2}
        <div><textarea rows='6' cols='50' name='field_{$cats[cat_loop].fields[field_loop].field_id}' style='{$cats[cat_loop].fields[field_loop].field_style}'>{$cats[cat_loop].fields[field_loop].field_value}</textarea></div>



      {* SELECT BOX *}
      {elseif $cats[cat_loop].fields[field_loop].field_type == 3}
        <div><select name='field_{$cats[cat_loop].fields[field_loop].field_id}' id='field_{$cats[cat_loop].fields[field_loop].field_id}' onchange="ShowHideDeps('{$cats[cat_loop].fields[field_loop].field_id}', this.value);" style='{$cats[cat_loop].fields[field_loop].field_style}'>
        <option value='-1'></option>
        {* LOOP THROUGH FIELD OPTIONS *}
        {section name=option_loop loop=$cats[cat_loop].fields[field_loop].field_options}
          <option id='op' value='{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}'{if $cats[cat_loop].fields[field_loop].field_options[option_loop].value == $cats[cat_loop].fields[field_loop].field_value} SELECTED{/if}>{lang_print id=$cats[cat_loop].fields[field_loop].field_options[option_loop].label}</option>
        {/section}
        </select>
        </div>
        {* LOOP THROUGH DEPENDENT FIELDS *}
        <div id='field_options_{$cats[cat_loop].fields[field_loop].field_id}'>
        {section name=option_loop loop=$cats[cat_loop].fields[field_loop].field_options}
          {if $cats[cat_loop].fields[field_loop].field_options[option_loop].dependency == 1}

      {* SELECT BOX *}
      {if $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_type == 3}
              <div id='field_{$cats[cat_loop].fields[field_loop].field_id}_option{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}' style='margin: 5px 5px 10px 5px;{if $cats[cat_loop].fields[field_loop].field_options[option_loop].value != $cats[cat_loop].fields[field_loop].field_value} display: none;{/if}'>
              {lang_print id=$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_title}{if $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_required != 0}*{/if}
              <select name='field_{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_id}'>
          <option value='-1'></option>
          {* LOOP THROUGH DEP FIELD OPTIONS *}
          {section name=option2_loop loop=$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_options}
            <option id='op' value='{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_options[option2_loop].value}'{if $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_options[option2_loop].value == $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_value} SELECTED{/if}>{lang_print id=$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_options[option2_loop].label}</option>
          {/section}
        </select>
              </div>      

      {* TEXT FIELD *}
      {else}
              <div id='field_{$cats[cat_loop].fields[field_loop].field_id}_option{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}' style='margin: 5px 5px 10px 5px;{if $cats[cat_loop].fields[field_loop].field_options[option_loop].value != $cats[cat_loop].fields[field_loop].field_value} display: none;{/if}'>
              {lang_print id=$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_title}{if $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_required != 0}*{/if}
             <input type='text' class='text' name='field_{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_id}' value='{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_value}' style='{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_style}' maxlength='{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_maxlength}'>
              </div>
      {/if}

          {/if}
        {/section}
        </div>
    


      {* RADIO BUTTONS *}
      {elseif $cats[cat_loop].fields[field_loop].field_type == 4}
    
        {* LOOP THROUGH FIELD OPTIONS *}
        <div id='field_options_{$cats[cat_loop].fields[field_loop].field_id}'>
        {section name=option_loop loop=$cats[cat_loop].fields[field_loop].field_options}
          <div>
          <input type='radio' class='radio' onclick="ShowHideDeps('{$cats[cat_loop].fields[field_loop].field_id}', '{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}');" style='{$cats[cat_loop].fields[field_loop].field_style}' name='field_{$cats[cat_loop].fields[field_loop].field_id}' id='label_{$cats[cat_loop].fields[field_loop].field_id}_{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}' value='{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}'{if $cats[cat_loop].fields[field_loop].field_options[option_loop].value == $cats[cat_loop].fields[field_loop].field_value} CHECKED{/if}>
          <label for='label_{$cats[cat_loop].fields[field_loop].field_id}_{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}'>{lang_print id=$cats[cat_loop].fields[field_loop].field_options[option_loop].label}</label>
          </div>

          {* DISPLAY DEPENDENT FIELDS *}
          {if $cats[cat_loop].fields[field_loop].field_options[option_loop].dependency == 1}

      {* SELECT BOX *}
      {if $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_type == 3}
              <div id='field_{$cats[cat_loop].fields[field_loop].field_id}_option{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}' style='margin: 0px 5px 10px 23px;{if $cats[cat_loop].fields[field_loop].field_options[option_loop].value != $cats[cat_loop].fields[field_loop].field_value} display: none;{/if}'>
              {lang_print id=$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_title}{if $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_required != 0}*{/if}
              <select name='field_{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_id}'>
          <option value='-1'></option>
          {* LOOP THROUGH DEP FIELD OPTIONS *}
          {section name=option2_loop loop=$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_options}
            <option id='op' value='{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_options[option2_loop].value}'{if $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_options[option2_loop].value == $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_value} SELECTED{/if}>{lang_print id=$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_options[option2_loop].label}</option>
          {/section}
        </select>
              </div>      

      {* TEXT FIELD *}
      {else}
              <div id='field_{$cats[cat_loop].fields[field_loop].field_id}_option{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}' style='margin: 0px 5px 10px 23px;{if $cats[cat_loop].fields[field_loop].field_options[option_loop].value != $cats[cat_loop].fields[field_loop].field_value} display: none;{/if}'>
              {lang_print id=$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_title}{if $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_required != 0}*{/if}
             <input type='text' class='text' name='field_{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_id}' value='{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_value}' style='{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_style}' maxlength='{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_maxlength}'>
              </div>
      {/if}

          {/if}

        {/section}
        </div>
        
      {* DATE FIELD *}
      {elseif $cats[cat_loop].fields[field_loop].field_type == 5}
        <div>
        <select name='field_{$cats[cat_loop].fields[field_loop].field_id}_1' style='{$cats[cat_loop].fields[field_loop].field_style}'>
        {section name=date1 loop=$cats[cat_loop].fields[field_loop].date_array1}
          <option value='{$cats[cat_loop].fields[field_loop].date_array1[date1].value}'{$cats[cat_loop].fields[field_loop].date_array1[date1].selected}>{if $smarty.section.date1.first}[ {lang_print id=$cats[cat_loop].fields[field_loop].date_array1[date1].name} ]{else}{$cats[cat_loop].fields[field_loop].date_array1[date1].name}{/if}</option>
        {/section}
        </select>
        
        <select name='field_{$cats[cat_loop].fields[field_loop].field_id}_2' style='{$cats[cat_loop].fields[field_loop].field_style}'>
        {section name=date2 loop=$cats[cat_loop].fields[field_loop].date_array2}
          <option value='{$cats[cat_loop].fields[field_loop].date_array2[date2].value}'{$cats[cat_loop].fields[field_loop].date_array2[date2].selected}>{if $smarty.section.date2.first}[ {lang_print id=$cats[cat_loop].fields[field_loop].date_array2[date2].name} ]{else}{$cats[cat_loop].fields[field_loop].date_array2[date2].name}{/if}</option>
        {/section}
        </select>
        
        <select name='field_{$cats[cat_loop].fields[field_loop].field_id}_3' style='{$cats[cat_loop].fields[field_loop].field_style}'>
        {section name=date3 loop=$cats[cat_loop].fields[field_loop].date_array3}
          <option value='{$cats[cat_loop].fields[field_loop].date_array3[date3].value}'{$cats[cat_loop].fields[field_loop].date_array3[date3].selected}>{if $smarty.section.date3.first}[ {lang_print id=$cats[cat_loop].fields[field_loop].date_array3[date3].name} ]{else}{$cats[cat_loop].fields[field_loop].date_array3[date3].name}{/if}</option>
        {/section}
        </select>
        </div>
        
        
        
      {* CHECKBOXES *}
      {elseif $cats[cat_loop].fields[field_loop].field_type == 6}
    
        {* LOOP THROUGH FIELD OPTIONS *}
        <div id='field_options_{$cats[cat_loop].fields[field_loop].field_id}'>
        {section name=option_loop loop=$cats[cat_loop].fields[field_loop].field_options}
          <div>
          <input type='checkbox' onclick="ShowHideDeps('{$cats[cat_loop].fields[field_loop].field_id}', '{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}', '{$cats[cat_loop].fields[field_loop].field_type}');" style='{$cats[cat_loop].fields[field_loop].field_style}' name='field_{$cats[cat_loop].fields[field_loop].field_id}[]' id='label_{$cats[cat_loop].fields[field_loop].field_id}_{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}' value='{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}'{if $cats[cat_loop].fields[field_loop].field_options[option_loop].value|in_array:$cats[cat_loop].fields[field_loop].field_value} CHECKED{/if}>
          <label for='label_{$cats[cat_loop].fields[field_loop].field_id}_{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}'>{lang_print id=$cats[cat_loop].fields[field_loop].field_options[option_loop].label}</label>
          </div>
          
          {* DISPLAY DEPENDENT FIELDS *}
          {if $cats[cat_loop].fields[field_loop].field_options[option_loop].dependency == 1}
      {* SELECT BOX *}
      {if $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_type == 3}
              <div id='field_{$cats[cat_loop].fields[field_loop].field_id}_option{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}' style='margin: 0px 5px 10px 23px;{if $cats[cat_loop].fields[field_loop].field_options[option_loop].value != $cats[cat_loop].fields[field_loop].field_value} display: none;{/if}'>
              {lang_print id=$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_title}{if $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_required != 0}*{/if}
              <select name='field_{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_id}'>
          <option value='-1'></option>
          {* LOOP THROUGH DEP FIELD OPTIONS *}
          {section name=option2_loop loop=$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_options}
            <option id='op' value='{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_options[option2_loop].value}'{if $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_options[option2_loop].value == $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_value} SELECTED{/if}>{lang_print id=$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_options[option2_loop].label}</option>
          {/section}
        </select>
              </div>      
              
      {* TEXT FIELD *}
      {else}
              <div id='field_{$cats[cat_loop].fields[field_loop].field_id}_option{$cats[cat_loop].fields[field_loop].field_options[option_loop].value}' style='margin: 0px 5px 10px 23px;{if $cats[cat_loop].fields[field_loop].field_options[option_loop].value != $cats[cat_loop].fields[field_loop].field_value} display: none;{/if}'>
              {lang_print id=$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_title}{if $cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_required != 0}*{/if}
             <input type='text' class='text' name='field_{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_id}' value='{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_value}' style='{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_style}' maxlength='{$cats[cat_loop].fields[field_loop].field_options[option_loop].dep_field_maxlength}'>
              </div>
      {/if}
          {/if}
          
        {/section}
        </div>
        
      {/if}
      
      <div class='form_desc'>{lang_print id=$cats[cat_loop].fields[field_loop].field_desc}</div>
      {capture assign='field_error'}{lang_print id=$cats[cat_loop].fields[field_loop].field_error}{/capture}
      {if $field_error != ""}<div class='form_error'><img src='./images/icons/error16.gif' border='0' class='icon'> {$field_error}</div>{/if}
      </td>
      </tr>
      
    {/section}
  {/section}
  
  {/if}
  
  
  
  
  {* EVENT SETTINGS *}
  
  {* SHOW NEW MEMBER APPROVAL SETTING IF ALLOWED BY ADMIN *}
  {if $user->level_info.level_event_inviteonly}
    <tr>
      <td class='form1' width='120'>{lang_print id=3000117}</td>
      <td class='form2'>
        <div class='event_form_desc'>{lang_print id=3000118}</div>
        <table cellpadding='0' cellspacing='0'>
          <tr>
            <td><input type='radio' name='event_inviteonly' id='event_inviteonly_0' value='0'{if !$event->event_info.event_inviteonly} checked{/if} /></td>
            <td><label for='event_inviteonly_0'>{lang_print id=3000119}</label></td>
          </tr>
          <tr>
            <td><input type='radio' name='event_inviteonly' id='event_inviteonly_1' value='1'{if  $event->event_info.event_inviteonly} checked{/if} /></td>
            <td><label for='event_inviteonly_1'>{lang_print id=3000120}</label></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td colspan='2'>&nbsp;</td>
    </tr>
  {/if}
  
  {* SHOW SEARCH PRIVACY OPTIONS IF ALLOWED BY ADMIN *}
  {if $user->level_info.level_event_search}
    <tr>
      <td class='form1' width='120'>{lang_print id=3000121}</td>
      <td class='form2'>
        <div class='event_form_desc'>{lang_print id=3000122}</div>
        <table cellpadding='0' cellspacing='0'>
          <tr>
            <td><input type='radio' name='event_search' id='event_search_1' value='1'{if  $event->event_info.event_search} checked{/if} /></td>
            <td><label for='event_search_1'>{lang_print id=3000123}</label></td>
          </tr>
          <tr>
            <td><input type='radio' name='event_search' id='event_search_0' value='0'{if !$event->event_info.event_search} checked{/if} /></td>
            <td><label for='event_search_0'>{lang_print id=3000124}</label></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td colspan='2'>&nbsp;</td>
    </tr>
  {/if}
  
  {* SHOW SEARCH PRIVACY OPTIONS IF ALLOWED BY ADMIN *}
  {* if $user->level_info.level_event_invite *}
    <tr>
      <td class='form1' width='120'>{lang_print id=3000267}</td>
      <td class='form2'>
        <div class='event_form_desc'>{lang_print id=3000268}</div>
        <table cellpadding='0' cellspacing='0'>
          <tr>
            <td><input type='radio' name='event_invite' id='event_invite_1' value='1'{if  $event->event_info.event_invite} checked{/if} /></td>
            <td><label for='event_invite_1'>{lang_print id=3000265}</label></td>
          </tr>
          <tr>
            <td><input type='radio' name='event_invite' id='event_invite_0' value='0'{if !$event->event_info.event_invite} checked{/if} /></td>
            <td><label for='event_invite_0'>{lang_print id=3000266}</label></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td colspan='2'>&nbsp;</td>
    </tr>
  {* /if *}
  
  {* SHOW ALLOW PRIVACY SETTINGS *}
  {if $privacy_options|@count > 1}
    <tr>
      <td class='form1' width='120'>{lang_print id=3000125}</td>
      <td class='form2'>
        <div class='event_form_desc'>{lang_print id=3000126}</div>
        <table cellpadding='0' cellspacing='0'>
        {foreach from=$privacy_options name=privacy_loop key=k item=v}
          <tr>
            <td><input type='radio' name='event_privacy' id='privacy_{$k}' value='{$k}'{if $event->event_info.event_privacy == $k} checked{/if} /></td>
            <td><label for='privacy_{$k}'>{lang_print id=$v}</label></td>
          </tr>
        {/foreach}
        </table>
      </td>
    </tr>
  {/if}
  
  
  {* SHOW ALLOW COMMENT SETTINGS *}
  {if $comment_options|@count > 1}
    <tr>
      <td class='form1' width='120'>{lang_print id=3000127}</td>
      <td class='form2'>
        <div class='event_form_desc'>{lang_print id=3000128}</div>
        <table cellpadding='0' cellspacing='0'>
        {foreach from=$comment_options name=comment_loop key=k item=v}
          <tr>
            <td><input type='radio' name='event_comments' id='event_comment_{$k}' value='{$k}'{if $event->event_info.event_comments == $k} checked{/if} /></td>
            <td><label for='event_comment_{$k}'>{lang_print id=$v}</label></td>
          </tr>
        {/foreach}
        </table>
      </td>
    </tr>
  {/if}
  
  
  {* SHOW ALLOW UPLOADS SETTINGS *}
  {if $upload_options|@count > 1}
    <tr>
      <td class='form1' width='120'>{lang_print id=3000129}</td>
      <td class='form2'>
        <div class='event_form_desc'>{lang_print id=3000130}</div>
        <table cellpadding='0' cellspacing='0'>
        {foreach from=$upload_options name=upload_loop key=k item=v}
          <tr>
            <td><input type='radio' name='event_upload' id='event_upload_{$k}' value='{$k}'{if $event->event_info.event_upload == $k} checked{/if} /></td>
            <td><label for='event_upload_{$k}'>{lang_print id=$v}</label></td>
          </tr>
        {/foreach}
        </table>
      </td>
    </tr>
  {/if}
  
  
  {* SHOW ALLOW TAGGING SETTINGS *}
  {if $tag_options|@count > 1}
    <tr>
      <td class='form1' width='120'>{lang_print id=3000131}</td>
      <td class='form2'>
        <div class='event_form_desc'>{lang_print id=3000132}</div>
        <table cellpadding='0' cellspacing='0'>
        {foreach from=$tag_options name=tag_loop key=k item=v}
          <tr>
            <td><input type='radio' name='event_tag' id='event_tag_{$k}' value='{$k}'{if $event->event_info.event_tag == $k} checked{/if} /></td>
            <td><label for='event_tag_{$k}'>{lang_print id=$v}</label></td>
          </tr>
        {/foreach}
        </table>
      </td>
    </tr>
  {/if}
  
</table>



{* SHOW SUBMIT BUTTONS *}
<table cellpadding='0' cellspacing='0' style='margin-top: 10px;'>
  <tr>
    <td>
      {lang_block id=3000133 var=langBlockTemp}<input type='submit' class='button' value='{$langBlockTemp}' />&nbsp;{/lang_block}
      <input type='hidden' name='task' value='doadd'>
      </form>
    </td>
    <td>
      <form action='user_event.php' method='GET'>
      {lang_block id=39 var=langBlockTemp}<input type='submit' class='button' value='{$langBlockTemp}' />{/lang_block}
      </form>
    </td>
  </tr>
</table>
<br />
<br />

{include file='footer.tpl'} 
 
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 12:29 AM.


Powered by vBulletin® Version 3.0.2
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.