<? global $vis_language; ?>
<div class="modal-dialog" id="forumCategoryDialog">
<div class="modal-content">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title"><? echo $vis_language['TXTADDFORUMCATEGORY']; ?></h4>
    </div>
    <div class="modal-body">
        <form action="index.php" method="post" target="vis_hidden_frame" name="vis_forum_category_form" id="vis_forum_category_form" class="form-horizontal">
            <div class="form-group">
                <label class="col-sm-3 control-label txt_nowrap"><? echo $vis_language['TXTDOMAIN']; ?></label>
                <div class="col-sm-9">
                    <select name="vis_domain" id="vis_domain" class="form-control input-sm selectpicker"<? if(count($domain_details)>10) echo ' data-live-search="true"';?>><?
                        if($domain_details!=-1) for($i=0;$i<count($domain_details); $i++)
                        echo '<option value="'.$domain_details[$i]['domain_id'].'">'.$domain_details[$i]['domain_name'].'</option>' ?>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label txt_nowrap"><? echo $vis_language['TXTTITLE']; ?></label>
                <div class="col-sm-9"><input type="text" name="vis_cat_title" id="vis_cat_title" class="form-control" >
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label txt_nowrap"><? echo $vis_language['TXTDISPLAYORDER']; ?></label>
                <div class="col-sm-9">
                    <input class="form-control" type="text" name="vis_displayorder" id="vis_displayorder" value="0" >
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label txt_nowrap"><? echo $vis_language['TXTDESCRIPTION']; ?></label>
                <div class="col-sm-9">
					<textarea name="vis_description" id="vis_description" class="form-control"  data-minwords="6" rows="2"></textarea>
                </div>
            </div>
			<div class="form-group">
				<label class="col-sm-3 control-label"><? echo $vis_language['TXTACCESS']; ?></label>
				<div class="col-sm-9">
					<div class="radio i-checks pull-left m-r-lg">
						<label>
						<input type="radio" name="vis_access" id="vis_access_yes" checked="checked" value="0" /><i></i>
						<? echo $vis_language['TXTPUBLIC']; ?></label>
					</div>
					<div class="radio i-checks pull-left ">
						<label>
						<input type="radio" name="vis_access" id="vis_access_no" value="1"  /><i></i>
						<? echo $vis_language['TXTPRIVATE']; ?></label>
					</div>
				</div>
                </div>
                <? if($language_details!=-1) { ?>
                <div class="form-group">
                    <div class="col-sm-12">
                        <h5><? echo $vis_language['MSGLANGTRANSFORFORUMCATEGORY']; ?></h5>
                    </div>
                </div>
                <div class="line b-b line-lg pull-in"></div>
                <br/>
                <?
                    for($i=0;$i<count($language_details);$i++) { ?>
                <div class="form-group">
                    <label class="col-sm-3 control-label"><? echo $language_details[$i]['language_name']; ?></label>
                    <div class="col-sm-9">
                        <input class="form-control input-sm" type="text" name="vis_language_<? echo $language_details[$i]['language_id']; ?>" type="text" value="" />
                    </div>
                </div>
                <?
                    }
                    }  ?>
        </form>
        </div>
        <div class="modal-footer">
            <a class="btn btn-default" data-dismiss="modal"><? echo $vis_language['TXTCANCEL']; ?></a>  
            <a class="btn btn-primary" onclick="$(this).visExecution('submit_form',{'vis_module':'forums', 'vis_operation':'add_forum_category', 'vis_form':'vis_forum_category_form'});"><? echo $vis_language['TXTADD']; ?></a>    
        </div>
    </div>
    <!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
<script>
    $(".selectpicker").selectpicker();
</script>

