File: templates/xmdoc_index.tpl

Recommend this page to a friend!
  Classes of Gregory Mage  >  xmdoc  >  templates/xmdoc_index.tpl  >  Download  
File: templates/xmdoc_index.tpl
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: xmdoc
XOOPS CMS module to manage files attached to posts
Author: By
Last change:
Date: 1 month ago
Size: 7,426 bytes
 

Contents

Class file image Download
<{if $index_header|default:'' != ''}>
    <div class="row">
        <div class="col-sm-12" style="padding-bottom: 10px; padding-top: 5px;">
            <{$index_header}>
        </div>
    </div>
<{/if}>

<{if $cat}>
	<ol class="breadcrumb">
		<li><a href="index.php"><{$index_module}></a></li>
		<li class="active"><{$category_name}></li>
	</ol>
<{else}>
	<ol class="breadcrumb">
		<li class="active"><{$index_module}></li>
	</ol>
<{/if}>
<div align="center">
	<{if $index_cat == 2 || $index_cat == 3}>
	<div class="xm-category row">
	<{foreach item=categories from=$cat_array}>		
		<div class="col-xs-2 <{if $cat && $categories.id == $doc_cid}>bg-info<{/if}> xm-category-list">			
			<a title="<{$categories.name}>" href="<{$xoops_url}>/modules/xmdoc/index.php?doc_cid=<{$categories.id}>" class="xm-category-image">
				<h4><{$categories.name}></h4>
				<{if $categories.logo != ''}>
				<img src="<{$categories.logo}>" alt="<{$categories.name}>" style="max-width:100px">
				<{/if}>
			</a>
		</div>	
	<{/foreach}>
	</div>
	<{/if}>
	<{if $index_cat == 1 || $index_cat == 3}>
	<form class="form-inline" id="form_news_tri" name="form_news_tri" method="get" action="index.php">
		<div class="form-group">
			<label><{$smarty.const._MA_XMDOC_INDEX_SELECTCATEGORY}></label>
			<select class="form-control form-control-sm" name="doc_filter" id="doc_filter" onchange="location='index.php?doc_cid='+this.options[this.selectedIndex].value">
				<{$doc_cid_options}>
			<select>
		</div>
	</form>
	<{/if}>
</div>
<br>		
<br>
<{if $cat}>
	<div class="media">
		<div class="media-left">
			<{if $category_logo != ''}>
			<img class="media-object" src="<{$category_logo}>" alt="<{$category_name}>" style="max-width:150px">
			<{/if}>
		</div>
		<div class="media-body">
			<h2 class="media-heading"><{$category_name}></h2>
			<{$category_description}>
		</div>
	</div>
	<br>		
	<br>	
