File: templates/xmdoc_docmanager.tpl

Recommend this page to a friend!
  Classes of Gregory Mage  >  xmdoc  >  templates/xmdoc_docmanager.tpl  >  Download  
File: templates/xmdoc_docmanager.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: 4,225 bytes
 

Contents

Class file image Download
<!doctype html>
<html lang="<{$xoops_langcode}>">
<head>
    <meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>">
    <meta http-equiv="content-language" content="<{$xoops_langcode}>">
    <title>Xmdoc manager</title>
    <link rel="stylesheet" type="text/css" media="screen" href="<{xoAppUrl xoops.css}>">
	<link rel="stylesheet" type="text/css" media="screen" href="<{xoAppUrl modules/system/css/imagemanager.css}>">
	<link rel="stylesheet" type="text/css" media="screen" href="<{xoAppUrl modules/system/css/admin.css}>">
    <link rel="stylesheet" type="text/css" media="screen" href="<{xoAppUrl media/font-awesome/css/font-awesome.min.css}>">
</head>

<body onload="window.resizeTo(<{$xsize|default:800}>, <{$ysize|default:800}>);">
<div class="xmdoc">
	<{if $selected|default:false}>
		<h2>
			<{$seldoc_count}>
			<{if $seldoc_count > 1}>
				<{$smarty.const._MA_XMDOC_FORMDOC_SELECTED}>
			<{else}>
				<{$smarty.const._MA_XMDOC_FORMDOC_1SELECTED}>
			<{/if}>
		</h2>
		<table cellspacing="0" id="imagemain">
			<tr>
			<{foreach item=seldoc from=$seldoc}>			
				<td class="txtcenter"><{$seldoc.name}><br><{$seldoc.logo}></td>
				<{if $seldoc.count is div by 4}>
				</tr>
				<tr>
				<{/if}>
			<{/foreach}>
			</tr>
			<tr>
				<td>
					<div class="resultMsg" role="alert">						
						<{if $seldoc_count > 1}>
							<{$smarty.const._MA_XMDOC_FORMDOC_WARNING}>
						<{else}>
							<{$smarty.const._MA_XMDOC_FORMDOC_1WARNING}>
						<{/if}>
					</div>
				</tr>
			</td>
		</table>
		<form name="selreset" id="selreset" action="docmanager.php" method="post">
			<input type="hidden" name="selectreset" value="true" />
			<input type='submit' class='formButton' name='subselect'  id='subselect' value='<{$smarty.const._MA_XMDOC_FORMDOC_RESETSELECTED}>' title='<{$smarty.const._MA_XMDOC_FORMDOC_RESETSELECTED}>'  />
			<input value="<{$smarty.const._SUBMIT}>" type="button" onclick="window.close();"/>
		</form>
	<{/if}>
	<{if $form}>
		<div class="xmform">
			<h2><{$smarty.const._MA_XMDOC_SEARCH}></h2>
			<{$form}>
		</div>
	<{/if}>
	<div id="addimage" class="txtright">
		<a href="<{$xoops_url}>/modules/xmdoc/action.php?op=add" title="<{$smarty.const._MA_XMDOC_DOCUMENT_ADD}>" target="_blank"><{$smarty.const._MA_XMDOC_DOCUMENT_ADD}></a>
	</div>
	<{if $error_message|default:'' != ''}>
		<div class="errorMsg" style="text-align: left;">
			<{$error_message}>
		</div>
	<{/if}>
	<{if $document|default:'' != ""}>
        <h3 class="tdm-title"><{$smarty.const._MA_XMDOC_FORMDOC_LISTDOCUMENT}>:</h3>
		<form name="formsel" id="formsel" action="docmanager.php" method="post">
			<table cellspacing="0" id="imagemain">
				<tr>
					<th class="txtcenter width5"><{$smarty.const._MA_XMDOC_FORMDOC_SELECT}></th>
					<th class="txtcenter width10"><{$smarty.const._MA_XMDOC_DOCUMENT_LOGO}></th>
					<th class="txtleft width15"><{$smarty.const._MA_XMDOC_DOCUMENT_NAME}></th>
				</tr>
				<tbody>
				
				<{foreach item=document from=$document}>
					<tr class="<{cycle values='even,odd'}> alignmiddle">
						<td class="txtcenter"><input type="checkbox" name="selDocs[]" id="selDocs<{$document.id}>"  title="Selectio documents" value="<{$document.id}>"  /></td>
						<td class="txtcenter"><{$document.logo}></td>
						<td class="txtleft">
                            <a title="<{$document.name}>" href="<{$xoops_url}>/modules/xmdoc/download.php?cat_id=<{$document.categoryid}>&amp;doc_id=<{$document.id}>" target="_blank">
                                <h4><{$document.name}></h4>
                            </a>
                            <br><{$document.description}>
                        </td>
					</tr>
				<{/foreach}>

				</tbody>
			</table>
		<input type='submit' class='formButton' name='select'  id='select' value='<{$smarty.const._MA_XMDOC_FORMDOC_SELECT}>' title='<{$smarty.const._MA_XMDOC_FORMDOC_SELECT}>'  />
		</form>
    <{/if}>
    <div class="clear spacer"></div>
    <{if $nav_menu|default:false}>
        <div class="floatright"><{$nav_menu}></div>
        <div class="clear spacer"></div>
    <{/if}>
</div><!-- .xmdoc -->
<div id="footer">
    <input value="<{$smarty.const._CLOSE}>" type="button" onclick="window.close();"/>
</div>

</body>
</html>

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