{include file='../general/information.tpl'}

{if $myobj->isShowPageBlock('form_create_forum')}

{if chkIsPaymentAllowed('payment_forum') and chkIsPaymentAlertMessageAllowed()}
    <ul class="clsQuistionHind">
    	{if $myobj->forum_add.notifyForum_arr.total_notify eq $CFG.plan.unlimited_text && $myobj->forum_add.notifyForum_arr.today_notify eq $CFG.plan.unlimited_text}
			<li> <p>{$LANG.notify_unlimited}</p></li>
		{elseif $myobj->forum_add.notifyForum_arr.total_notify eq $CFG.plan.unlimited_text}
			<li> <p>{$LANG.notify_unlimited}</p></li>
			<li> <p>{$myobj->forum_add.notifyForum_arr.today_notify}</p></li>
		{else}
            <li> <p>{$myobj->forum_add.notifyForum_arr.total_notify}</p></li>
            <li> <p>{$myobj->forum_add.notifyForum_arr.today_notify}</p></li>
        {/if}
    </ul>
{/if}
<div id="selForumTitleCreate">
 <div class="clsCommonTopAnalystRoundedCorner">
  <!--rounded corners-->
  <div class="clsClearfix clsProfilePageDetails">
   <h2 id="selForumTitle" class="clsFloatleft">
   		{if $myobj->isShowPageBlock('form_create_forum')}
   			<a href="{$myobj->back_to_forums.url}">
                {$LANG.forums}&nbsp;-
            </a>
   		{/if}
        <span>{$LANG.forumslinks_add_title}</span>
    </h2>
<div id="selQuickLinks" class="clsQuestionsLink clsFloatright">
			<ul class="clsFloatright">
				<li class="{$myobj->displaytabs.allForumsLI}"><span><a href="{$myobj->allforums_link}">{$LANG.forums_allforums}</a></span></li>
				<li class="{$myobj->displaytabs.myForumsLI}"><span><a href="{$myobj->myforums_link}">{$LANG.forums_mytitles}</a></span></li>
				<li class="{$myobj->displaytabs.postForumsLI}"><span>
					{if isMember()}<a href="{$myobj->forumsAddTitle_url}">{$LANG.forumslinks_post_title}</a>{else}
	     				<a id="posttitle" href="{$myobj->login_url}" onclick="{$myobj->getBrowser('posttitle')}">{$LANG.forumslinks_post_title}</a>
	 				{/if}</span>
				 </li>
			</ul>
</div>
</div>
<div class="clsForumMainContainer">
	 <div class="clsShadedBg">
  <div class="lbtopanalyst">
    <div class="rbtopanalyst">
      <div class="bbtopanalyst">
        <div class="blctopanalyst">
          <div class="brctopanalyst">
            <div class="tbtopanalyst">
              <div class="tlctopanalyst">
                <div class="trctopanalyst">

    <div class="">
    <div id="selLeftNavigation">


    <div id="selShowCreateForum" >
        <form name="form_create_forum" id="selFormSignup" method="post" action="{$myobj->getCurrentUrl()}" autocomplete="off">
            <table summary="{$LANG.forum_tbl_summary}">
                <tr>
                    <td class="{$myobj->getCSSFormLabelCellClass('forum_title')}"><label for="forum_title">{$LANG.forum_title_add}</label>
                   <span class="clsMandatory">*</span>{$myobj->ShowHelpTip('forum_title')}</td>
                    <td class="{$myobj->getCSSFormFieldCellClass('forum_title')}">
                        <input type="text" class="clsTextBox {$myobj->getCSSFormFieldElementClass('forum_title')}" name="forum_title" id="forum_title" maxlength="200" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('forum_title')}" />{$myobj->getFormFieldElementErrorTip('forum_title')}
                    </td>
                </tr>
                    <tr>
                    <td class="{$myobj->getCSSFormLabelCellClass('forum_description')}"><label for="forum_description">{$LANG.forum_description}</label>
                   <span class="clsMandatory">*</span>{$myobj->ShowHelpTip('forum_title_description', 'forum_description')}</td>
                    <td class="{$myobj->getCSSFormFieldCellClass('forum_description')}">
                        <textarea name="forum_description" id="forum_description" class="{$myobj->getCSSFormFieldElementClass('forum_description')}" rows="5" cols="23" maxlength="{$myobj->CFG.admin.description.limit}" tabindex="{smartyTabIndex}" onFocus="updatelength(this);" onKeyUp="updatelength(this);">{$myobj->getFormField('forum_description')}</textarea>{$myobj->getFormFieldElementErrorTip('forum_description')}
						<div id="ss" class="clsZeroColour"><span> {$LANG.header_remainig} :</span> <span class="clsCharacterLimit">{literal}<script language="javascript" type="text/javascript">var c = ques_des_max_len - document.getElementById('forum_description').value.length;document.write(c);</script>{/literal}</span></div>
                    </td>
                    </tr>
                    {if $CFG.admin.forums.topics_publish_option.allowed and !$CFG.admin.forums.auto_publish.allowed}
                        <tr>
                        <td class="{$myobj->getCSSFormLabelCellClass('publish')}"><label for="publish">{$myobj->LANG.forum_publish_alltopics}</label>
                        {$myobj->ShowHelpTip('publish_topics', 'publish')}
                        </td>
                        <td class="{$myobj->getCSSFormFieldCellClass('publish')}">
                        <input type="radio" name="publish" id="status_yes" value="Yes" {$myobj->isCheckedRadio('publish', 'Yes')} /><label for="status_yes">{$LANG.common_yes_option}</label>
                        <input type="radio" name="publish" id="status_no" value="No" {$myobj->isCheckedRadio('publish', 'No')} /><label for="status_no">{$LANG.common_no_option}</label>
                        <p class="clsZeroColour">{$LANG.forum_msg_topic_publish_help}</p>{$myobj->getFormFieldElementErrorTip('publish')}
                        </td>
                        </tr>
    	            {/if}
                    <tr>
                    <td></td>
                       <td  class="{$myobj->getCSSFormFieldCellClass('submit')}">
					   <div class="clsSubmitLeft">
						<div class="clsSubmitRight">
                        <input type="submit" class="clsSubmitButton clsMediumSubmitButton" name="forum_submit" id="submit" tabindex="{smartyTabIndex}" value="{$myobj->button_value}" />
						</div></div>
						<div class="clsCancelLeft">
						<div class="clsCancelRight">
                        <input type="submit" class="clsCancelButton" name="forum_cancel" id="forum_cancel" tabindex="{smartyTabIndex}" value="{$LANG.common_cancel}" />
						</div></div>
                    </td>
                </tr>
            </table>
            <input type="hidden" name="forum_id" id="forum_id" value="{$myobj->getFormField('forum_id')}" />
        </form>
    </div>

{/if}

	</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div></div>
  </div>
  <!--end of rounded corners-->
  </div>
</div>
</div>