<{/if}>
<{if $document_count|default:0 != 0}>
	<div class="row">
	<{foreach item=document from=$documents}>
		<div class="col-sm-6 col-md-6 xm-minibox">
			<div class="xm-document-logo">
				<img src="<{$document.logo}>" alt="<{$document.name}>" style="max-width:120px">
			</div>
			<a class="xm-document-title" title="<{$document.name}>" href="<{$xoops_url}>/modules/xmdoc/download.php?cat_id=<{$document.categoryid}>&amp;doc_id=<{$document.id}>" target="_blank">
				<{$document.name}>
			</a>
			<div class="xm-document-description">
				<{$document.description_short}>
			</div>
			<div class="xm-document-view">
				<{if $use_modal == 1}>
				<button type="button" class="btn btn-default btn-xs glyphicon glyphicon-eye-open" data-toggle="modal" data-target="#myModal<{$document.id}>"></button>
				<{else}>
				<a href="document.php?doc_id=<{$document.id}>">
					<button type="button" class="btn btn-default btn-xs glyphicon glyphicon-eye-open"></button>
				</a>
				<{/if}>
			</div>
			<a class="btn btn-primary btn-xs col-md-9" title="<{$document.name}>" href="<{$xoops_url}>/modules/xmdoc/download.php?cat_id=<{$document.categoryid}>&amp;doc_id=<{$document.id}>" target="_blank">
				<{$smarty.const._MA_XMDOC_DOWNLOAD}>
			</a>
		</div>
		<!-- Modal -->
		<div class="modal fade" id="myModal<{$document.id}>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
			<div class="modal-dialog" role="document">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title" id="myModalLabel"><{$document.name}></h4>
					</div>
					<div class="modal-body">
						<div class="media">
							<div class="media-left">
								<div class="xm-document-logo">
									<img class="media-object" src="<{$document.logo}>" alt="<{$document.name}>" style="max-width:120px">
								</div>
							</div>
							<div class="media-body">
								<{$document.description}>
								<{if $document.showinfo == 1}>
								<div class="xm-document-view-top">
									<div class="row xm-document-view">
										<div class="col-md-6"><span class="glyphicon glyphicon-calendar" title="<{$smarty.const._MA_XMDOC_FORMDOC_DATE}>"></span>
											<{$smarty.const._MA_XMDOC_FORMDOC_DATE}>: <{$document.date}>
										</div>
										<div class="col-md-6"><span class="glyphicon glyphicon-user" title="<{$smarty.const._MA_XMDOC_FORMDOC_AUTHOR}>"></span>
											<{$smarty.const._MA_XMDOC_FORMDOC_AUTHOR}>: <{$document.author}>
										</div>
									</div>
									<{if $document.mdate}>
									<div class="row xm-document-view">
										<div class="col-md-12"><span class="glyphicon glyphicon-calendar" title="<{$smarty.const._MA_XMDOC_FORMDOC_MDATE}>"></span>
											<{$smarty.const._MA_XMDOC_FORMDOC_MDATE}>: <{$document.mdate}>
										</div>
									</div>
									<{/if}>
									<{if $document.size != ''}>
									<div class="row xm-document-view">
										<div class="col-md-12"><span class="glyphicon glyphicon-resize-full" title="<{$smarty.const._MA_XMDOC_FORMDOC_MDATE}>"></span>
											<{$smarty.const._MA_XMDOC_FORMDOC_SIZE}>: <{$document.size}>
										</div>
									</div>
									<{/if}>
									<div class="row xm-document-view">
										<div class="col-md-6"><span class="glyphicon glyphicon-download-alt" title="<{$smarty.const._MA_XMDOC_FORMDOC_DOWNLOAD}>"></span>
											<{$smarty.const._MA_XMDOC_FORMDOC_DOWNLOAD}>: <{$document.counter}>
										</div>
										<{if $document.dorating == 1}>
										<div class="col-md-6">
											<{include file="db:xmsocial_rating.tpl" down_xmsocial=$document.xmsocial_arr}>
										</div>
										<{/if}>
									</div>
									<div class="xm-document-general-button">
										<div class="btn-group" role="group" aria-label="...">
											<{if $document.perm_edit == true}>
											<a href="<{$xoops_url}>/modules/xmdoc/action.php?op=edit&amp;document_id=<{$document.id}>">
												<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-edit"></span> <{$smarty.const._MA_XMDOC_EDIT}></button>
											</a>
											<{/if}>
											<{if $document.perm_del == true}>
											<a href="<{$xoops_url}>/modules/xmdoc/action.php?op=del&amp;document_id=<{$document.id}>">
												<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> <{$smarty.const._MA_XMDOC_DEL}></button>
											</a>
											<{/if}>
										</div>
									</div>
								</div>
								<{/if}>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal"><{$smarty.const._CLOSE}></button>
					</div>
				</div>
			</div>
		</div>
	<{/foreach}>
	</div>
	<{if $nav_menu|default:false}>
		<div class="row">
			<div class="col-sm-12" style="padding-bottom: 10px; padding-top: 5px; padding-right: 60px; text-align: right;">
				<{$nav_menu}>
			</div>
		</div>
	<{/if}>
<{else}>
<div class="alert alert-danger alert-dismissible" role="alert">
	<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	<{$smarty.const._MA_XMDOC_ERROR_NODOCUMENT}>
</div>
<{/if}>

<{if $index_footer|default:'' != ''}>
    <div class="row" style="padding-bottom: 5px; padding-top: 5px;">
        <div class="col-sm-12">
            <{$index_footer}>
        </div>
    </div>
<{/if}>

For more information send a message to info at phpclasses dot org.