<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset={CONTENT_ENCODING}" />
	<meta http-equiv="Content-Style-Type" content="text/css" />
	<title>{L_ADMIN}</title>
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<link rel="stylesheet" href="{SITE_URL}styles/templates/admin/dist/css/flat/_All.css">
    <script src="{SITE_URL}styles/templates/admin/dist/js/icheck.js"></script>
    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" href="{SITE_URL}styles/templates/admin/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="{SITE_URL}styles/templates/admin/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="{SITE_URL}styles/templates/admin/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="{SITE_URL}styles/templates/admin/dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
          page. However, you can choose any other skin. Make sure you
          apply the skin class to the body tag so the changes take effect.
    -->
    <link rel="stylesheet" href="{SITE_URL}styles/templates/admin/dist/css/skins/_all-skins.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

  </head>
  </html>
  <!--
  BODY TAG OPTIONS:
  =================
  Apply one or more of the following classes to get the
  desired effect
  |---------------------------------------------------------|
  | SKINS         | skin-blue                               |
  |               | skin-black                              |
  |               | skin-purple                             |
  |               | skin-yellow                             |
  |               | skin-red                                |
  |               | skin-green                              |
  |---------------------------------------------------------|
  |LAYOUT OPTIONS | fixed                                   |
  |               | layout-boxed                            |
  |               | layout-top-nav                          |
  |               | sidebar-collapse                        |
  |               | sidebar-mini                            |
  |---------------------------------------------------------|
  -->
  <body class="hold-transition _all-skins sidebar-mini">
    <div class="wrapper">

      <!-- Main Header -->
      <header class="main-header">

        <!-- Logo -->
        <a href="index.php" class="logo">
          <!-- mini logo for sidebar mini 50x50 pixels -->
          <span class="logo-mini"><b>TP</b></span>
          <!-- logo for regular state and mobile devices -->
          <span class="logo-lg"><b>{SITENAME}</b></span>
        </a>

        <!-- Header Navbar -->
        <nav class="navbar navbar-static-top" role="navigation">
          <!-- Sidebar toggle button-->
          <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
          </a>
		         <form class="navbar-form navbar-left" role="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="navbar-search-input" placeholder="Поиск">
                </div>
              </form>
          <!-- Navbar Right Menu -->
          <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
              <!-- Messages: style can be found in dropdown.less-->
              <li class="dropdown messages-menu">
                <!-- Menu toggle button -->
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <i class="fa fa-envelope-o"></i>
                  <span class="label label-success">4</span>
                </a>
                <ul class="dropdown-menu">
                  <li class="header">You have 4 messages</li>
                  <li>
                    <!-- inner menu: contains the messages -->
                    <ul class="menu">
                      <li><!-- start message -->
                        <a href="#">
                          <div class="pull-left">
                            <!-- User Image -->
                            <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                          </div>
                          <!-- Message title and timestamp -->
                          <h4>
                            Support Team
                            <small><i class="fa fa-clock-o"></i> 5 mins</small>
                          </h4>
                          <!-- The message -->
                          <p>Why not buy a new awesome theme?</p>
                        </a>
                      </li><!-- end message -->
                    </ul><!-- /.menu -->
                  </li>
                  <li class="footer"><a href="#">See All Messages</a></li>
                </ul>
              </li><!-- /.messages-menu -->

              <!-- Notifications Menu -->
              <li class="dropdown notifications-menu">
                <!-- Menu toggle button -->
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <i class="fa fa-bell-o"></i>
                  <span class="label label-warning">10</span>
                </a>
                <ul class="dropdown-menu">
                  <li class="header">You have 10 notifications</li>
                  <li>
                    <!-- Inner Menu: contains the notifications -->
                    <ul class="menu">
                      <li><!-- start notification -->
                        <a href="#">
                          <i class="fa fa-users text-aqua"></i> 5 new members joined today
                        </a>
                      </li><!-- end notification -->
                    </ul>
                  </li>
                  <li class="footer"><a href="#">View all</a></li>
                </ul>
              </li>
              <!-- Tasks Menu -->
              <li class="dropdown tasks-menu">
                <!-- Menu Toggle Button -->
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <i class="fa fa-flag-o"></i>
                  <span class="label label-danger">9</span>
                </a>
                <ul class="dropdown-menu">
                  <li class="header">You have 9 tasks</li>
                  <li>
                    <!-- Inner menu: contains the tasks -->
                    <ul class="menu">
                      <li><!-- Task item -->
                        <a href="#">
                          <!-- Task title and progress text -->
                          <h3>
                            Design some buttons
                            <small class="pull-right">20%</small>
                          </h3>
                          <!-- The progress bar -->
                          <div class="progress xs">
                            <!-- Change the css width attribute to simulate progress -->
                            <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                              <span class="sr-only">20% Complete</span>
                            </div>
                          </div>
                        </a>
                      </li><!-- end task item -->
                    </ul>
                  </li>
                  <li class="footer">
                    <a href="#">View all tasks</a>
                  </li>
                </ul>
              </li>

              <!-- Control Sidebar Toggle Button -->
              <li>
                <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
              </li>
            </ul>
          </div>
        </nav>
      </header>

      <!-- Left side column. contains the logo and sidebar -->
      <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">

          <!-- Sidebar Menu -->
          <ul class="sidebar-menu">
            <li class="header">{L_ADMIN}</li>
            <!-- Optionally, you can add icons to the links -->
            <li class="active"><a href="index.php?pane=right"><i style="color:#1b9ccf" class="fa fa-home"></i> <span>{L_ADMIN_INDEX}</span></a></li>
            <li><a href="../index.php"><i style="color:#1b9ccf" class="fa fa-link"></i><span> {L_MAIN_INDEX}</span></a></li>
            <li>
              <a href="#"><i style="color:#1b9ccf" class="fa fa-th-large"></i> <span>{L_ATTACHMENTS}</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                    <li class="active"><a href="admin_attach_cp.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_CONTROL_PANEL}</a></li>
					<li><a href="admin_extensions.php?mode=extensions"><i style="color:#429646" class="fa fa-map-marker"></i> {L_EXTENSION_CONTROL}</a></li>
					<li><a href="admin_extensions.php?mode=groups"><i style="color:#429646" class="fa fa-map-marker"></i> {L_EXTENSION_GROUP_MANAGE}</a></li>
					<li><a href="admin_attachments.php?mode=manage"><i style="color:#429646" class="fa fa-map-marker"></i> {L_MANAGE}</a></li>
					<li><a href="admin_attachments.php?mode=quota"><i style="color:#429646" class="fa fa-map-marker"></i> {L_QUOTA_LIMITS}</a></li>
					<li><a href="admin_attachments.php?mode=cats"><i style="color:#429646" class="fa fa-map-marker"></i> {L_SPECIAL_CATEGORIES}</a></li>
              </ul>
            </li>
			        <li>
              <a href="#"><i style="color:#1b9ccf" class="fa fa-comments"></i> <span>{L_FORUMS}</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                    <li class="active"><a href="admin_forums.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_MANAGE}</a></li>
					<li><a href="admin_forumauth.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_PERMISSIONS}</a></li>
					<li><a href="admin_forumauth_list.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_PERMISSIONS_LIST}</a></li>
					<li><a href="admin_forum_prune.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_PRUNE}</a></li>
              </ul>
            </li>
					<li>
              <a href="#"><i style="color:#1b9ccf" class="fa fa-wrench"></i> <span>{L_GENERAL}</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                    <li class="active"><a href="admin_board.php?mode=config"><i style="color:#429646" class="fa fa-map-marker"></i> {L_CONFIGURATION}</a></li>
					<li><a href="admin_phpinfo.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_PHP_INFO}</a></li>
					<li><a href="admin_rebuild_search.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_REBUILD_SEARCH_INDEX}</a></li>
					<li><a href="admin_smilies.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_EMOTICONS}</a></li>
					<li><a href="admin_terms.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_TERMS}</a></li>
					<li><a href="admin_words.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_WORD_CENSOR}</a></li>
              </ul>
            </li>
					<li>
              <a href="#"><i style="color:#1b9ccf" class="fa fa-group"></i> <span>{L_GROUPS}</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                    <li class="active"><a href="admin_groups.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_MANAGE}</a></li>
					<li><a href="admin_ug_auth.php?mode=group"><i style="color:#429646" class="fa fa-map-marker"></i> {L_PERMISSIONS}</a></li>
              </ul>
            </li>
					<li>
              <a href="#"><i style="color:#1b9ccf" class="fa fa-qrcode"></i> <span>{L_MODS}</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                    <li class="active"><a href="admin_board.php?mode=config_mods"><i style="color:#429646" class="fa fa-map-marker"></i> {L_CONFIGURATION}</a></li>
					<li><a href="admin_mass_email.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_MASS_EMAIL}</a></li>
					<li><a href="admin_sitemap.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_SITEMAP}</a></li>
              </ul>
            </li>
					<li>
              <a href="#"><i style="color:#1b9ccf" class="fa fa-sitemap"></i> <span>{L_TP}</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                    <li class="active"><a href="admin_cron.php?mode=list"><i style="color:#429646" class="fa fa-map-marker"></i> {L_CRON}</a></li>
					<li><a href="admin_bt_forum_cfg.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_FORUM_CONFIG}</a></li>
					<li><a href="admin_bt_tracker_cfg.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_TRACKER_CONFIG}</a></li>
              </ul>
            </li>
					<li>
              <a href="#"><i style="color:#1b9ccf" class="fa fa-users"></i> <span>{L_MEMBERLIST}</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                    <li class="active"><a href="admin_log.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_ACTIONS_LOG}</a></li>
					<li><a href="admin_user_ban.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_BAN_MANAGEMENT}</a></li>
					<li><a href="admin_disallow.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_DISALLOW}</a></li>
					<li><a href="admin_ug_auth.php?mode=user"><i style="color:#429646" class="fa fa-map-marker"></i> {L_PERMISSIONS}</a></li>
					<li><a href="admin_ranks.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_RANKS}</a></li>
					<li><a href="admin_user_search.php"><i style="color:#429646" class="fa fa-map-marker"></i> {L_SEARCH}</a></li>
              </ul>
            </li>			
          </ul><!-- /.sidebar-menu -->
        </section>
        <!-- /.sidebar -->
      </aside>
	        <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->




<script>
$(document).ready(function(){
  $('input').iCheck({
    checkboxClass: 'icheckbox_flat-red',
    radioClass: 'iradio_flat-red'
  });
});
</script>

<!-- IF TPL_ATTACH_SPECIAL_CATEGORIES -->
<!--========================================================================-->

        <section class="content-header">
          <h1 style="color:#23540b">
            {L_MANAGE_CATEGORIES}
            <small> {L_MANAGE_CATEGORIES_EXPLAIN}</small>
          </h1>
        </section>
<br />
<form action="{S_ATTACH_ACTION}" method="post">
        <!-- Main content -->
        <section class="content">
          <div class="row">
            <div class="col-md-12">
              <div class="box">
                <div align="center" class="box-header with-border">
                  <h3 style="color:#23540b" class="box-title">{L_SETTINGS_CAT_IMAGES}<br />{L_ASSIGNED_GROUP}: {S_ASSIGNED_GROUP_IMAGES}</h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table class="table table-bordered">
	<tr>
		<td width="80%"><b>{L_DISPLAY_INLINED}</b><br /><span class="small">{L_DISPLAY_INLINED_EXPLAIN}</span></td>
		<td><input type="radio" name="img_display_inlined" value="1" {DISPLAY_INLINED_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="img_display_inlined" value="0" {DISPLAY_INLINED_NO} /> {L_NO}</td>
	</tr>
<!-- BEGIN switch_thumbnail_support -->
	<tr>
		<td width="80%"><b>{L_IMAGE_CREATE_THUMBNAIL}</b><br /><span class="small">{L_IMAGE_CREATE_THUMBNAIL_EXPLAIN}</span></td>
		<td><input type="radio" name="img_create_thumbnail" value="1" {CREATE_THUMBNAIL_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="img_create_thumbnail" value="0" {CREATE_THUMBNAIL_NO} /> {L_NO}</td>
	</tr>
	<tr>
		<td width="80%"><b>{L_IMAGE_MIN_THUMB_FILESIZE}</b><br /><span class="small">{L_IMAGE_MIN_THUMB_FILESIZE_EXPLAIN}</span></td>
		<td><input type="text" size="7" maxlength="15" name="img_min_thumb_filesize" value="{IMAGE_MIN_THUMB_FILESIZE}" /> {L_BYTES}</td>
	</tr>
	<tr>
		<td width="80%"><b>{L_USE_GD2}</b><br /><span class="small">{L_USE_GD2_EXPLAIN}</span></td>
		<td><input type="radio" name="use_gd2" value="1" {USE_GD2_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="use_gd2" value="0" {USE_GD2_NO} /> {L_NO}</td>
	</tr>
<!-- END switch_thumbnail_support -->
	<tr>
		<td width="80%"><b>{L_IMAGE_IMAGICK_PATH}</b><br /><span class="small">{L_IMAGE_IMAGICK_PATH_EXPLAIN}</span></td>
		<td><input type="text" size="20" maxlength="200" name="img_imagick" value="{IMAGE_IMAGICK_PATH}" /></td>
	</tr>
	<tr>
		<td width="80%"><b>{L_MAX_IMAGE_SIZE}</b> <br /><span class="small">{L_MAX_IMAGE_SIZE_EXPLAIN}</span></td>
		<td><input type="text" size="3" maxlength="4" name="img_max_width" value="{IMAGE_MAX_WIDTH}" /> x <input type="text" size="3" maxlength="4" name="img_max_height" value="{IMAGE_MAX_HEIGHT}" /></td>
	</tr>
	<tr>
		<td width="80%"><b>{L_IMAGE_LINK_SIZE}</b> <br /><span class="small">{L_IMAGE_LINK_SIZE_EXPLAIN}</span></td>
		<td><input type="text" size="3" maxlength="4" name="img_link_width" value="{IMAGE_LINK_WIDTH}" /> x <input type="text" size="3" maxlength="4" name="img_link_height" value="{IMAGE_LINK_HEIGHT}" /></td>
	</tr>
	<tr>
		<td align="center" colspan="2">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="btn btn-danger btn-xs" />&nbsp;&nbsp;<input type="reset" value="{L_RESET}" class="btn btn-danger btn-xs" />&nbsp;&nbsp;<input type="submit" name="search_imagick" value="{L_IMAGE_SEARCH_IMAGICK}" class="btn btn-danger btn-xs" />&nbsp;&nbsp;<input type="submit" name="cat_settings" value="{L_TEST_SETTINGS}" class="btn btn-danger btn-xs" /></td>
	</tr>	
	</table>
    </div><!-- /.box-body -->
    </div><!-- /.box -->
	</div><!-- /.col -->
	</section><!-- /.content -->
    </div><!-- /.content-wrapper -->
</form>

<!--========================================================================-->
<!-- ENDIF / TPL_ATTACH_SPECIAL_CATEGORIES -->

<!-- IF TPL_ATTACH_MANAGE -->
<!--========================================================================-->
        <section class="content-header">
          <h1 style="color:#23540b">
            {L_ATTACH_SETTINGS}
            <small> {L_MANAGE_ATTACHMENTS_EXPLAIN}</small>
          </h1>
        </section>
<br />

<form action="{S_ATTACH_ACTION}" method="post">
        <!-- Main content -->
        <section class="content">
          <div class="row">
            <div class="col-md-12">
              <div class="box">
                <div class="box-header with-border">
                  <h3 style="color:#23540b" class="box-title">{L_ATTACH_SETTINGS}</h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table class="table table-bordered">
	<tr>
		<td width="80%"><b>{L_UPLOAD_DIRECTORY}</b><br /><span class="small">{L_UPLOAD_DIRECTORY_EXPLAIN}</span></td>
		<td><input type="text" size="25" maxlength="100" name="upload_dir" value="{UPLOAD_DIR}" /></td>
	</tr>
		<tr>
		<td width="80%"><b>{L_ATTACH_IMG_PATH}</b><br /><span class="small">{L_ATTACH_IMG_PATH_EXPLAIN}</span></td>
		<td><input type="text" size="25" maxlength="100" name="upload_img" value="{ATTACHMENT_IMG_PATH}" /></td>
	</tr>
	<tr>
		<td width="80%"><b>{L_ATTACH_TOPIC_ICON}</b><br /><span class="small">{L_ATTACH_TOPIC_ICON_EXPLAIN}</span></td>
		<td><input type="text" size="25" maxlength="100" name="topic_icon" value="{TOPIC_ICON}" /></td>
	</tr>
	<tr>
		<td width="80%"><b>{L_ATTACH_DISPLAY_ORDER}</b><br /><span class="small">{L_ATTACH_DISPLAY_ORDER_EXPLAIN}</span></td>
		<td><input type="radio" name="display_order" value="0" {DISPLAY_ORDER_DESC} /> {L_DESC}<br /><span><input type="radio" name="display_order" value="1" {DISPLAY_ORDER_ASC} /> {L_ASC}</span></td>
       </tr>
	                  </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
			  </div><!-- /.col -->
		
            <div class="col-md-12">
              <div class="box">
                <div class="box-header with-border">
                  <h3 style="color:#23540b" class="box-title">{L_ATTACH_FILESIZE_SETTINGS}</h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table class="table table-bordered">
	<tr>
		<td width="80%"><b>{L_MAX_FILESIZE_ATTACH}</b><br /><span class="small">{L_MAX_FILESIZE_ATTACH_EXPLAIN}</span></td>
		<td><input type="text" size="8" maxlength="15" name="max_filesize" value="{MAX_FILESIZE}" /> {S_FILESIZE}</td>
	</tr>
	<tr>
		<td width="80%"><b>{L_ATTACH_QUOTA}</b><br /><span class="small">{L_ATTACH_QUOTA_EXPLAIN}</span></td>
		<td><input type="text" size="8" maxlength="15" name="attachment_quota" value="{ATTACHMENT_QUOTA}" /> {S_FILESIZE_QUOTA}</td>
	</tr>
	<tr>
		<td width="80%"><b>{L_MAX_FILESIZE_PM}</b><br /><span class="small">{L_MAX_FILESIZE_PM_EXPLAIN}</span></td>
		<td><input type="text" size="8" maxlength="15" name="max_filesize_pm" value="{MAX_FILESIZE_PM}" /> {S_FILESIZE_PM}</td>
	</tr>
	<tr>
		<td width="80%"><b>{L_DEFAULT_QUOTA_LIMIT}</b><br /><span class="small">{L_DEFAULT_QUOTA_LIMIT_EXPLAIN}</span></td>
		<td nowrap="nowrap">{S_DEFAULT_UPLOAD_LIMIT}&nbsp;{L_UPLOAD_QUOTA}&nbsp;<br /><br /><span>{S_DEFAULT_PM_LIMIT}&nbsp;{L_PM_QUOTA}&nbsp;</span></td>	
		</tr>
	                  </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
			  </div><!-- /.col -->	
			  
			              <div class="col-md-12">
              <div class="box">
                <div class="box-header with-border">
                  <h3 style="color:#23540b" class="box-title">{L_ATTACH_NUMBER_SETTINGS}</h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table class="table table-bordered">
	<tr>
		<td width="80%"><b>{L_MAX_ATTACHMENTS}</b><br /><span class="small">{L_MAX_ATTACHMENTS_EXPLAIN}</span></td>
		<td><input type="text" size="3" maxlength="3" name="max_attachments" value="{MAX_ATTACHMENTS}" /></td>
	</tr>
	<tr>
		<td width="80%"><b>{L_MAX_ATTACHMENTS_PM}</b><br /><span class="small">{L_MAX_ATTACHMENTS_PM_EXPLAIN}</span></td>
		<td><input type="text" size="3" maxlength="3" name="max_attachments_pm" value="{MAX_ATTACHMENTS_PM}" /></td>
	</tr>
	         </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
			  </div><!-- /.col -->	
			  
			  <div class="col-md-12">
              <div class="box">
                <div class="box-header with-border">
                  <h3 style="color:#23540b" class="box-title">{L_ATTACH_OPTIONS_SETTINGS}</h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table class="table table-bordered">
	<tr>
		<td width="80%"><b>{L_DISABLE_MOD}</b><br /><span class="small">{L_DISABLE_MOD_EXPLAIN}</span></td>
		<td><input type="radio" name="disable_mod" value="1" {DISABLE_MOD_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="disable_mod" value="0" {DISABLE_MOD_NO} /> {L_NO}</td>
	</tr>
	<tr>
		<td width="80%"><b>{L_PM_ATTACHMENTS}</b><br /><span class="small">{L_PM_ATTACHMENTS_EXPLAIN}</span></td>
		<td><input type="radio" name="allow_pm_attach" value="1" {PM_ATTACH_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_pm_attach" value="0" {PM_ATTACH_NO} /> {L_NO}</td>
	</tr>
	<tr>
		<td align="center" colspan="2">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="btn btn-danger btn-xs" />&nbsp;&nbsp;<input type="reset" value="{L_RESET}" class="btn btn-danger btn-xs" />&nbsp;&nbsp;<input type="submit" name="settings" value="{L_TEST_SETTINGS}" class="btn btn-danger btn-xs" /></td>
	</tr>
		         </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
			  </div><!-- /.col -->
	</section><!-- /.content -->
      </div><!-- /.content-wrapper -->
</form>

<!--========================================================================-->
<!-- ENDIF / TPL_ATTACH_MANAGE -->

<!-- IF TPL_ATTACH_QUOTA -->
<!--========================================================================-->

        <section class="content-header">
          <h1 style="color:#23540b">
            {L_MANAGE_QUOTAS}
            <small> {L_MANAGE_QUOTAS_EXPLAIN}</small>
          </h1>
        </section>
<br />

<form method="post" action="{S_ATTACH_ACTION}">
        <!-- Main content -->
        <section class="content">
          <div class="row">
            <div class="col-md-12">
              <div class="box">
                <div class="box-header with-border">
                  <h3 style="color:#23540b" class="box-title">{L_MANAGE_QUOTAS}</h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table class="table table-bordered">
	<tr>
		<td align="center"><b>{L_DESCRIPTION}</b></td>
		<td align="center"><b>{L_SIZE}</b></td>
		<td align="center"><b>{L_ADD_NEW}</b></td>
	</tr>
	<tr>
		<td align="center"><input type="text" size="20" maxlength="25" name="quota_description" /></td>
		<td align="center"><input type="text" size="8" maxlength="15" name="add_max_filesize" value="{MAX_FILESIZE}" /> {S_FILESIZE}</td>
		<td align="center"><input type="checkbox" name="add_quota_check" /></td>
	</tr>
	<tr>
	  <td align="center" colspan="3"> {S_HIDDEN_FIELDS} <input type="submit" name="submit" class="btn btn-danger btn-xs" value="{L_SUBMIT}" /></td>
	</tr>
		<tr>
		<td align="center"><b>{L_DESCRIPTION}</b></td>
		<td align="center"><b>{L_SIZE}</b></td>
		<td align="center"><b>{L_DELETE}</b></td>
	</tr>
	<!-- BEGIN limit_row -->
	<tr>
	  <td align="center">
		<input type="hidden" name="quota_change_list[]" value="{limit_row.QUOTA_ID}" />
		<table width="100%" class="borderless">
		<tr>
		<td align="center" width="10%" wrap="nowrap"><b><span class="small"><a href="{limit_row.U_VIEW}" class="small">{L_VIEW}</a></span></b></td>
		<td ><input type="text" size="20" maxlength="25" name="quota_desc_list[]" value="{limit_row.QUOTA_NAME}" /></td>
	  </tr>
	  </table>
	  </td>
	  <td align="center"><input type="text" size="8" maxlength="15" name="max_filesize_list[]" value="{limit_row.MAX_FILESIZE}" /> {limit_row.S_FILESIZE}</td>
	  <td align="center"><input type="checkbox" name="quota_id_list[]" value="{limit_row.QUOTA_ID}" /></td>
	</tr>
<!-- END limit_row -->
	<tr>
	  <td align="center" colspan="3"> <input type="submit" name="submit" class="btn btn-danger btn-xs" value="{L_SUBMIT}" /></td>
	</tr>
			         </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
			  </div><!-- /.col -->
</form>

<!-- {QUOTA_LIMIT_SETTINGS} -->

<!-- BEGIN switch_quota_limit_desc -->

<div align="center"><h1>{L_QUOTA_LIMIT_DESC}</h1></div>
            <div class="col-md-6">
              <div class="box box-success box-solid">
                <div class="box-header with-border">
                  <h3 class="box-title">{L_ASSIGNED_USERS} - {L_UPLOAD_QUOTA}</h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                  </div><!-- /.box-tools -->
                </div><!-- /.box-header -->
                <div class="box-body">
                  	<tr>
					<td class="row1" align="center">
						<select style="width:99%" name="entries[]" multiple="multiple" size="5">
<!-- END switch_quota_limit_desc -->
						<!-- BEGIN users_upload_row -->
						<option value="{users_upload_row.USER_ID}">{users_upload_row.USERNAME}</option>
						<!-- END users_upload_row -->
<!-- BEGIN switch_quota_limit_desc -->
						</select>
					</td>
				</tr>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
            </div><!-- /.col -->
			
			 <div class="col-md-6">
              <div class="box box-success box-solid">
                <div class="box-header with-border">
                  <h3 class="box-title">{L_ASSIGNED_GROUPS} - {L_UPLOAD_QUOTA}</h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                  </div><!-- /.box-tools -->
                </div><!-- /.box-header -->
                <div class="box-body">
                 <tr>
					<td class="row1" align="center">
						<select style="width:99%" name="entries[]" multiple="multiple" size="5">
<!-- END switch_quota_limit_desc -->
						<!-- BEGIN users_pm_row -->
						<option value="{users_pm_row.USER_ID}">{users_pm_row.USERNAME}</option>
						<!-- END users_pm_row -->
<!-- BEGIN switch_quota_limit_desc -->
						</select>
					</td>
				</tr>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
            </div><!-- /.col -->
			
			<div class="col-md-6">
              <div class="box box-success box-solid">
                <div class="box-header with-border">
                  <h3 class="box-title">{L_ASSIGNED_USERS} - {L_PM_QUOTA}</h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                  </div><!-- /.box-tools -->
                </div><!-- /.box-header -->
                <div class="box-body">
                 <tr>
					<td class="row1" align="center">
						<select style="width:99%" name="entries[]" multiple="multiple" size="5">
<!-- END switch_quota_limit_desc -->
						<!-- BEGIN users_pm_row -->
						<option value="{users_pm_row.USER_ID}">{users_pm_row.USERNAME}</option>
						<!-- END users_pm_row -->
<!-- BEGIN switch_quota_limit_desc -->
						</select>
					</td>
				</tr>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
            </div><!-- /.col -->
			
			<div class="col-md-6">
              <div class="box box-success box-solid">
                <div class="box-header with-border">
                  <h3 class="box-title">{L_ASSIGNED_GROUPS} - {L_PM_QUOTA}</h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                  </div><!-- /.box-tools -->
                </div><!-- /.box-header -->
                <div class="box-body">
                <tr>
					<td class="row1" align="center">
					<select style="width:99%" name="entries[]" multiple="multiple" size="5">
<!-- END switch_quota_limit_desc -->
					<!-- BEGIN groups_pm_row -->
					<option value="{groups_pm_row.GROUP_ID}">{groups_pm_row.GROUPNAME}</option>
					<!-- END groups_pm_row -->
<!-- BEGIN switch_quota_limit_desc -->
					</select>
					</td>
				</tr>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
            </div><!-- /.col -->
<!-- END switch_quota_limit_desc -->
	</section><!-- /.content -->
      </div><!-- /.content-wrapper -->
<!--========================================================================-->
<!-- ENDIF / TPL_ATTACH_QUOTA -->
      <!-- Main Footer -->
      <footer class="main-footer">
        <!-- To the right -->
        <div class="pull-right hidden-xs">
          Anything you want
        </div>
        <!-- Default to the left -->
        <strong>Copyright &copy; 2015 <a href="#">Company</a>.</strong> All rights reserved.
      </footer>
      <!-- Control Sidebar -->
      <aside class="control-sidebar control-sidebar-dark">
        <!-- Create the tabs -->
        <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
          <li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
          <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
          <!-- Home tab content -->
          <div class="tab-pane active" id="control-sidebar-home-tab">
            <h3 class="control-sidebar-heading">Recent Activity</h3>
            <ul class="control-sidebar-menu">
              <li>
                <a href="javascript::;">
                  <i class="menu-icon fa fa-birthday-cake bg-red"></i>
                  <div class="menu-info">
                    <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
                    <p>Will be 23 on April 24th</p>
                  </div>
                </a>
              </li>
            </ul><!-- /.control-sidebar-menu -->

            <h3 class="control-sidebar-heading">Tasks Progress</h3>
            <ul class="control-sidebar-menu">
              <li>
                <a href="javascript::;">
                  <h4 class="control-sidebar-subheading">
                    Custom Template Design
                    <span class="label label-danger pull-right">70%</span>
                  </h4>
                  <div class="progress progress-xxs">
                    <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
                  </div>
                </a>
              </li>
            </ul><!-- /.control-sidebar-menu -->

          </div><!-- /.tab-pane -->
          <!-- Stats tab content -->
          <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div><!-- /.tab-pane -->
          <!-- Settings tab content -->
          <div class="tab-pane" id="control-sidebar-settings-tab">
            <form method="post">
              <h3 class="control-sidebar-heading">General Settings</h3>
              <div class="form-group">
                <label class="control-sidebar-subheading">
                  Report panel usage
                  <input type="radio" class="pull-right" checked>
                </label>
                <p>
                  Some information about this general settings option
                </p>
              </div><!-- /.form-group -->
            </form>
          </div><!-- /.tab-pane -->
        </div>
      </aside><!-- /.control-sidebar -->
      <!-- Add the sidebar's background. This div must be placed
           immediately after the control sidebar -->
      <div class="control-sidebar-bg"></div>
    </div><!-- ./wrapper -->

    <!-- REQUIRED JS SCRIPTS -->

    <!-- jQuery 2.1.4 -->
    <script src="plugins/jQuery/jQuery-2.1.4.min.js"></script>
    <!-- Bootstrap 3.3.5 -->
    <script src="{SITE_URL}styles/templates/admin/bootstrap/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="{SITE_URL}styles/templates/admin/plugins/fastclick/fastclick.min.js"></script>
    <!-- AdminLTE App -->
    <script src="{SITE_URL}styles/templates/admin/dist/js/app.min.js"></script>
    <!-- AdminLTE for demo purposes -->
    <script src="{SITE_URL}styles/templates/admin/dist/js/demo.js"></script>

    <!-- Optionally, you can add Slimscroll and FastClick plugins.
         Both of these plugins are recommended to enhance the
         user experience. Slimscroll is required when using the
         fixed layout. -->
  </body>